/* load fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Serif+Text:ital@0;1&display=swap');

/* variables */
:root {
    --dark-brown: #6E4421;
    --orange: #F08C00;
    --beige: #EFC281;
    --yellow: #FFE7C5;
    --white: #FFFFFF;
    --sky-blue: #09ADFF;
    --font-sans: "DM Serif Text", "Times New Roman", serif;
}

/* global styles / reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    background: #572800;
}

nav {
    width: 100%;
    height: 10%;
    background: #572800;
    color: #FFFFFF;
}

nav a {
    color: #FFFFFF;
    transition: 0.2s color ease;
}

nav a:hover,
nav a:focus {
    text-decoration: none;
    color: var(--sky-blue);
}

img {
    max-width: 80vw;
}

/* typography */
h1,
h2,
h3 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 36px;
    line-height: normal;
    color: var(--white);
    text-align: center;
    height: 88px;
}

h2,
h3 {
    align-items: center;
}

p {
    font-size: 16px;
    line-height: 25px;
    width: 100%;
    max-width: 634px;
}

ul {
    width: 444px;
}

ol {
    width: 444px;
}

/* header */
header img {
    max-width: 200px;
}

/* homepage */
.sr-only {
    visibility: hidden;
}

.leaves-bg {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.44) 100%), url(images/fall-leaves.jpg);
    width: 100%;
    min-height: 236px;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home #scroll-up {
    display: none;
}

.box-left,
.box-right,
.extra-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 37px 86px;
    align-items: center;
    gap: 27px;
    flex-shrink: 0;
}

.box-left {
    color: var(--white);
    background: #7D5029;
}

.box-right {
    color: var(--dark-brown);
    background: var(--yellow);
}

.extra-box {
    background: #EFC281;
    color: #6E4421;
}

.box-left-content,
.box-right-content {
    display: flex;
    max-width: 1265px;
    justify-content: center;
    gap: 61px;
}

.box-left-content {
    color: #FFFFFF;
    flex-direction: column;
    align-items: center;
}

.box-right-content {
    color: var(--dark-brown);
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.box-right-content-sources {
    display: flex;
    flex-direction: column;
    color: var(--dark-brown);
    max-width: 1265px;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    flex-wrap: nowrap;
}

.box-right-content-sources ul {
    flex: 1 1 48%;
    min-width: 0;
    max-width: 620px;
    margin: 0;
    padding-left: 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.box-right-content img {
    flex: 0 0 auto;
    height: auto;
    display: block;
}

/* Responsive YouTube embed wrapper */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 1265px; /* match content column */
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    z-index: 2; /* ensure iframe sits above other elements */
    pointer-events: auto;
}

/* Thumbnail fallback for blocked embeds */
.video-fallback {
    max-width: 1265px;
    margin: 1.5rem auto;
    position: relative;
}
.video-fallback a {
    display: block;
    position: relative;
    text-decoration: none;
}
.video-fallback img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.video-fallback .play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 4px 14px rgba(0,0,0,0.6);
    pointer-events: none;
}
.video-fallback a:focus .play-overlay,
.video-fallback a:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.05);
}

.box-left-content h2,
.box-right-content h2 {
    text-align: center;
}


.fall-fashion-conclusion {
    background: linear-gradient(90deg, rgba(125, 80, 41, 0.80) 26.41%, rgba(125, 80, 41, 0.00) 71.89%), url(images/pexels-karola-g-5706277.jpg);
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    color: var(--white);
    width: 100%;
    height: 100%;
    padding: 37px 86px;
}


.tv-show-box,
.songs-box {
    display: flex;
    flex-direction: column;
    color: white;
    padding: 37px 86px;
    background-size: cover;
}

.tv-show-box {
    background: linear-gradient(90deg, rgba(22, 40, 44, 0.80) 38.07%, rgba(0, 0, 0, 0.00) 69.16%), url(images/tv-show-box_background.jpg);
    background-size: cover;
}

.songs-box {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 34.84%, rgba(0, 0, 0, 0.00) 75.33%), url(images/ghost_trend-socialmedia_pexels.jpg);
    background-position: 0% 48.48%;
    background-size: 135%;
}

footer {
    background: #572800;
    color: #FFF;
    font-family: "DM Serif Text";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 36px 24px;
    /* remove fixed height so content has breathing room */
    min-height: 102px;
    flex-shrink: 0;
}

/* media queries */
@media (min-width: 1280px) {

    h1 {
        text-align: center;
        /* heading 1 desktop */
        font-family: "DM Serif Display";
        font-size: 64px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        color: #FFF
    }

    h2 {
        font-family: "DM Serif Display";
        font-size: 48px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .box-left-content,
    .box-right-content, .box-right-content, .box-right-content-sources, .leaves-bg, .box-left-content, .extra-box, .fall-fashion-intro   {
        flex-direction: row;
    }

}

/* Mobile fixes for text overflow */
@media (max-width: 768px) {
    .box-right-content-sources ul {
        flex: 1 1 100%; /* Full width on mobile */
        max-width: 100%; /* Prevent overflow */
        padding-left: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto; /* Optional: allow hyphenation for better wrapping */
    }
}