/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Ultraviolet (deal 1/3, seed running-walking-pace-calculator-2daa·773e3c9a·2026-12-05·r3) · job: try · draw: manual
 * hero: the head over the three inputs, the answer card beside them · nav: edge-aligned, the wordmark and three links · footer: a paper-2 band, the note over the credit lines · imagery: none, the answer set as a card and the splits as a grid · signature: the worked-out figure in light Outfit at display size, in the violet · ultraviolet: lavender, sentence case kept
 * axes: light/geometric-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and one table; the answer card, the violet figure and the splits grid carry the look */
/* Hallmark · answered type · every page · the owner's copy rule is sentence case, so heads, nav, chips and the pills keep their first capital; Outfit 500 and the light figures carry the theme instead of the lowercase */
/* Hallmark · dismissed 46a · the calculator and the pace chart · 42.195, 21.0975 and 1.609344 come out of sentences quoted word for word from Wikipedia and checked against the saved pages; the other figures are worked out by the page's code */
/* Hallmark · dismissed 23 · the calculator · the worked-out figure is Ultraviolet's one figure in the violet, set light; every other figure on the page is ink */
/* Hallmark · answered F25 · the pace chart · on a phone each pace becomes its own card with the four distances labelled, so nothing hides off the side; wider screens keep the table */
/* Hallmark · waive 44c · every page · the answer card stands beside the inputs it answers; on the other pages the head stands over its table or list */
/* Hallmark · waive 77 · every page · a calculator, a table and a page of quotes, not a landing strip */
: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(95% 0.02 300); --color-paper-2: oklch(92% 0.03 300); --color-paper-3: oklch(89% 0.035 300);
  --color-ink: oklch(18% 0.02 300); --color-ink-2: oklch(28% 0.03 300); --color-muted: oklch(46% 0.05 300);
  --color-rule: oklch(84% 0.04 300); --color-rule-2: oklch(70% 0.08 295);
  --color-accent: oklch(50% 0.25 290); --color-accent-deep: oklch(43% 0.22 290); --color-accent-soft: oklch(86% 0.08 295);
  --color-accent-ink: oklch(97% 0.01 300); --color-focus: oklch(50% 0.25 290);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif; --font-body: "Onest", ui-sans-serif, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 16px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(18% 0.02 300 / 0.06);
  --tracking-display: -0.03em; --display-weight: 500;
}

*, *::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) 25%, transparent); }
: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: tint accent con=10 */
[data-slot]:has(> img) { isolation: isolate; background: color-mix(in oklab, var(--color-accent), white 82%); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: color-mix(in oklab, var(--color-accent), black 55%); mix-blend-mode: lighten; pointer-events: none; }

@font-face { font-family: "Outfit"; src: url("/fonts/outfit-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-accent); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 500; text-decoration: none; color: var(--color-ink-2); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.hero { padding-block: var(--space-2xl) var(--space-2xl); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }

/* the calculator: three inputs and the card that answers */
.calc { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.calc__in { display: grid; gap: var(--space-md); align-content: start; }
.field { display: grid; gap: var(--space-2xs); }
.field label, .solve legend { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.field input { font: inherit; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); font-variant-numeric: tabular-nums; color: var(--color-ink); height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-muted); width: min(100%, 15rem); }
.field input:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.field input:disabled, .chip:disabled { opacity: 0.5; cursor: not-allowed; }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.field[data-worked] input { background: var(--color-paper-2); color: var(--color-accent-deep); box-shadow: inset 0 0 0 2px var(--color-accent); }
.field[data-worked] label { color: var(--color-accent-deep); }
.quick { margin: var(--space-2xs) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { min-height: 44px; padding: 0 var(--space-md); font: inherit; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); background: transparent; border: 0; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.chip:hover { background: var(--color-paper-2); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.solve { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.solve legend { padding: 0; margin-bottom: var(--space-2xs); float: left; width: 100%; }
.solve label { position: relative; display: inline-flex; }
.solve input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.solve span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); transition: background-color var(--dur-micro) var(--ease-out); }
.solve input:hover + span { background: var(--color-paper-2); }
.solve input:checked + span { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.solve input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.how { margin: 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 40ch; }

.answer { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); display: grid; gap: var(--space-xs); align-content: start; }
.answer__k { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.answer__v { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 7.5vw, 6.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.answer__u { font-size: var(--text-xl); font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.answer__s { margin: 0; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.answer__list { margin: var(--space-sm) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.answer__list div { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.answer__list dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.answer__list dd { margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.answer__err { margin: 0; display: none; color: var(--color-ink); font-weight: 400; }
.answer[data-state="error"] .answer__v, .answer[data-state="error"] .answer__s, .answer[data-state="error"] .answer__list { display: none; }
.answer[data-state="error"] .answer__err { display: block; }
.ref { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 400; color: var(--color-muted); }

/* the splits: a grid read down the columns */
.sec { padding-block: var(--space-2xl) var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); line-height: 1.02; }
.sec__lead { margin-top: var(--space-sm); max-width: 60ch; }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }
.splits { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 var(--gap-columns); }
.splits li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-variant-numeric: tabular-nums; }
.splits__k { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.splits__t { font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.splits li:last-child .splits__t { color: var(--color-accent-deep); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }

/* the pace chart */
.chart__note { max-width: 64ch; color: var(--color-ink-2); }
.chart__wrap { margin-top: var(--space-lg); overflow-x: auto; border-radius: var(--radius-card); background: var(--color-paper-2); padding: var(--space-xs) var(--space-lg); max-width: 60rem; }
.chart__wrap:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.chart { width: 100%; min-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart th, .chart td { padding: var(--space-sm) var(--space-sm); text-align: right; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.chart thead th { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.chart tbody th { font-family: var(--font-display); font-weight: 500; color: var(--color-accent-deep); text-align: left; }
.chart thead th:first-child { text-align: left; }
.chart td { font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.chart tbody tr:last-child th, .chart tbody tr:last-child td { border-bottom: 0; }

.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 68ch; }
.register__claim { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.register blockquote p { margin: 0; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 800px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-block: var(--space-xl); }
  .answer { padding: var(--space-lg); }
  /* the pace chart: one card a pace, all four distances labelled (the table hid the half and the marathon off the side) */
  .chart__wrap { overflow-x: visible; background: none; padding: 0; border-radius: 0; }
  .chart { display: block; min-width: 0; }
  .chart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chart tbody { display: grid; gap: var(--space-xs); }
  .chart tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-card); }
  .chart tbody th { grid-column: 1 / -1; padding: 0; border: 0; text-align: left; }
  .chart tbody th::after { content: " a km"; font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
  .chart td { display: grid; padding: 0; border: 0; text-align: left; }
  .chart td::before { content: attr(data-label); font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
  .splits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* on a phone: time and pace side by side, and the answer straight under the three boxes */
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md) var(--space-sm); }
  .calc__in { display: contents; }
  .calc .field:first-child, .solve, .how, .answer { grid-column: 1 / -1; }
  .field input { width: 100%; padding: 0 var(--space-md); }
  .answer { order: 1; }
  .solve { order: 2; }
  .how { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .chip, .solve span { transition: none; }
}
