:root {
    --paper: #f3f0e9;
    --paper-deep: #e7e0d5;
    --white: #fffdf8;
    --ink: #111b2b;
    --ink-soft: #465165;
    --navy: #10213b;
    --blue: #2e62c7;
    --blue-bright: #78a4ff;
    --line: rgba(17, 27, 43, 0.18);
    --line-light: rgba(255, 253, 248, 0.22);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "DM Sans", "Helvetica Neue", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gutter: clamp(1.25rem, 4vw, 5.5rem);
    --content: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
picture, svg { display: block; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: 0.8rem 1rem;
    background: var(--white);
    color: var(--navy);
    transform: translateY(-180%);
    visibility: hidden;
}

.skip-link:focus { transform: translateY(0); visibility: visible; }

.paper-grain {
    position: fixed;
    inset: -50%;
    z-index: 100;
    width: 200%;
    height: 200%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.story-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.25rem;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    background: rgba(243, 240, 233, 0.94);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 0.92;
    text-transform: uppercase;
}

.wordmark strong {
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: none;
}

.header-actions, .lang-switch, .header-link, .back-link,
.button, .text-link, .closing-actions {
    display: flex;
    align-items: center;
}

.header-actions { gap: clamp(0.55rem, 2vw, 1.5rem); }

.lang-switch {
    min-height: 44px;
    gap: 0.12rem;
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.lang-btn {
    min-width: 34px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
}

.lang-btn:hover, .lang-btn[aria-pressed="true"] { color: var(--navy); opacity: 1; }

.header-link {
    min-height: 44px;
    gap: 0.65rem;
    padding: 0 1rem;
    background: var(--navy);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-link svg, .button svg, .text-link svg, .back-link svg {
    flex: 0 0 auto;
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.story-hero {
    display: grid;
    width: min(100%, var(--content));
    margin: 0 auto;
    padding: clamp(2.75rem, 7vw, 6.5rem) var(--gutter) clamp(3.25rem, 7vw, 6rem);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    padding-bottom: 2.25rem;
}

.back-link {
    align-self: flex-start;
    gap: 0.65rem;
    min-height: 44px;
    margin-bottom: clamp(3rem, 8vw, 7rem);
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--blue);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.story-hero h1 {
    max-width: 9ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 15vw, 9rem);
    font-weight: 400;
    letter-spacing: -0.07em;
    line-height: 0.78;
}

.story-hero h1 span { color: var(--blue); font-style: italic; }

.hero-line {
    max-width: 25rem;
    margin: 2rem 0 0;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1.15;
}

.hero-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--navy);
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-photo figcaption {
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 0.9rem;
    color: var(--white);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-facts {
    display: grid;
    width: min(100%, var(--content));
    margin: 0 auto;
    padding: 0 var(--gutter);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.story-facts article {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.8rem;
    padding: 1.4rem 0;
}

.story-facts article + article { border-top: 1px solid var(--line); }
.story-facts span { color: var(--blue); font-size: 0.62rem; letter-spacing: 0.1em; }
.story-facts p { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }

.story-body {
    display: grid;
    gap: 3rem;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(5.5rem, 12vw, 10rem) var(--gutter);
}

.story-heading h2, .story-closing h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.story-heading h2 em, .story-closing h2 em { color: var(--blue); font-weight: 400; }

.story-copy {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.85;
}

.story-copy p { margin: 0; }
.story-copy p + p { margin-top: 1.5rem; }

.quote-section {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    background: var(--navy);
    color: var(--white);
}

.quote-section > * { width: min(100%, 1100px); margin-right: auto; margin-left: auto; }
.eyebrow--light { color: var(--blue-bright); }
.quote-section blockquote { margin-top: 1.5rem; margin-bottom: 0; }

.quote-section blockquote > p {
    max-width: 23ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 5.25rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.quote-section footer {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-light);
}

.quote-section footer strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.quote-section footer span { color: rgba(255, 253, 248, 0.64); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }

.story-closing {
    display: grid;
    gap: 3rem;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}

.closing-copy > p:last-child {
    max-width: 36rem;
    margin: 2rem 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.closing-image { margin: 0; min-width: 0; }
.closing-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.closing-actions { flex-wrap: wrap; gap: 1.25rem; align-self: end; }

.button, .text-link {
    justify-content: center;
    gap: 0.8rem;
    min-height: 52px;
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.button { padding: 0.9rem 1.25rem; }
.button--primary { background: var(--navy); color: var(--white); }
.button--primary:hover, .header-link:hover { background: var(--blue); }
.text-link { border-bottom: 1px solid var(--line); }
.text-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

.story-footer {
    display: grid;
    gap: 1rem;
    align-items: center;
    padding: 2.25rem var(--gutter);
    border-top: 1px solid var(--line);
    background: var(--paper-deep);
}

.story-footer p { margin: 0; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.15rem; }
.story-footer nav { display: flex; gap: 1.25rem; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.story-footer nav a:hover { color: var(--blue); }

.js .story-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .story-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 680px) {
    .story-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .story-facts article { padding: 1.8rem clamp(1rem, 2.5vw, 2.5rem); }
    .story-facts article:first-child { padding-left: 0; }
    .story-facts article:last-child { padding-right: 0; }
    .story-facts article + article { border-top: 0; border-left: 1px solid var(--line); }
    .story-footer { grid-template-columns: auto 1fr auto; gap: 2rem; }
    .story-footer p { text-align: center; }
}

@media (min-width: 900px) {
    .story-hero {
        grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
        align-items: center;
        gap: clamp(3rem, 6vw, 7rem);
        padding-top: clamp(2.5rem, 5vh, 4rem);
        padding-bottom: clamp(2.5rem, 5vh, 4rem);
    }

    .hero-copy {
        align-self: stretch;
        justify-content: center;
        padding-bottom: 0;
    }

    .back-link { margin-bottom: clamp(2rem, 4vh, 3rem); }

    .hero-photo {
        height: clamp(520px, 70vh, 700px);
        min-height: 0;
    }

    .hero-photo picture { height: 100%; }

    .hero-photo img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-position: 50% 36%;
    }

    .story-body { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr); align-items: start; gap: 6rem; }
    .story-copy { padding-top: 2.25rem; }
    .story-closing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy photo" "actions photo"; align-items: center; column-gap: 3.5rem; row-gap: 2rem; }
    .closing-copy { grid-area: copy; align-self: end; }
    .closing-actions { grid-area: actions; align-self: start; }
    .closing-image { grid-area: photo; }
    .closing-image img { aspect-ratio: 4 / 5; }
}

@media (max-width: 520px) {
    .story-header { min-height: 4.6rem; }
    .header-link { width: 44px; padding: 0; justify-content: center; }
    .header-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .story-hero { padding-top: 1.75rem; }
    .back-link { margin-bottom: 2.25rem; }
    .story-hero h1 { font-size: clamp(4rem, 21vw, 5.5rem); }
    .hero-line { margin-top: 1.5rem; }
    .hero-copy { padding-bottom: 1.75rem; }
    .story-facts article { grid-template-columns: 1.7rem 1fr; }
    .quote-section blockquote > p { font-size: clamp(2.15rem, 11vw, 3.1rem); }
    .closing-actions, .button { width: 100%; }
    .text-link { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .js .story-reveal { opacity: 1; transform: none; }
}
