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

/* ─────────────────────────────────────────
   THEME TOKENS — only colours differ
   Layout, sizing, spacing, fonts: identical
───────────────────────────────────────── */
:root,
[data-theme="light"] {
    --bg: #f7f3ec;
    --border: #c8bfb0;
    --border-lt: #e0d8cc;
    --border-faint: #e8e0d0;
    --border-nav: #2a221a;
    --text: #2a221a;
    --text-mid: #3a2e22;
    --text-muted: #6a5a48;
    --text-dim: #7a6a58;
    --text-faint: #c8bfb0;
    --text-dot-on: #2a221a;

    /* fonts — shared with dark */
    --font-body: 'IM Fell English', Georgia, serif;
    --font-title: 'Cormorant Garamond', serif;
    --font-ui: 'Cinzel', serif;
    --font-book: 'Playfair Display', serif;
    --title-weight: 600;

    --slide-filter: sepia(40%) contrast(1.15) brightness(0.88) saturate(0.5);
    --halftone-dot: rgba(247, 243, 236, 0.55);
    --press-bg: rgba(247, 243, 236, 0.88);
    --slide-bg: #e8e0d0;
}

[data-theme="dark"] {
    --bg: #0e0c0a;
    --border: #232118;
    --border-lt: #1a1814;
    --border-faint: #1a1814;
    --border-nav: #ddd3bf;
    --text: #ddd3bf;
    --text-mid: #c4b89e;
    --text-muted: #8a7d65;
    --text-dim: #4a4438;
    --text-faint: #2e2820;
    --text-dot-on: #8a7d65;

    /* fonts — identical to light theme */
    --font-body: 'IM Fell English', Georgia, serif;
    --font-title: 'Cormorant Garamond', serif;
    --font-ui: 'Cinzel', serif;
    --font-book: 'Playfair Display', serif;
    --title-weight: 600;

    --slide-filter: none;
    --halftone-dot: rgba(14, 12, 10, 0);
    --press-bg: rgba(14, 12, 10, 0.82);
    --slide-bg: #080608;
}

/* ── BASE ── */
html.about-page {
    overflow-y: scroll;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.35s ease, color 0.35s ease;
}

.page {
    max-width: 860px;
    margin: 0 auto;
}

/* ── TOGGLE ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* ── NAV ── */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2.2rem;
    border-bottom: 2px solid var(--border-nav);
    transition: border-color 0.35s ease;
}

.nav-name {
    font-family: var(--font-ui);
    font-size: 1.23rem;
    text-transform: uppercase;
    color: var(--text);
}

.nav-name a {
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.current {
    color: var(--text);
}

/* ── MASTHEAD ── */
.site-header {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
}

.masthead {
    padding: 2.2rem 2.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.ornament-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.ornament-row.bottom {
    margin-bottom: 0;
    margin-top: 1.4rem;
}

.orn-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    transition: background 0.35s ease;
}

.orn-sym {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--border);
    transition: color 0.35s ease;
}

.main-title {
    font-family: var(--font-title);
    font-size: 4.2rem;
    font-weight: var(--title-weight);
    color: var(--text);
    line-height: 0.8;
    letter-spacing: 0.01em;
    text-align: center;
    transition: color 0.35s ease;
}

.main-title em {
    font-style: italic;
    font-weight: 300;
    font-size: 2.6rem;
    display: block;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    transition: color 0.35s ease;
}

.cinzel-tag {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    margin-top: 1rem;
}

/* ── SLIDESHOW ── */
.photo-zone {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.slideshow {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    position: relative;
    background: var(--slide-bg);
    transition: background 0.35s ease;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.3s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: var(--slide-filter);
    transition: filter 0.35s ease;
}

.press-mark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--press-bg);
    border-top: 1px solid var(--border);
    padding: 0.6rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.press-mark-text {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-faint);
    transition: background 0.4s;
}

.dot.active {
    background: var(--text-dot-on);
}

/* ── LOWER GRID ── */
.lower {
    display: grid;
    grid-template-columns: 1.2fr 1px 1fr;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.about-page .lower {
    display: block;
}

.col-rule {
    background: var(--border);
    transition: background 0.35s ease;
}

.bio-col {
    padding: 2.5rem 2.2rem;
    line-height: normal;
}

.section-label {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-lt);
    transition: border-color 0.35s ease, color 0.35s ease;
}

.bio-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: normal;
    color: var(--text-mid);
    margin-bottom: 1rem;
    transition: color 0.35s ease;
}

.bio-text p:first-child {
    font-size: 1.15rem;
    color: var(--text);
    font-style: italic;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* ── EPIGRAPH (ABOUT) ── */
.epigraph {
    padding: 1.8rem 2.2rem 1.6rem;
    transition: border-color 0.35s ease;
}

.epigraph-text {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-mid);
    max-width: 620px;
    text-align: left;
    transition: color 0.35s ease;
}

.epigraph-attr {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    margin-top: 0.9rem;
    transition: color 0.35s ease;
}

.epigraph-attr::before {
    content: "— ";
}

/* ── ABOUT BODY ── */
.about-body {
    padding: 1.3rem 2.2rem;
    margin-top: -40px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: normal;
    color: var(--text-mid);
    margin-bottom: 1.2rem;
    max-width: 640px;
    transition: color 0.35s ease;
}

.about-text p:first-child {
    font-size: 1.3rem;
    color: var(--text);
    font-style: italic;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.about-text a:hover {
    text-decoration-color: var(--text);
}

/* ── ROLES ROW ── */
.roles-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 1.8rem 2.2rem;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.role-name {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text);
    transition: color 0.35s ease;
}

.role-sep {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--border);
    transition: color 0.35s ease;
}

/* ── AI-FREE NOTE ── */
.ai-note-wrap {
    padding: 1.6rem 2.2rem;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.ai-note {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-dim);
    background: transparent;
}

.nav-col .ai-note {
    margin-top: 1.4rem;
}

.ai-note-title {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text);
    line-height: normal;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.ai-note-desc {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* ── NAV COL ── */
.nav-col {
    padding: 2.5rem 2rem;
}

.about-page .nav-col {
    padding: 2.5rem 2.2rem;
}

.work-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-faint);
    text-decoration: none;
    transition: opacity 0.2s;
}

.work-item:last-child {
    border-bottom: none;
}

.work-item:hover {
    opacity: 0.45;
}

.work-num {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-right: 0.9rem;
    flex-shrink: 0;
    letter-spacing: 0.1em;
    line-height: 1;
    transition: color 0.35s ease;
}

.work-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.work-name {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.2;
    transition: color 0.35s ease;
}

.work-desc {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.35s ease;
}

.work-arrow {
    font-size: 0.85rem;
    color: var(--border);
    flex-shrink: 0;
    margin-left: 0.75rem;
    line-height: 1;
    transition: color 0.35s ease;
}

/* ── BOOK BAND ── */
.book-band {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    border-bottom: 2px solid var(--border-nav);
    color: var(--text);
    transition: border-color 0.35s ease;
}

.bb-label {
    padding: 1.1rem 2.2rem;
    border-right: 1px solid var(--border);
    transition: border-color 0.35s ease;
}

.bb-label-txt {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.35s ease;
}

.bb-title {
    padding: 1.1rem 2rem;
}

.bb-title a {
    color: var(--text);
    text-decoration-color: var(--text);
}

.bb-title-txt {
    font-family: var(--font-book);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.35s ease;
}

.bb-link {
    padding: 1.1rem 2.2rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
    transition: border-color 0.35s ease;
}

.bb-link a {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.bb-link a:hover {
    color: var(--text);
}

/* ── FOOTER ── */
.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2.2rem;
}

.foot-txt {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    color: var(--text);
    letter-spacing: 0.12em;
    transition: color 0.35s ease;
}

.foot-ornament {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--border);
    letter-spacing: 0.4em;
    transition: color 0.35s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .topnav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .nav-name {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .masthead {
        padding: 1.8rem 1.5rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .main-title em {
        font-size: 1.7rem;
    }

    .epigraph {
        padding: 1.4rem 1.5rem 1.2rem;
    }

    .epigraph-text {
        font-size: 1.05rem;
    }

    .about-body {
        padding: 1.8rem 1.5rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .roles-row {
        gap: 0.5rem 0.7rem;
        padding: 1.4rem 1.5rem;
    }

    .role-name {
        font-size: 1.2rem;
    }

    .ai-note-wrap {
        padding: 1.4rem 1.5rem;
    }

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

    .col-rule {
        display: none;
    }

    .bio-col {
        padding: 1.8rem 1.5rem;
    }

    .nav-col {
        padding: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .book-band {
        grid-template-columns: 1fr;
    }

    .bb-label {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.8rem 1.5rem;
    }

    .bb-title {
        padding: 0.8rem 1.5rem;
    }

    .bb-link {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 0.8rem 1.5rem;
        white-space: normal;
    }

    .foot {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .foot-ornament {
        display: none;
    }
}
