/* Hallmark · shape: Workbench · genre: editorial · theme: Studio (deal 1/3, seed musical-note-frequencies-pick-deeb·67b5dfa0·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the two pickers and the crop-marked card that answers · nav: edge-aligned, the wordmark and three links · footer: a ruled note over the credit lines · imagery: none, a ruler of the harmonics against the semitones drawn in orange construction lines · signature: the frequency at display size on a crop-marked proof card, an orange guide at its baseline · studio: clean proof paper, no dot grid and no grain (owner rule: nothing behind text); both faces from @fontsource
 * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, a tool, a table of keys and its sources; the card and the ruler carry the look */
/* Hallmark · dismissed 46a · the note picker and the 88 keys · 440 Hz, ISO 16, 12 semitones, the 49th of 88 keys, 1.059463 and 5 cents in a twentieth of a semitone are inside quoted sentences, checked word for word against the saved pages; every other figure is worked out from them */
/* Hallmark · waive 44c · every page · the card stands beside the pickers it answers; on the other pages the head stands over its list */
/* Hallmark · waive 77 · every page · a tool, its table of keys and its sources, 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(97.2% 0.006 215); --color-paper-2: oklch(94% 0.009 215); --color-paper-3: oklch(90.5% 0.011 215); --color-paper-hi: oklch(99% 0.004 215);
  --color-ink: oklch(16% 0.032 250); --color-ink-2: oklch(34% 0.022 245); --color-muted: oklch(49% 0.018 240);
  --color-rule: oklch(84% 0.010 225);
  --color-accent: oklch(68% 0.172 50); --color-accent-ink: oklch(16% 0.032 250); --color-focus: oklch(52% 0.15 48);
  --color-dot: color-mix(in oklab, var(--color-ink) 20%, transparent); --color-mark: color-mix(in oklab, var(--color-ink) 72%, transparent);
  --font-display: "Hedvig Letters Serif", ui-serif, Georgia, serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Sofia Sans Extra Condensed", "Arial Narrow", ui-sans-serif, sans-serif;
  --radius-card: 3px; --radius-pill: 3px; --rule-hair: 1px;
  --shadow-card: none;
  --shadow-sheet: 1px 2px 0 color-mix(in oklab, var(--color-ink) 7%, transparent), 10px 18px 36px -14px color-mix(in oklab, var(--color-ink) 32%, transparent);
  --tracking-display: -0.022em; --display-weight: 400;
}

*, *::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; } }

@font-face { font-family: "Hedvig Letters Serif"; src: url("/fonts/hedvig-letters-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root { --color-tint: var(--color-paper-3); --crop-l: 10px; --crop-o: 16px; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { color: var(--color-ink); font-optical-sizing: auto; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-muted); }
a:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

.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-size: var(--text-xl); letter-spacing: -0.01em; color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; color: var(--color-ink-2); }
.bar__nav a:hover { color: var(--color-ink); }
.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.35em; }

/* the tool */
.hero { padding-block: var(--space-2xl); }
.hero + .sec { padding-top: var(--space-2xl); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }
.pick { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.pick__in { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-content: start; }
.field { display: grid; gap: var(--space-2xs); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.field select { font: inherit; font-size: var(--text-xl); color: var(--color-ink); height: 56px; min-width: 8.5rem; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: 3px; background: var(--color-paper-hi); cursor: pointer; }
.field select[name="note"] { min-width: 11rem; }
.field select:hover { border-color: var(--color-ink); }
.field select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.pick__from { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-muted); max-width: 40ch; }

/* the card: a proof with crop marks, the frequency on an orange baseline guide */
.crop { position: relative; }
.crop::before { content: ""; position: absolute; inset: calc(-1 * var(--crop-o)); pointer-events: none;
  background:
    linear-gradient(var(--color-mark), var(--color-mark)) 0 var(--crop-o) / var(--crop-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--crop-o) 0 / 1px var(--crop-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% var(--crop-o) / var(--crop-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--crop-o)) 0 / 1px var(--crop-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 0 calc(100% - var(--crop-o)) / var(--crop-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--crop-o) 100% / 1px var(--crop-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% calc(100% - var(--crop-o)) / var(--crop-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--crop-o)) 100% / 1px var(--crop-l) no-repeat; }
.card { padding: var(--space-xl); border-radius: 3px; background: var(--color-paper-hi); box-shadow: var(--shadow-sheet); display: grid; justify-items: start; gap: var(--space-2xs); }
.card__name { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; color: var(--color-ink-2); }
.card__hz { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: 1.02; letter-spacing: var(--tracking-display); color: var(--color-ink); font-variant-numeric: tabular-nums; border-bottom: var(--rule-hair) solid var(--color-accent); padding-bottom: var(--space-2xs); }
.card__unit { font-size: 0.42em; color: var(--color-ink-2); letter-spacing: 0; }
.card__key { margin-top: var(--space-xs); color: var(--color-ink-2); }
.card__play { margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.card__status { min-height: 1.6em; font-size: var(--text-sm); color: var(--color-muted); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); font: inherit; font-weight: 500; color: var(--color-ink); background: transparent; border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn::after { content: ""; position: absolute; inset: 2px; border: var(--rule-hair) solid var(--color-mark); border-radius: 1px; pointer-events: none; opacity: 0.35; }
.btn:hover { background: var(--color-paper-2); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .hbtn:disabled, .field select:disabled { opacity: 0.5; cursor: not-allowed; }

.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; }

.sec { padding-block: 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 h2 + * { margin-top: var(--space-md); }
.sec__lede { max-width: 60ch; }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }

/* the ruler: the harmonics against four octaves of equal semitones */
.ruler { margin: var(--space-xl) 0 var(--space-xl); max-width: 1100px; container-type: inline-size; }
.ruler__in { overflow-x: auto; }
/* the drawing needs 720px; where the ruler is narrower it slides sideways, and the caption says so */
.ruler__more { display: none; }
@container (max-width: 719.98px) { .ruler__more { display: block; margin-top: var(--space-2xs); color: var(--color-ink-2); } }
.ruler__svg { width: 100%; min-width: 720px; height: auto; font-family: var(--font-body); }
.r-base { stroke: var(--color-rule); stroke-width: 1; }
.r-semi { stroke: var(--color-muted); stroke-width: 1; }
.r-oct { stroke: var(--color-ink); stroke-width: 1.5; }
.r-h { stroke: var(--color-accent); stroke-width: 2; }
.r-num { fill: var(--color-muted); font-size: 15px; font-weight: 500; text-anchor: middle; font-variant-numeric: tabular-nums; }
.r-name { fill: var(--color-ink-2); font-size: 15px; text-anchor: middle; }
.ruler figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* tables */
.t-wrap { overflow-x: auto; max-width: 100%; }
.t { border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.t caption { text-align: left; caption-side: top; padding-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.t th, .t td { text-align: right; padding: var(--space-2xs) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.t thead th { border-bottom: var(--rule-hair) solid var(--color-ink); font-weight: 500; font-size: var(--text-sm); vertical-align: bottom; }
.t tbody th { font-weight: 400; color: var(--color-muted); }
.t .nm { text-align: left; }
.t--series { min-width: min(100%, 40rem); }
.t--series tbody th { padding-block: 0; }
.t--series tr.off td, .t--series tr.off th { background: var(--color-tint); }
.hbtn { min-height: 44px; min-width: 56px; padding: 0 var(--space-sm); font: inherit; font-weight: 500; color: var(--color-ink); background: transparent; border: 0; border-radius: 2px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.3em; }
.hbtn:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.hbtn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.swatch { display: inline-block; width: 0.9em; height: 0.9em; margin-right: var(--space-xs); vertical-align: -0.1em; background: var(--color-tint); border: var(--rule-hair) solid var(--color-rule); }

.steps { list-style: none; margin: 0; padding: 0; max-width: 64ch; border-top: var(--rule-hair) solid var(--color-ink); }
.steps li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps b { color: var(--color-ink); font-weight: 500; }

/* the 88 keys, an octave to a table */
.octaves { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.t--keys { width: 100%; }
.t--keys td, .t--keys th { padding-block: var(--space-xs); }
.t--keys caption { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); }
.t--keys tr.here td, .t--keys tr.here th { background: var(--color-tint); }
.t--keys a { text-decoration-color: var(--color-rule); }
.t--keys a:hover { text-decoration-color: var(--color-accent); }
.t--keys a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tag { margin-left: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }

.register { list-style: none; margin: 0; padding: 0; max-width: 68ch; border-top: var(--rule-hair) solid var(--color-ink); }
.register li { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 500; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); border-radius: 3px; 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-ink); 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: 860px) {
  .pick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .card { padding: var(--space-lg); }
  :root { --crop-o: 12px; --crop-l: 8px; }
  .t th, .t td { padding-inline: var(--space-sm); }
  /* the harmonics: one card a harmonic, its four figures labelled (the table hid the cents off the side) */
  .t-wrap--series { overflow-x: visible; }
  .t--series { display: block; min-width: 0; }
  .t--series caption { display: block; }
  .t--series thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .t--series tbody { display: grid; gap: var(--space-xs); }
  .t--series tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); align-items: start; padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-2xs); background: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
  .t--series tbody tr.off { background: var(--color-tint); }
  .t--series tr.off td, .t--series tr.off th { background: none; }
  .t--series tbody th { grid-row: 1 / span 2; align-self: center; padding: 0; border: 0; }
  .t--series td { display: grid; padding: 0; border: 0; text-align: left; white-space: normal; }
  .t--series td::before { content: attr(data-label); font-size: var(--text-sm); color: var(--color-muted); }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
