/* «Горн» — «Металл и мастер» (ostmetal.info). Soot-dark ground, steel lit by its own heat.
   Fira Sans Extra Condensed (stamped display) + Jost (reading), self-hosted latin + cyrillic.
   Ported from design/ostmetal/previews-r1/a-gorn/site.css; WordPress/mu-plugin parts at the end. */
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fira-xc-600-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fira-xc-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/fira-xc-800-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/fira-xc-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jost-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jost-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/jost-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/jost-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #14100d;
  --surface: #1f1813;
  --surface-2: #2b2119;
  --ink: #eeebe7;
  --muted: #c4b5a4;
  --accent: #ff6a1a;
  --accent-ink: #14100d;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --sec: clamp(96px, 12vw, 176px);
  --s1: clamp(3.4rem, 1.2rem + 9.4vw, 9.5rem);
  --s2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --s3: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  --s4: 1.0625rem;
  --s5: 0.875rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s4)/1.6 var(--text); -webkit-tap-highlight-color: transparent; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--s2); line-height: 1; }
h3 { font-size: var(--s3); line-height: 1.12; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--m); top: 8px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--text); text-decoration: none; transition: transform 140ms var(--ease), background-color 140ms; touch-action: manipulation; user-select: none; }
.btn:hover { color: var(--accent-ink); background: #ff8540; }
.btn:active { transform: scale(0.97); }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.bar-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 14px var(--m); }
.mark { font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--accent); }
.nav { flex: 1; min-width: 0; }
.nav ul { display: flex; flex-wrap: wrap; column-gap: clamp(12px, 1.6vw, 26px); }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color 140ms; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.sform { display: flex; gap: 0; }
.sform input { width: 9rem; min-height: 44px; padding: 0 12px; border: 0; background: var(--surface-2); color: var(--ink); font: 400 16px var(--text); }
.sform button { min-height: 44px; padding: 0 14px; border: 0; background: var(--surface-2); color: var(--ink); font: 500 0.95rem var(--text); cursor: pointer; transition: background-color 140ms; }
.sform button:hover { background: #3a2d22; }
.heat { display: grid; grid-template-columns: repeat(13, 1fr); height: 10px; }
.heat i { background: var(--c); transition: opacity 260ms; }
.reading .heat i { opacity: 0.22; }
.reading .heat i.lit { opacity: 1; }

/* hero */
main { display: block; }
.hero { padding: clamp(28px, 4vw, 56px) var(--m) 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.hero h1 { font-size: var(--s1); line-height: 0.86; text-transform: uppercase; letter-spacing: -0.02em; }
.hero-say { font-size: var(--s3); line-height: 1.35; max-width: 30ch; padding-bottom: 0.4em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.hero-fig { margin: 0; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(0.9) contrast(1.05); }
figcaption { margin-top: 8px; color: var(--muted); font-size: var(--s5); }
.lead { display: grid; gap: 16px; align-content: start; }
.lead h2 { font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; }
.lead p { max-width: 60ch; }
.lead h2 a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.95rem; }
.meta a { color: var(--ink); }
.rub { font-weight: 500; }
.lead-pic img { width: 100%; background: var(--surface); }

/* latest: sticky picture + active list */
.latest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); padding: var(--sec) var(--m) 0; align-items: start; }
.lt-pic { position: sticky; top: 96px; }
.lt-pic img { width: 100%; background: var(--surface); transition: opacity 160ms ease-out, transform 300ms var(--ease); }
.lt-pic img.swap { opacity: 0; transform: scale(0.985); }
.lt-pic p { margin-top: 10px; color: var(--muted); font-size: var(--s5); min-height: 2.8em; }
.lt-list h2 { margin-bottom: 28px; }
.rows li { margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 14px 16px; margin: 0 -16px; text-decoration: none; transition: background-color 160ms; }
.row-t { font: 600 clamp(1.2rem, 1rem + 0.6vw, 1.5rem)/1.15 var(--display); color: var(--muted); transition: color 160ms; }
.row-m { color: var(--muted); font-size: 0.95rem; white-space: nowrap; padding-top: 4px; }
.row-x { grid-column: 1 / -1; display: none; margin-top: 6px; max-width: 58ch; color: var(--ink); font-size: 1rem; }
.row.on { background: var(--surface); }
.row.on .row-t, .row:hover .row-t { color: var(--ink); }
.row.on .row-x { display: block; }
.row:hover { color: inherit; }

/* rubrics: band of unequal panels */
.rubs { padding: var(--sec) var(--m) 0; }
.rubs > h2 { margin-bottom: 32px; }
.panels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.pn { background: var(--surface); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pn-1 { grid-column: span 5; } .pn-2 { grid-column: span 4; } .pn-3 { grid-column: span 3; }
.pn-4 { grid-column: span 3; } .pn-5 { grid-column: span 4; } .pn-6 { grid-column: span 5; }
.pn-img { width: 100%; height: clamp(180px, 20vw, 300px); object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.pn-b { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.pn h3 a { text-decoration: none; }
.pn-c { color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.pn-last { font-size: 1rem; }

/* heat lab */
.heatlab { margin-top: var(--sec); padding: clamp(48px, 6vw, 96px) var(--m); background: var(--surface); }
.hl-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.hl-head p { max-width: 54ch; font-size: 1.1rem; }
.hl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "modes modes" "stage photo" "scales photo"; gap: var(--gap) clamp(24px, 4vw, 64px); }
.hl-modes { grid-area: modes; display: flex; flex-wrap: wrap; gap: 8px; }
.hl-modes label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; background: var(--surface-2); cursor: pointer; font-weight: 500; transition: background-color 140ms, transform 140ms var(--ease); user-select: none; }
.hl-modes label:active { transform: scale(0.98); }
.hl-modes label:has(input:checked) { background: var(--ink); color: var(--bg); }
.hl-modes input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hl-stage { grid-area: stage; display: grid; gap: 18px; }
.bar-svg { width: 100%; height: auto; }
#hl-bar { transition: fill 220ms ease-out; }
.hl-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.hl-read b { font: 800 clamp(2.6rem, 1.6rem + 3.6vw, 5rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.hl-read span { font-size: var(--s3); color: var(--ink); }
#hl-r { width: 100%; height: 44px; accent-color: var(--accent); cursor: pointer; }
.hl-scales { grid-area: scales; }
.sc { display: none; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.hl[data-mode="glow"] .sc-glow, .hl[data-mode="temper"] .sc-temper { display: grid; }
html:not(.js) .sc { display: grid; }
.sc li { display: grid; grid-template-rows: 44px auto auto; gap: 6px; font-size: 0.875rem; line-height: 1.25; color: var(--muted); cursor: pointer; min-width: 0; }
.sc li::before { content: ""; background: var(--c); transition: transform 200ms var(--ease); }
.sc li b { font-weight: 600; color: var(--ink); font-size: 0.875rem; }
.sc li span { overflow-wrap: anywhere; }
.sc li.on::before { transform: translateY(-6px); }
.sc li.on b { color: var(--accent); }
.hl-photo { grid-area: photo; margin: 0; align-self: start; }
.hl-img { width: 100%; }
.hl-photo figcaption { font-size: 0.95rem; color: var(--ink); max-width: 62ch; }

/* guides: drag row */
.guides { padding: var(--sec) 0 0; }
.gd-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; padding: 0 var(--m); margin-bottom: 32px; }
.gd-head p { max-width: 50ch; font-size: 1.1rem; }
.g-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--m); }
.g { display: grid; gap: 12px; align-content: start; }
.g-pic img { width: 100%; background: var(--surface); transition: transform 300ms var(--ease); }
.g-pic:hover img { transform: translateY(-4px); }
.g h3 a { text-decoration: none; }
.g p { color: var(--ink); font-size: 1rem; }

/* history: staggered pairs */
.hist { padding: var(--sec) var(--m) 0; }
.hist-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
.hist-head figure { margin: 0; }
.hist-art { width: 100%; max-height: 52vh; object-fit: cover; filter: brightness(0.9); }
.hist-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); }
.hi { display: grid; gap: 10px; align-content: start; }
.hi:nth-child(odd) { grid-column: 1 / span 5; }
.hi:nth-child(even) { grid-column: 7 / span 6; margin-top: clamp(40px, 9vw, 140px); }
.hi-pic img { width: 100%; background: var(--surface); }
.hi h3 a { text-decoration: none; }
.hi p { max-width: 52ch; }

/* faq: large questions, answers beside */
.faq { padding: var(--sec) var(--m) 0; }
.faq > h2 { margin-bottom: 40px; }
.qa { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); padding: 26px 0; }
.qa:nth-child(even) { background: var(--surface); margin: 0 calc(var(--m) * -1); padding: 26px var(--m); }
.qa h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.qa p { max-width: 52ch; font-size: 1.05rem; }

/* footer */
.foot { margin-top: var(--sec); background: #cfd3d4; color: #121416; padding: clamp(40px, 5vw, 72px) var(--m) 24px; }
.foot a:hover { color: #8f3208; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.foot-cols p, .foot-cols li { font-size: 1rem; }
.foot-cols p + p { margin-top: 10px; }
.foot-cols li a { display: inline-block; padding: 3px 0; }
.ft { font-weight: 600; margin-bottom: 10px; }
.foot-word { display: block; width: 100%; height: auto; margin-top: clamp(48px, 7vw, 120px); fill: #121416; font: 800 120px var(--display); }
.legal { margin-top: 18px; font-size: var(--s5); }

/* article */
.art-head { padding: clamp(28px, 4vw, 56px) var(--m) 0; max-width: calc(1080px + var(--m) * 2); margin: 0 auto; display: grid; gap: 18px; }
.crumbs { color: var(--muted); font-size: 0.95rem; }
.art-head h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem); line-height: 0.98; max-width: 30ch; }
.art-lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.5; max-width: 62ch; }
.art-fig { margin: clamp(28px, 4vw, 48px) auto 0; max-width: calc(1200px + var(--m) * 2); padding: 0 var(--m); }
.art-img { width: 100%; max-width: 1200px; background: var(--surface); }
.art-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); max-width: calc(1080px + var(--m) * 2); margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--m); align-items: start; }
.toc { position: sticky; top: 96px; background: var(--surface); padding: 20px 22px; }
.toc h2 { font-size: 1.25rem; margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; counter-reset: none; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 0.95rem; line-height: 1.35; transition: color 140ms; }
.toc a:hover { color: var(--ink); }
.prose { font-size: 1.1875rem; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.04; margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.6em; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 6px; background: var(--accent); }
.pr-data { margin: 2em 0 0; background: var(--surface); padding: 20px; }
.pr-data figcaption { margin: 0 0 12px; color: var(--ink); font: 600 1.2rem/1.2 var(--display); }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th { text-align: left; font-weight: 600; padding: 10px 12px; background: var(--surface-2); }
td { padding: 10px 12px; vertical-align: top; }
tbody tr:nth-child(even) td { background: #261d16; }
td:first-child { font-weight: 600; }
.pr-faq { margin-top: 2em; }
.pr-faq__item { background: var(--surface); margin-top: 8px; }
.pr-faq__item summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 52px 16px 20px; position: relative; font: 600 1.25rem/1.25 var(--display); transition: background-color 140ms; }
.pr-faq__item summary::-webkit-details-marker { display: none; }
.pr-faq__item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); transition: transform 200ms var(--ease); }
.pr-faq__item[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.pr-faq__item summary:hover { background: var(--surface-2); }
.pr-faq__a { padding: 0 20px 18px; }
.pr-sources { margin-top: 2.4em; font-size: 0.95rem; color: var(--muted); }
.pr-sources h2 { font-size: 1.4rem; color: var(--ink); }
.pr-sources ul { margin-top: 10px; }
.pr-sources li::before { background: var(--muted) !important; }
.pr-editorial { margin-top: 2.4em; padding: 18px 20px; background: var(--surface); font-size: 0.98rem; display: grid; gap: 4px; }
.more, .pr-deep { max-width: calc(1080px + var(--m) * 2); margin: var(--sec) auto 0; padding: 0 var(--m); }
.more h2, .pr-deep h2 { margin-bottom: 24px; }
.mr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.dp a { display: grid; gap: 10px; text-decoration: none; font: 600 1.25rem/1.15 var(--display); }
.dp-img { width: 100%; background: var(--surface); transition: transform 300ms var(--ease); }
.dp a:hover .dp-img { transform: translateY(-4px); }
.dp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dp a { font-size: 1.1rem; }

/* credits page */
.credits .wrap { max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--m) 0; }
.credits h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: 0.95; }
.cr-lead { margin-top: 18px; max-width: 62ch; font-size: 1.1rem; }
.cr-list { margin-top: 32px; display: grid; gap: 10px; }
.cr-list li { background: var(--surface); padding: 14px 18px; overflow-wrap: anywhere; }
.cr-t { font-weight: 600; }

/* motion */
.js [data-rise] > * { opacity: 0; transform: translateY(22px); transition: opacity 520ms var(--ease), transform 620ms var(--ease); }
.js [data-rise].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
@media (hover: none) { a:hover { color: inherit; } .row:hover .row-t { color: var(--muted); } }

/* tablet */
@media (max-width: 1100px) {
  .sform { display: none; }
  .panels .pn { grid-column: span 6; }
  .dp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lead { order: -1; }
  .hero-row { display: flex; flex-direction: column; }
  .g-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-head p, .gd-head p { max-width: 60ch; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-m { padding-top: 2px; }
  .hero-top, .hero-row, .latest, .hl-head, .gd-head, .hist-head, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .lt-pic { display: none; }
  .row-x { display: block; color: var(--ink); }
  .row-t { color: var(--ink); }
  .row.on { background: none; }
  .hl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "modes" "stage" "scales" "photo"; }
  .toc { position: static; }
  .hist-grid .hi { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 640px) {
  .art-head h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.5rem; }
  .nav ul { column-gap: 14px; }
  .nav a { min-height: 36px; }
  .bar { position: static; }
  .bar-in { flex-wrap: wrap; gap: 0 16px; padding-bottom: 4px; }
  .mark { padding: 8px 0; font-size: 1.35rem; }
  .nav { flex-basis: 100%; }
  .panels .pn { grid-column: 1 / -1; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .sc { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 14px; }
  .mr, .dp { grid-template-columns: minmax(0, 1fr); }
  .g-row { grid-template-columns: minmax(0, 1fr); }
  td, th { padding: 8px; }
  .tw table, .tw thead, .tw tbody, .tw tr, .tw td { display: block; }
  .tw thead { display: none; }
  .tw tr { padding: 10px 0; }
  .tw tbody tr:nth-child(even) td { background: none; }
  .tw tbody tr:nth-child(even) { background: #261d16; }
  .tw td { padding: 4px 8px; }
  .tw td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
}

.cr-list li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.cr-list img { width: 240px; height: 170px; object-fit: cover; }
@media (max-width: 640px) { .cr-list li { grid-template-columns: minmax(0, 1fr); } .cr-list img { width: 100%; height: 180px; } }

/* break-ui: excerpts are previews, keep list rows predictable */
.row-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.row:not(.on) .row-x { display: none; }
@media (max-width: 900px) { .row:not(.on) .row-x { display: -webkit-box; } }
.row.on .row-x { display: -webkit-box; }


/* ================= WordPress theme parts (beyond the preview) ================= */
.pimg { display: block; height: auto; }
.noimg { display: block; aspect-ratio: 1200 / 592; background: var(--surface-2); }
.dot { color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.mark { color: var(--ink); }
.hero-say, .lead p, .row-x, .g-x, .hi p, .qa-a { overflow-wrap: break-word; }
.lead h2, .row-t, .g-t, .hi h3, .pn h3, .art-head h1, .lst-head h1 { overflow-wrap: break-word; hyphens: auto; }
.lead-pic { display: block; }
.hist-more { margin-top: 14px; }
.hist-more a { color: var(--accent); }
.faq-src { margin: -24px 0 24px; color: var(--muted); }
.faq-src a { color: var(--ink); }
.qa-a p + p { margin-top: 0.6em; }
.qa-a { max-width: 52ch; font-size: 1.05rem; }

/* cards (guides, listings, «Ещё в рубрике», 404) */
.g { display: grid; gap: 10px; align-content: start; min-width: 0; }
.g-pic { display: block; }
.g-t { font: 600 clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem)/1.12 var(--display); }
.g-t a { text-decoration: none; }
.g-x { color: var(--ink); font-size: 1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.g .meta { font-size: 0.9rem; }
.g-row { list-style: none; }

/* heat lab: no-JS = two plain labelled scales; JS = slider */
.hl-sh { display: none; font-size: 1.1rem; margin: 18px 0 10px; }
.js .sc li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .hl-modes, html:not(.js) .hl-stage, html:not(.js) .hl-js { display: none; }
html:not(.js) .hl-sh { display: block; }
html:not(.js) .hl { grid-template-areas: "scales photo"; }
html:not(.js) .sc li { cursor: default; }
@media (max-width: 900px) { html:not(.js) .hl { grid-template-areas: "scales" "photo"; } }

/* article */
.art-head h1 { overflow-wrap: break-word; }
.art-fig { text-align: left; }
.art-img { width: auto; height: auto; }
.art-fig figcaption { max-width: 1200px; }
.art-grid--solo { grid-template-columns: minmax(0, 1fr); }
.art-grid--solo .prose { max-width: 780px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose img { height: auto; }
.prose ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); }
.prose strong { font-weight: 600; }
.mr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mr-all { margin-top: 24px; }
.mr-all a { color: var(--accent); }

/* mu-plugin blocks restyled (the mu prints its own <style> later in <body>, hence the .prose prefix / !important on #prc-l) */
.prose .pr-data { margin: 2em 0 0; background: var(--surface); padding: 20px; border: 0; border-radius: 0; }
.prose .pr-data figcaption { margin: 0 0 12px; color: var(--ink); font: 600 1.2rem/1.2 var(--display); }
.prose .pr-faq h2 { margin-top: 1.6em; }
.prose .pr-faq__item { border: 0; border-radius: 0; }
.prose .pr-sources ul li::before { background: var(--muted); }
.prose .pr-editorial { margin-top: 2.4em; padding: 18px 20px; background: var(--surface); border: 0; border-radius: 0; font-size: 0.98rem; line-height: 1.5; }
.prose .pr-editorial__label { display: block; text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.prose .pr-editorial__name { font: 600 1.15rem/1.3 var(--display); color: var(--ink); }
.prose .pr-editorial__note { margin-top: 6px; color: var(--muted); }
.prose .pr-deep { margin-top: 3em; padding-top: 0; border-top: 0; }
.prose .pr-deep-h { font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--display); margin: 0 0 18px; }
.prose .pr-deep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.prose .pr-deep-card { border: 0; border-radius: 0; background: none; text-decoration: none; display: grid; gap: 8px; align-content: start; }
.prose .pr-deep-card:hover { transform: none; box-shadow: none; }
.prose .pr-deep-thumb { aspect-ratio: 1200 / 592; background-size: contain; background-repeat: no-repeat; background-color: var(--surface); }
.prose .pr-deep-title { padding: 0; font: 600 1.1rem/1.2 var(--display); }
@media (hover: hover) { .prose .pr-deep-card:hover .pr-deep-title { color: var(--accent); } }
.pressroom-reads, .pressroom-reads-card { color: var(--muted) !important; font-size: 0.9rem !important; }
.pr-updated { color: var(--muted); font-size: 0.95rem; }
body #prc-l { position: static !important; width: 100% !important; margin: 0 !important; padding: 14px var(--m) calc(env(safe-area-inset-bottom, 0px) + 14px) !important; border-radius: 0 !important; background: #cfd3d4 !important; color: #121416 !important; opacity: 1 !important; text-align: left !important; font: 500 var(--s5) / 1.4 var(--text) !important; text-decoration: underline; text-underline-offset: 0.22em; box-shadow: none !important; }
body #prc-l:hover { color: #8f3208 !important; }
.foot { padding-bottom: 8px; }

/* listings, search, 404, pages */
.lst-head { padding: clamp(28px, 4vw, 56px) var(--m) 0; display: grid; gap: 14px; }
.lst-head h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6.5rem); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.02em; }
.lst-pg { font-size: 0.45em; color: var(--muted); text-transform: none; letter-spacing: 0; }
.lst-line { font-size: var(--s3); line-height: 1.35; max-width: 46ch; }
.lst-count { color: var(--muted); }
.lst-search .sform { display: flex; max-width: 520px; }
.lst-search .sform input { width: auto; flex: 1; min-width: 0; }
.lst { padding: clamp(32px, 4vw, 56px) var(--m) 0; }
.lst-sub { margin-bottom: 24px; }
.lst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
.lst-grid .g-t { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.lst-empty { background: var(--surface); padding: 24px; max-width: 60ch; }
.lst-empty a { color: var(--accent); }
.pager { margin-top: clamp(40px, 5vw, 64px); }
.pager ul { display: flex; flex-wrap: wrap; gap: 6px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; background: var(--surface); text-decoration: none; font-weight: 500; }
.pager .current { background: var(--accent); color: var(--accent-ink); }
.pager .dots { background: none; }
.pg .art-head h1 { max-width: 26ch; }

/* credits page */
.crd .cr-list { margin-top: 32px; display: grid; gap: 10px; padding: 0; list-style: none; }
.crd .cr-list li { padding: 14px 18px; background: var(--surface); }
.crd .cr-list li::before { display: none; }
.crd .cr-img { width: 240px; height: 170px; object-fit: cover; }
.crd .cr-t { font-weight: 600; font-family: var(--display); font-size: 1.2rem; }
.crd .cr-list p { font-size: 1rem; }
.crd .cr-list p + p { margin-top: 4px; }
.crd .cr-list a { color: var(--ink); }

@media (max-width: 1100px) {
  .lst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .pr-deep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lst-grid, .mr { grid-template-columns: minmax(0, 1fr); }
  .lst-head h1 { font-size: 2.4rem; }
  .crd .cr-list li { grid-template-columns: minmax(0, 1fr); }
  .crd .cr-img { width: 100%; height: 180px; }
  .faq-src { margin-top: -28px; }
  .prose .pr-deep-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
}
/* phones: the header scrolls away, so on articles the heat strip pins itself to the top edge as the reading meter */
@media (max-width: 640px) {
  .reading .bar .heat { position: fixed; top: 0; left: 0; right: 0; z-index: 11; height: 6px; }
  .reading .bar { padding-top: 6px; }
}

/* rubric listing header: text + the rubric's photograph */
.lst-head--rub { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: end; }
.lst-txt { display: grid; gap: 14px; align-content: end; min-width: 0; }
.lst-fig { margin: 0; }
.lst-img { width: 100%; max-height: 46vh; object-fit: cover; filter: brightness(0.9) contrast(1.05); }
.lst-grid[data-rise] > * { transition-property: opacity, transform; }
@media (max-width: 900px) { .lst-head--rub { grid-template-columns: minmax(0, 1fr); row-gap: 20px; } .lst-img { max-height: 280px; } }
.meta time { white-space: nowrap; }

/* previous / next article (kept from the previous theme's post navigation) */
.adj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); max-width: calc(1080px + var(--m) * 2); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--m); }
.adj a { display: grid; gap: 6px; height: 100%; padding: 18px 20px; background: var(--surface); text-decoration: none; transition: background-color 140ms; }
.adj a:hover { background: var(--surface-2); color: var(--ink); }
.adj-n a { text-align: right; }
.adj-l { color: var(--muted); font-size: 0.9rem; }
.adj-t { font: 600 clamp(1.1rem, 1rem + 0.4vw, 1.3rem)/1.2 var(--display); overflow-wrap: break-word; }
@media (max-width: 640px) { .adj { grid-template-columns: minmax(0, 1fr); } .adj-n a { text-align: left; } }
.crd .art-grid--solo .prose { max-width: none; }
.crd .cr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crd .cr-list li { grid-template-columns: 200px minmax(0, 1fr); }
.crd .cr-img { width: 200px; height: 150px; }
@media (max-width: 1100px) { .crd .cr-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .crd .cr-list li { grid-template-columns: minmax(0, 1fr); } .crd .cr-img { width: 100%; height: 180px; } }
