/* ==========================================================
   THE ECHO COMPLEX — MAIN STYLESHEET
   ========================================================== */

/* 1. Variables and global styles */
:root {
    --cream: #fbf8f1;
    --ink: #16171a;
    --text: #45454a;
    --teal: #008c8e;
    --teal-dark: #007476;
    --lavender: #c9b5d9;
    --pink: #f7b9c5;
    --yellow: #ffe000;
    --lime: #e5eb66;
    --peach: #ffedc8;
    --mint: #eaf4f1;
    --serif: 'Libre Baskerville', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font: 16px/1.65 var(--sans);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.8rem);
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--teal-dark);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1260px, calc(100% - 100px));
    margin: auto;
}

/* 2. Header and navigation */
.site-header {
    position: relative;
    z-index: 5;
    background: var(--cream);
}

.nav-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    text-decoration: none;
    color: var(--teal);
    font-size: 1.16rem;
    letter-spacing: .14em;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    gap: 34px;
}

.primary-nav a {
    color: #3e4248;
    text-decoration: none;
    font-size: .88rem;
    padding: 7px 0;
    border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current] {
    color: var(--teal);
    border-color: var(--teal);
}

.menu-toggle {
    display: none;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 15px;
    top: 15px;
    background: white;
    padding: 10px;
    z-index: 10;
}

/* 3. Hero */
.hero {
    overflow: hidden;
}

.hero-grid {
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 36px 0 45px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4.1vw, 4.05rem);
    max-width: 690px;
    line-height: 1.19;
    margin-bottom: 20px;
}

.hero-lede {
    font: clamp(1.1rem, 1.8vw, 1.42rem)/1.5 var(--serif);
    color: #606066;
    max-width: 515px;
}

.hero-emphasis {
    max-width: 470px;
    margin-top: 20px;
}

.hero-art {
    height: 100%;
    min-height: 470px;
    background: url('../images/echo-silhouettes-hero.png') no-repeat left center;
    background-size: auto 100%;
    margin-right: calc((min(1260px, 100vw - 100px) - 100vw)/2);
}

/* 4. Buttons and shared sections */
.button {
    display: inline-block;
    background: var(--teal);
    color: white;
    text-decoration: none;
    padding: 13px 23px;
    font-size: .77rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1.5;
}

.button:hover {
    background: var(--teal-dark);
}

.button span {
    margin-left: 8px;
}

.section-pad {
    padding: 54px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    font-size: .9rem;
    color: var(--teal);
    margin-bottom: 12px;
}

/* 5. Introductory video */
.video-section {
    padding: 0;
    background: #eaf4f1;
}

.video-panel {
    background: transparent;
    border-radius: 0;
    padding: 45px 0;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 65px;
}

.video-intro h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.9rem);
}

.video-placeholder {
    position: relative;
    background: #171717;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    justify-content: center;
}

.video-placeholder img {
    height: 100%;
    width: 53%;
    object-fit: cover;
    object-position: center 12%;
    margin-right: auto;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    background: linear-gradient(90deg, transparent 25%, rgba(0, 0, 0, .85) 100%);
    color: white;
    font-weight: 600;
}

.play-icon {
    display: grid;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    padding-left: 4px;
    font-size: 25px;
}

/* 6. Recognition section */
.recognition {
    background: #fff8f6;
}

.recognition-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 58px;
}

.recognition-right {
    border-left: 1px solid #d5cac7;
    padding-left: 55px;
}

.color-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.color-list li {
    position: relative;
    padding-left: 48px;
    margin: 0 0 17px;
}

.color-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--lavender);
}

.color-list li:nth-child(5n+2):before {
    background: var(--pink);
}

.color-list li:nth-child(5n+3):before {
    background: var(--yellow);
}

.color-list li:nth-child(5n+4):before {
    background: var(--lime);
}

.color-list li:nth-child(5n+5):before {
    background: var(--peach);
}

.teal-quote {
    font: italic 1.4rem/1.45 var(--serif);
    color: var(--teal);
}

.small-rule {
    width: 45px;
    height: 2px;
    background: #f3d47a;
    margin: 22px 0;
}

/* 7. Explanation section and second silhouette */
.explanation {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    min-height: 0;
}

.explanation-art {
    min-height: 520px;
    background: url('../images/echo-silhouettes-section.png') no-repeat right center;
    background-size: auto 100%;
    transform: scaleX(-1);
}

.explanation-content {
    max-width: none;
    padding: 52px max(60px, calc((100vw - 1260px)/2)) 52px 65px;
}

.explanation-content h2 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    max-width: 640px;
}

.explanation-content p {
    max-width: 650px;
}

.closing-line {
    font-weight: 500;
}

/* 8. Statement / quotation */
.statement-section {
    background: var(--mint);
}

.statement-section blockquote {
    font: italic clamp(1.35rem, 2.15vw, 1.9rem)/1.55 var(--serif);
    color: var(--teal-dark);
    max-width: 870px;
    margin: 0 auto;
    text-align: center;
}

.statement-cta {
    text-align: center;
    margin-top: 30px;
}

/* 9. Book preview */
.book-preview {
    background: #fff8ec;
}

.book-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 35px;
    align-items: center;
}

.book-subtitle {
    font: 1.35rem/1.5 var(--serif);
    color: #67666a;
    max-width: 560px;
}

.book-image img {
    max-height: 355px;
    margin: auto;
    box-shadow: 16px 18px 22px #00000019;
}

/* 10. About Amy preview */
.about-preview {
    background: #f3eaf5;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 48px;
    min-height: 300px;
}

.portrait-wrap {
    align-self: end;
    max-width: 330px;
    height: 290px;
    overflow: hidden;
    border-radius: 180px 180px 0 0;
    background: #dbcbe7;
}

.portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 17%;
}

.text-link {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

/* 11. Footer */
.site-footer {
    background: var(--cream);
    border-top: 1px solid #e7e0da;
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner p,
.footer-inner > a:last-child {
    font-size: .78rem;
    margin: 0;
}

.video-panel iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* 12. Tablet / medium desktop */
@media (min-width: 801px) and (max-width: 1120px) {
    .container {
        width: calc(100% - 72px);
    }

    .hero-copy h1 {
        font-size: 3.2rem;
    }

    .explanation-content {
        padding: 45px;
    }

    .explanation-art {
        min-height: 540px;
    }
}

/* Tablet navigation */
@media (min-width: 801px) and (max-width: 840px) {

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        padding: 8px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--ink);
    }

    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--cream);
        padding: 20px;
        box-shadow: 0 12px 20px #00000014;
        flex-direction: column;
        gap: 8px;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-inner {
        min-height: 68px;
    }
}

/* 13. Mobile and small tablet */
@media (max-width: 800px) {
    .container {
        width: min(100% - 38px, 650px);
    }

    .nav-inner {
        min-height: 68px;
    }

    .brand {
        font-size: .91rem;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        padding: 8px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--ink);
    }

    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--cream);
        padding: 20px;
        box-shadow: 0 12px 20px #00000014;
        flex-direction: column;
        gap: 8px;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        padding: 32px 0 15px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 8vw, 3.6rem);
    }

    .hero-art {
        min-height: 270px;
        height: 270px;
        margin: 0 -19px;
        background-size: auto 100%;
        background-position: center center;
    }

    .video-panel {
        grid-template-columns: 1fr;
        padding: 34px 0;
        gap: 20px;
    }

    .recognition-grid,
    .book-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .recognition-right {
        padding: 25px 0 0;
        border-left: 0;
        border-top: 1px solid #d5cac7;
    }

    .explanation {
        grid-template-columns: 1fr;
    }

    .explanation-art {
        height: 280px;
        min-height: 280px;
        background-size: auto 100%;
        background-position: center center;
    }

    .explanation-content {
        padding: 34px 20px 44px;
    }

    .section-pad {
        padding: 42px 0;
    }

    .book-image img {
        max-height: 320px;
    }

    .about-grid {
        gap: 20px;
    }

    .portrait-wrap {
        height: 290px;
        max-width: 300px;
        margin: auto;
    }

    .about-grid > div:last-child {
        padding: 0 0 40px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

/* 14. Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
