:root {
    --bg: #F4F5F8;
    --ink: #1D2030;
    --plum: #5B2D6E;
    --night: #1E1727;
    --night-ink: #ECE8F1;
    --night-muted: #B9AFC6;
    --night-line: #3A3145;
    --secondary: #575B6E;
    --fog: #E4E8F0;
    --paper: #FFFFFF;
    --plum-soft: #EEE6F1;
    --lamp: #F2EAC2;
    --line: #D6DAE3;
    --line-soft: #DFE2E9;
    --shell: 1440px;
    --pad: 64px;
    --gap: 56px;
    --header: 88px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Spectral', Georgia, serif;
    font-size: 20px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--plum); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 4px;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: 'Wix Madefor Display', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--pad);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--plum);
    color: #fff;
    padding: 12px 16px;
    z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; color: #fff; }

.meta {
    font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}
.lead { font-size: 21px; line-height: 1.6; }
.standfirst { font-size: 25px; line-height: 1.5; }
.num {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: var(--plum);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: var(--header);
}

.logo {
    flex: none;
    padding: 12px 0;
    font: 700 32px/1 'Wix Madefor Display', system-ui, sans-serif;
    letter-spacing: -0.045em;
}
.logo:hover { color: var(--plum); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
    font: 500 16px/1 'Wix Madefor Display', system-ui, sans-serif;
}
.main-nav > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    min-height: 44px;
    white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a[aria-current] { color: var(--plum); }
.nav-num {
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: var(--plum);
}

.more { position: static; }
.more > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    min-height: 44px;
    font: 500 16px/1 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--plum);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.more > summary::-webkit-details-marker { display: none; }
.more-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 36px var(--pad) 40px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 48px;
    max-height: 70vh;
    overflow-y: auto;
}
.more-panel a {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 8px 0;
    min-height: 44px;
    font: 500 20px/1.3 'Wix Madefor Display', system-ui, sans-serif;
}
.more-panel a:hover { color: var(--plum); }
.more-panel a.in-bar { display: none; }

.header-tail {
    display: flex;
    gap: 28px;
    align-items: center;
    flex: none;
    font: 500 16px/1 'Wix Madefor Display', system-ui, sans-serif;
    white-space: nowrap;
}
.header-tail a { padding: 14px 0; min-height: 44px; display: inline-flex; align-items: center; }
.fresh-link:hover { color: var(--plum); }
.header-tail .search-link { justify-content: center; width: 44px; height: 44px; padding: 0; }
.header-tail a:hover { color: var(--plum); }

.search-form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--paper);
}
.search-form input {
    border: 0;
    background: transparent;
    padding: 0 12px;
    height: 44px;
    width: 140px;
    font: 500 15px/1 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--ink);
    min-width: 0;
}
.search-form button {
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
    width: 46px;
    height: 44px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}
.search-form button:hover { background: var(--plum); }

.menu-toggle {
    display: none;
    position: relative;
    z-index: 60;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    font: 500 16px/1 'Wix Madefor Display', system-ui, sans-serif;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header));
    overflow-y: auto;
    padding: 8px 0 20px;
}
.mobile-menu a {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 15px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--line-soft);
    font: 500 18px/1.35 'Wix Madefor Display', system-ui, sans-serif;
}
.mobile-menu a.accent { color: var(--plum); }

/* ---------- hero ---------- */

main { padding-bottom: 96px; }

.hero { padding: 72px 0 0; }
.hero .kicker {
    display: flex;
    gap: 20px;
    align-items: baseline;
    font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}
.hero .kicker a { color: var(--plum); display: inline-flex; align-items: center; min-height: 44px; }
.hero h1 {
    font-size: clamp(40px, 6vw, 86px);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 1220px;
    margin: 22px 0 0;
}
.hero h1 a:hover { color: var(--plum); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--gap);
    margin-top: var(--gap);
    align-items: start;
}
.hero-cover {
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid:not(:has(.hero-cover)) { grid-template-columns: minmax(0, 760px); }
.hero-side { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; min-width: 0; }
.hero-quote {
    margin: 0;
    font-style: italic;
    font-size: 32px;
    line-height: 1.3;
    color: var(--plum);
}
.hero-side .lead { margin: 0; }
.read-link {
    align-self: flex-start;
    padding: 12px 0;
    min-height: 44px;
    font: 600 17px/1 'Wix Madefor Display', system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--plum);
}
.read-link:hover { color: var(--plum); }

/* ---------- second row ---------- */

.second-row {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    margin-top: 88px;
    border-top: 2px solid var(--ink);
}
.second-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 32px 40px 40px 0;
}
.second-lead .card-image {
    display: block;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
}
.second-lead .card-image img { width: 100%; height: 100%; object-fit: cover; }
.second-lead:not(:has(.card-image)) { grid-template-columns: minmax(0, 1fr); }
.second-lead h2 { font-size: 30px; line-height: 1.15; margin: 0; }
.second-lead .quote { margin: 0; font-style: italic; font-size: 19px; color: var(--secondary); }
.second-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 32px 40px;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.second-item h2 { font-size: 25px; line-height: 1.2; margin: 0; }
.second-item .quote { margin: 0; font-style: italic; font-size: 18px; color: var(--secondary); }
.second-lead .kicker, .second-item .kicker { color: var(--plum); font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif; }

/* ---------- night band ---------- */

.night {
    background: var(--night);
    color: var(--night-ink);
    margin: 40px calc(-1 * var(--pad)) 0;
    padding: 96px var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
}
.night h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.night .night-lead { font-size: 22px; line-height: 1.55; color: var(--night-muted); margin: 24px 0 0; max-width: 440px; }
.night-list { min-width: 0; }
.night-list a {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--night-line);
}
.night-list a:hover { color: #fff; }
.night-list .min { font: 500 15px/1.6 'Wix Madefor Display', system-ui, sans-serif; color: var(--night-muted); }
.night-list .t {
    display: block;
    font: 500 24px/1.25 'Wix Madefor Display', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.night-list .r { display: block; font: 400 15px/1.4 'Wix Madefor Display', system-ui, sans-serif; color: var(--night-muted); margin-top: 8px; }

/* ---------- section blocks ---------- */

.section-block {
    padding: 112px 0;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
    align-items: start;
}
.section-block.tight { padding: 112px 0; border-top: 2px solid var(--ink); }
.section-head h2 { font-size: clamp(30px, 4.1vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.section-head h2 a:hover { color: var(--plum); }
.section-head p { margin: 20px 0 0; color: var(--secondary); font-size: 20px; line-height: 1.55; }
.sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}
.sub-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    font: 500 16px/1.4 'Wix Madefor Display', system-ui, sans-serif;
    text-decoration: underline;
    text-decoration-color: #C5BCCD;
    text-underline-offset: 5px;
}
.sub-links a:hover { color: var(--plum); }
.section-body { min-width: 0; overflow-wrap: break-word; }
.section-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
    gap: 48px;
    align-items: start;
}
.section-lead { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.section-lead .card-image { display: block; aspect-ratio: 3 / 2; border: 1px solid var(--line); }
.section-lead .card-image img { width: 100%; height: 100%; object-fit: cover; }
.section-lead h3 { font-size: 36px; line-height: 1.12; margin: 6px 0 0; }
.section-list { display: grid; min-width: 0; }
.section-list a { display: flex; flex-direction: column; gap: 10px; padding: 22px 0 24px; border-top: 1px solid var(--line); min-width: 0; }
.section-list h3 { font-size: 22px; font-weight: 500; line-height: 1.2; margin: 0; overflow-wrap: break-word; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.section-grid a { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-grid h3 { font-size: 32px; line-height: 1.12; margin: 0; overflow-wrap: break-word; }
.section-grid a:hover h3 { color: var(--plum); }
.section-list .quote { margin: 0; font-style: italic; font-size: 18px; color: var(--secondary); }
.section-list a:hover h3 { color: var(--plum); }
.more-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 0;
    font: 600 17px/1 'Wix Madefor Display', system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--plum);
}
.more-link:hover { color: var(--plum); }

/* ---------- index ---------- */

.index-block { background: var(--paper); padding: 96px 0; margin: 0 calc(-1 * var(--pad)) -96px; }
.index-block .shell > h2 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.03em; margin: 0; }
.index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 48px;
    margin-top: 48px;
}
.index-col { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.index-col .name { font: 600 26px/1.15 'Wix Madefor Display', system-ui, sans-serif; letter-spacing: -0.02em; }
.index-col .name:hover { color: var(--plum); }
.index-col .desc { margin: 0; color: var(--secondary); font-size: 17px; line-height: 1.5; }
.index-col .item { font: 500 16px/1.35 'Wix Madefor Display', system-ui, sans-serif; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.index-col .item:hover { color: var(--plum); }

/* ---------- category ---------- */

.cat-head { padding: 72px 0 40px; border-bottom: 2px solid var(--ink); }
.cat-head h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; }
.cat-head .standfirst { max-width: 52ch; margin: 0; color: var(--secondary); font-size: 22px; }
.cat-head .kicker { color: var(--plum); font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif; min-height: 0; }

.cat-list { padding: 48px 0 0; }
.cat-list-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 14px;
}
.cat-list-head h2 { font-size: 26px; margin: 0; }

.cat-row {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 48px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.cat-row:not(:has(.cat-row-image)) { grid-template-columns: minmax(0, 1fr); }
.cat-row-copy { min-width: 0; max-width: 860px; }
.cat-row-copy .kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    color: var(--plum);
    font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif;
}
.cat-row-copy h2, .cat-row-copy h3 { font-size: 32px; line-height: 1.15; margin: 4px 0 12px; }
.cat-row-copy h3 a:hover, .cat-row-copy h2 a:hover { color: var(--plum); }
.cat-row-copy .quote { margin: 0 0 10px; font-style: italic; font-size: 19px; color: var(--secondary); }
.cat-row-copy .lead { font-size: 19px; margin: 0 0 10px; }
.cat-row-copy .meta { margin: 0; }
.cat-row-image { display: block; aspect-ratio: 3 / 2; border: 1px solid var(--line); min-width: 0; }
.cat-row-image img { width: 100%; height: 100%; object-fit: cover; }

.empty { padding: 28px 0; color: var(--secondary); border-bottom: 1px solid var(--line); }

.links-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0 48px;
    margin-bottom: 24px;
}
.links-block a {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 16px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font: 600 19px/1.3 'Wix Madefor Display', system-ui, sans-serif;
}
.links-block a:hover { color: var(--plum); }

/* ---------- article ---------- */

.progress {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header);
    height: 3px;
    background: transparent;
    z-index: 40;
}
.progress span { display: block; height: 100%; width: 0; background: var(--plum); }

.article-head { padding-left: calc(240px + var(--gap)); }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    align-items: baseline;
    padding: 20px 0 16px;
    font: 500 14px/1.4 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
.crumbs a:hover { color: var(--plum); }

.article-title {
    font-size: clamp(34px, 4.3vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 26ch;
    margin: 0 0 18px;
}
.article-standfirst { max-width: 56ch; margin-bottom: 20px; font-size: 25px; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 14px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font: 500 15px/1.4 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}
.article-cover { margin: 0 0 48px; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 680px) minmax(0, 260px);
    gap: var(--gap);
    align-items: start;
}
.toc-side { position: sticky; top: calc(var(--header) + 20px); min-width: 0; }
.toc { border-top: 2px solid var(--plum); padding-top: 12px; }
.toc-title {
    font: 500 13px/1.3 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
    margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--line-soft); }
.toc li a {
    display: block;
    padding: 9px 0;
    min-height: 44px;
    font: 500 15px/1.35 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}
.toc li a:hover,
.toc li.current a { color: var(--plum); }
.toc .toc-more span {
    display: block;
    padding: 9px 0;
    font: 500 13px/1.3 'Wix Madefor Display', system-ui, sans-serif;
    color: var(--secondary);
}

.article-body { min-width: 0; max-width: 680px; font-size: 20px; line-height: 1.65; }
.article-body > h2 {
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-top: 2em;
    scroll-margin-top: calc(var(--header) + 24px);
}
.article-body > h3 {
    font-size: 26px;
    margin-top: 1.6em;
    scroll-margin-top: calc(var(--header) + 24px);
}
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.article-body li { margin-bottom: .5em; }
.article-body a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.article-body img { border: 1px solid var(--line); margin: 1.4em 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 17px;
    display: block;
    overflow-x: auto;
}
.article-body th, .article-body td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.article-body th { background: var(--fog); font-weight: 600; }
.article-body blockquote {
    margin: 1.4em 0;
    padding: 6px 0 6px 22px;
    border-left: 2px solid var(--plum);
    color: var(--secondary);
}

.plain-note {
    grid-column: 3;
    padding-top: 6px;
    min-width: 0;
}
.plain-note .plain-head { font: 500 13px/1.3 'Wix Madefor Display', system-ui, sans-serif; color: var(--secondary); }
.plain-note .plain-term { font: 600 16px/1.3 'Wix Madefor Display', system-ui, sans-serif; color: var(--plum); margin: 6px 0 0; }
.plain-note .plain-text { margin: 6px 0 0; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--secondary); }

.summary { background: var(--paper); padding: 26px 28px; margin-bottom: 32px; }
.summary .badge { display: block; font: 600 19px/1.2 'Wix Madefor Display', system-ui, sans-serif; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 1.1em; }
.summary li { margin-bottom: .4em; font-size: 17px; line-height: 1.5; }

.next-block { margin: 48px 0 0; padding: 32px 36px; background: var(--night); color: var(--night-ink); }
.next-block .meta { color: var(--night-muted); }
.next-block .standfirst { margin-bottom: 12px; font-size: 21px; color: var(--night-ink); }
.next-block a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    min-height: 44px;
    border-top: 1px solid var(--night-line);
    font: 500 21px/1.3 'Wix Madefor Display', system-ui, sans-serif;
    color: #fff;
}
.next-block a:hover { color: #fff; text-decoration: underline; }

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font: 500 16px/1.4 'Wix Madefor Display', system-ui, sans-serif;
}
.article-links a {
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 4px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
}
.article-stamp { margin-top: 18px; }

.related { margin-top: 72px; padding-top: 32px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 32px; letter-spacing: -0.025em; }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}
.story-card { min-width: 0; }
.story-card .card-image { display: block; aspect-ratio: 4 / 5; border: 1px solid var(--line); margin-bottom: 16px; }
.story-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.story-card h2, .story-card h3 { font-size: 26px; line-height: 1.2; margin: 6px 0; }
.story-card .lead { font-size: 18px; }

/* ---------- plain page ---------- */

.page-article { max-width: 680px; padding: 72px 0 0; }
.page-title { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.page-body { font-size: 20px; line-height: 1.65; }
.page-body h2 { font-size: 32px; margin-top: 1.8em; scroll-margin-top: calc(var(--header) + 24px); }
.page-body a { color: var(--plum); text-decoration: underline; }
.page-body img { border: 1px solid var(--line); margin: 1.4em 0; }

/* ---------- pagination ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 32px 0 0;
    font: 600 17px/1 'Wix Madefor Display', system-ui, sans-serif;
}
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers.dots { border: 0; background: transparent; min-width: 24px; }
.prev, .next { padding: 0 14px; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #E6E8EF; padding: 72px 0 56px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin: 18px 0 0; max-width: 420px; font-size: 16px; line-height: 1.55; color: #B4B8C6; }
.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #3A3E50;
    font: 500 14px/1.4 'Wix Madefor Display', system-ui, sans-serif;
}
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; color: #B4B8C6; }
.footer-legal a:hover { color: #fff; }

/* ---------- third-party widgets ---------- */

.clearfy-cookie {
    background: var(--ink) !important;
    color: #E6E8EF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px var(--pad) !important;
    font: 400 16px/1.5 'Spectral', Georgia, serif !important;
}
.clearfy-cookie a { color: #fff !important; text-decoration: underline; }
.clearfy-cookie-accept {
    min-height: 44px !important;
    padding: 0 20px !important;
    margin: 6px 0 0 12px !important;
    background: var(--plum) !important;
    color: #fff !important;
    font: 600 15px/1 'Wix Madefor Display', system-ui, sans-serif !important;
    border-radius: 0 !important;
}

/* ---------- 1439 ---------- */

@media (max-width: 1439px) {
    .main-nav > a:nth-child(n + 3) { display: none; }
    .more-panel a.in-bar:nth-child(n + 3) { display: flex; }
}

/* ---------- 1279 ---------- */

@media (max-width: 1279px) {
    :root { --pad: 40px; --gap: 40px; --header: 80px; }
    .header-inner { gap: 32px; }
    .main-nav { gap: 20px; }
    .header-tail .about-link { display: none; }
    .article-layout { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
    .article-head { padding-left: calc(200px + var(--gap)); }
    .plain-note { grid-column: 2; border-left: 2px solid var(--plum); padding: 4px 0 4px 16px; }
    .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 1023 ---------- */

@media (max-width: 1023px) {
    :root { --pad: 24px; --header: 72px; }
    .main-nav { display: none; }
    .header-tail { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .hero h1 { font-size: clamp(34px, 6.4vw, 56px); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .second-row { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
    .second-lead { padding: 28px 0 32px; }
    .second-item { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 32px; }
    .night { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px var(--pad); margin-top: 32px; }
    .section-block, .section-block.tight { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 0; }
    .section-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .section-grid h3 { font-size: 26px; }
    .cat-row { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 32px; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .article-head { padding-left: 0; }
    .toc-side { position: static; }
    .plain-note { grid-column: 1; border-left: 2px solid var(--plum); padding: 4px 0 4px 16px; }
    .plain-note .plain-head { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
    .plain-note .plain-term, .plain-note .plain-text { display: none; }
    .plain-note.open .plain-term, .plain-note.open .plain-text { display: block; }
    .article-body { max-width: none; }
}

/* ---------- 767 ---------- */

@media (max-width: 766px) {
    :root { --pad: 20px; --header: 64px; }
    html, body { font-size: 18px; line-height: 1.6; }
    .logo { font-size: 26px; }
    .hero { padding: 40px 0 0; }
    .hero h1 { font-size: 34px; line-height: 1.06; letter-spacing: -0.03em; margin-top: 16px; }
    .hero-quote { font-size: 24px; }
    .hero-side .lead { font-size: 19px; }
    .hero-cover { aspect-ratio: 4 / 3; }
    .second-lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .second-lead .card-image { aspect-ratio: 4 / 3; }
    .night { padding: 40px var(--pad); }
    .night-list a { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
    .section-block, .section-block.tight { padding: 40px 0; }
    .index-block { padding: 56px 0; }
    .index-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .section-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .cat-head { padding: 40px 0 28px; }
    .cat-head h1 { font-size: 34px; }
    .cat-list-head { flex-direction: column; gap: 6px; }
    .cat-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }
    .cat-row-copy h2, .cat-row-copy h3 { font-size: 24px; }
    .article-title { font-size: 32px; }
    .article-meta { flex-direction: column; gap: 4px; }
    .article-body { font-size: 18px; }
    .site-footer { padding: 40px 0 32px; }
    .page-numbers { min-width: 48px; min-height: 48px; padding: 0 8px; }
    .more-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px var(--pad); gap: 12px 24px; }
}

/* ---------- 429 ---------- */

@media (max-width: 429px) {
    :root { --pad: 16px; }
    .hero h1 { font-size: 30px; }
    .hero-quote { font-size: 22px; }
    .section-head h2 { font-size: 28px; }
    .section-lead h3 { font-size: 28px; }
    .section-list h3 { font-size: 24px; }
    .index-col .name { font-size: 22px; }
    .toc li a { font-size: 14.5px; }
    .article-body { font-size: 17.5px; }
    .search-form input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}