/* d-mod — design system from the D-MOD.dc.html mockup. */
:root {
    --bg: #F3EFE8;
    --paper: #FBF9F5;
    --sand: #E9E3D9;
    --ink: #1D1B18;
    --text: #2A2723;
    --body: #4A453E;
    --soft: #5C564D;
    --muted: #7A7266;
    --faint: #9A9184;
    --line: #D9D1C3;
    --line-2: #E3DCD0;
    --pill: #CFC6B7;
    --accent: #B4532A;
    --accent-dark: #D9825C;
    --dark: #1D1B18;
    --dark-line: #3A3631;
    --dark-text: #EDE7DC;
    --dark-muted: #A39A8C;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
    --pad: clamp(20px, 3vw, 40px);
    --sec: clamp(64px, 8vw, 120px);
    --hh: 65px;
}
@media (min-width: 1000px) { :root { --hh: 107px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip-link:focus { left: 8px; color: var(--bg); }
.shell { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Type tokens */
.label, .meta, .kicker, .row-date, .row-rub, .crumbs {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.5;
}
.label { color: var(--accent); letter-spacing: .1em; }
.label.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 11px; }
.meta-rub { color: var(--accent); }
.kicker { color: var(--muted); font-size: 11px; }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sec { padding-top: var(--sec); }
.sec-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
    text-wrap: balance;
}
.sec-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
    border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: clamp(24px, 3vw, 40px);
}
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-top .label { font-size: 12px; }
.sec-top > div { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.sec-top .note { max-width: 340px; }
.all-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.more-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar { display: none; border-bottom: 1px solid var(--line-2); }
.topbar-inner {
    display: flex; justify-content: space-between; align-items: center; height: 34px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.header-inner { position: relative; height: 64px; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; background: var(--ink); position: relative; flex: none; }
.mark::after { content: ''; position: absolute; left: 9px; bottom: 0; width: 12px; height: 19px; background: var(--accent); border-radius: 6px 6px 0 0; }
.word { font-family: var(--sans); font-weight: 700; font-size: 25px; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.word span { color: var(--accent); }
.main-nav { display: none; align-items: center; height: 100%; gap: 2px; }
.nav-link, .more summary {
    height: 72px; display: flex; align-items: center; padding: 0 12px;
    font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; cursor: pointer;
}
.nav-link.is-active, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link, .more[open] summary, .more summary:hover { color: var(--accent); }
.nav-fresh { color: var(--accent); }
.nav-fresh::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.more summary { list-style: none; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.caret { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.more[open] .caret { transform: translateY(2px) rotate(225deg); }
.grow { flex: 1; }
.about-link { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-height: 44px; align-items: center; white-space: nowrap; }
.about-link.is-active { color: var(--accent); }

.drop, .more-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 60px -40px rgba(29, 27, 24, .35);
}
.drop { display: none; }
.drop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding-top: 36px; padding-bottom: 40px; }
.drop-subs { display: flex; flex-direction: column; }
.drop-subs .label { margin-bottom: 12px; }
.drop-sub { padding: 9px 0; border-bottom: 1px solid #E6DFD3; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; }
.drop-all { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.drop-arts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: start; }
.drop-card .card-title { font-size: 26px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 40px; padding-top: 36px; padding-bottom: 44px; }
.more-col { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 14px; }
.more-name { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.05; }
.more-subs { display: flex; flex-direction: column; }
.more-subs a { font-size: 14px; color: #6B655C; padding: 5px 0; min-height: 30px; }
.more-subs a:hover { color: var(--accent); }

.menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px;
    background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500;
    position: relative; z-index: 3;
}
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh));
    background: var(--bg); overflow-y: auto; padding: 8px var(--pad) 80px; border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.sheet-item { border-bottom: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.sheet-link { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(28px, 8vw, 36px); font-weight: 500; line-height: 1.05; }
.sheet-link .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
    border: 1px solid #D2C9BA; border-radius: 999px; font-size: 14px; color: var(--body); line-height: 1.25;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sheet-extra { padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.sheet-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.sheet-extra-grid a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 500; }

@media (min-width: 1000px) {
    .topbar { display: block; }
    .header-inner { height: 72px; }
    .main-nav { display: flex; }
    .menu-toggle, .mobile-menu { display: none !important; }
    .nav-item:focus-within > .drop { display: block; }
}
@media (min-width: 1000px) {
    .nav-item:hover > .drop { display: block; }
}
@media (min-width: 1200px) { .nav-link, .more summary { padding: 0 14px; } }
@media (min-width: 1280px) { .about-link { display: inline-flex; } }

/* Crumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--muted); font-size: 11px; padding-top: clamp(16px, 2.4vw, 32px); }
.crumbs a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs a:not(:first-child):last-of-type { color: var(--accent); }
.crumbs > span:last-child:not([aria-hidden]) { color: var(--ink); padding: 13px 0; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-shot { display: block; overflow: hidden; background: var(--sand); }
.card-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.08; text-wrap: pretty; overflow-wrap: break-word; }
.card-title a { display: block; }
.card-lead { font-size: 15px; line-height: 1.55; color: var(--soft); }
.card-col { border-top: 1px solid var(--line); padding-top: 16px; }
.card-col.has-shot { border-top: 0; padding-top: 0; }

/* Home: cover */
.cover { padding-top: clamp(28px, 4vw, 56px); }
.cover-main { display: flex; flex-wrap: wrap-reverse; gap: clamp(28px, 4vw, 64px); align-items: flex-end; }
.cover-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; min-width: 0; }
.cover-main:not(.has-shot) .cover-copy { max-width: 1100px; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cover-meta .meta-rub { min-height: 44px; display: inline-flex; align-items: center; }
.dash { width: 24px; height: 1px; background: #B9B0A2; }
.cover-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(40px, 5.6vw, 88px); line-height: .98; letter-spacing: -.015em;
    text-wrap: balance; overflow-wrap: break-word;
}
.cover-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--soft); max-width: 620px; text-wrap: pretty; }
.cover-shot { flex: 1.55 1 460px; display: block; }
.cover-shot img { width: 100%; aspect-ratio: 7 / 5; max-height: 72vh; object-fit: cover; }
.trending {
    margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--ink);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.trending li { display: flex; gap: 16px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.trending .num { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: .8; color: var(--accent); flex: none; }
.trending div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.trending .kicker { font-size: 10px; }
.trending h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }

/* Home: rubric index */
.ri-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
    padding: clamp(14px, 2vw, 22px) 0; border-top: 1px solid var(--line);
}
.ri-row:last-child { border-bottom: 1px solid var(--line); }
.ri-row:hover { background: var(--paper); color: var(--ink); }
.ri-num { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 32px; }
.ri-name { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; flex: 1 1 300px; min-width: 0; text-wrap: balance; }
.ri-subs { font-size: 14px; color: #6B655C; flex: 0 1 420px; line-height: 1.5; }
.ri-arrow { font-size: 22px; color: var(--accent); }

/* Home: renovation route */
.route { margin-top: var(--sec); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route > .shell { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.route-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.route-top > div:first-child { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.route-top .sec-title { font-size: clamp(36px, 4.6vw, 68px); }
.route-arrows { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; }
.round.dark { background: var(--ink); color: var(--bg); }
.stages { display: flex; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stages::-webkit-scrollbar { display: none; }
.stage-btn { flex: 1 0 150px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.stage-btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.stage-num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.stage-btn[aria-selected="true"] .stage-num { color: var(--accent-dark); }
.stage-name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.stage { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); }
.stage[hidden] { display: none; }
.stage-main { flex: 1.2 1 340px; display: flex; gap: 24px; min-width: 0; }
.stage-main > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage-big { font-family: var(--serif); font-weight: 500; font-size: clamp(80px, 11vw, 168px); line-height: .75; color: var(--accent); letter-spacing: -.04em; }
.stage-main h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; }
.stage-text { font-size: 16px; line-height: 1.6; color: var(--body); }
.stage-col { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; }
.checks li::before { content: ''; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--accent); margin-top: 2px; }
.stage-arts li { border-top: 1px solid var(--line-2); }
.stage-arts a { display: block; padding: 12px 0; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.1; text-wrap: pretty; }

/* Home: section blocks */
.split { display: flex; flex-wrap: wrap; gap: clamp(28px, 3vw, 48px); }
.card-big { flex: 1.6 1 480px; gap: 18px; }
.card-big .card-title { font-size: clamp(32px, 3vw, 44px); line-height: 1.02; text-wrap: balance; }
.card-big .card-lead { font-size: 16px; max-width: 620px; }
.card-big.no-shot { justify-content: flex-start; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.card-big.no-shot .card-title { font-size: clamp(34px, 3.6vw, 56px); }
.small-list { flex: 1 1 320px; display: flex; flex-direction: column; min-width: 0; }
.card-small { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card-small:first-child { padding-top: 0; }
.card-small.has-shot { grid-template-columns: clamp(96px, 10vw, 140px) minmax(0, 1fr); column-gap: 18px; }
.card-small.has-shot .card-shot { grid-row: 1 / span 2; }
.card-small.has-shot .card-shot img { aspect-ratio: 1; }
.card-small .card-title { font-size: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 2.5vw, 36px); }
.grid-4 .card-shot img { aspect-ratio: 3 / 4; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 40px); }

/* Home: materials */
.mats .sec-title { font-size: clamp(36px, 4.2vw, 60px); }
.mats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mat { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mat h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1; }
.mat > p { font-size: 14px; line-height: 1.5; color: var(--soft); min-height: 42px; }
.mat dl { display: flex; flex-direction: column; gap: 10px; }
.param { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.param dt { font-size: 13px; color: var(--body); }
.segs { display: flex; gap: 3px; }
.segs span { width: 14px; height: 6px; background: #DCD4C6; }
.segs span.on { background: var(--accent); }

/* Home: outside (dark) */
.outside { margin-top: var(--sec); background: var(--dark); color: var(--dark-text); }
.outside > .shell { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.outside a { color: var(--dark-text); }
.outside a:hover { color: var(--accent-dark); }
.outside .label { color: var(--accent-dark); }
.outside .label.muted, .outside .meta { color: var(--dark-muted); }
.outside .meta-rub { color: var(--accent-dark); }
.outside-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--dark-line); padding-bottom: 20px; margin-bottom: clamp(28px, 3vw, 48px); }
.outside-top > div { display: flex; flex-direction: column; gap: 14px; }
.outside-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.02em; }
.outside-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.outside-links a { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.outside-body { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 80px); }
.outside-grid { flex: 1.3 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 28px; align-content: start; min-width: 0; }
.card-dark { border-top: 1px solid var(--dark-line); padding-top: 16px; }
.card-dark.has-shot { border-top: 0; padding-top: 0; }
.card-dark .card-lead { color: var(--dark-muted); }
.calendar { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cal-month { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 3.4vw, 52px); line-height: 1; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.month { min-height: 44px; padding: 0; background: transparent; border: 1px solid var(--dark-line); color: var(--dark-muted); cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.month[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.month:hover { color: var(--dark-text); }
.tasks { counter-reset: task; }
.tasks li { counter-increment: task; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); font-size: 16px; line-height: 1.45; }
.tasks li::before { content: counter(task); font-family: var(--serif); font-style: italic; font-size: 28px; line-height: .9; color: var(--accent-dark); width: 24px; flex: none; }
.tasks[hidden] { display: none; }

/* Home: latest + engineering */
.latest-wrap { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); }
.latest { flex: 1.6 1 460px; min-width: 0; }
.latest .sec-head { margin-bottom: 0; }
.eng { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eng .sec-head { margin-bottom: 0; }
.eng .all-link { font-size: 22px; min-width: 44px; justify-content: flex-end; }
.card-line { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-line .card-title { font-size: 25px; }

/* Rows */
.row { display: grid; grid-template-columns: 110px 170px minmax(0, 1fr); gap: 0 24px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row-title a { display: block; padding: 10px 0; }
.row-date, .row-rub { padding-top: 10px; }
.row-date { color: var(--muted); font-size: 11px; }
.row-rub { color: var(--accent); font-size: 11px; overflow-wrap: break-word; }
.row-title { font-family: var(--sans); font-size: 17px; font-weight: 500; line-height: 1.35; text-wrap: pretty; overflow-wrap: break-word; }
.rows-list { border-top: 1px solid var(--ink); margin-top: clamp(16px, 2vw, 28px); }

/* Category */
.cat-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px;
    padding: clamp(20px, 3vw, 48px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ink);
}
.cat-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(44px, 8vw, 128px); line-height: .9; letter-spacing: -.03em;
    flex: 1 1 520px; min-width: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.cat-desc { flex: 0 1 440px; font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.cat-chips { padding: 20px 0 4px; }
.featured { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); }
.featured-shot { flex: 1.4 1 460px; display: block; }
.featured-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.featured-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.featured:not(.has-shot) .featured-copy { max-width: 980px; }
.featured-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.8vw, 58px); line-height: 1; text-wrap: balance; overflow-wrap: break-word; }
.featured-lead { font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 720px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 2.5vw, 36px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }
.cat-grid .card-col { border-top: 0; padding-top: 0; }
.cat-grid .card-title { font-size: 27px; line-height: 1.06; }
.empty { padding: 48px 0; font-size: 17px; color: var(--soft); }
.others { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.others-list { display: flex; flex-wrap: wrap; gap: 0 28px; }
.others-list a { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; line-height: 1.15; padding: 6px 0; }

/* Pagination */
.pagination { padding-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    min-width: 48px; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--pill); border-radius: 999px; font-size: 15px; font-weight: 500;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .dots { border: 0; min-width: 24px; padding: 0; }
.pagination h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 640px; padding: 24px 0 8px; }
.search-form input {
    flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid var(--pill); border-radius: 999px;
    background: var(--paper); font: 16px var(--sans); color: var(--ink);
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form button { height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; cursor: pointer; }
.search-form button:hover { background: var(--accent); border-color: var(--accent); }

/* 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(--accent); }
.article-head { max-width: 980px; margin: 0 auto; padding: clamp(24px, 4vw, 64px) var(--pad) clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.article-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 84px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.article-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--body); max-width: 760px; text-wrap: pretty; }
.article-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.article-meta .by { color: var(--ink); }
.pill { min-height: 44px; padding: 0 16px; border: 1px solid var(--pill); border-radius: 999px; background: transparent; font-size: 13px; cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.article-cover { max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.article-cover img { width: 100%; aspect-ratio: 21 / 10; min-height: 240px; max-height: 70vh; object-fit: cover; }
.article-cover figcaption { padding-top: 12px; font-size: 13px; color: var(--muted); }
.article-layout {
    max-width: 1160px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--pad) 0;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
.toc-side { min-width: 0; }
.toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc-sign { font-size: 20px; color: var(--accent); transition: transform .2s; }
.toc[open] .toc-sign { transform: rotate(45deg); }
.toc ol { counter-reset: toc; padding-bottom: 8px; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; font-size: 14px; line-height: 1.35; padding: 9px 0; border-top: 1px solid var(--line); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.toc a.is-current { color: var(--accent); }
.toc-more { font-size: 13px; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }
.article-body { min-width: 0; max-width: 700px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--text); }
.article-body > * + *, .page-body > * + * { margin-top: 24px; }
.article-body h2, .page-body h2 {
    font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--ink);
    margin-top: 48px; scroll-margin-top: calc(var(--hh) + 20px); text-wrap: balance; overflow-wrap: break-word;
}
.article-body h3, .page-body h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--ink); margin-top: 36px; scroll-margin-top: calc(var(--hh) + 20px); }
.article-body h4 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.article-body a, .page-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { padding-left: 0; }
.article-body ul > li, .page-body ul > li { position: relative; padding-left: 26px; }
.article-body ul > li + li, .article-body ol > li + li { margin-top: 10px; }
.article-body ul > li::before, .page-body ul > li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.article-body ol { counter-reset: ol; }
.article-body ol > li { counter-increment: ol; position: relative; padding-left: 40px; }
.article-body ol > li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: .35em; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.article-body blockquote { margin: 40px 0; padding: 0 0 0 52px; position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); }
.article-body blockquote::before { content: '“'; position: absolute; left: 0; top: -6px; font-size: 80px; line-height: .8; color: var(--accent); font-style: normal; }
.article-body blockquote p + p { margin-top: 12px; }
.article-body img { margin: 0 auto; }
.article-body figure { margin-top: 32px; }
.article-body figcaption, .wp-caption-text { padding-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.article-body strong { font-weight: 600; color: var(--ink); }
.summary { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.summary ul li { font-size: 16px; line-height: 1.5; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table-wrap th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.table-wrap td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 48px !important; }
.related { padding-top: clamp(72px, 8vw, 120px); }
.related .card-title { font-size: 27px; }
@media (min-width: 1100px) {
    .article-layout { grid-template-columns: 220px minmax(0, 700px); gap: 72px; align-items: start; }
    .article-layout.no-toc { grid-template-columns: minmax(0, 700px); justify-content: center; }
    .toc-side { position: sticky; top: calc(var(--hh) + 32px); max-height: calc(100vh - var(--hh) - 48px); overflow-y: auto; scrollbar-width: none; }
    .toc-side::-webkit-scrollbar { display: none; }
    .toc { border-bottom: 0; }
    .toc summary { pointer-events: none; }
    .toc-sign { display: none; }
}

/* Pages */
.page-head { max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(24px, 3vw, 40px); }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.page-body { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); font-size: 18px; line-height: 1.7; color: var(--text); }
.about-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.about-row + .about-row { margin-top: 0; }
.page-body .about-row h2 { margin-top: 0; font-size: clamp(28px, 2.6vw, 36px); }
.about-text > * + * { margin-top: 16px; }
@media (min-width: 900px) { .about-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.about-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.about-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 92px); line-height: .95; letter-spacing: -.02em; max-width: 1100px; text-wrap: balance; }
.about-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px 56px; border-top: 1px solid var(--ink); padding-top: 24px; font-size: 17px; line-height: 1.6; color: var(--body); }
.about-lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }
.about-body { max-width: 1360px; }
.about-not-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 64px; align-items: start; }

/* Footer */
.site-footer { margin-top: clamp(80px, 10vw, 140px); background: var(--sand); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { padding-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px clamp(40px, 6vw, 96px); }
.footer-brand { flex: 1 1 300px; max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--body); }
.footer-nav { display: flex; flex-direction: column; min-width: 220px; }
.footer-nav a { display: block; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.footer-note { padding-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.footer-note span:last-child { max-width: 620px; }
.footer-word { font-family: var(--sans); font-weight: 700; font-size: clamp(110px, 27vw, 400px); letter-spacing: -.07em; line-height: .72; white-space: nowrap; color: #DDD5C8; text-align: center; padding-top: 40px; margin-bottom: -.06em; user-select: none; }

/* Clearfy cookie notice in the site palette */
.clearfy-cookie { background: var(--ink) !important; color: var(--dark-text) !important; font-family: var(--sans) !important; font-size: 14px !important; line-height: 1.5 !important; border-radius: 0 !important; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4) !important; }
.clearfy-cookie a { color: var(--accent-dark) !important; }
.clearfy-cookie-accept { min-height: 44px !important; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; background: var(--accent) !important; color: var(--paper) !important; font: 500 14px var(--sans) !important; cursor: pointer; }
.clearfy-cookie-accept:hover, .clearfy-cookie-accept:focus { background: var(--accent-dark) !important; color: var(--ink) !important; }
@media (min-width: 768px) { .clearfy-cookie { max-width: 360px !important; left: auto !important; right: 16px !important; bottom: 16px !important; } }

/* Small screens */
@media (max-width: 767px) {
    .row { grid-template-columns: minmax(0, 1fr); gap: 4px 16px; }
    .row-date, .row-rub { display: inline; }
    .row { grid-template-columns: auto minmax(0, 1fr); }
    .row-title { grid-column: 1 / -1; }
    .split, .latest-wrap, .outside-body, .cover-main, .featured { flex-direction: column; flex-wrap: nowrap; }
    .card-big, .small-list, .latest, .eng, .outside-grid, .calendar, .cover-copy, .cover-shot, .featured-copy, .featured-shot { flex: 0 0 auto; width: 100%; }
    .cover-main { flex-direction: column-reverse; }
    .stage-main { flex-basis: auto; }
    .stage-big { font-size: 72px; }
    .drop-arts { grid-template-columns: 1fr; }
    .search-form { flex-wrap: wrap; }
    .search-form button { width: 100%; }
    .article-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .stage-main { flex-direction: column; gap: 8px; }
    .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .article-body blockquote { padding-left: 36px; }
    .pagination .page-numbers { padding: 0 12px; min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
