/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Almanac (deal 2/3, seed summertime-where-cooler-than-69fb·2cfe3f43·2026-11-22·r0) · job: visit · draw: ae0717
 * hero: Poster, the limit as the head (within 500 km) and the city list as the action · nav: slab · footer: colophon block, the sources and the method · imagery: the product (tables and one chart a page), no photographs · signature: the printed sheet of a city's hottest month, its nearest cooler places in mono, the row it points to in magenta
 * axes: mid/grotesk-sans/chromatic-magenta · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: P, a reference site argues by its figures; the hero states the limit and the sheet proves it with real normals */
/* Hallmark · waive 49b · place names in table rows at 320px · a place name is data and wraps inside its cell; holding it on one line would push the whole table into a sideways scroll on the smallest phones */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(84% 0.012 245); --color-paper-2: oklch(81% 0.012 245); --color-paper-3: oklch(77% 0.012 245);
  --color-ink: oklch(16% 0.020 245); --color-ink-2: oklch(24% 0.018 245); --color-muted: oklch(38% 0.016 245);
  --color-rule: oklch(73% 0.013 240); --color-rule-2: oklch(32% 0.018 240);
  --color-accent: oklch(45% 0.180 350); --color-accent-2: oklch(37% 0.160 350); --color-accent-ink: oklch(97% 0.006 245); --color-focus: oklch(46% 0.190 350);
  --color-sheet: oklch(93.5% 0.008 245);
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Newsreader", ui-serif, Georgia, serif;
  --font-outlier: "IBM Plex Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 2px; --rule-hair: 1px; --rule-bar: 2px; --shadow-card: none;
  --tracking-display: -0.02em; --display-weight: 600;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: muted */
[data-slot] > img { filter: saturate(0.65) contrast(0.97); }

:root { --chart-band: var(--color-paper-3); }

@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-optical-sizing: auto; }
h1, h2, h3 { font-weight: 600; color: var(--color-ink); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }

/* ---- nav: a slab ------------------------------------------------------------------------------------------------- */
.slab { background: var(--color-ink); color: var(--color-paper); }
.slab__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-sheet); text-decoration: none; letter-spacing: var(--tracking-display); }
.slab nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); }
.slab a { color: var(--color-sheet); text-decoration: none; padding-block: var(--space-2xs); }
.slab a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-ink); }
.slab a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent-ink); }
.slab a:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 3px; }

/* ---- the poster hero ------------------------------------------------------------------------------------------------ */
.poster { padding-block: var(--space-3xl) var(--space-2xl); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; }
.poster h1 { font-size: var(--text-display); letter-spacing: -0.035em; line-height: 0.95; max-width: 11ch; }
.poster .lead { margin-top: var(--space-lg); font-size: var(--text-lead); max-width: 34ch; }
.poster__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.poster__fact { border-top: var(--rule-bar) solid var(--color-rule-2); padding-top: var(--space-md); }
.poster__fact .figure { font-variant-numeric: tabular-nums; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-display-s); letter-spacing: -0.04em; color: var(--color-ink); line-height: 1; }
.poster__fact p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); max-width: 45ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-ink); background: transparent; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---- sections ------------------------------------------------------------------------------------------------------- */
.section { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: end; margin-bottom: var(--space-xl); }
.section__head h2 { font-size: var(--text-section); max-width: 18ch; }
.section__head p { max-width: 52ch; }

/* the sheet: the printed page laid on the slate, a 2px ink rule at its head */
.sheet { background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); padding: var(--space-lg) var(--space-lg) var(--space-md); }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-sm); }
.sheet__head h2, .sheet__head h3 { font-size: var(--text-xl); }
.sheet__head .when { font-family: var(--font-outlier); color: var(--color-accent); font-size: var(--text-lg); }
.sheet__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); font-style: italic; }

table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); text-align: left; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-bar) solid var(--color-rule-2); vertical-align: bottom; }
td { border-top: var(--rule-hair) solid var(--color-rule); padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; vertical-align: top; }
th.n, td.n { text-align: right; font-family: var(--font-outlier); font-variant-numeric: tabular-nums; white-space: nowrap; }
th.n { font-family: var(--font-body); }
td.n { color: var(--color-ink); }
tr.point td { color: var(--color-accent); }
tr.point td a { color: var(--color-accent); }
td small { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.table-wrap { overflow-x: auto; }
tbody tr:hover td { background: var(--color-paper-2); }

/* rails: the cities and the months */
.rail { columns: 4 13rem; column-gap: var(--gap-columns); }
.rail a { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); text-decoration: none; break-inside: avoid; }
.rail a:hover { background: var(--color-paper-2); }
.rail a span:first-child { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; }
.rail .num { color: var(--color-muted); }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gap-columns); }
.months a { display: grid; gap: var(--space-3xs); padding: var(--space-sm) 0; border-top: var(--rule-bar) solid var(--color-rule-2); text-decoration: none; }
.months a strong { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; }
.months a span { font-size: var(--text-sm); color: var(--color-muted); }
.months a:hover { background: var(--color-paper-2); }

/* ---- reading pages (a city, a place, a month, about) ---------------------------------------------------------------- */
.page { padding-block: var(--space-2xl) var(--space-3xl); }
.page__head { max-width: 62rem; }
.page__head h1 { font-size: var(--text-display-s); letter-spacing: -0.03em; line-height: 1; max-width: 18ch; }
.page__head .lead { margin-top: var(--space-md); font-size: var(--text-lead); max-width: 52ch; }
.crumbs { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-md); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 var(--gap-columns); margin-top: var(--space-xl); max-width: 62rem; }
.facts div { border-top: var(--rule-bar) solid var(--color-rule-2); padding-top: var(--space-xs); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); }
.facts dd.num { font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.monthnav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-xl); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); }
.monthnav a { padding-block: var(--space-2xs); }
.block { margin-top: var(--space-2xl); max-width: 62rem; }
.block h2 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.block > p { max-width: 62ch; margin-top: var(--space-sm); }
.block .sheet { margin-top: var(--space-md); }
.note { font-size: var(--text-sm); color: var(--color-muted); max-width: 62ch; margin-top: var(--space-sm); }
.prose p, .prose ul { max-width: 64ch; margin-top: var(--space-md); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2xs); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); }

/* the one chart */
.chart { margin-top: var(--space-md); }
.chart > svg { width: 100%; height: auto; overflow: visible; }
.chart__key svg { display: inline-block; width: 22px; height: 10px; vertical-align: middle; margin-right: var(--space-2xs); }
.chart .grid line { stroke: var(--color-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axis text, .chart .label { font-family: var(--font-outlier); font-size: 11px; fill: var(--color-muted); }
.chart .month text { font-family: var(--font-body); font-size: 12px; fill: var(--color-muted); }
.chart .band { fill: var(--chart-band); }
.chart .low { fill: none; stroke: var(--color-muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .series { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--color-accent); stroke: var(--color-sheet); stroke-width: 2; }
.chart .value { font-family: var(--font-outlier); font-size: 12px; font-weight: 500; fill: var(--color-ink); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--color-ink); fill-opacity: 0.05; }
.chart__key { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* ---- the colophon ----------------------------------------------------------------------------------------------------- */
.colophon { background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-rule-2); }
.colophon__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--space-lg) var(--gap-columns); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-ink-2); }
.colophon h2 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-2xs); }
.colophon p { max-width: 46ch; }

@media (max-width: 60rem) {
  .poster, .section__head { grid-template-columns: minmax(0, 1fr); }
  .poster { padding-block: var(--space-2xl) var(--space-xl); }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colophon__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { padding: var(--space-md) var(--space-sm) var(--space-sm); }
  td, th { padding-right: var(--space-xs); }
  .hide-s { display: none; }
}
