/* =====================================================
   Dehumidifier.lk — "The Paper"
   A broadsheet for the web: newsprint, ink, one spot colour.
   Day edition = light, Night edition = dark.
   ===================================================== */

:root {
  --paper: #f3eee3;
  --paper-2: #ebe4d4;
  --paper-3: #e0d7c2;
  --ink: #16130f;
  --ink-2: #3b352d;
  --muted: #655d51;
  --rule: #16130f;
  --rule-soft: #cbc0a8;
  --spot: #0e5a78;
  --spot-ink: #ffffff;
  --spot-wash: #d9e6e6;
  --alert: #a3341f;
  --amber: #8a5d00;
  --ok: #2d6a39;
  --footer-bg: #16130f;
  --footer-ink: #ece5d4;
  --grain-opacity: 0.35;

  --f-plate: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --f-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;

  --gutter: 16px;
  --max: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16150f; --paper-2: #1f1d16; --paper-3: #2a271e; --ink: #ece5d4; --ink-2: #d2c9b5; --muted: #a59b8b;
    --rule: #ece5d4; --rule-soft: #3f3b30; --spot: #72bddb; --spot-ink: #0a1a21; --spot-wash: #1b2a2e;
    --alert: #e5806a; --amber: #e1b458; --ok: #7cc48a; --footer-bg: #0d0c08; --footer-ink: #ece5d4; --grain-opacity: 0.12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16150f; --paper-2: #1f1d16; --paper-3: #2a271e; --ink: #ece5d4; --ink-2: #d2c9b5; --muted: #a59b8b;
  --rule: #ece5d4; --rule-soft: #3f3b30; --spot: #72bddb; --spot-ink: #0a1a21; --spot-wash: #1b2a2e;
  --alert: #e5806a; --amber: #e1b458; --ok: #7cc48a; --footer-bg: #0d0c08; --footer-ink: #ece5d4; --grain-opacity: 0.12;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 18px/1.55 var(--f-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[data-theme="dark"] body { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background-image: none; } }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--spot); }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }
hr.thin { border: 0; border-top: 1px solid var(--rule-soft); margin: 18px 0; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 700 14px var(--f-sans); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.fine { font: 400 14px/1.5 var(--f-sans); color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
@media (min-width: 760px) { :root { --gutter: 28px; } }

.section-label {
  font: 800 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em;
  margin: 0 0 14px; padding-top: 8px; border-top: 3px solid var(--ink); display: inline-block; color: var(--ink);
}
.kicker {
  display: inline-block; font: 800 12px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .14em;
  color: var(--spot); text-decoration: none; margin-bottom: 8px;
}
.kicker:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 11px 18px; font: 800 13px/1.1 var(--f-sans); text-transform: uppercase; letter-spacing: .09em;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); background: var(--spot); border-color: var(--spot); }
.btn--spot { background: var(--spot); color: var(--spot-ink); border-color: var(--spot); }
.btn--spot:hover { color: var(--spot-ink); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { display: flex; width: 100%; }

/* ---------- reading progress ("the air dries as you read") ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .3s; }
.progress.is-on { opacity: 1; }
.progress__bar { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--alert), var(--amber) 45%, var(--spot)); position: relative; }
.progress__bar::after {
  content: attr(data-rh); position: absolute; right: 0; top: 6px; transform: translateX(50%);
  font: 800 10px/1 var(--f-sans); letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 6px; white-space: nowrap;
}

/* ---------- masthead ---------- */
.masthead { padding-top: 10px; }
.masthead__top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 600 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
  padding-bottom: 10px;
}
.masthead__edition { display: none; }
@media (min-width: 760px) { .masthead__edition { display: inline; } }
.edition-toggle {
  font: 800 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 8px 10px; min-height: 32px;
}
.edition-toggle:hover { background: var(--ink); color: var(--paper); }
.edition-toggle__night { display: none; }
:root[data-theme="dark"] .edition-toggle__day { display: none; }
:root[data-theme="dark"] .edition-toggle__night { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .edition-toggle__day { display: none; }
  :root:not([data-theme="light"]) .edition-toggle__night { display: inline; }
}

.masthead__plate {
  display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center;
  border-top: 1px solid var(--rule); padding-top: 14px; padding-bottom: 6px;
}
.nameplate { text-decoration: none; color: var(--ink); display: inline-block; line-height: .9; }
.nameplate:hover { color: var(--ink); }
.nameplate__name { font-family: var(--f-plate); font-weight: 600; font-size: clamp(34px, 10vw, 120px); letter-spacing: 0; white-space: nowrap; }
.nameplate__tld { color: var(--spot); }
.nameplate--small .nameplate__name { font-size: clamp(28px, 9vw, 40px); }
.masthead--compact .nameplate__name { font-size: clamp(32px, 7vw, 64px); }

.ear { display: none; }
@media (min-width: 1000px) {
  .masthead__plate { grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .masthead--compact .masthead__plate { grid-template-columns: 1fr; }
  .ear {
    display: flex; flex-direction: column; gap: 4px; max-width: 220px; padding: 10px 14px; text-decoration: none;
    border: 1px solid var(--rule); font-family: var(--f-sans); color: var(--ink); transition: background .2s;
  }
  .ear:hover { background: var(--paper-2); color: var(--ink); }
  .ear--left { justify-self: start; }
  .ear--right { justify-self: end; text-align: right; }
  .ear__kicker { font: 800 10px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
  .ear__big { font: 900 34px/1 var(--f-head); color: var(--spot); font-variant-numeric: tabular-nums; }
  .ear__big--serif { font: 700 italic 24px/1.05 var(--f-head); color: var(--ink); }
  .ear__small { font-size: 12px; line-height: 1.3; color: var(--ink-2); }
}

.masthead__rule {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); border-bottom: 4px double var(--rule);
  padding-top: 7px; padding-bottom: 7px; margin-top: 6px;
  font: 600 11px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); text-align: center;
}
.masthead__rule > span:not(.masthead__motto) { display: none; }
.masthead__motto { font: italic 500 14px/1.3 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); }
@media (min-width: 760px) {
  .masthead__rule { justify-content: space-between; }
  .masthead__rule > span:not(.masthead__motto) { display: inline; }
}

.nav { border-bottom: 1px solid var(--rule); }
.nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; justify-content: flex-start;
}
.nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .nav ul { justify-content: center; } }
.nav a {
  display: block; white-space: nowrap; padding: 12px 11px; font: 700 13px/1 var(--f-sans); text-transform: uppercase;
  letter-spacing: .08em; text-decoration: none; color: var(--ink);
}
.nav a:hover { color: var(--spot); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--spot); }
.nav .nav__buy { color: var(--spot); }

/* ---------- ticker ---------- */
.ticker {
  display: flex; align-items: stretch; background: var(--footer-bg); color: var(--footer-ink); overflow: hidden;
  font: 600 13px/1 var(--f-sans); letter-spacing: .06em; text-transform: uppercase;
}
.ticker__label {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--spot); color: var(--spot-ink);
  font-weight: 800; letter-spacing: .12em; position: relative; z-index: 1;
}
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.ticker.is-live .ticker__dot { background: #ff5a3c; opacity: 1; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker__track { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__list { display: flex; flex: none; gap: 30px; list-style: none; margin: 0; padding: 10px 15px; animation: tick 60s linear infinite; }
.ticker__list li { white-space: nowrap; }
.ticker__list b { font-weight: 800; }
.ticker__list span { color: #9fd3e8; font-variant-numeric: tabular-nums; margin-left: 4px; }
.ticker:hover .ticker__list { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- main ---------- */
.main { padding: 26px 0 60px; }
.crumbs { font: 600 12px/1.4 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }

/* column rules */
@media (min-width: 1100px) {
  .col-rule-l { border-left: 1px solid var(--rule-soft); padding-left: 24px; }
  .col-rule-r { border-right: 1px solid var(--rule-soft); padding-right: 24px; }
}

/* ---------- art ---------- */
.art { display: block; width: 100%; height: auto; color: var(--ink); background: var(--paper-2); aspect-ratio: 800 / 480; }
.art--photo { object-fit: cover; }
.spot-fill { fill: var(--spot); }
.spot-stroke { stroke: var(--spot); fill: none; }
.story__art, .lead__art { display: block; margin-bottom: 14px; border: 1px solid var(--rule); overflow: hidden; }
.story__art .art, .lead__art .art { transition: transform .5s ease; }
.story__art:hover .art, .lead__art:hover .art { transform: scale(1.03); }

/* ---------- front page ---------- */
.front-top { display: grid; gap: 28px; grid-template-columns: 1fr; }
.front-top__briefs { order: 2; }
.lead { order: 1; }
.front-top__rail { order: 3; }
@media (min-width: 760px) {
  .front-top { grid-template-columns: 1fr 1fr; }
  .lead { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .front-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr); gap: 24px; }
  .front-top__briefs { order: 1; }
  .lead { order: 2; grid-column: auto; }
  .front-top__rail { order: 3; }
}

.lead__headline { font: 900 clamp(34px, 4.6vw, 62px)/1.02 var(--f-head); letter-spacing: -.012em; margin: 0 0 14px; text-wrap: balance; }
.lead__headline a { text-decoration: none; }
.lead__dek { font: 400 italic 21px/1.4 var(--f-body); color: var(--ink-2); margin: 0 0 14px; text-wrap: pretty; }
.lead__text { font-size: 17px; line-height: 1.55; }
.lead__text p { margin: 0 0 12px; }
@media (min-width: 900px) { .columns-2 { columns: 2; column-gap: 28px; column-rule: 1px solid var(--rule-soft); } }
.dropcap::first-letter {
  float: left; font: 900 4.1em/.78 var(--f-head); margin: 6px 10px 0 0; color: var(--spot);
}
.byline {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; padding: 8px 0;
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  font: 600 12px/1.4 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.byline span + span::before { content: "·"; margin-right: 14px; }
.jump { display: inline-block; margin-top: 4px; font: 800 13px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--spot); text-decoration: none; }
.jump:hover { text-decoration: underline; }

.story { margin: 0; }
.story__headline { font: 700 24px/1.15 var(--f-head); margin: 0 0 8px; text-wrap: balance; }
.story__headline a { text-decoration: none; }
.story__headline a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.story__dek { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.story--brief .story__headline { font-size: 21px; }
.story--brief .story__dek { font-size: 16px; }
.story--small .story__headline { font-size: 21px; }

/* humidity box */
.hbox { background: var(--paper-2); border: 1px solid var(--rule); padding: 18px; }
.hbox .section-label { margin-bottom: 8px; }
.hbox__title { font: 700 22px/1.15 var(--f-head); margin: 0 0 10px; }
.hbox__reading { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.hbox__reading span { font: 900 72px/1 var(--f-head); color: var(--spot); font-variant-numeric: tabular-nums; }
.hbox__reading small { font: 600 12px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); max-width: 90px; }
.gauge { position: relative; height: 14px; margin: 14px 0 4px; border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--rule-soft) 9px 10px); }
.gauge__band { position: absolute; top: 0; bottom: 0; left: 45%; width: 10%; background: var(--ok); opacity: .85; }
.gauge__needle { position: absolute; top: -7px; bottom: -7px; width: 4px; left: calc(var(--v, 79) * 1% - 2px); background: var(--alert); transition: left .8s cubic-bezier(.2,.8,.2,1); }
.gauge__scale { display: flex; justify-content: space-between; margin: 0 0 12px; font: 600 11px/1 var(--f-sans); color: var(--muted); letter-spacing: .06em; }
.hbox__verdict { font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
.hbox__src { font: 500 12px/1.4 var(--f-sans); color: var(--muted); margin: 0 0 14px; }

/* explainer band */
.explainer {
  display: grid; gap: 20px; margin: 40px 0; padding: 26px 0; border-top: 4px double var(--rule); border-bottom: 1px solid var(--rule);
}
.explainer__vol { font: italic 500 18px/1.2 var(--f-body); margin: 0; color: var(--muted); }
.explainer__title { font: 900 clamp(28px, 3.4vw, 42px)/1.08 var(--f-head); margin: 0 0 14px; text-wrap: balance; }
.explainer__answer { font-size: 21px; line-height: 1.5; margin: 0 0 12px; }
.explainer__entity { font-size: 16px; color: var(--ink-2); margin: 0; }
.explainer__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.explainer__facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-soft); }
.explainer__facts > div:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
.explainer__facts > div:nth-child(even) { padding-left: 14px; }
.explainer__facts dt { font: 800 11px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.explainer__facts dd { margin: 4px 0; font: 900 38px/1 var(--f-head); color: var(--spot); font-variant-numeric: tabular-nums; }
.explainer__facts p { margin: 0; font: 400 14px/1.35 var(--f-sans); color: var(--ink-2); }
@media (min-width: 1100px) {
  .explainer { grid-template-columns: 160px minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
}

.front-second { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .front-second { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .front-second > .story { padding: 0 22px; border-left: 1px solid var(--rule-soft); }
  .front-second > .story:first-child { padding-left: 0; border-left: 0; }
  .front-second > .story:last-child { padding-right: 0; } }

/* classifieds */
.classifieds { margin: 48px 0; border-top: 4px double var(--rule); padding-top: 22px; }
.classifieds__head { display: grid; gap: 6px; margin-bottom: 18px; }
.classifieds__title { font: 900 clamp(28px, 3.6vw, 44px)/1.05 var(--f-head); margin: 0; }
.classifieds__intro { max-width: 820px; margin: 0; color: var(--ink-2); }
.classifieds__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 620px) { .classifieds__grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (min-width: 1100px) { .classifieds__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; } }
.classified { border: 1px solid var(--rule); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; font-family: var(--f-sans); font-size: 15px; line-height: 1.5; }
.classified--boxed { box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule); }
.classified__head { margin: 0; font: 800 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); border-bottom: 1px dashed var(--rule-soft); padding-bottom: 8px; }
.classified img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .classified img { mix-blend-mode: normal; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .classified img { mix-blend-mode: normal; background: #fff; } }
.classified__title { margin: 0; font: 900 24px/1.05 var(--f-head); }
.classified__fits, .classified__pitch { margin: 0; }
.classified__pitch { font-family: var(--f-body); font-style: italic; font-size: 16px; }
.classified__link { margin-top: auto; font-weight: 800; color: var(--spot); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.classified__link:hover { text-decoration: underline; }
.classified--display { grid-column: 1 / -1; background: var(--ink); color: var(--paper); display: grid; gap: 10px 32px; align-items: center; padding: 26px 28px; }
@media (min-width: 900px) { .classified--display { grid-template-columns: auto 1fr auto; } .classified--display .classified__head { grid-column: 1 / -1; } }
.classified--display .classified__head { color: var(--paper); opacity: .7; border-color: currentColor; }
.classified__big { font: 600 42px/1 var(--f-plate); margin: 0; }
.classified__phone { font: 900 26px/1 var(--f-head); margin: 0; }
.classified__phone a { text-decoration: none; }
.classified__group { display: flex; flex-direction: column; gap: 10px; }
.classified__group p { margin: 0; }
.classified--display .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.classified--display .classified__link { color: var(--paper); opacity: .85; }

/* letters + more */
.front-bottom { display: grid; gap: 34px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 1100px) { .front-bottom { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 24px; } }
.letters__title { font: 900 clamp(28px, 3.2vw, 40px)/1.05 var(--f-head); margin: 0 0 18px; }
.letters__grid { display: grid; gap: 0 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .letters__grid { grid-template-columns: 1fr 1fr; } }
.letter { padding: 14px 0 16px; border-top: 1px solid var(--rule-soft); break-inside: avoid; }
.letter__q { font: 700 italic 21px/1.2 var(--f-head); margin: 0 0 4px; }
.letter__from { margin: 0 0 8px; font: 600 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.letter__a { margin: 0; font-size: 16.5px; line-height: 1.5; }
.letter__ed { font: 800 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--spot); }
.more__list { list-style: none; counter-reset: more; margin: 0 0 18px; padding: 0; }
.more__list li { counter-increment: more; display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.more__list li::before { content: counter(more); grid-row: span 2; font: 900 32px/1 var(--f-head); color: var(--rule-soft); }
.more__list .kicker { margin: 0 0 2px; }
.more__link { font: 700 18px/1.2 var(--f-head); text-decoration: none; grid-column: 2; }
.more__link:hover { text-decoration: underline; }
.notfound .more__list li { grid-template-columns: 38px 1fr; }

/* ---------- where-to-buy box ---------- */
.buybox { border: 2px solid var(--ink); padding: 18px 18px 16px; margin: 32px 0; background: var(--paper); position: relative; }
.buybox::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule-soft); pointer-events: none; }
.buybox__kicker { margin: 0 0 6px; font: 800 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em; color: var(--spot); }
.buybox__title { margin: 0 0 6px; font: 900 24px/1.15 var(--f-head); }
.buybox__text { margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.buybox__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; position: relative; }
.article__side .buybox__ctas .btn { width: 100%; }

/* ---------- article ---------- */
.article__head { max-width: 960px; margin: 0 auto; text-align: center; }
.article__title { font: 900 clamp(36px, 6vw, 76px)/1.0 var(--f-head); letter-spacing: -.015em; margin: 4px 0 16px; text-wrap: balance; }
.article__dek { font: 400 italic clamp(19px, 2.2vw, 25px)/1.4 var(--f-body); color: var(--ink-2); margin: 0 auto 22px; max-width: 760px; text-wrap: pretty; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; border-top: 1px solid var(--rule); border-bottom: 4px double var(--rule); padding: 4px 0; }
.article__meta .byline { border: 0; margin: 0; justify-content: center; }
.share { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-sans); }
.share a, .share button {
  font: 700 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; padding: 8px 10px; min-height: 32px;
  border: 1px solid var(--rule-soft); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.article__art { max-width: 1120px; margin: 26px auto 0; }
.article__art .art { border: 1px solid var(--rule); }
.article__art figcaption { font: 500 12px/1.4 var(--f-sans); color: var(--muted); margin-top: 8px; text-align: right; letter-spacing: .04em; }
.article__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: 34px auto 0; }
@media (min-width: 1000px) { .article__grid { grid-template-columns: minmax(0, 700px) 300px; justify-content: space-between; } }
.article__side { display: grid; gap: 22px; align-content: start; }
@media (min-width: 1000px) { .article__side { position: sticky; top: 20px; } }
.article__updated { font: 500 14px/1.5 var(--f-sans); color: var(--muted); border-top: 1px solid var(--rule-soft); padding-top: 14px; }

.toc ol { margin: 0; padding: 0 0 0 20px; font: 600 14px/1.4 var(--f-sans); }
.toc li { margin: 0 0 8px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc a.is-active { color: var(--spot); }
.side-rh { border: 1px solid var(--rule); padding: 14px 16px; background: var(--paper-2); }
.side-rh .section-label { margin-bottom: 4px; }
.side-rh__num { font: 900 54px/1 var(--f-head); color: var(--spot); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.side-rh__note { margin: 0; font: 500 14px/1.4 var(--f-sans); }
.article__side .buybox { margin: 0; }
.article__side .buybox__title { font-size: 20px; }

/* prose */
.prose { font-size: 19px; line-height: 1.62; }
@media (min-width: 760px) { .prose { font-size: 20px; } }
.prose > p, .prose li { text-wrap: pretty; }
.prose p { margin: 0 0 1.05em; }
.prose .lede::first-letter { float: left; font: 900 4.3em/.78 var(--f-head); margin: 8px 12px 0 0; color: var(--spot); }
.prose h2 { font: 800 clamp(26px, 3vw, 32px)/1.15 var(--f-head); margin: 1.8em 0 .6em; padding-top: .55em; border-top: 1px solid var(--rule); text-wrap: balance; }
.prose h3 { font: 700 23px/1.2 var(--f-head); margin: 1.5em 0 .4em; }
.prose h4 { font: 800 15px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0 0 .45em; }
.prose li::marker { color: var(--spot); font-weight: 700; }
.prose a { color: var(--spot); }
.prose a.out::after { content: "↗"; font-size: .75em; margin-left: 2px; }
.prose strong { font-weight: 600; }
.prose code { font-size: .85em; background: var(--paper-2); padding: 1px 5px; }
.prose hr.dinkus { border: 0; text-align: center; margin: 2em 0; }
.prose hr.dinkus::before { content: "✦ ✦ ✦"; letter-spacing: .6em; color: var(--muted); font-size: 14px; }
.prose .figure { margin: 1.6em 0; }
.prose .figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
.prose figcaption { font: 500 13px/1.4 var(--f-sans); color: var(--muted); margin-top: 6px; }

.pull { margin: 1.6em 0; padding: 18px 0; border-top: 4px solid var(--spot); border-bottom: 1px solid var(--spot); text-align: center; }
.pull p { font: 700 italic clamp(24px, 3vw, 31px)/1.25 var(--f-head); margin: 0; color: var(--ink); text-wrap: balance; }
.pull cite { display: block; margin-top: 10px; font: 700 12px/1.2 var(--f-sans); font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@media (min-width: 1200px) { .pull { margin-left: -60px; margin-right: -60px; } }

.box { background: var(--paper-2); border-top: 4px solid var(--ink); padding: 16px 20px 6px; margin: 1.6em 0; font-size: 17px; line-height: 1.5; }
.box__title { font: 800 13px/1 var(--f-sans) !important; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px !important; }
.box--tip { border-top-color: var(--spot); background: var(--spot-wash); }
.box--tip .box__title { color: var(--spot); }
.box--warning { border-top-color: var(--alert); }
.box--warning .box__title { color: var(--alert); }
.box--note { border-top-color: var(--muted); }

.short { border: 1px solid var(--rule); padding: 16px 20px 6px; margin: 0 0 1.6em; }
.short__title { font: 800 12px/1 var(--f-sans) !important; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 10px !important; color: var(--spot); }
.short ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.short li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.short li::before { content: "✓"; position: absolute; left: 0; top: 0; font: 900 16px/1.4 var(--f-sans); color: var(--spot); }

.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font: 400 15px/1.4 var(--f-sans); font-variant-numeric: tabular-nums; }
thead th { text-align: left; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px solid var(--ink); padding: 8px 10px 8px 0; }
tbody th, tbody td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tbody th { font-weight: 700; }

.faq { margin-top: 2.2em; }
.faq__item { border-top: 1px solid var(--rule-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--rule-soft); }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; font: 700 20px/1.3 var(--f-head); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 28px/1 var(--f-sans); color: var(--spot); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 16px; font-size: 18px; }

.related { margin-top: 56px; padding-top: 22px; border-top: 4px double var(--rule); }
.related__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- section fronts & archive ---------- */
.section-head { border-bottom: 4px double var(--rule); padding-bottom: 18px; margin-bottom: 28px; }
.section-head__title { font: 900 clamp(40px, 7vw, 88px)/1 var(--f-head); letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.section-head__blurb { font: italic 400 clamp(18px, 2vw, 22px)/1.45 var(--f-body); color: var(--ink-2); max-width: 820px; margin: 0; }
.section-lead { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .section-lead { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); } }

.search { margin: 0 0 30px; display: grid; gap: 14px; }
.search input {
  width: 100%; font: 400 italic clamp(22px, 3vw, 32px)/1.2 var(--f-body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 10px 0; border-radius: 0;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-bottom-color: var(--spot); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; padding: 9px 12px; min-height: 36px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.search__count { margin: 0; font: 600 13px/1 var(--f-sans); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.archive-month__h { font: 800 13px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em; margin: 28px 0 0; padding: 10px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule-soft); }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.archive-item time { font: 900 18px/1.1 var(--f-head); color: var(--muted); }
.archive-item h3 { margin: 0 0 4px; font: 700 22px/1.2 var(--f-head); }
.archive-item h3 a { text-decoration: none; }
.archive-item h3 a:hover { text-decoration: underline; }
.archive-item p { margin: 0; font-size: 16px; color: var(--ink-2); }
.archive-item .kicker { margin-bottom: 4px; }
.search__empty { font: italic 400 20px/1.4 var(--f-body); color: var(--muted); }

/* ---------- humidity index ---------- */
.weather__h { font: 800 26px/1.2 var(--f-head); margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.weather__h small { font: 600 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.weather__table td[data-live-rh] { font: 900 22px/1 var(--f-head); color: var(--spot); }
.risk { display: inline-block; font: 800 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; padding: 5px 8px; border: 1.5px solid currentColor; }
.risk--high { color: var(--alert); }
.risk--med { color: var(--amber); }
.risk--ok { color: var(--ok); }
.tools { display: grid; gap: 28px; grid-template-columns: 1fr; margin: 40px 0; }
@media (min-width: 1000px) { .tools { grid-template-columns: 1fr 1fr; } }
.tool { border: 2px solid var(--ink); padding: 22px; background: var(--paper); scroll-margin-top: 20px; }
.tool__title { font: 900 clamp(24px, 2.6vw, 32px)/1.1 var(--f-head); margin: 0 0 8px; }
.tool > p { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); }
.tool__form { display: grid; gap: 18px; margin-bottom: 18px; }
.tool__form label { display: grid; gap: 6px; font: 700 13px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; }
.tool__form output { font: 900 20px/1 var(--f-head); color: var(--spot); text-transform: none; }
.tool__form small { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.tool__form input[type="range"] { width: 100%; accent-color: var(--spot); height: 28px; }
.tool__radios { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tool__radios legend { font: 700 13px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tool__radios label { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--f-sans); text-transform: none; letter-spacing: 0; cursor: pointer; }
.tool__radios input { accent-color: var(--spot); width: 18px; height: 18px; }
.tool__result { border-top: 4px double var(--rule); padding-top: 14px; }
.tool__big { margin: 0 0 10px; font: 900 52px/1 var(--f-head); color: var(--spot); }
.tool__big small { font: 700 13px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.verdicts { list-style: none; padding: 0; margin: 0 0 12px; font: 500 15px/1.4 var(--f-sans); }
.verdicts li { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.verdicts .bad { color: var(--alert); font-weight: 700; }
.verdicts .warn { color: var(--amber); font-weight: 700; }
.verdicts .good { color: var(--ok); font-weight: 700; }
.tool__advice { margin: 0; font-size: 17px; }
.explain-pair { display: grid; gap: 28px; grid-template-columns: 1fr; margin: 30px 0; }
@media (min-width: 900px) { .explain-pair { grid-template-columns: 1fr 1fr; } }
.explain-pair h2 { font: 800 25px/1.2 var(--f-head); margin: 0 0 8px; padding-top: 10px; border-top: 3px solid var(--ink); }
.explain-pair p { margin: 0; }

/* ---------- where to buy ---------- */
.buy-hero { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .buy-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.buy-hero__card { border: 2px solid var(--ink); padding: 22px; background: var(--paper-2); }
.buy-hero__name { font: 900 clamp(26px, 3vw, 36px)/1.1 var(--f-head); margin: 0 0 14px; }
.buy-hero__facts { margin: 0 0 18px; display: grid; gap: 0; }
.buy-hero__facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
@media (min-width: 560px) { .buy-hero__facts > div { grid-template-columns: 160px 1fr; gap: 14px; } }
.buy-hero__facts dt { font: 800 11px/1.5 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.buy-hero__facts dd { margin: 0; font-size: 17px; }
.buy-hero__why h2 { font: 800 26px/1.2 var(--f-head); margin: 0 0 10px; padding-top: 10px; border-top: 3px solid var(--ink); }
.sizing h2 { font: 900 clamp(26px, 3vw, 36px)/1.1 var(--f-head); margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: 44px 0 20px; margin-top: 20px; }
.footer a { color: var(--footer-ink); }
.footer a:hover { color: #9fd3e8; }
.footer__grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; } }
.footer .nameplate { color: var(--footer-ink); }
.footer .nameplate__tld { color: #9fd3e8; }
.footer p { font-size: 15.5px; line-height: 1.5; margin: 10px 0; opacity: .92; }
.footer__disclosure { font: 400 13.5px/1.5 var(--f-sans) !important; opacity: .8 !important; }
.footer__h { font: 800 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .16em; margin: 6px 0 12px; padding-top: 8px; border-top: 3px solid var(--footer-ink); display: inline-block; }
.footer ul { list-style: none; margin: 0; padding: 0; font: 500 14.5px/1.4 var(--f-sans); }
.footer li { margin-bottom: 9px; }
.footer__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .btn--ink { background: var(--footer-ink); color: var(--footer-bg); border-color: var(--footer-ink); }
.footer .btn--ghost { color: var(--footer-ink); border-color: var(--footer-ink); }
.footer .btn--ghost:hover { background: var(--footer-ink); color: var(--footer-bg); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(236, 229, 212, .25); font: 500 12.5px/1.5 var(--f-sans); opacity: .8; }

/* ---------- entrance motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .story, .js .classified, .js .letter { animation: rise .6s both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__list { animation: none; }
  .ticker__list[aria-hidden] { display: none; }
  .ticker__track { overflow-x: auto; }
  * { transition: none !important; }
}

/* ---------- print: it is a newspaper, after all ---------- */
@media print {
  :root { --paper: #fff; --paper-2: #fff; --ink: #000; --spot: #000; }
  body { background: #fff; font-size: 11pt; }
  .nav, .ticker, .edition-toggle, .share, .buybox, .article__side, .related, .footer__grid, .progress, .skip, .btn { display: none !important; }
  .article__grid { display: block; }
  a { text-decoration: none; }
  .prose a.out::after { content: " (" attr(href) ")"; font-size: 8pt; }
}

/* ---------- live temperature + source note ---------- */
.ear__temp { font: 700 18px/1 var(--f-sans); color: var(--ink-2); vertical-align: middle; }
.ticker__list i { font-style: normal; font-weight: 500; opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.hbox__temp { margin: 6px 0 0; font: 700 15px/1.3 var(--f-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.side-rh__t { font: 700 20px/1 var(--f-sans); color: var(--ink-2); }
.source { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--spot); background: var(--paper-2); scroll-margin-top: 20px; }
.source__h { margin: 0 0 6px; font: 800 18px/1.25 var(--f-head); }
.source p { margin: 0; font: 400 15px/1.55 var(--f-sans); color: var(--ink-2); }

/* nav: centre when it fits, scroll from the left when it doesn't (never clip "Front Page") */
.nav ul { justify-content: flex-start !important; }
.nav li:first-child { margin-left: auto; }
.nav li:last-child { margin-right: auto; }
@media (min-width: 1100px) { .nav a { padding: 12px 9px; font-size: 12.5px; letter-spacing: .07em; } }
