/* emaska — design layer from the Claude Design mockup (Emaska.dc.html):
   powder #F5F1EB, ink #1E1A1B, blush #A2434A, plum #2B2026; Cormorant Garamond + Manrope. */
:root {
    --bg: #F5F1EB;
    --sand: #ECE4D8;
    --card: #FBF8F3;
    --ink: #1E1A1B;
    --muted: #6E6461;
    --line: #DCD2C5;
    --blush: #A2434A;
    --plum: #2B2026;
    --pink: #E39A9F;
    --plum-muted: #BEB0B6;
    --plum-line: rgba(245, 241, 235, .22);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: clamp(20px, 4vw, 48px);
    --header-h: 79px;
    --anchor: calc(var(--header-h) + 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.da-site {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blush); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--blush);
    outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: inherit; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; }
.shell {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: 12px 16px;
}
.skip-link:focus { left: 12px; color: var(--bg); }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.eyebrow, .label {
    margin: 0; font-size: 11px; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase;
    font-weight: 700; color: var(--blush);
}
.label.muted { color: var(--muted); }
.dot, .dot-end { color: var(--blush); }
.dot {
    display: inline-block; width: .15em; height: .15em; border-radius: 50%;
    background: var(--blush); margin: .3em 0 0 .04em; align-self: flex-start;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 241, 235, .96);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
    .site-header { background: rgba(245, 241, 235, .9); backdrop-filter: blur(12px); }
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo {
    display: inline-flex; align-items: flex-start; flex: none;
    font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -.02em;
    padding: 8px 0; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; min-height: 78px;
    font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
}
.nav-link.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blush);
}
.more summary {
    list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
    font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--blush); }
.more-caret { font-size: 10px; transition: transform .2s; }
.more[open] .more-caret { transform: rotate(180deg); }
.more-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 60px -40px rgba(30, 26, 27, .35);
}
.more-grid {
    padding-top: 40px; padding-bottom: 48px;
    display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 56px;
}
.more-roots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.more-col { display: flex; flex-direction: column; }
.more-root { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; padding: 6px 0 10px; }
.more-sub { display: flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--muted); }
.more-other { border-left: 1px solid var(--line); padding-left: 48px; display: flex; flex-direction: column; gap: 4px; }
.more-other .eyebrow { margin-bottom: 8px; }
.more-other a { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; min-height: 44px; display: flex; align-items: center; }
.menu-toggle {
    display: none; align-items: center; height: 44px; padding: 0 18px;
    background: transparent; border: 1px solid var(--ink); border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
    position: relative; z-index: 2;
}
.mobile-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; background: var(--bg); z-index: 55; border-top: 1px solid var(--line); scrollbar-width: none;
}
.mobile-menu[hidden] { display: none; }
.mobile-inner { padding: 4px var(--gutter) 48px; }
.sheet-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.sheet-root { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; display: block; padding: 4px 0; }
.sheet-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet-subs a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.mobile-inner .eyebrow { margin: 28px 0 6px; }
.sheet-extra { display: flex; flex-direction: column; }
.sheet-extra a { font-family: var(--serif); font-style: italic; font-size: 26px; min-height: 48px; display: flex; align-items: center; }

/* Shared blocks */
.block { padding-top: clamp(64px, 8vw, 112px); }
.block-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
    border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 32px;
}
.block-head.plain { border-top: 0; padding-top: 0; }
.block-head > p, .block-sub { margin: 0; font-size: 13px; color: var(--muted); }
.block-sub { font-size: 15px; margin-top: 10px; }
.block-name { display: flex; align-items: baseline; gap: 16px; }
.block-num { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--blush); }
.block-head h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.read-link {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--ink);
}
.read-link:hover { border-color: var(--blush); }
.pill-link {
    align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pill-link.on-dark { border-color: rgba(245, 241, 235, .5); color: var(--bg); }
.pill-link.on-dark:hover { background: var(--bg); color: var(--plum); }

.card-grid { display: grid; gap: 40px 28px; }
.card-grid.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.no-img { border-top: 1px solid var(--ink); padding-top: 18px; }
.card-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card.tall .card-shot img { aspect-ratio: 4 / 5; }
.card-title { font-size: 27px; line-height: 1.1; text-wrap: pretty; }
.card-title a:hover, .mosaic-lead h3 a:hover, .feat h2 a:hover { color: var(--blush); }
.card-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Home: hero */
.hero { padding-top: clamp(24px, 5vw, 56px); }
.dateline {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted);
    border-bottom: 1px solid var(--ink);
}
.dateline span, .dateline a { display: inline-flex; align-items: center; min-height: 44px; }
.dateline a { color: var(--blush); }
.hero-title {
    font-size: clamp(46px, 8.6vw, 136px); line-height: .94; letter-spacing: -.025em;
    margin: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); max-width: 18ch;
}
.hero-title.is-mid { font-size: clamp(40px, 6.4vw, 104px); line-height: .96; max-width: 22ch; }
.hero-title.is-long { font-size: clamp(36px, 5.2vw, 84px); line-height: 1; max-width: 26ch; }
.hero-title a:hover { color: var(--ink); }
.hero-row { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); }
.hero-shot { flex: 1 1 560px; min-width: 0; }
.hero-shot img { width: 100%; aspect-ratio: 3 / 2; max-height: 62vh; object-fit: cover; }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-row.no-img .hero-text { flex: 1.4 1 520px; }
.hero-row.has-img .hero-text { flex: 1 1 320px; }
.hero-lead {
    margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
}
.hero-row.no-img .hero-lead { font-size: clamp(24px, 2.6vw, 34px); max-width: 30ch; }
.hero-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.hero-list { flex: 1 1 320px; min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-row.has-img .hero-list { flex-basis: 100%; }
.hero-row.no-img .hero-list { border-top: 0; padding-top: 0; }
.hero-list .eyebrow { margin-bottom: 4px; }
.num-item { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.num { font-family: var(--serif); font-size: 38px; line-height: .8; color: var(--blush); min-width: 40px; }
.num-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.num-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.num-item:hover .num-title { color: var(--blush); }
.num-item .meta { font-size: 12px; }

/* Home: rubric spotlight (plum) */
.spotlight { margin-top: clamp(72px, 9vw, 128px); background: var(--plum); color: var(--bg); }
.spotlight a { color: var(--bg); }
.spotlight-grid {
    padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px);
    display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px);
}
.spotlight-main { flex: 1.4 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.spotlight-label { margin: 0; display: flex; align-items: baseline; gap: 16px; }
.spotlight-label .block-num { color: var(--pink); }
.spotlight-label a {
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--plum-muted);
    min-height: 44px; display: inline-flex; align-items: center;
}
.spotlight-quote {
    margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(32px, 4.2vw, 62px); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance;
}
.spotlight-quote p { margin: 0; }
.spotlight-src { font-size: 14px; color: var(--plum-muted) !important; max-width: 60ch; }
.spotlight-src:hover, .spotlight a:hover { color: var(--pink) !important; }
.spotlight-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.pick { padding: 22px 0; border-top: 1px solid var(--plum-line); display: flex; flex-direction: column; gap: 8px; }
.pick-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--pink); }
.pick-title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.pick-meta { font-size: 13px; color: var(--plum-muted); }
.spotlight-side .pill-link { margin-top: 12px; }

/* Home: topics strip */
.topics { background: var(--sand); padding: clamp(56px, 7vw, 96px) 0; }
.topics .block-head { margin-bottom: 32px; }
.scroll-hint { margin: 0; font-size: 13px; color: var(--muted); }
.topics-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 12px;
    padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
    scroll-padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.topic {
    scroll-snap-align: start; flex: 0 0 270px; min-height: 280px; background: var(--bg);
    padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.topic:hover { background: var(--card); color: var(--ink); }
.topic-kind { font-size: 12px; color: var(--muted); }
.topic-name { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.02; }
.topic-desc { font-size: 15px; line-height: 1.55; }
.topic-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blush); }

/* Home: mosaic of rubrics */
.mosaic {
    padding-top: clamp(64px, 8vw, 112px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px 40px;
}
.mosaic-col { display: flex; flex-direction: column; min-width: 0; }
.mosaic-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 22px;
}
.mosaic-head h2, .mosaic-head h3 { font-size: 40px; line-height: 1; }
.all-link { font-size: 13px; color: var(--muted); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.mosaic-lead { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mosaic-lead h3 { font-size: 28px; line-height: 1.08; }
.mosaic-col > .card-lead { margin-bottom: 8px; }
.line-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; line-height: 1.4; }
.line-item .meta { white-space: nowrap; font-size: 12px; font-weight: 400; }

/* Home: slow reading */
.slow { padding-bottom: clamp(72px, 9vw, 128px); }
.slow-list { display: flex; flex-direction: column; gap: 40px; }
.slow-item { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; }
.slow-shot { flex: 1 1 440px; min-width: 0; }
.slow-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.slow-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.slow-item.no-img { border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.slow-item.no-img .slow-copy { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 18px clamp(32px, 5vw, 80px); }
.slow-item.no-img .slow-min { flex: 0 0 auto; min-width: 180px; }
.slow-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.slow-min { margin: 0; font-family: var(--serif); font-size: clamp(64px, 7vw, 104px); line-height: .8; color: var(--blush); }
.slow-min span { font-size: .3em; font-style: italic; margin-left: 8px; }
.slow-text h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; }
.slow-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; }

/* Rubric archive */
.cat { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(72px, 9vw, 128px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a, .crumbs span { min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blush); }
.cat-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px;
    border-bottom: 1px solid var(--ink); padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 40px);
}
.cat-head h1 { font-size: clamp(52px, 9vw, 150px); line-height: .9; letter-spacing: -.03em; min-width: 0; overflow-wrap: break-word; }
.cat-desc {
    margin: 0; max-width: 440px; font-family: var(--serif); font-style: italic;
    font-size: clamp(20px, 2vw, 26px); line-height: 1.3;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.chip {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.feat { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-end; margin-top: clamp(32px, 4vw, 48px); }
.feat-shot { flex: 1.5 1 520px; min-width: 0; }
.feat-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feat-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feat.no-img .feat-copy { max-width: 900px; }
.feat h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; }
.feat-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.cat-grid { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); gap: 48px 28px; }
.cat-grid .card.no-img { border-top-color: var(--line); }
.cat-grid .card-title { font-size: 28px; line-height: 1.08; }
.empty { font-size: 18px; padding: 24px 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.other-rubrics { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--ink); padding-top: 20px; }
.other-rubrics .eyebrow { margin-bottom: 12px; }
.other-rubrics div { display: flex; flex-wrap: wrap; gap: 0 28px; }
.other-rubrics a {
    font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
    min-height: 44px; display: inline-flex; align-items: center;
}
.list { margin-top: 24px; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-title { font-size: 28px; line-height: 1.1; }
.row-lead { margin: 0; font-size: 15px; color: var(--muted); max-width: 70ch; }
.row-shot { flex: none; }
.row-shot img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; }

.pagination { margin-top: clamp(48px, 6vw, 80px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px;
    border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.pagination .page-numbers.dots { border: 0; color: var(--muted); }
.pagination .prev, .pagination .next { padding: 0 20px; border-color: var(--ink); font-size: 13px; font-weight: 600; gap: 6px; }

.search-form { display: flex; gap: 8px; margin-top: 28px; max-width: 640px; }
.search-form input {
    flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px;
    background: var(--card); color: var(--ink); font: 400 16px var(--sans);
}
.search-form button {
    height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg);
    font-weight: 600; font-size: 14px; cursor: pointer;
}
.search-form button:hover { background: var(--blush); }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--blush); }
.admin-bar .progress { top: 32px; }
.article-head { padding-top: clamp(24px, 4vw, 48px); }
.article-head > * { max-width: 960px; }
.article-title {
    margin-top: clamp(24px, 3.4vw, 40px); font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.02em;
    overflow-wrap: break-word;
}
.article-lead {
    margin: clamp(20px, 3vw, 32px) 0 0; font-family: var(--serif); font-style: italic;
    font-size: clamp(22px, 2.4vw, 28px); line-height: 1.32;
}
.article-meta {
    display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 32px; padding: 20px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px;
}
.article-meta p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.article-meta span { color: var(--muted); }
.article-meta strong { font-weight: 600; }
.article-cover { margin: clamp(32px, 4vw, 56px) auto 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; object-fit: cover; }
.article-cover figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.article-layout {
    display: grid; grid-template-columns: 240px minmax(0, 680px); gap: 72px; align-items: start;
    padding-top: clamp(40px, 5vw, 72px);
}
.toc-side { position: sticky; top: var(--anchor); max-height: calc(100vh - var(--anchor) - 24px); overflow: auto; min-width: 0; padding-right: 6px; scrollbar-width: thin; }
.admin-bar .toc-side { top: calc(var(--anchor) + 32px); }
.toc summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    min-height: 32px; margin: 0 0 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--blush);
    pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc-sign { display: none; font-size: 26px; line-height: 1; font-weight: 400; transition: transform .2s; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a {
    display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; padding: 8px 0;
    border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted);
}
.toc-n { font-family: var(--serif); font-size: 19px; line-height: 1; color: var(--blush); }
.toc li a.is-current { color: var(--ink); font-weight: 600; }
.toc li a:hover { color: var(--ink); }
.toc-more { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.copy-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer;
}
.copy-link:hover { background: var(--blush); }
.side-copy { margin-top: 24px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.side-copy:hover { background: var(--ink); color: var(--bg); }
.article-layout.no-toc .toc-side { display: none; }
.article-layout.no-toc { grid-template-columns: minmax(0, 680px); justify-content: start; }

.article-body { min-width: 0; font-size: 18px; line-height: 1.75; }
.article-body p { margin: 0 0 24px; }
.article-body > p:first-of-type::first-letter {
    float: left; font-family: var(--serif); font-size: 96px; line-height: .78; margin: 8px 12px 0 0; color: var(--blush);
}
.article-body h2, .page-body h2 {
    margin: 48px 0 16px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1;
    scroll-margin-top: var(--anchor);
}
.article-body h3, .page-body h3 { margin: 32px 0 12px; font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.35; scroll-margin-top: var(--anchor); }
.article-body h4 { margin: 24px 0 8px; font-family: var(--sans); font-size: 1em; font-weight: 700; }
.article-body ul, .page-body ul { list-style: none; margin: 0 0 24px; padding: 0; }
.article-body ul > li, .page-body ul > li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.article-body ul > li::before, .page-body ul > li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--blush); }
.article-body ol { list-style: none; counter-reset: step; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.article-body ol > li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.article-body ol > li::before { content: counter(step); font-family: var(--serif); font-size: 36px; line-height: .9; color: var(--blush); }
.article-body li > ul, .article-body li > ol { margin: 8px 0 0; }
.article-body a, .page-body a { color: var(--blush); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.article-body img { height: auto; }
.article-body figure, .article-body .wp-block-image { margin: 32px 0; }
.article-body figcaption, .article-body .wp-caption-text { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.article-body .wp-caption { max-width: 100%; }
.article-body blockquote {
    margin: 48px 0; padding: 32px 0; border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush);
    text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18;
}
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote p:last-child { margin: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body strong { font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 28px; max-width: 100%; background: var(--card); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--sand); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.summary { background: var(--sand); padding: clamp(22px, 3vw, 32px); margin-bottom: 40px; }
.summary .eyebrow { margin-bottom: 14px; }
.summary ol { gap: 12px; margin: 0; font-size: 16px; line-height: 1.55; }
.summary ol > li { grid-template-columns: 24px minmax(0, 1fr); }
.summary ol > li::before { font-size: 24px; line-height: 1; }
.article-body .disclaimer { margin: 40px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0 !important; }
.tags span { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; line-height: 1.3; }
.share-row { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.share-row span { font-size: 14px; font-weight: 600; }
.related { margin-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }

/* Pages: about, privacy */
.page-head { padding-top: clamp(24px, 4vw, 48px); }
.page-title { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(48px, 8vw, 120px); line-height: .92; letter-spacing: -.03em; overflow-wrap: break-word; }
.page-body { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 112px); font-size: 17px; line-height: 1.7; }
.page-body > p { max-width: 720px; }
.about-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 56px;
    border-top: 1px solid var(--ink); padding: 28px 0 36px;
}
.page-body .about-row h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.about-text p { margin: 0 0 16px; max-width: 64ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-hero { padding-top: clamp(24px, 4vw, 48px); }
.about-hero .eyebrow { margin-top: clamp(24px, 3vw, 40px); }
.about-hero h1 { margin-top: 16px; font-size: clamp(44px, 7vw, 104px); line-height: .96; letter-spacing: -.025em; max-width: 16ch; }
.about-lead { margin: clamp(20px, 3vw, 32px) 0 0; max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.about-topics { padding-bottom: clamp(64px, 8vw, 112px); }
.about-topics .mosaic { padding-top: 0; }
.about-not { margin-top: 0; }
.not-list { list-style: none; margin: 0; padding: 0; }
.not-list li { padding: 18px 0; border-top: 1px solid var(--plum-line); font-family: var(--serif); font-size: 26px; line-height: 1.15; }

/* Footer */
.site-footer { background: var(--plum); color: var(--bg); }
.site-footer > .shell { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; }
.footer-logo {
    display: inline-flex; align-items: flex-start; font-family: var(--serif); font-weight: 500;
    font-size: clamp(72px, 14vw, 200px); line-height: .9; letter-spacing: -.03em; color: var(--bg);
}
.footer-logo .dot { background: var(--pink); }
.footer-logo:hover { color: var(--bg); }
.footer-tagline { margin: 20px 0 0; max-width: 560px; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--plum-muted); }
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px;
    margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid rgba(245, 241, 235, .2);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 32px; }
.footer-nav a { display: block; padding: 10px 0; min-height: 44px; font-size: 15px; color: var(--bg); }
.footer-nav a:hover { color: var(--pink); }
.footer-note, .footer-copy { margin: 0; font-size: 12px; line-height: 1.6; color: var(--plum-muted); }
.footer-note { max-width: 460px; }

/* Clearfy cookie notice, restyled to the palette and a 44 px target */
#clearfy-cookie.clearfy-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    max-width: 520px; margin: 0; padding: 0;
    background: var(--plum); color: var(--bg); border: 0; border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    font: 400 14px/1.5 var(--sans);
}
#clearfy-cookie.clearfy-cookie-hide { display: none; }
#clearfy-cookie .clearfy-cookie-container {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
    padding: 16px 20px; max-width: none; margin: 0; text-align: left;
}
#clearfy-cookie .clearfy-cookie-accept {
    min-height: 44px; min-width: 88px; padding: 0 20px; margin: 0;
    background: var(--bg); color: var(--ink); border: 0; border-radius: 999px;
    font: 600 14px var(--sans); cursor: pointer;
}
#clearfy-cookie .clearfy-cookie-accept:hover { background: var(--pink); }
@media (min-width: 1100px) {
    /* Bottom-right on desktop, clear of the sticky contents column. */
    #clearfy-cookie.clearfy-cookie { left: auto; right: 16px; max-width: 340px; }
}

/* Below the full desktop header: the «Рубрики» button and the sheet menu */
@media (max-width: 1023px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-inner { min-height: 62px; }
    .logo { font-size: 30px; }
}
/* Article: contents above the text */
@media (max-width: 1099px) {
    .article-layout, .article-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .article-layout > * { max-width: 720px; }
    .toc-side { position: static; max-height: none; overflow: visible; padding-right: 0; margin-bottom: 32px; }
    .side-copy { display: none; }
    .toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
    .toc summary { min-height: 52px; margin: 0; pointer-events: auto; cursor: pointer; }
    .toc-sign { display: inline; color: var(--ink); }
    .toc[open] .toc-sign { transform: rotate(45deg); }
    .toc ol { padding-bottom: 8px; }
    .toc li a { min-height: 44px; align-items: center; font-size: 15px; color: var(--ink); }
    .toc li:last-child a { border-bottom: 0; }
}
/* Phones */
@media (max-width: 759px) {
    .about-row { grid-template-columns: minmax(0, 1fr); }
    .hero-row.no-img .hero-text, .hero-list, .slow-text, .feat-copy, .spotlight-main, .spotlight-side { flex-basis: 100%; }
    .num { font-size: 32px; min-width: 34px; }
    .slow-item.no-img .slow-min { min-width: 0; }
    .row-shot img { width: 96px; }
    .article-body { font-size: 17px; }
    .article-body > p:first-of-type::first-letter { font-size: 72px; }
    .card-title, .cat-grid .card-title { font-size: 25px; }
    .topic { flex-basis: 250px; min-height: 240px; padding: 22px; }
    .pagination .prev, .pagination .next { padding: 0 14px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    /* Compact cookie notice: one row with the button, as little text area covered as possible. */
    #clearfy-cookie.clearfy-cookie { left: 8px; right: 8px; bottom: 8px; font-size: 12px; line-height: 1.4; }
    #clearfy-cookie .clearfy-cookie-container { flex-wrap: nowrap; padding: 10px 12px; gap: 12px; }
    #clearfy-cookie .clearfy-cookie-accept { flex: none; min-width: 64px; padding: 0 14px; }
}
@media (max-width: 380px) {
    .logo { font-size: 26px; }
    .menu-toggle { padding: 0 14px; }
    .pagination .nav-links { gap: 6px; }
    .pagination .page-numbers { min-width: 40px; }
    .search-form button { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
