/* My Path My Story — premium dark journey theme */

:root {
    --color-navy: #1B2A41;
    --color-navy-deep: #121c2b;
    --color-navy-soft: #243552;
    --color-sage: #7C9A82;
    --color-sage-light: #B5CDB9;
    --color-sage-muted: #5a7560;
    --color-cream: #FAF8F4;
    --color-cream-muted: #DDD8CF;
    --color-cream-soft: rgba(250, 248, 244, 0.92);
    --color-surface: #223049;
    --color-surface-raised: #2a3a55;
    --color-border: rgba(244, 241, 234, 0.14);
    --color-border-strong: rgba(124, 154, 130, 0.35);
    --color-focus: #a8c9ae;
    --color-error: #e8a598;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.32);
    --radius: 4px;
    --radius-lg: 8px;
    --max-width: 1140px;
    --content-width: 720px;
    --header-height: auto;
    --transition: 0.22s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-cream);
    background: var(--color-navy);
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(124, 154, 130, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(36, 53, 82, 0.8) 0%, transparent 50%);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

html.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-sage-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.22;
    color: var(--color-cream);
}

h1 { font-size: clamp(2.125rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.15rem; }

ul, ol {
    margin: 0 0 1.15rem;
    padding-left: 1.35rem;
}

li + li { margin-top: 0.45rem; }

address {
    font-style: normal;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.65rem 1.1rem;
    background: var(--color-cream);
    color: var(--color-navy);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Header — split logo */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 42, 65, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.header-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 0.85rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.05;
}

.logo-line {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: 0.02em;
}

.logo-line.accent {
    color: var(--color-sage);
    font-style: italic;
    font-weight: 400;
    padding-left: 0.35rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-cream);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.75rem;
    padding: 0.85rem 0 0.15rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.85rem;
}

.primary-nav a {
    color: var(--color-cream-soft);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--color-cream);
    border-bottom-color: var(--color-sage);
}

/* Main layout */
#main-content {
    --gutter: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter) 4rem;
    min-width: 0;
    width: 100%;
    overflow-x: clip;
}

/* Full-width hero (edge-to-edge without 100vw breakout) */
.hero {
    position: relative;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--color-navy) 0%,
        rgba(27, 42, 65, 0.75) 45%,
        rgba(27, 42, 65, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 4rem var(--gutter) 3.5rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.85rem;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--color-cream-soft);
    max-width: 38rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Page intro (inner pages) */
.page-intro {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.page-intro .eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.65rem;
}

.page-intro .lead,
.page-lead {
    font-size: 1.125rem;
    color: var(--color-cream-soft);
    max-width: 42rem;
}

/* Section blocks */
.section-block {
    padding: 3.5rem 0;
}

.section-block + .section-block {
    border-top: 1px solid var(--color-border);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
}

.text-link {
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-sage);
}

.text-link:hover {
    color: var(--color-cream);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-sage), var(--color-navy-soft));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.75rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-2rem + 0.25rem);
    top: 0.45rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-navy);
    border: 2px solid var(--color-sage);
    box-shadow: 0 0 0 4px rgba(124, 154, 130, 0.15);
}

.timeline-marker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.35rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-cream-muted);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    margin: 0 0 0.65rem;
}

.timeline-item h3 a {
    color: var(--color-cream);
    text-decoration: none;
}

.timeline-item h3 a:hover {
    color: var(--color-sage-light);
}

.timeline-excerpt {
    color: var(--color-cream-soft);
    margin-bottom: 0.85rem;
    max-width: 38rem;
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-sage);
}

.timeline-link:hover {
    color: var(--color-cream);
}

/* Masonry story cards */
.story-masonry {
    columns: 1;
    column-gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.story-card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
    min-width: 0;
    max-width: 100%;
}

.story-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .story-card:hover,
    .story-card-featured:hover {
        transform: none;
    }
}

.story-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.story-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.story-card-body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.story-card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.45rem;
}

.story-card-body h3 {
    margin: 0 0 0.55rem;
    color: var(--color-cream);
}

.story-card-body p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-cream-soft);
}

.story-card-featured {
    border-color: var(--color-border-strong);
}

.story-card-featured .story-card-image img {
    aspect-ratio: 16 / 9;
}

@media (min-width: 640px) {
    .story-masonry {
        columns: 2;
    }

    .story-card-featured {
        column-span: all;
    }

    .story-card-featured .story-card-link {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
    }

    .story-card-featured .story-card-image img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 260px;
    }
}

@media (min-width: 960px) {
    .story-masonry {
        columns: 3;
    }
}

/* Intro prose block */
.intro-prose {
    max-width: 42rem;
}

.intro-prose-wide {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .intro-prose-wide {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.intro-aside {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.intro-aside h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.intro-aside ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.intro-aside li {
    color: var(--color-cream-soft);
    font-size: 0.9375rem;
}

/* Chapter article */
.chapter-article {
    max-width: var(--content-width);
    margin: 0 auto;
}

.chapter-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.chapter-number {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.5rem;
}

.chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-cream-muted);
    margin-top: 0.75rem;
}

.chapter-hero {
    margin: 0 0 2.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.chapter-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.chapter-hero figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-cream-muted);
    background: var(--color-surface);
}

.chapter-body {
    font-size: 1.0625rem;
}

.chapter-body h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.85rem;
}

.chapter-body blockquote {
    margin: 1.75rem 0;
    padding: 1.15rem 1.35rem;
    border-left: 3px solid var(--color-sage);
    background: rgba(124, 154, 130, 0.08);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-cream-soft);
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.chapter-nav a {
    text-decoration: none;
    font-size: 0.9375rem;
}

.chapter-nav-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-cream-muted);
    margin-bottom: 0.25rem;
}

/* Reflections list */
.reflections-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reflection-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.reflection-item:first-child {
    padding-top: 0;
}

.reflection-date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.45rem;
}

.reflection-item h2 {
    font-size: 1.25rem;
    margin: 0 0 0.65rem;
}

.reflection-item p {
    margin: 0;
    color: var(--color-cream-soft);
    max-width: 40rem;
}

/* Letters page */
.letters-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .letters-layout {
        grid-template-columns: 1fr 0.9fr;
    }
}

.letters-prose {
    max-width: 40rem;
}

.letters-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.letters-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.letters-callout {
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
}

.letters-callout h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* About page */
.about-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.about-portrait {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.about-portrait img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about-content h2 {
    font-size: 1.45rem;
    margin: 2rem 0 0.75rem;
}

.about-content h2:first-of-type {
    margin-top: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background: var(--color-sage);
    color: var(--color-navy);
    border-color: var(--color-sage);
}

.btn-primary:hover {
    background: var(--color-sage-light);
    border-color: var(--color-sage-light);
    color: var(--color-navy-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--color-cream);
    border-color: var(--color-border-strong);
}

.btn-secondary:hover {
    background: var(--color-surface);
    color: var(--color-cream);
}

.btn-ghost {
    background: transparent;
    color: var(--color-cream-soft);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    color: var(--color-cream);
    border-color: var(--color-sage);
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 2.5rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contact-aside h2,
.contact-aside h3 {
    font-size: 1.1rem;
    margin: 0 0 0.85rem;
}

.contact-aside h3 {
    margin-top: 1.75rem;
}

.contact-aside address p {
    margin-bottom: 0.45rem;
    color: var(--color-cream-soft);
    font-size: 0.9375rem;
}

.field {
    margin-bottom: 1.15rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--color-cream);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-cream);
    background: var(--color-navy-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(124, 154, 130, 0.25);
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--color-error);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-errors {
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    background: rgba(232, 165, 152, 0.12);
    border: 1px solid rgba(232, 165, 152, 0.35);
    border-radius: var(--radius);
    color: var(--color-error);
    font-size: 0.9375rem;
}

.form-success {
    padding: 0.5rem 0;
}

.form-success h2 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.form-success p {
    color: var(--color-cream-soft);
}

/* Map */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 3;
    background: var(--color-surface);
    max-width: 100%;
    min-width: 0;
}

.map-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
}

.map-fallback {
    font-size: 0.9375rem;
    color: var(--color-cream-soft);
}

/* Legal pages */
.legal-body {
    max-width: var(--content-width);
    margin: 0 auto;
}

.legal-body h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.55rem;
}

.legal-body p,
.legal-body li {
    color: var(--color-cream-soft);
}

/* 404 */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 32rem;
    margin: 0 auto;
}

.error-page h1 {
    font-size: clamp(4rem, 12vw, 6rem);
    color: var(--color-sage);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--color-cream-soft);
    margin-bottom: 1.75rem;
}

.error-page .btn + .btn {
    margin-left: 0.65rem;
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--color-navy-deep);
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-sage), transparent);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.75rem 1.5rem 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-about p:last-child {
    color: var(--color-cream-soft);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.footer-links h2,
.footer-contact h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin: 0 0 0.85rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.4rem;
}

.footer-links a {
    color: var(--color-cream-soft);
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-cream);
}

.footer-contact address p {
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    color: var(--color-cream-soft);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-cream-muted);
    text-align: center;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem;
    background: rgba(18, 28, 43, 0.96);
    border-top: 1px solid var(--color-border-strong);
    backdrop-filter: blur(8px);
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-banner h2 {
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
}

.cookie-banner p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--color-cream-soft);
    max-width: 52rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Focus visible */
:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Mobile nav */
@media (max-width: 767px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        overflow: visible;
    }

    body {
        padding-top: var(--header-height, 5rem);
    }

    .header-wrap {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        margin-top: 0;
        background: rgba(27, 42, 65, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        z-index: 10;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .hero {
        min-height: 62vh;
    }

    .story-card-featured .story-card-link {
        display: block;
    }

    .error-page .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.65rem;
    }

    .error-page .btn + .btn {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ── Premium enhancements v2 ── */

.page-hero-band {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.page-hero-band--compact {
    margin-bottom: 2rem;
}

.page-hero-band-image {
    width: 100%;
    object-fit: cover;
    max-height: 380px;
    min-height: 200px;
    aspect-ratio: 21 / 9;
    opacity: 0.92;
}

.page-hero-band-content {
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    background: var(--color-surface);
    border-top: 2px solid var(--color-sage);
}

.reflections-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reflection-item {
    display: grid;
    grid-template-columns: minmax(0, min(280px, 100%)) 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.reflection-thumb {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 7 / 5;
    border-radius: var(--radius);
}

.reflection-body h2 {
    font-size: 1.35rem;
    margin: 0.35rem 0 0.75rem;
}

.reflection-date {
    font-size: 0.875rem;
    color: var(--color-sage-light);
    margin: 0;
}

.timeline-with-media .timeline-item {
    display: grid;
    grid-template-columns: minmax(0, min(320px, 100%)) 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.timeline-thumb {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.timeline-thumb:hover {
    transform: scale(1.02);
}

.timeline-thumb img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.chapter-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.chapter-hero img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

.chapter-hero figcaption {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-cream-muted);
    background: var(--color-surface);
}

.story-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: transform var(--transition), box-shadow var(--transition);
    min-width: 0;
    max-width: 100%;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
    .story-card:hover {
        transform: none;
    }
}

.story-card-image img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    min-height: 320px;
    margin-top: 1rem;
    max-width: 100%;
    min-width: 0;
}

.map-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.hero-media img {
    object-fit: cover;
    width: 100%;
    min-height: 340px;
}

.intro-figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.intro-figure img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.intro-figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--color-cream-muted);
    background: var(--color-surface);
}

@media (max-width: 768px) {
    .reflection-item,
    .timeline-with-media .timeline-item {
        grid-template-columns: 1fr;
    }

    .reflection-item,
    .timeline-with-media .timeline-item {
        padding: 1.15rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-aside,
    .contact-form-wrap,
    .intro-prose-wide > *,
    .about-layout > *,
    .letters-layout > * {
        min-width: 0;
        max-width: 100%;
    }
}

/* Prevent grid/flex children from forcing horizontal scroll */
.reflection-item > *,
.timeline-with-media .timeline-item > *,
.story-card-link,
.contact-grid > *,
.intro-prose-wide,
.page-hero-band,
.page-hero-band-image {
    min-width: 0;
    max-width: 100%;
}
