@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-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: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-math.woff2) format("woff2"); unicode-range: U+2248, U+2264-2265, U+2260, U+00B1, U+2116; }

:root {
  --bg: #0d0e10;
  --surface: #17191c;
  --surface-2: #22252a;
  --ink: #ecebe7;
  --muted: #a9a8a4;
  --brick: #a6232a;
  --brick-hi: #c23a3f;
  --brick-lo: #6e161b;
  --accent: #b3202b;
  --accent-ink: #ffffff;
  --field: #e9e8e4;
  --field-2: #dcdbd6;
  --field-ink: #121315;
  --field-muted: #3f4044;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --m: clamp(16px, 3.2vw, 48px);
  --bh: clamp(40px, 4.4vw, 68px);
  --bw: calc(var(--bh) * 3.846);
  --jv: calc(var(--bh) * 0.154);
  --jh: calc(var(--bh) * 0.185);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.75rem, 1.2rem + 5.6vw, 6.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--brick-hi); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* The button: a brick — square corners, the brick's flat colour. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background 0.18s, transform 0.18s var(--ease); }
.btn:hover { background: var(--brick-hi); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }

/* The bullet: one brick face at text size. */
.bk { display: inline-block; width: 1.15em; height: 0.3em; background: var(--brick); vertical-align: 0.28em; margin-right: 0.55em; flex: none; }

/* Header bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.bar-in { display: flex; align-items: center; gap: 28px; padding: 14px var(--m); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.mk { width: 34px; height: 19px; fill: var(--brick); }
.nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 8px 0; text-decoration: none; white-space: nowrap; font-size: 0.95rem; color: var(--muted); transition: color 0.15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::before { content: ""; display: inline-block; width: 0.9em; height: 0.24em; background: var(--brick); margin-right: 0.4em; vertical-align: 0.2em; }
.bar-end { display: flex; align-items: center; gap: 12px; }
.sform { display: flex; align-items: stretch; }
.sform input { width: 10.5rem; min-height: 40px; padding: 0 12px; background: var(--surface-2); border: 0; border-radius: 0; color: var(--ink); font-size: 1rem; }
.sform input::placeholder { color: var(--muted); }
.sform button { min-height: 40px; padding: 0 12px; background: var(--surface-2); border: 0; color: var(--muted); cursor: pointer; font-size: var(--step-small); }
.sform button:hover { color: var(--ink); }
.meter { height: 4px; background: transparent; }
.meter i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brick); }
body:not(.single) .meter { display: none; }

/* Home hero: the wall of rubric courses, cropped by the right edge */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; row-gap: 0; align-items: end; padding: clamp(40px, 7vw, 110px) 0 0 var(--m); overflow: hidden; min-height: calc(100svh - 72px); }
.hero-txt { display: contents; }
.hero h1 { grid-column: 1 / -1; padding-right: var(--m); }
.hero-more { grid-column: 1; align-self: end; padding-bottom: clamp(40px, 5vw, 80px); }
.hero h1 { font-size: var(--step-hero); letter-spacing: -0.045em; line-height: 0.96; max-width: 12em; }
.hero-sub { margin-top: 0; max-width: 34em; font-size: var(--step-lead); line-height: 1.4; }
.hero-act { margin-top: 40px; }
.hw { grid-column: 2; grid-row: 2; margin-top: 48px; display: flex; flex-direction: column; gap: var(--jh); padding-bottom: var(--jh); overflow: hidden; }
.hw-c { display: flex; gap: var(--jv); }
.hw-c--off { transform: translateX(calc((var(--bw) + var(--jv)) / -2)); }
.hw-b { flex: 0 0 var(--bw); height: var(--bh); background: var(--brick); }
.hw-b--lead { display: none; }
.hw-c:nth-child(3n+2) .hw-b:nth-child(4n+1):not(.hw-l) { background: var(--brick-lo); }
.hw-c:nth-child(3n) .hw-b:nth-child(5n+3):not(.hw-l) { background: var(--brick-hi); }
.hw-l { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; background: var(--ink); color: var(--field-ink); text-decoration: none; line-height: 1.1; transition: background 0.2s, color 0.2s, transform 0.25s var(--ease); }
.hw-n { font-weight: 600; font-size: clamp(0.95rem, 0.7rem + 0.55vw, 1.2rem); letter-spacing: -0.01em; }
.hw-k { font-size: var(--step-small); color: var(--field-muted); margin-top: 3px; }
.hw-l:hover, .hw-l:focus-visible { background: var(--accent); color: var(--accent-ink); }
.hw-l:hover .hw-k, .hw-l:focus-visible .hw-k { color: var(--accent-ink); }

/* Sections */
.sec { padding: clamp(96px, 11vw, 180px) var(--m) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.sec h2 { font-size: var(--step-head); }
.sec-head p { max-width: 40em; color: var(--ink); }
.sec-head a { color: var(--ink); text-decoration-color: var(--brick-hi); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.calc-in { display: grid; gap: 18px; background: var(--surface); padding: clamp(20px, 2.4vw, 36px); }
.calc fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.calc legend, .calc label:not(.chip) > span { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; padding: 0; }
.chip { display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 48px; padding: 12px 14px; background: var(--surface-2); color: var(--ink); font-size: 1rem; transition: background 0.15s; }
.chip small { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip:hover span { background: #2b2f35; }
.chip input:checked + span { background: var(--ink); color: var(--field-ink); }
.chip input:checked + span small { color: var(--field-muted); }
.chip input:focus-visible + span { outline: 3px solid var(--brick-hi); outline-offset: 2px; }
.calc input[inputmode], .calc select { width: 100%; min-height: 48px; padding: 0 12px; background: var(--surface-2); border: 0; border-radius: 0; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a8a4' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 14px) 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 36px; }
.calc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.calc-own { display: none; }
.calc.is-own .calc-own { display: block; }
.calc.is-own .calc-tk { display: none; }
.calc-note { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.calc-in .btn { justify-self: start; }
.js .calc-in .btn { display: none; }
.calc-out { display: grid; gap: 22px; }
.calc-big { font-size: clamp(3.5rem, 2rem + 6vw, 8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.calc-big span + span { font-size: 0.3em; letter-spacing: -0.01em; font-weight: 500; }
.calc-sub { color: var(--ink); font-size: var(--step-lead); }
.calc-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 4px; }
.calc-dl div { background: var(--surface); padding: 14px 16px; }
.calc-dl dt { font-size: var(--step-small); color: var(--muted); }
.calc-dl dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-err { background: var(--surface); padding: 18px; }
.calc-fig { margin: 0; }
.calc-fig figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.wall { width: 100%; height: auto; }
.wall-b rect { fill: var(--brick); }
.wall-rod > rect:first-child { fill: var(--ink); }
.wall-rod .tick { fill: var(--brick); }

/* Formats to scale */
.fmt-list { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; align-content: end; }
.fmt-list > h2, .fmt-list > .fmt-n { grid-column: 1; }
.fmt-list > h2 { color: var(--muted); font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); margin-bottom: 8px; align-self: end; }
.fmt-n { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.fmt-n:hover { color: var(--ink); }
.fmt-r:checked + .fmt-n { color: var(--ink); }
.fmt-r:checked + .fmt-n::before { content: ""; display: inline-block; width: 0.9em; height: 0.24em; background: var(--brick); margin-right: 0.3em; vertical-align: 0.2em; }
.fmt-r:focus-visible + .fmt-n { outline: 3px solid var(--brick-hi); outline-offset: 4px; }
.fmt-stage { grid-column: 2; grid-row: 1 / span 5; }
.fmt-card { display: none; }
#fs-1nf:checked ~ .fmt-stage .fmt-1nf, #fs-14nf:checked ~ .fmt-stage .fmt-14nf, #fs-21nf:checked ~ .fmt-stage .fmt-21nf { display: block; animation: fadein 0.3s var(--ease); }
.fmt-svg { width: 100%; }
.fmt-disc { fill: var(--surface); }
.fmt-face { fill: var(--brick); }
.fmt-top { fill: var(--brick-hi); }
.fmt-side { fill: var(--brick-lo); }
.fmt-fact { margin-top: 18px; max-width: 36em; color: var(--ink); }
.fmt-more { margin-top: 36px; font-size: var(--step-lead); }
.fmt-more a { text-decoration-color: var(--brick-hi); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* The course band between the dark and the light halves */
.band { margin-top: clamp(96px, 11vw, 180px); overflow: hidden; display: grid; gap: var(--jh); padding-bottom: var(--jh); }
.band-c { display: flex; gap: var(--jv); }
.band-c span { flex: 0 0 var(--bw); height: var(--bh); background: var(--brick); }
.band-c--off { transform: translateX(calc((var(--bw) + var(--jv)) / -2)); }
.band--thin { margin-top: 0; }
.band--thin .band-c--off { display: none; }

/* Light half */
.light { background: var(--field); color: var(--field-ink); padding-bottom: clamp(96px, 11vw, 180px); }
.light a { text-decoration-color: var(--accent); }
.light .sec-head p { color: var(--field-ink); }

/* Rubrics: statement + index with preview */
.rub-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.statement { font-size: clamp(1.5rem, 1rem + 1.3vw, 2.25rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.02em; max-width: 26em; }
.it { display: inline-block; width: 1.9em; height: 0.92em; vertical-align: -0.08em; margin: 0 0.08em; overflow: hidden; }
.it-img { width: 100%; height: 100%; object-fit: cover; }
.idx { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.idx-list { list-style: none; display: grid; gap: 6px; }
.idx-row a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 24px; align-items: center; padding: 16px; background: var(--field-2); text-decoration: none; transition: background 0.2s, color 0.2s; }
.idx-pic { grid-row: 1 / span 2; aspect-ratio: 250 / 120; overflow: hidden; }
.idx-img { width: 100%; height: 100%; object-fit: cover; }
.idx-t { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.idx-n { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.idx-k { font-size: var(--step-small); color: var(--field-muted); white-space: nowrap; padding-right: 4px; }
.idx-x { color: var(--field-muted); font-size: 1rem; margin-top: 4px; }
.idx-row a:hover, .idx-row a:focus-visible, .idx-row.is-on a { background: var(--field-ink); color: var(--field); }
.idx-row a:hover .idx-k, .idx-row a:hover .idx-x, .idx-row.is-on a .idx-k, .idx-row.is-on a .idx-x, .idx-row a:focus-visible .idx-x, .idx-row a:focus-visible .idx-k { color: #c9c8c3; }
.idx-frame { position: sticky; top: 110px; margin: 0; aspect-ratio: 250 / 240; overflow: hidden; background: var(--field-2); }
.idx-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.24s; }
.idx-big.is-on { opacity: 1; }
.idx-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--jh); background: var(--field); transform: translateY(-50%); }

/* Fresh articles */
.new-sec h2 { margin-bottom: 48px; }
.new-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.new-list li { display: flex; align-items: flex-start; }
.new-list .bk { margin-top: 0.75em; }
.new-t { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; text-decoration: none; }
.new-t:hover { text-decoration: underline; }
.new-x { margin-top: 6px; color: var(--field-muted); }
.meta { margin-top: 8px; font-size: var(--step-small); color: var(--field-muted); }
.meta a { color: inherit; }

/* Checklist: photo in a big brick shape, cropped by the left edge */
.chk-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-left: 0; align-items: center; }
.chk-pic { margin-left: -12%; aspect-ratio: 250 / 120; overflow: hidden; height: auto; }
.chk-img { width: 100%; height: 100%; object-fit: cover; }
.chk-txt h2 { margin-bottom: 48px; }
.chk { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.chk-t { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.chk-x { margin-top: 6px; font-size: 1rem; color: var(--field-muted); line-height: 1.45; }
.chk li:nth-child(3n+2) .bk { background: var(--field-ink); }
.chk li:nth-child(3n) .bk { background: var(--field-muted); }

/* FAQ: filled tiles */
.faq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.faq-sec h2 { position: sticky; top: 110px; }
.faq { display: grid; gap: 8px; }
.faq-i { background: var(--field-2); transition: background 0.2s, color 0.2s; }
.faq-i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 18px 24px; font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.faq-i summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: 0 0 16px; height: 16px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform 0.2s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq-i[open] { background: var(--accent); color: var(--accent-ink); }
.faq-i[open] .pm::after { transform: rotate(0deg); }
.faq-i p { padding: 0 24px 24px; max-width: 52ch; font-size: 1.0625rem; }
.faq-i summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Footer: the name laid as two courses of letter-bricks */
.foot { background: var(--bg); color: var(--ink); padding: clamp(72px, 8vw, 120px) var(--m) 28px; }
.wm { container-type: inline-size; display: grid; gap: calc(var(--jh) * 1.4); }
.wm-c { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: calc(var(--jv) * 1.4); }
.wm-b { grid-column: span 2; aspect-ratio: 250 / 65; display: flex; align-items: center; justify-content: center; background: var(--brick); color: var(--bg); font-weight: 700; font-size: 5cqi; line-height: 1; }
.wm-c:first-child .wm-b:first-child { grid-column: 2 / span 2; }
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; }
.foot-about p + p { margin-top: 12px; color: var(--muted); }
.foot-about { font-size: 1rem; }
.ft { font-weight: 600; margin-bottom: 10px; }
.ft:not(:first-child) { margin-top: 22px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot-cols a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 64px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: var(--step-small); color: var(--muted); }
.legal span { margin-right: auto; }
.legal a:not(.btn) { color: var(--muted); }
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: var(--surface) !important; color: var(--muted) !important; opacity: 1 !important; text-align: left !important; font: 400 0.88rem/1.4 var(--text) !important; text-decoration: underline; text-underline-offset: 0.22em; box-shadow: none !important; } /* taste-skill-ignore: resets the mu cookie link */
body #prc-l:hover { color: var(--ink) !important; }

/* Listings */
.lst-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: end; padding: clamp(40px, 6vw, 96px) var(--m) clamp(40px, 5vw, 80px); }
.lst-head--plain { grid-template-columns: minmax(0, 1fr); }
.lst-head h1 { font-size: var(--step-head); }
.lst-pg-n { color: var(--muted); font-weight: 500; }
.lst-line { margin-top: 20px; font-size: var(--step-lead); max-width: 30em; }
.lst-count { margin-top: 16px; color: var(--muted); }
.lst-pic { aspect-ratio: 250 / 120; overflow: hidden; }
.lst-img { width: 100%; height: 100%; object-fit: cover; }
.lst-search { margin-top: 24px; }
.lst-search .sform input { width: min(30rem, 70vw); min-height: 52px; }
.lst-search .sform button { min-height: 52px; background: var(--accent); color: var(--accent-ink); padding: 0 20px; }
.lst-empty { display: grid; gap: 20px; max-width: 46em; }
.lst-empty h2 { font-size: var(--step-head); }
.lst-empty p { font-size: var(--step-lead); }
.lst-rubs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 14px 40px; font-size: 1.15rem; }
.lst-rubs li { display: flex; align-items: baseline; }
.cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.cd { display: grid; align-content: start; gap: 10px; }
.cd-pic { display: block; aspect-ratio: 250 / 120; overflow: hidden; background: var(--field-2); }
.cd-pic img { width: 100%; height: 100%; object-fit: cover; max-width: none !important; transition: transform 0.4s var(--ease); }
.cd:hover .cd-pic img { transform: scale(1.03); }
.lab { font-size: var(--step-small); color: var(--field-muted); margin-top: 6px; }
.cd-t { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
.cd-t a { text-decoration: none; }
.cd-t a:hover { text-decoration: underline; }
.cd-x { color: var(--field-muted); font-size: 1rem; }
.pager { margin-top: 64px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pager a, .pager span { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 0 14px; background: var(--field-2); text-decoration: none; }
.pager .current { background: var(--field-ink); color: var(--field); }
.pager a:hover { background: var(--accent); color: var(--accent-ink); }

/* Article, page, tool page — read on the light field */
.art { background: var(--field); color: var(--field-ink); padding: clamp(32px, 5vw, 72px) var(--m) clamp(96px, 10vw, 160px); }
.art-head { max-width: 62rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--step-small); color: var(--field-muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; }
.crumbs a { color: var(--field-muted); }
.art h1 { margin-top: 20px; font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); max-width: 18em; }
.art .meta { margin-top: 20px; }
.art-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 36em; }
.art-fig { margin: 48px 0 0; max-width: 1200px; }
.art-img { width: auto; max-width: 100%; }
.art-fig figcaption, .prose figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--field-muted); }
.art-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(14rem, 3fr) minmax(0, 9fr); gap: 56px; align-items: start; }
.art-grid--solo { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 100px; }
.toc summary { font-weight: 600; cursor: pointer; list-style: none; margin-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.toc a { text-decoration: none; color: var(--field-muted); display: flex; }
.toc a::before { content: ""; flex: 0 0 0.9em; height: 0.24em; margin: 0.55em 0.6em 0 0; background: var(--field-2); transition: background 0.2s; }
.toc a:hover, .toc a.is-on { color: var(--field-ink); }
.toc a:hover::before, .toc a.is-on::before { background: var(--brick); }
.prose { max-width: 64ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2.1rem); margin-top: 1.9em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--brick); }
.prose ol li::marker { color: var(--brick); font-weight: 600; }
.prose a { color: var(--field-ink); text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose figure { margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--field-2); }
.prose .tw { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; min-width: 520px; }
.prose th { text-align: left; font-weight: 600; background: var(--field-ink); color: var(--field); }
.prose th, .prose td { padding: 10px 14px; }
.prose tr:nth-child(even) td { background: var(--field-2); }
.prose .pr-data { margin: 1.6em 0; padding: 0; border: 0; border-radius: 0; background: none; }
.prose .pr-data figcaption { margin: 0 0 10px; color: var(--field-ink); font-weight: 600; font-size: 1.1rem; }
.prose .pr-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; }
.prose .pr-stats li { margin: 0; background: var(--field-2); padding: 12px 14px; font-size: 0.92rem; line-height: 1.35; }
.prose .pr-stats li::marker { content: none; }
.prose .pr-stats b { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.prose .pr-faq { margin-top: 0.8em; display: grid; gap: 6px; }
.prose .pr-faq__item { background: var(--field-2); border: 0; border-radius: 0; margin: 0; }
.prose .pr-faq__item summary { list-style: none; cursor: pointer; min-height: 56px; padding: 15px 48px 15px 18px; position: relative; font-weight: 600; line-height: 1.35; }
.prose .pr-faq__item summary::-webkit-details-marker { display: none; }
.prose .pr-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brick); }
.prose .pr-faq__item[open] summary::after { content: "−"; }
.prose .pr-faq__a { padding: 0 18px 16px; }
.prose .pr-sources { margin-top: 2.4em; font-size: 0.95rem; color: var(--field-muted); }
.prose .pr-sources h2 { font-size: 1.25rem; color: var(--field-ink); margin-top: 0; }
.prose .pr-editorial { margin-top: 2.4em; padding: 16px 18px; background: var(--field-2); border: 0; border-radius: 0; font-size: 0.95rem; line-height: 1.5; display: grid; gap: 2px; }
.prose .pr-editorial__label { display: block; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 400; color: var(--field-muted); }
.prose .pr-editorial__name { font-weight: 600; }
.prose .pr-editorial__note { margin-top: 4px; color: var(--field-muted); }
.prose .pr-deep { margin-top: 3em; padding-top: 0; border-top: 0; }
.prose .pr-deep-h { font-size: 1.6rem; margin: 0 0 16px; }
.prose .pr-deep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prose .pr-deep-card { border: 0; border-radius: 0; background: var(--field-2); text-decoration: none; display: grid; align-content: start; }
.prose .pr-deep-card:hover { transform: none; box-shadow: none; background: var(--field-ink); color: var(--field); } /* taste-skill-ignore: resets the mu card's own hover */
.prose .pr-deep-thumb { aspect-ratio: 250 / 120; background-size: cover; background-position: center; }
.prose .pr-deep-title { padding: 10px 12px 12px; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.pressroom-reads, .pressroom-reads-card { color: var(--field-muted) !important; font-size: 0.875rem !important; }
.pr-updated { color: var(--field-muted); font-size: 0.92rem; }
.art-tool { margin-top: 56px; max-width: 70ch; }
.tl { display: grid; gap: 6px; padding: 22px 24px; background: var(--field-ink); color: var(--field); text-decoration: none; transition: background 0.2s; }
.tl-t { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.tl-t::before { content: ""; display: inline-block; width: 1.1em; height: 0.28em; background: var(--brick); margin-right: 0.5em; vertical-align: 0.22em; }
.tl-x { color: #c9c8c3; }
.tl:hover { background: var(--accent); }
.tl:hover .tl-t::before { background: var(--field); }
.adj { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 70rem; }
.adj a { display: grid; gap: 4px; padding: 18px 20px; background: var(--field-2); text-decoration: none; height: 100%; }
.adj a:hover { background: var(--field-ink); color: var(--field); }
.adj-l { font-size: var(--step-small); color: var(--field-muted); }
.adj a:hover .adj-l { color: #c9c8c3; }
.adj-t { font-weight: 600; line-height: 1.3; }
.adj-n { text-align: right; }
.more { margin-top: clamp(80px, 9vw, 140px); }
.more h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 36px; }
.mr-all { margin-top: 28px; }
.pg .prose { max-width: 72ch; }
.toolpg .tool-wrap { margin-top: 48px; background: var(--bg); color: var(--ink); padding: clamp(20px, 3vw, 44px); }
.crd .prose { max-width: none; }
.crd .cr-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.crd .cr-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; }
.crd .cr-img { width: 100%; aspect-ratio: 250 / 120; object-fit: cover; }
.crd .cr-t { font-weight: 600; margin-bottom: 4px; }

/* Motion: entrances (content is never hidden without JS), feedback, one moving picture */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .hw-c { opacity: 0; transform: translateY(18px); }
.js .hw-c--off { transform: translate(calc((var(--bw) + var(--jv)) / -2), 18px); }
.js .hw.in .hw-c { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .hw.in .hw-c--off { transform: translateX(calc((var(--bw) + var(--jv)) / -2)); }
.chk-img { transform: scale(1.06); transition: transform 1.2s var(--ease); }
.chk-pic.in .chk-img { transform: scale(1); }
.lst-img { animation: drift 18s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1.5%); } }

@media (max-width: 1100px) {
  .nav { display: none; }
  .bar-in { justify-content: space-between; }
  .sform input { width: 10rem; }
  .chk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .pr-deep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-right: 0; }
  .hero-more { padding-right: var(--m); padding-bottom: 0; margin-top: 28px; }
  .hw { grid-column: 1; grid-row: 3; margin-left: calc(var(--m) * -1); margin-top: 48px; }
  .hw-b { order: 2; }
  .hw-l { order: 1; }
  .hw-b--lead { display: block; order: 0; }
  .sec-head, .calc, .rub-head, .idx, .faq-sec, .lst-head { grid-template-columns: minmax(0, 1fr); }
  .faq-sec h2 { position: static; }
  .idx-frame { display: none; }
  .fmt-list { grid-template-columns: minmax(0, 1fr); }
  .fmt-stage { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 24px; }
  .fmt-list > h2 { order: -2; }
  .fmt-list { display: flex; flex-direction: column; }
  .chk-sec { grid-template-columns: minmax(0, 1fr); padding-right: var(--m); gap: 40px; }
  .chk-pic { margin-left: 0; width: 92%; }
  .chk-txt { padding-left: var(--m); }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .new-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --bh: 40px; }
  .bar-in { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .bar-end .sform { display: none; }
  .mark { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero-sub { margin-top: 24px; }
  .hw-l { padding: 0 12px; }
  .hw-n { font-size: 0.95rem; }
  .hw-k { display: none; }
  .calc-row3 { grid-template-columns: 1fr 1fr 1fr; }
  .calc-row2 { grid-template-columns: 1fr; }
  .chk { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chk-t { margin-left: -1.7em; }
  .chk li { padding-left: 1.7em; }
  .idx-row a { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 14px; padding: 12px; }
  .idx-x { font-size: 0.95rem; }
  .idx-t { flex-wrap: wrap; gap: 2px 12px; }
  .faq-i summary { font-size: 1.125rem; min-height: 64px; padding: 16px 20px; }
  .faq-i p { padding: 0 20px 20px; font-size: 1rem; }
  .cd-grid { grid-template-columns: minmax(0, 1fr); }
  .prose .pr-deep-grid { grid-template-columns: minmax(0, 1fr); }
  .wm-b { aspect-ratio: 250 / 130; font-size: 7cqi; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-about { grid-column: 1 / -1; }
  .adj { grid-template-columns: minmax(0, 1fr); }
  .adj-n { text-align: left; }
  .crd .cr-list li { grid-template-columns: minmax(0, 1fr); }
  .crd .cr-list { grid-template-columns: minmax(0, 1fr); }
  .statement .it:nth-of-type(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hw-c { opacity: 1; transform: none; }
  .js .hw-c--off { transform: translateX(calc((var(--bw) + var(--jv)) / -2)); }
  .chk-img { transform: none; }
}

.pr-guides { border-top: 0 !important; background: var(--bg); color: var(--muted); }
.pr-guides__in { max-width: none !important; padding: 18px var(--m) !important; }
.pr-guides a { color: var(--muted) !important; }
.pr-guides a:hover { color: var(--ink) !important; }

.lst-head .crumbs ol, .lst-head .crumbs a { color: var(--muted); }
.lst-sub { font-size: var(--step-head); margin-bottom: 40px; }
.lst-empty + .idx { margin-top: 48px; }
.lst-sub + .idx { margin-top: 0; }
.pg-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.side { display: grid; gap: var(--jh); position: sticky; top: 100px; }
.side-f { display: block; aspect-ratio: 250 / 120; overflow: hidden; }
.side-img { width: 100%; height: 100%; object-fit: cover; }
.crd .cr-list p { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
}
.lst-head h1 { font-size: clamp(2.5rem, 1.2rem + 4.8vw, 6rem); letter-spacing: -0.04em; }
.pg h1 { font-size: clamp(2.5rem, 1.2rem + 4.8vw, 6rem); letter-spacing: -0.04em; }
@media (max-width: 1480px) and (min-width: 1101px) { .bar-end .sform { display: none; } }
