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

:root {
    --font-ui: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif Devanagari', 'Tiro Devanagari Hindi', Georgia, serif;
    --bg: #fbf7f0;
    --surface: #fffdf9;
    --surface-2: #f4ecdf;
    --surface-3: #ecdfcd;
    --ink: #241c16;
    --muted: #6b5d50;
    --faint: #78695c;
    --line: #e8dcc9;
    --line-strong: #d8c7b1;
    --brand: #8d2f23;
    --brand-hover: #74261c;
    --on-brand: #fff8f1;
    --accent: #d99a3d;
    --accent-soft: #f8e8c9;
    --ring: rgba(141, 47, 35, .25);
    --header-bg: rgba(251, 247, 240, .9);
    --shadow-sm: 0 2px 10px -4px rgba(70, 45, 25, .16);
    --shadow-md: 0 24px 44px -30px rgba(70, 45, 25, .55);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --footer-bg: #241b15;
    --footer-ink: #f1e6d7;
    --footer-muted: #b6a794;
    --max: 1240px;
}

[data-theme="dark"] {
    --bg: #14110f;
    --surface: #1c1815;
    --surface-2: #231e1a;
    --surface-3: #2c2621;
    --ink: #f2eadd;
    --muted: #b7a998;
    --faint: #aa9988;
    --line: #342c25;
    --line-strong: #443a30;
    --brand: #dd8268;
    --brand-hover: #ea967e;
    --on-brand: #1e120d;
    --accent: #e7b26a;
    --accent-soft: #3b2d1d;
    --ring: rgba(221, 130, 104, .3);
    --header-bg: rgba(20, 17, 15, .88);
    --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .6);
    --shadow-md: 0 24px 48px -30px rgba(0, 0, 0, .85);
    --footer-bg: #0f0c0a;
    --footer-ink: #efe4d4;
    --footer-muted: #a3948a;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(900px 460px at 106% -8%, rgba(217, 154, 61, .14), transparent 60%),
        radial-gradient(720px 420px at -10% 4%, rgba(141, 47, 35, .08), transparent 55%);
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; }

svg {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

[hidden] { display: none !important; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .002em;
}

p { margin: 0; }

.container {
    width: min(100% - 36px, var(--max));
    margin-inline: auto;
}

@media (min-width: 768px) {
    .container { width: min(100% - 56px, var(--max)); }
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 400;
    background: var(--brand);
    color: var(--on-brand);
    padding: .55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 6px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--brand);
}
.eyebrow-sm { font-size: .875rem; letter-spacing: .08em; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--brand);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}
.text-link:hover { color: var(--brand-hover); }
.text-link svg { width: 1rem; height: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .72rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color .18s, color .18s, background .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-solid { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-solid:hover { color: var(--on-brand); background: var(--brand-hover); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 140;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile drawer. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff8f1;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1;
    flex: none;
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, .16);
}
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: var(--logo-size, 44px);
    max-width: min(240px, calc(100vw - 205px));
    object-fit: contain;
    flex: none;
}
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light,
[data-theme="dark"] .brand-mark-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.16rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-tag {
    font-size: .8125rem;
    color: var(--faint);
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: min(84vw, 330px);
    padding: 1rem 1rem 1.4rem;
    background: var(--surface);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
    box-shadow: var(--shadow-md);
}
body.nav-open .site-nav { transform: translateX(0); visibility: visible; }

.nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem .4rem 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .6rem;
}

.nav-link {
    display: block;
    padding: .72rem .8rem;
    border-radius: 11px;
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
}
.nav-link:hover { background: var(--surface-2); color: var(--brand); }

.nav-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: flex-start;
}
.nav-feed { font-size: .9375rem; color: var(--faint); font-weight: 600; }
.nav-feed:hover { color: var(--brand); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(20, 13, 8, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.nav-toggle { display: grid; }

@media (min-width: 900px) {
    .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
        transform: none;
        visibility: visible;
        margin-left: auto;
    }
    .nav-head, .nav-foot { display: none; }
    .nav-link {
        padding: .3rem 0;
        font-size: .94rem;
        font-weight: 600;
        color: var(--muted);
        position: relative;
    }
    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 100%;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--accent);
        transition: right .22s ease;
    }
    .nav-link:hover { background: transparent; color: var(--ink); }
    .nav-link:hover::after { right: 0; }
    .nav-toggle { display: none; }
    .header-inner { min-height: 72px; }
    .brand-tag { font-size: .875rem; }
}

.search-drawer {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: .9rem 0 1rem;
    animation: drawerIn .22s ease;
}
@keyframes drawerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.search-form {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .4rem .4rem .4rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color .18s, box-shadow .18s;
}
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.search-form > svg { color: var(--faint); width: 1.15rem; height: 1.15rem; }
.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .45rem 0;
    font-size: .96rem;
}
.search-form input::placeholder { color: var(--faint); }
.search-form .btn { white-space: nowrap; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 1.9rem 0 1.3rem;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 1.4rem; align-items: start; }
.hero-intro { display: contents; }
.hero-head { order: 1; }
.hero-stage { order: 2; }
.hero-head .eyebrow { margin-bottom: .35rem; }
.hero-tools { order: 3; display: flex; flex-direction: column; }
.hero h1 {
    font-size: clamp(2rem, 6.4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.01em;
    margin: .5rem 0 .6rem;
}
.hero-accent { color: var(--brand); }
.hero-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 54ch;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: .15rem;
    width: 100%;
    max-width: 560px;
    margin: 1.25rem 0 .95rem;
    padding: .32rem .32rem .32rem .95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 16px 38px -30px rgba(60, 30, 10, .55);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hero-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--ring), 0 16px 38px -30px rgba(60, 30, 10, .55);
}
.hero-search-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    color: var(--brand);
}
.hero-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-search input {
    flex: 1;
    min-width: 0;
    padding: .58rem .5rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: .97rem;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    padding: .6rem .95rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--on-brand);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hero-search-btn span { transition: transform .18s ease; }
.hero-search-btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 10px 22px -14px rgba(141, 47, 35, .85);
}
.hero-search-btn:hover span { transform: translateX(3px); }
.hero-search-btn:active { transform: scale(.97); }

.hero-chips { display: flex; flex-wrap: wrap; gap: .45rem; }

.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line-strong);
    max-width: 470px;
}
.hero-stat { display: flex; flex-direction: column; gap: .05rem; padding-right: 1.1rem; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat strong { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.hero-stat span { font-size: .875rem; color: var(--faint); }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: .5;
    z-index: 0;
}
.hero-glow-a {
    width: 380px;
    height: 380px;
    top: -150px;
    right: -90px;
    background: radial-gradient(circle, rgba(217, 154, 61, .42), rgba(217, 154, 61, 0) 70%);
}
.hero-glow-b {
    width: 320px;
    height: 320px;
    bottom: -160px;
    left: -130px;
    background: radial-gradient(circle, rgba(141, 47, 35, .22), rgba(141, 47, 35, 0) 70%);
}
.hero-eyebrow { display: flex; align-items: center; gap: .5rem; }
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(217, 154, 61, .5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 154, 61, .45); }
    70% { box-shadow: 0 0 0 9px rgba(217, 154, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 154, 61, 0); }
}

.hero-stage { position: relative; min-width: 0; }
.hero-slider { position: relative; isolation: isolate; }
.hero-slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; }

.hero-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 74%;
    display: block;
    overflow: hidden;
    border-radius: clamp(18px, 3vw, 26px);
    color: #fff8ef;
    opacity: var(--o, 0);
    transform: translateX(calc(-50% + var(--x, 0%))) scale(var(--s, 1)) rotate(var(--r, 0deg));
    transform-origin: center;
    pointer-events: none;
    box-shadow: 0 34px 60px -34px rgba(60, 30, 10, .6);
    transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .5s ease;
    will-change: transform, opacity;
    z-index: 1;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-slide:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.015);
}
.hero-slide.is-active img { animation: heroKen 8s ease-out forwards; }
@keyframes heroKen {
    from { transform: scale(1.015); }
    to { transform: scale(1.09); }
}
.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 11, 7, .22) 0%, rgba(17, 11, 7, .02) 34%, rgba(17, 11, 7, .55) 68%, rgba(17, 11, 7, .93) 100%);
}
.hero-slide-index {
    position: absolute;
    top: .85rem;
    right: 1.1rem;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: .05em;
    color: rgba(255, 248, 239, .72);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-slide-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: 1.15rem 1.15rem 1.2rem;
}
.hero-slide-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: .27rem .68rem;
    border-radius: 999px;
    background: rgba(253, 243, 228, .95);
    color: #402719;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.hero-pill-ghost {
    background: rgba(255, 255, 255, .14);
    color: #fff8ef;
    border: 1px solid rgba(255, 255, 255, .32);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hero-slide-title {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 5.4vw, 1.95rem);
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-excerpt {
    font-size: 1rem;
    line-height: 1.62;
    color: rgba(255, 248, 239, .84);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .15rem;
    font-size: .9375rem;
    font-weight: 700;
    color: #ffd49a;
}
.hero-slide-cta span { transition: transform .2s ease; }
.hero-slide:hover .hero-slide-cta span { transform: translateX(4px); }

.hero-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 12px 26px -18px rgba(60, 30, 10, .7);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.hero-arrow:active { transform: scale(.94); }
.hero-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-arrow-side { position: absolute; top: 50%; z-index: 20; transform: translateY(-50%); }
.hero-arrow-side:active { transform: translateY(-50%) scale(.94); }
.hero-arrow-prev { left: 0; }
.hero-arrow-next { right: 0; }

.hero-thumbs {
    position: relative;
    display: flex;
    gap: .5rem;
    margin-top: .85rem;
    padding: .15rem .1rem .35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-3);
    opacity: .5;
    cursor: pointer;
    scroll-snap-align: center;
    transition: opacity .2s ease, transform .2s ease;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow .2s ease;
}
.hero-thumb:hover { opacity: .85; }
.hero-thumb.is-active { opacity: 1; transform: translateY(-3px); }
.hero-thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--brand); }

.hero-rail-foot { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; }
.hero-count {
    display: inline-flex;
    align-items: baseline;
    gap: .2rem;
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hero-count-total { color: var(--faint); font-weight: 500; }
.hero-rail-label {
    margin-left: auto;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
}
.hero-pause {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hero-pause:hover { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.hero-pause svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-pause .icon-play { display: none; }
.hero-pause svg.icon-play { fill: currentColor; stroke: currentColor; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-pause.is-paused .icon-play { display: block; }

.hero-empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.hero-empty-inner { text-align: center; padding: 2rem 1.4rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.hero-empty-inner .brand-mark { width: 56px; height: 56px; font-size: 2rem; border-radius: 18px; }
.hero-empty-inner h2 { font-size: 1.4rem; }
.hero-empty-inner p { color: var(--muted); font-size: .9rem; }

@media (min-width: 780px) {
    .hero-grid {
        grid-template-columns: .92fr 1.08fr;
        column-gap: 2.6rem;
        row-gap: 0;
        align-items: center;
    }
    .hero-intro {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        grid-column: 1;
        min-width: 0;
    }
    .hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
    .hero-head, .hero-tools { order: 0; }
    .hero-stage { grid-column: 2; grid-row: 1; align-self: center; width: 100%; order: 0; }
    .hero-slides { aspect-ratio: 6 / 5; }
    .hero-slide { width: 76%; }
    .hero-slide-body { padding: 1.35rem 1.4rem 1.4rem; }
    .hero-slide-title { font-size: clamp(1.55rem, 2.5vw, 2rem); }
}

@media (min-width: 900px) {
    .hero { padding: 2.4rem 0 1.4rem; }
    .hero-grid { column-gap: 3.4rem; }
    .hero-slide-index { font-size: 2.05rem; }
    .hero-arrow { width: 42px; height: 42px; }
    .hero-thumb { width: 52px; height: 64px; }
}

@media (max-width: 420px) {
    .hero-slide { width: 82%; }
    .hero-arrow { width: 34px; height: 34px; }
    .hero-rail-label { display: none; }
    .hero-search-btn { padding: .6rem .8rem; }
    .hero-slide-body { padding-left: .95rem; padding-right: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide img,
    .hero-thumb,
    .pulse-dot { animation: none !important; transition: none !important; }
}

.section { padding: 2.4rem 0; }
.section-tight { padding-top: 1.4rem; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.section-title {
    font-size: clamp(1.5rem, 4.4vw, 2.05rem);
    margin-top: .2rem;
}
.section-popular { padding-top: .6rem; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .75rem;
}
@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
}
.category-grid-lg { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.category-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.125rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: .55;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.category-letter {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: .25rem;
    position: relative;
    z-index: 1;
}
.category-name { font-weight: 700; font-size: 1.1875rem; line-height: 1.5; position: relative; z-index: 1; }
.category-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.category-count { margin-top: auto; padding-top: .4rem; font-size: .875rem; font-weight: 700; color: var(--brand); position: relative; z-index: 1; }

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.05rem;
}
@media (min-width: 560px) {
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .story-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.story-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.story-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.story-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story-card:hover .story-card-media img { transform: scale(1.045); }
.story-card-cat {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(27, 18, 12, .8);
    color: #fdf4e6;
    font-size: .875rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.story-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.story-card-date { font-size: .875rem; }
.story-card-body h3 { font-size: 1.375rem; line-height: 1.5; }
.story-card-body h3 a { transition: color .18s; }
.story-card-body h3 a:hover { color: var(--brand); }
.story-card-excerpt {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card-foot { margin-top: auto; padding-top: .25rem; justify-content: space-between; }
.story-card-foot .text-link { font-size: .9375rem; }

.meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    color: var(--faint);
    font-size: .875rem;
    line-height: 1.4;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-item {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
    border-top: 1px solid var(--line);
}
.popular-item:first-child { border-top: 0; padding-top: 0; }
.popular-rank { font-family: var(--font-serif); color: var(--accent); font-size: .95rem; font-weight: 600; }
.popular-body { min-width: 0; }
.popular-body h3 { font-size: 1.125rem; line-height: 1.55; }
.popular-body h3 a:hover { color: var(--brand); }
.popular-arrow { color: var(--faint); font-size: 1rem; }

.popular-strip {
    list-style: none;
    margin: 0;
    padding: 0 0 .35rem;
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.popular-strip::-webkit-scrollbar { display: none; }
.popular-card {
    flex: 0 0 248px;
    scroll-snap-align: start;
    min-width: 0;
}
.popular-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.popular-card > a:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.popular-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}
.popular-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.popular-card > a:hover .popular-card-media img { transform: scale(1.05); }
.popular-card .popular-rank {
    position: absolute;
    top: .45rem;
    left: .5rem;
    padding: 0 .5rem;
    border-radius: 999px;
    background: rgba(32, 23, 16, .62);
    color: #fff4e0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    backdrop-filter: blur(6px);
}
.popular-card-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1rem;
    flex: 1;
}
.popular-card-cat { font-size: .875rem; font-weight: 700; letter-spacing: .02em; color: var(--brand); }
.popular-card-title {
    font-family: var(--font-ui);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: break-word;
}
.popular-card-meta { margin-top: auto; padding-top: .25rem; font-size: .875rem; color: var(--muted); }

@media (min-width: 1100px) {
    .popular-strip {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
        overflow: visible;
        padding-bottom: 0;
    }
    .popular-card { flex: initial; }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: 2rem;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 40px;
    height: 40px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-weight: 600;
    font-size: 1rem;
    color: var(--muted);
    transition: border-color .18s, color .18s, background .18s;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.page-btn.is-disabled { opacity: .4; pointer-events: none; }
.page-gap { padding: 0 .2rem; color: var(--faint); }

.page-head {
    padding: 1.2rem 0 1.4rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), transparent);
}
.page-head h1 { font-size: clamp(1.8rem, 5.4vw, 2.6rem); margin: .35rem 0 .6rem; }
.page-lead { color: var(--muted); max-width: 68ch; font-size: .98rem; line-height: 1.8; }
.page-body { max-width: 74ch; }
.page-contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 74ch;
    margin-top: 2.2rem;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.page-contact-card h2 { font-size: 1.1rem; margin: 0; }
.page-contact-card p { margin: .25rem 0 0; color: var(--muted); font-size: 1rem; }

.contact-form-wrap {
    max-width: 74ch;
    margin-top: 2.4rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.contact-layout { display: grid; gap: 2rem; align-items: start; }
.contact-layout .contact-form-wrap { max-width: none; margin-top: 0; order: -1; }
.contact-layout .page-contact-card { max-width: none; margin-top: 1.6rem; }
@media (min-width: 920px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 2.8rem; }
    .contact-layout .contact-form-wrap { order: 0; }
}
.contact-form-head .eyebrow { margin-bottom: .35rem; }
.contact-form-head h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.contact-form-head p { margin: 0 0 1.2rem; color: var(--muted); font-size: .92rem; }
.contact-grid { display: grid; gap: 1rem; }
.contact-form .field { display: block; margin-bottom: 1rem; }
.contact-form .field > span { display: block; margin-bottom: .35rem; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.contact-form .field > span em { color: var(--brand); font-style: normal; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.field-error { display: block; margin-top: .3rem; color: var(--brand); font-size: .9375rem; font-weight: 600; }
.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .4rem; }
.contact-form-actions small { color: var(--faint); font-size: .875rem; }
.form-alert { padding: .8rem 1rem; margin: 0 0 1.1rem; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.form-alert-ok { background: #e9f6ec; color: #1d6b34; border: 1px solid #bfe3c9; }
.form-alert-error { background: var(--accent-soft); color: var(--brand); border: 1px solid rgba(0, 0, 0, .06); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid .field:last-child { grid-column: 1 / -1; }
    .contact-form-wrap { padding: 1.9rem 2rem; }
}
.page-count {
    display: inline-flex;
    margin-top: .8rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand);
    font-size: .875rem;
    font-weight: 700;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: var(--faint);
    margin-bottom: .7rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--faint); }

.story { padding: .4rem 0 0; }
.is-story .story { background: linear-gradient(180deg, var(--surface-2), transparent 520px); }
.story-layout { display: grid; gap: 2.4rem; }
.story-main { min-width: 0; }
.story-main .story-body { max-width: 74ch; }
.story .crumbs { margin-top: 1rem; }
.story-head { margin-top: .6rem; }
.story-head h1 {
    font-size: clamp(1.85rem, 5.8vw, 3rem);
    line-height: 1.35;
    margin: .8rem 0 .7rem;
}
.story-dek {
    font-family: var(--font-serif);
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--muted);
    max-width: 66ch;
}
.story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.2rem;
    margin-top: 1rem;
    font-size: .9375rem;
    color: var(--faint);
}
.story-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.story-meta svg { width: 1rem; height: 1rem; }

.story-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.font-controls {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}
.font-controls button {
    width: 42px;
    height: 34px;
    border: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: .95rem;
    color: var(--muted);
}
.font-controls button + button { border-left: 1px solid var(--line); }
.font-controls button:hover { background: var(--surface-2); color: var(--brand); }
.share-mini { display: flex; align-items: center; gap: .45rem; }
.share-mini a, .share-mini button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    transition: color .18s, border-color .18s;
}
.share-mini a:hover, .share-mini button:hover { color: var(--brand); border-color: var(--brand); }
.share-mini svg { width: 1.05rem; height: 1.05rem; }
.share-mini a svg { fill: currentColor; stroke: none; }

.story-figure { margin: 1.4rem 0 .4rem; }
.story-figure img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.story-figure figcaption { text-align: center; font-size: .875rem; color: var(--faint); margin-top: .55rem; }

.story-body {
    --reading-scale: 1;
    font-family: var(--font-serif);
    font-size: calc(1.125rem * var(--reading-scale));
    line-height: 1.95;
    color: var(--ink);
    padding-top: 1.5rem;
    overflow-wrap: break-word;
}
.story-body p { margin: 0 0 1.15em; }
.story-body h2 { font-size: 1.34em; margin: 1.7em 0 .55em; line-height: 1.5; }
.story-body h3, .story-body h4 { font-size: 1.15em; margin: 1.4em 0 .5em; }
.story-body a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-body strong { font-weight: 700; }
.story-body blockquote {
    margin: 1.6em 0;
    padding: 1.05rem 1.2rem;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 4px 14px 14px 4px;
    color: var(--ink);
    font-size: .98em;
}
.story-body blockquote p:last-child { margin-bottom: 0; }
.story-body ul, .story-body ol { padding-inline-start: 1.35em; margin: 0 0 1.15em; }
.story-body li { margin-bottom: .45em; }
.story-body img { margin: 1.5em auto; border-radius: 14px; }
.story-body hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 2em 0; }
.story-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85em;
    background: var(--surface-2);
    padding: .12em .35em;
    border-radius: 5px;
}
.story-body pre { background: var(--surface-2); padding: 1rem; border-radius: 12px; overflow-x: auto; }
.story-body pre code { background: none; padding: 0; }

@media (min-width: 768px) {
    .story-body { font-size: calc(1.25rem * var(--reading-scale)); padding-top: 1.8rem; }
    .story-body p { margin-bottom: 1.25em; }
}

.story-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; }
.tag {
    padding: .32rem .72rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 600;
}
.tag:hover { color: var(--brand); border-color: var(--brand); }

.story-cta {
    margin: 1.8rem 0 1.4rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}
.story-cta > p { font-weight: 700; margin-bottom: .75rem; }
.story-cta-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.author-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
    margin-top: .6rem;
}
.author-box .brand-mark { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 14px; }
.author-name { font-weight: 700; }
.author-note { color: var(--muted); font-size: .9375rem; }
.author-box .text-link { margin-left: auto; }

.story-nav { display: grid; gap: .8rem; padding: 1.8rem 0 0; }
.story-nav-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color .18s, transform .18s;
}
.story-nav-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.story-nav-item strong { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.story-nav-item.next { text-align: right; }
@media (min-width: 640px) {
    .story-nav { grid-template-columns: 1fr 1fr; }
}

.story-side { min-width: 0; }
.story-side-inner {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.05rem 1rem;
}
.side-head {
    padding-bottom: .75rem;
    margin-bottom: .2rem;
    border-bottom: 1px solid var(--line);
}
.side-head h2 { font-size: 1.22rem; margin-top: .1rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-link {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .62rem 0;
}
.side-media {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-3);
}
.side-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.side-link:hover .side-media img { transform: scale(1.07); }
.side-body { min-width: 0; display: flex; flex-direction: column; gap: .08rem; }
.side-cat { font-size: .875rem; font-weight: 700; letter-spacing: .02em; color: var(--brand); }
.side-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s ease;
}
.side-link:hover .side-title { color: var(--brand); }
.side-meta { font-size: .875rem; color: var(--faint); }
.side-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    margin-top: .55rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
    font-size: .9375rem;
}
.side-more:hover { color: var(--brand-hover); }

@media (min-width: 1000px) {
    .story-layout.with-side {
        grid-template-columns: minmax(0, 1fr) 336px;
        gap: 2.8rem;
        align-items: start;
    }
    .story-side {
        position: sticky;
        top: 94px;
        align-self: start;
    }
    .story-side-inner {
        max-height: calc(100vh - 116px);
        overflow: hidden;
    }
    .side-head { flex: none; }
    .side-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: .2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--line-strong) transparent;
    }
    .side-more { flex: none; }
}

.preview-ribbon {
    background: #8a4b12;
    color: #fff4e2;
    text-align: center;
    font-size: .9375rem;
    padding: .45rem 1rem;
    font-weight: 600;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 300;
    background: transparent;
    pointer-events: none;
}
#readProgress {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .08s linear;
}

.search-form-lg { max-width: 640px; margin-top: 1.1rem; padding: .5rem .5rem .5rem 1.1rem; }
.search-form-lg input { font-size: 1rem; }
.search-hints { display: grid; gap: 2rem; }
.search-hints .section-title { font-size: 1.4rem; margin-bottom: .9rem; }
@media (min-width: 900px) {
    .search-hints { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.4rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}
.empty-state h2, .empty-state h3 { font-size: 1.4rem; }
.empty-state p { color: var(--muted); max-width: 48ch; font-size: .92rem; }
.empty-state .hero-chips { justify-content: center; margin-top: .4rem; }

.not-found { padding: 3rem 0 4rem; text-align: center; }
.not-found-inner { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.not-found-code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 24vw, 10rem);
    line-height: .9;
    color: var(--surface-3);
    letter-spacing: .04em;
    margin: 0;
    -webkit-text-stroke: 1px var(--line-strong);
}
.not-found h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.not-found .page-lead { text-align: center; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .8rem; }
.not-found-chips { justify-content: center; margin-top: 1.4rem; }

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    margin-top: 2.6rem;
    padding: 2.4rem 0 6.5rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand .brand-logo { max-width: 100%; }
.site-footer .brand-logo-light,
.site-footer .brand-mark-light { display: none; }
.site-footer .brand-logo-dark { display: block; }
.footer-brand .brand-name { color: var(--footer-ink); font-size: 1.3rem; }
.footer-brand p { color: var(--footer-muted); font-size: 1rem; line-height: 1.8; max-width: 40ch; }
.footer-socials { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 248, 239, .16);
    color: var(--footer-muted);
    transition: color .18s, border-color .18s;
}
.footer-socials a:hover { color: #fff; border-color: var(--accent); }
.footer-socials svg { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.footer-col h2 {
    font-family: var(--font-ui);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: .8rem;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--footer-muted); font-size: 1rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem;
    margin-top: 2.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 248, 239, .12);
    color: var(--footer-muted);
    font-size: .875rem;
}
.footer-note { opacity: .75; }
.footer-bottom a { color: var(--footer-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

.mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 60px;
    padding: .3rem;
    border-radius: 18px;
    background: var(--header-bg);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px -12px rgba(40, 25, 12, .45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.mobile-dock a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    border-radius: 13px;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
}
.mobile-dock a:hover { background: var(--surface-2); color: var(--brand); }
.mobile-dock svg { width: 1.2rem; height: 1.2rem; }

@media (min-width: 900px) {
    .mobile-dock { display: none; }
    .site-footer { padding-bottom: 2.4rem; margin-top: 3.4rem; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
    .section { padding: 3.2rem 0; }
    .section-tight { padding-top: 1.8rem; }
    .page-head { padding: 2.2rem 0 2.2rem; }
    .story { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body.nav-open { overflow: hidden; }
body.nav-open .header-inner { visibility: hidden; }
body.nav-open .site-header::before { background: rgba(20, 13, 8, .5); }

.site-toast {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 500;
    transform: translate(-50%, 12px);
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: .9375rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    box-shadow: var(--shadow-md);
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) {
    .site-toast { bottom: 26px; }
}

@media print {
    .site-header, .site-footer, .mobile-dock, .story-tools, .story-cta, .related-section,
    .story-nav, .reading-progress, .not-found-actions { display: none !important; }
    body { background: #fff; color: #000; }
    .story-body { font-size: 12pt; line-height: 1.8; }
    .story-figure img { box-shadow: none; }
}
