/* Wattful — editorial energy magazine. Paper, ink, ember and volt. */
:root {
  --bg: #f4efe6;
  --surface: #fbf8f2;
  --raised: #ffffff;
  --ink: #141a17;
  --ink-2: #2c3530;
  --muted: #5d655f;
  --line: #ddd5c6;
  --ember: #d4471f;
  --ember-ink: #b23a17;
  --volt: #f5c243;
  --deep: #0f2a24;
  --deep-ink: #eef3ec;
  --deep-muted: #a9bdb4;
  --mark: rgba(245, 194, 67, .45);
  --shadow: 0 1px 2px rgba(20, 26, 23, .06), 0 12px 32px -12px rgba(20, 26, 23, .18);
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --surface: #151d19; --raised: #1a2420; --ink: #ecefe9; --ink-2: #d3d9d2; --muted: #9aa69f;
    --line: #2a3631; --ember: #f0683f; --ember-ink: #ff8a62; --volt: #f5c243; --deep: #08201b; --mark: rgba(245, 194, 67, .28);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512; --surface: #151d19; --raised: #1a2420; --ink: #ecefe9; --ink-2: #d3d9d2; --muted: #9aa69f;
  --line: #2a3631; --ember: #f0683f; --ember-ink: #ff8a62; --volt: #f5c243; --deep: #08201b; --mark: rgba(245, 194, 67, .28);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; font-variation-settings: "opsz" 144; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--volt); color: #141a17; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1440px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--volt), var(--ember)); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--serif); letter-spacing: -.02em; }
.logo__mark { width: 30px; height: 30px; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo--big { font-size: 28px; }
.logo--big .logo__mark { width: 38px; height: 38px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--volt) 40%, transparent); }
.site-header__tools { display: flex; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.icon-btn:hover { background: var(--raised); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .theme-toggle .i-sun { display: none; } :root[data-theme="auto"] .theme-toggle .i-moon { display: block; } }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: 68px 0 0 0; flex-direction: column; gap: 4px; padding: 24px var(--gutter); background: var(--bg); margin: 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 600 34px/1.2 var(--serif); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .site-header__tools { margin-left: auto; }
}

/* ---------- shared type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ember-ink); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ember); transform: rotate(45deg); }
.section-title { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 36px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .section-title { margin: 12px 0 0; }
.section-head p { max-width: 42ch; color: var(--muted); margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(20,26,23,.6); }
.btn--primary:hover { background: var(--ember); color: #fff; }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--volt { background: var(--volt); color: #141a17; }
.btn--volt:hover { background: #fff; }

mark, .hl { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 .08em; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] > .wrap > *, .js [data-enter] .hero__media, .js [data-enter] .hero__copy > * { animation: rise .9s var(--ease) both; }
  .js [data-enter] > .wrap > *:nth-child(2), .js [data-enter] .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .js [data-enter] > .wrap > *:nth-child(3), .js [data-enter] .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .js [data-enter] > .wrap > *:nth-child(4), .js [data-enter] .hero__copy > *:nth-child(4) { animation-delay: .24s; }
  .js [data-enter] > .wrap > *:nth-child(5), .js [data-enter] .hero__copy > *:nth-child(5) { animation-delay: .32s; }
  .js [data-enter] .hero__media { animation: reveal 1.2s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; clip-path: inset(8% 8% 8% 8% round 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r-lg)); } }

/* ---------- home hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(46px, 7.4vw, 104px); line-height: .96; letter-spacing: -.035em; font-weight: 500; margin: 18px 0 24px; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--ember); }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.meter { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(12, 22, 18, .78); color: #f2f4ef; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.meter__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d3cd; margin: 0 0 6px; }
.meter__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 rgba(245,194,67,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,194,67,.6); } 70% { box-shadow: 0 0 0 10px rgba(245,194,67,0); } 100% { box-shadow: 0 0 0 0 rgba(245,194,67,0); } }
.meter__value { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--mono); letter-spacing: -.03em; color: var(--volt); font-variant-numeric: tabular-nums; }
.meter__note { font-size: 12.5px; color: #b3c0b9; margin: 8px 0 0; line-height: 1.45; }

/* ---------- ticker strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip__track { display: flex; gap: 56px; width: max-content; padding: 18px 0; animation: marquee 48s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { display: inline-flex; gap: 12px; align-items: baseline; white-space: nowrap; font-size: 15px; color: var(--muted); }
.strip__item b { font: 700 18px var(--mono); color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; flex-wrap: wrap; width: auto; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); gap: 12px 40px; }
  .strip__dup { display: none !important; }
  .strip__item { white-space: normal; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15; font-weight: 600; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); width: fit-content; }
.card:hover .card__title { background-size: 100% 2px; }
.card__dek { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.55; }
.card__meta { margin-top: auto; padding-top: 8px; font: 500 13px var(--mono); color: var(--muted); }
.card--big { display: grid; grid-template-columns: 1.25fr 1fr; }
.card--big .card__media { aspect-ratio: auto; min-height: 460px; }
.card--big .card__body { padding: clamp(28px, 4vw, 56px); justify-content: center; gap: 16px; }
.card--big .card__title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.card--big .card__dek { font-size: 18px; }

/* ---------- dark calculator band ---------- */
.band { background: var(--deep); color: var(--deep-ink); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(245,194,67,.16), transparent 62%); z-index: -1; }
.band .kicker { color: var(--volt); }
.band .kicker::before { background: var(--volt); }
.band .section-head p { color: var(--deep-muted); }
.band__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.band__title { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.03em; margin: 14px 0 20px; }
.band__title em { color: var(--volt); font-weight: 400; }
.band p { color: var(--deep-muted); max-width: 46ch; }

/* ---------- calculator ---------- */
.calc { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.band .calc { background: #f9f6ef; color: #141a17; border-color: transparent; --line: #e2dbcd; --muted: #5d655f; --ink: #141a17; --surface: #fff; }
.calc__title { font: 600 22px/1.2 var(--serif); margin: 0 0 4px; }
.calc__sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.calc__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 18%, transparent); }
.field input[type="range"] { padding: 0; min-height: 32px; border: 0; background: none; box-shadow: none; accent-color: var(--ember); }
.field__hint { font-size: 12.5px; color: var(--muted); }
.result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.result div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.result span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.result b { display: block; font: 700 clamp(20px, 2.2vw, 28px)/1.15 var(--mono); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.result .is-key { background: var(--ink); border-color: var(--ink); }
.result .is-key span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.result .is-key b { color: var(--volt); }
.calc__foot { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.bars { margin-top: 18px; display: grid; gap: 8px; }
.bars__row { display: grid; grid-template-columns: 9.5em 1fr 4.5em; gap: 10px; align-items: center; font-size: 13.5px; }
.bars__track { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bars__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--volt), var(--ember)); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.bars__val { font: 600 13px var(--mono); text-align: right; }
.bars__row.is-you .bars__fill { background: var(--ink); }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 24px; border-radius: var(--r-lg); text-decoration: none; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.topic:hover { transform: translateY(-2px); border-color: var(--ink); }
.topic__num { font: 500 13px var(--mono); color: var(--muted); }
.topic h3 { font-size: 26px; line-height: 1.1; }
.topic p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.topic__icon { position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--volt) 35%, transparent); transition: transform .4s var(--ease), background .3s; }
.topic:hover .topic__icon { transform: rotate(-10deg) scale(1.08); background: var(--volt); }
.topic__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- statement ---------- */
.statement { font: 400 clamp(30px, 4.2vw, 60px)/1.12 var(--serif); letter-spacing: -.025em; max-width: 22ch; margin: 0; }
.statement em { color: var(--ember); }
.statement__by { margin-top: 28px; display: flex; gap: 14px; align-items: center; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 32px; }
.principles h3 { font-size: 22px; margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
.principles b { font: 500 13px var(--mono); color: var(--ember-ink); display: block; margin-bottom: 14px; }

/* ---------- article ---------- */
.article-hero { padding: clamp(24px, 4vw, 48px) 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-hero__title { font-size: clamp(40px, 6.2vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 500; max-width: 17ch; margin: 16px 0 22px; }
.article-hero__title em { color: var(--ember); font-weight: 400; }
.article-hero__dek { font: 400 clamp(19px, 1.8vw, 24px)/1.45 var(--serif); color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14.5px; color: var(--muted); padding-bottom: clamp(28px, 4vw, 44px); }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline__dot svg { width: 28px; height: 28px; }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); justify-content: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 80px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc__label { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ember); font-weight: 600; }
.copy-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; transition: transform .15s var(--ease), border-color .2s; }
.copy-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.copy-link:active { transform: scale(.96); }
.copy-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.prose { font-size: 18.5px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-of-type::first-letter { font: 600 4.1em/.82 var(--serif); float: left; margin: .06em .1em 0 0; color: var(--ember); }
.prose h2 { font-size: clamp(30px, 3.2vw, 40px); color: var(--ink); margin-top: 2.2em; margin-bottom: -.2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 23px; color: var(--ink); margin-top: 1.8em; margin-bottom: -.4em; }
.prose a { color: var(--ink); text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--ember-ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ember); }
.prose blockquote, .pull { margin: 2em 0; padding: 22px 0 0; border-top: 1px solid var(--line); font: 400 clamp(24px, 2.4vw, 30px)/1.3 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.prose blockquote::before { content: "\201C"; display: block; font: 600 64px/.6 var(--serif); color: var(--ember); margin-bottom: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose td:not(:first-child) { font-family: var(--mono); font-size: 14.5px; white-space: nowrap; }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--volt) 14%, transparent); }
.inline-photo { margin: 2.2em 0; border-radius: var(--r); overflow: hidden; }
.inline-photo img { width: 100%; max-height: 520px; object-fit: cover; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; position: relative; }
.takeaways::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--volt); }
.takeaways__label { font: 700 12px var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px !important; }
.prose .takeaways__label::first-letter { all: unset; }
.takeaways ul { margin: 0; padding-left: 1.1em; font-size: 16.5px; line-height: 1.6; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2em 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font: 700 clamp(28px, 3vw, 38px)/1 var(--mono); color: var(--ink); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.note { background: color-mix(in srgb, var(--volt) 20%, var(--surface)); border-radius: var(--r); padding: 18px 22px; font-size: 16.5px; }
.note strong:first-child { display: block; margin-bottom: 4px; }
.prose .calc { margin: 2.2em 0; font-size: 16px; line-height: 1.5; }
.faq { margin-top: 2.6em !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 19px/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px var(--sans); color: var(--ember); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 17px; }
.sources ol { font-size: 15px; }
.disclaimer { font-size: 14px !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- ads ---------- */
.ad { margin: 2.4em 0; text-align: center; }
.ad__label { display: block; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad__box { min-height: 280px; border-radius: 12px; background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 20px); }
.ad__box:has(ins) { background: none; }

/* ---------- related ---------- */
.related { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }

/* ---------- page ---------- */
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -.035em; margin: 16px 0 20px; max-width: 16ch; }
.page-hero__dek { font: 400 clamp(19px, 1.8vw, 24px)/1.45 var(--serif); color: var(--ink-2); max-width: 48ch; margin: 0; }
.prose--page { max-width: 760px; padding-bottom: clamp(64px, 8vw, 120px); }
.prose--page > p:first-of-type::first-letter { all: unset; }
.credits li { font-size: 15px; }

/* ---------- guides index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s, transform .15s var(--ease); }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-ink); padding: clamp(56px, 7vw, 96px) 0 32px; }
.site-footer .logo { color: var(--deep-ink); }
.site-footer .logo__mark rect { fill: var(--volt); }
.site-footer .logo__mark path { fill: var(--deep); }
.site-footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__brand p { color: var(--deep-muted); max-width: 38ch; margin: 18px 0 0; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__cols h2 { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--volt); margin-bottom: 14px; }
.site-footer__cols a { display: block; text-decoration: none; color: var(--deep-ink); padding: 8px 0; min-height: 44px; background: linear-gradient(var(--volt), var(--volt)) 0 34px / 0 1.5px no-repeat; transition: background-size .35s var(--ease); width: fit-content; }
.site-footer__cols a:hover { background-size: 100% 1.5px; }
.site-footer__fine { font-size: 13px; color: var(--deep-muted); margin: 28px 0 0; }
.site-footer__fine a { color: var(--deep-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .band__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 11; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
  .card--big { grid-template-columns: 1fr; }
  .card--big .card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .grid--3, .grid--2, .topics, .principles, .stat-row { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 1fr; gap: 0; }
  .result { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__actions .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: start; }
  .prose { font-size: 17.5px; }
  .article-hero__media { aspect-ratio: 4 / 3; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .bars__row { grid-template-columns: 7.5em 1fr 4em; font-size: 12.5px; }
  .topic { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
