/* My World in Words — light journal / timeline theme */

:root {
    --color-bg: #f4f9f7;
    --color-bg-alt: #e8f2ef;
    --color-surface: #ffffff;
    --color-surface-soft: #f0f7f5;
    --color-text: #1a3330;
    --color-text-muted: #4a6562;
    --color-accent: #2d6a5f;
    --color-accent-light: #4a9b8c;
    --color-accent-soft: #c5e4dc;
    --color-sky: #d4e8f5;
    --color-sky-deep: #7eb8d4;
    --color-border: #c8ddd8;
    --color-focus: #1a5c8a;
    --font-serif: "Fraunces", Georgia, serif;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(26, 51, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 51, 48, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1120px;
    --header-height: 72px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 10% 0%, var(--color-sky) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, var(--color-accent-soft) 0%, transparent 40%);
    min-height: 100vh;
    overflow-x: clip;
    max-width: 100%;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-focus);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }

address { font-style: normal; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Header */
.site-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header {
    background: transparent;
    border-bottom: none;
}

@media (min-width: 641px) {
    .site-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 1.25rem;
    }

    .site-header {
        position: static;
        flex: 1;
        min-width: 0;
    }

    .header-shell {
        max-width: none;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .site-nav {
        flex-shrink: 0;
    }
}

.header-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    min-width: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.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-sm);
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

.site-nav-mobile-head,
.nav-overlay {
    display: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.site-nav a {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.site-nav a.is-active {
    font-weight: 600;
}

/* Main layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    min-width: 0;
    overflow-x: clip;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #245a51;
    color: #fff;
}

.btn-soft {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-soft:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-ghost:hover {
    background: var(--color-accent-soft);
}

/* Hero timeline */
.hero-journal {
    margin-bottom: 3rem;
}

.hero-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-sky-deep), var(--color-accent-light));
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

.hero-card h1 {
    margin: 0 0 1rem;
    max-width: 18ch;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 52ch;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Timeline */
.timeline-section {
    margin-bottom: 3.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-label h2 {
    margin: 0;
    font-size: 1.5rem;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-sky-deep), var(--color-accent-soft));
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    left: -1.65rem;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-accent-light);
}

.story-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.story-card-link {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.story-card-image {
    margin: 0;
    overflow: hidden;
    display: block;
    min-height: 100%;
    height: 100%;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 156px;
    aspect-ratio: 5 / 4;
    transition: transform 0.35s ease;
}

.story-card:hover .story-card-image img {
    transform: scale(1.05);
}

.story-card-body {
    padding: 1.25rem 1.5rem;
}

.story-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: 0.35rem;
}

.story-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.story-card-body p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.story-card-featured .story-card-link {
    grid-template-columns: 1fr;
}

.story-card-featured:hover .story-card-image img {
    transform: none;
}

.story-card-featured .story-card-image img {
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 16 / 9;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-sky);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Intro band */
.intro-band {
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-bg-alt) 100%);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--color-border);
}

.intro-band h2 {
    margin-top: 0;
}

/* Page headers */
.page-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.page-hero .eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
}

.page-hero h1 {
    margin: 0 0 0.75rem;
}

.page-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin: 0;
}

/* About layout */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.about-portrait {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.about-sidebar {
    background: var(--color-surface-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.about-sidebar h2 {
    font-size: 1rem;
    margin-top: 0;
}

/* Story single */
.story-single {
    max-width: 720px;
    margin: 0 auto;
}

.story-header {
    margin-bottom: 2rem;
}

.story-header .story-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.story-hero {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.story-content {
    font-size: 1.0625rem;
}

.story-content .lead {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.story-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Journal prompts */
.prompt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompt-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.prompt-item h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.prompt-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Reading room */
.book-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.25rem;
}

.book-card {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border-left: 4px solid var(--color-sky-deep);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-sky-deep);
}

.book-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.book-card .book-author {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form-wrap {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
    outline: 3px solid var(--color-focus);
    outline-offset: 1px;
    border-color: var(--color-accent);
}

.field.has-error input,
.field.has-error textarea {
    border-color: #b33;
}

.field-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.form-errors {
    background: #fde8e8;
    border: 1px solid #e8a0a0;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
    color: #6b2020;
}

.form-success {
    background: var(--color-accent-soft);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--color-accent-light);
}

.form-success h2 {
    margin-top: 0;
    color: var(--color-accent);
}

.contact-aside {
    background: var(--color-surface-soft);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.contact-aside h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.map-frame {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--color-border);
}

.map-frame iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

.map-fallback {
    font-size: 0.9375rem;
}

/* Legal */
.legal-body {
    max-width: 720px;
}

.legal-body h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.legal-body h3 {
    margin-top: 1.25rem;
    font-size: 1.1rem;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-nav h2,
.footer-legal h2,
.footer-contact h2 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-legal li {
    margin-bottom: 0.4rem;
}

.footer-nav a,
.footer-legal a {
    text-decoration: none;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-contact address p {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem;
    background: rgba(26, 51, 48, 0.95);
    color: #eef6f4;
}

.cookie-panel {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-banner h2 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.cookie-banner p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    max-width: 70ch;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-link {
    color: var(--color-accent-soft);
    font-size: 0.875rem;
}

.text-link {
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .story-card-link {
        grid-template-columns: 1fr;
    }

    .story-card:hover .story-card-image img {
        transform: none;
    }

    .story-card-image img {
        min-height: 180px;
        max-height: 220px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 101;
    }

    .site-header {
        z-index: 100;
    }

    .site-top {
        backdrop-filter: none;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 98;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(26, 51, 48, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        cursor: pointer;
    }

    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav-label {
        margin: 0;
        font-family: var(--font-serif);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-text);
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: var(--color-surface);
        color: var(--color-text);
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
    }

    .nav-close span {
        display: block;
        margin-top: -0.15rem;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.35rem;
        margin: 0;
        background: var(--color-surface);
        padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0.28s ease;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav a {
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 1.75rem 1.25rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .story-card { transition: none; }
    .story-card-image img { transition: none; }
    .story-card:hover .story-card-image img { transform: none; }
    .site-nav { transition: none; }
    .nav-overlay { transition: none; }
    .nav-toggle span { transition: none; }
}

/* Premium media layouts */
.brand-mark-img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.page-hero-media { padding-top: 0; border-bottom: none; margin-bottom: 2rem; }

.page-banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.page-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.page-banner-legal img { max-height: 280px; }

.page-hero-text { padding-bottom: 0.5rem; }

.hero-journal-media { position: relative; margin-bottom: 3rem; }

.hero-banner {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: -3rem;
}

.hero-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.hero-journal-media .hero-card {
    position: relative;
    margin: 0;
    max-width: 100%;
}

@media (min-width: 901px) {
    .hero-journal-media .hero-card {
        margin: 0 1.5rem;
        max-width: 640px;
    }
}

.intro-band-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}

.story-card,
.info-card,
.prompt-item,
.page-banner,
.hero-banner,
.intro-band,
.contact-form-wrap,
.contact-aside {
    min-width: 0;
    max-width: 100%;
}

.timeline-section {
    overflow-x: clip;
}

.intro-band-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.info-card-media {
    padding: 0;
    overflow: hidden;
}

.info-card-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.info-card-media h3,
.info-card-media p,
.info-card-media a {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.info-card-media h3 { margin-top: 1rem; }
.info-card-media a { display: inline-block; margin-bottom: 1.25rem; }

.prompt-item-media {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.prompt-item-media img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.prompt-item-body { min-width: 0; }

.error-visual {
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-frame {
    box-shadow: var(--shadow-sm);
}

.map-frame iframe { height: 300px; }

.story-card {
    box-shadow: var(--shadow-md);
}

.story-hero img,
.story-card-featured .story-card-image img {
    object-fit: cover;
}

.book-card {
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .intro-band-split,
    .prompt-item-media {
        grid-template-columns: 1fr;
    }

    .hero-journal-media .hero-card {
        margin: 1rem 0 0;
    }

    .hero-banner { margin-bottom: 0; }
}

/* Themed editorial illustrations */
.page-banner img,
.hero-banner img,
.story-card-image img,
.info-card-media img,
.prompt-item-media img,
.about-portrait img,
.story-hero img,
.error-visual img {
    background: var(--color-bg-alt);
    object-fit: cover;
}
