/* Hallmark · shape: Workbench · genre: playful · theme: Squeeze (deal 3/3, seed spirit-level-phone-bubble-f13c·6234272b·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the tilt set as one figure, beside the instrument on a lighter tile · nav: edge-aligned, the wordmark and two pill links · footer: a ruled note over the credit lines · imagery: none, the instrument drawn in SVG · signature: the bubble that floats to the high side of a round vial and two tubes, with the tilt as one big figure
 * axes: mid/geometric-sans/warm · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one instrument and a page on how to use it; the vial and the big figure carry the look */
/* Hallmark · answered F4 · the level · Turn on the tilt sensor shows only on an iPhone before the sensor is allowed, and the script then takes the fill off Set as level, so one filled button shows at a time */
/* Hallmark · waive 44c · both pages · on the level the square vial stands beside the whole text column (head, actions and readings), centred on it, so it runs past the short head on purpose; on the guide the head is the tilted vial beside the headline, and the first steps start inside the first screen so a reader sees where the page goes */
/* Hallmark · waive 77 · every page · a level and a page on how to use it, not a landing strip: the instrument is the page */
: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(41% 0.100 154); --color-paper-2: oklch(47% 0.105 154); --color-paper-3: oklch(34% 0.090 156);
  --color-ink: oklch(99% 0.005 90); --color-ink-2: oklch(94% 0.020 120); --color-muted: oklch(90% 0.030 150); --color-rule: oklch(55% 0.100 154);
  --color-accent: oklch(83% 0.115 56); --color-accent-2: oklch(74% 0.150 46); --color-accent-ink: oklch(30% 0.070 40); --color-focus: oklch(88% 0.14 85);
  --color-card: oklch(97% 0.012 85); --color-card-ink: oklch(24% 0.05 160);
  --font-display: "Gabarito", ui-sans-serif, system-ui, sans-serif; --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 24px; --radius-control: 16px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
  --shadow-card: 0 14px 32px -16px oklch(22% 0.05 160 / 0.5);
  --tracking-display: -0.025em; --display-weight: 800;
}

*, *::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) 45%, transparent); color: var(--color-card-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: natural vib=12 con=4 */
[data-slot] > img { filter: saturate(1.06) contrast(1.04); }

@font-face { font-family: "Gabarito"; src: url("/fonts/gabarito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body { font-weight: 500; color: var(--color-muted); }
h1, h2 { color: var(--color-ink); line-height: 1; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-card-ink); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); font-weight: 700; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--color-accent); }

.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.bar__nav a:hover { background: var(--color-rule); }
.bar__nav a:active { translate: 0 1px; }
.bar__nav a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.bar__nav a[aria-current="page"] { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }

/* the level: the head and the actions on the left, the instrument and its readings on one tile on the right */
.hero { padding-block: var(--space-xl) var(--space-2xl); min-height: calc(100svh - 4.5rem); display: grid; align-content: center; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.hero__head .lead { margin-top: var(--space-sm); color: var(--color-ink-2); }
.hero__act, .level__read { margin-top: var(--space-xl); }
.level__tile { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.level__vial { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.vial { width: 100%; height: auto; max-width: 440px; margin-inline: auto; }
.level__tile .vial { max-width: none; }
.v-well { fill: var(--color-paper-3); }
.v-cross, .v-guide { fill: none; stroke: var(--color-rule); stroke-width: 2; }
.v-label { fill: var(--color-muted); font: 700 15px var(--font-body); }
.v-ring { fill: none; stroke: var(--color-muted); stroke-width: 3; transition: stroke var(--dur-short) var(--ease-out); }
.v-mark { fill: none; stroke: var(--color-muted); stroke-width: 3; transition: stroke var(--dur-short) var(--ease-out); }
.v-bubble { fill: var(--color-ink-2); }
.v-shine { fill: var(--color-ink); }
.is-level .v-ring, .is-level .v-mark { stroke: var(--color-accent); }

.figure { display: flex; flex-wrap: wrap; align-items: baseline; margin: var(--space-sm) 0 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 800; }
.figure__n, .figure__u { font-size: clamp(4rem, 6vw, 6rem); line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.figure__l { margin-left: var(--space-sm); font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); color: var(--color-muted); }
.axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0 0; max-width: 30rem; }
.axis { background: var(--color-paper-2); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); }
.axis dt { font-size: var(--text-sm); font-weight: 700; }
.axis dd { margin: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.axis dd b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1.15; }

.btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { min-height: 48px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-xs) var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control); background: transparent; color: var(--color-ink); font: 700 var(--text-md)/1.25 var(--font-body); cursor: pointer; transition: translate var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { translate: 0 1px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; translate: none; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 0.2em; padding-inline: var(--space-sm); }
.tell { margin-top: var(--space-md); max-width: 34rem; }
.say { color: var(--color-ink); font-weight: 700; }
.note { color: var(--color-ink); font-weight: 700; background: var(--color-paper-3); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); }

.head { padding-block: var(--space-2xl); }
.head h1 { max-width: 16ch; }
.head .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.head--split .head__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.head__fig { margin: 0; }
.head__fig .level__vial { padding: var(--space-md); }
.head__fig figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }

.sec { padding-block: var(--section-gap-s); }
.sec--first { padding-top: var(--space-2xl); }
.sec--band { background: var(--color-paper-3); color: var(--color-ink-2); }
.sec h2 + * { margin-top: var(--space-xl); }
.sec__note { margin-top: var(--space-lg); max-width: 62ch; font-size: var(--text-lg); }
.sec__text { max-width: 60ch; font-size: var(--text-lg); }
.sec--split .sec__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-lg) var(--space-2xl); align-items: start; }
.sec--split h2 + * { margin-top: 0; }
.sec--statement h2 { font-size: var(--text-display); max-width: 18ch; }
.sec__act { margin-top: var(--space-xl); }
.sec__act .btn { text-decoration: none; }

.rows { margin: 0; max-width: 62rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.row dd { margin: 0; font-size: var(--text-lg); }

.ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); max-width: 46rem; }
.ex__cell { display: grid; gap: var(--space-xs); align-content: start; margin: 0; background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.ex__cell--out { background: var(--color-paper-3); }
.ex__n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.03em; color: var(--color-ink); }
.ex__l { font-size: var(--text-md); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 62ch; counter-reset: step; }
.steps li { position: relative; background: var(--color-paper-2); border-radius: var(--radius-control); padding: var(--space-md) var(--space-lg); font-size: var(--text-lg); }
.steps b { color: var(--color-ink); font-weight: 700; }
ol.steps li { counter-increment: step; padding-left: calc(var(--space-lg) + 2.25rem); }
ol.steps li::before { content: counter(step); position: absolute; left: var(--space-lg); top: var(--space-md); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.1; color: var(--color-ink); }

.foot { border-top: var(--rule-bar) solid var(--color-rule); }
.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: 1200px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tile" "read" "act"; gap: var(--space-md); }
  .hero__text { display: contents; }
  .hero__head { grid-area: head; }
  .level__tile { grid-area: tile; max-width: 488px; }
  .level__read { grid-area: read; margin-top: 0; }
  .hero__act { grid-area: act; margin-top: 0; }
  .vial { max-width: 340px; }
  .head--split .head__in { grid-template-columns: minmax(0, 1fr); }
  .sec--split .sec__in { grid-template-columns: minmax(0, 1fr); }
  .head__fig { max-width: 340px; }
}
@media (max-width: 600px) {
  .bar__in { gap: var(--space-xs) var(--space-sm); padding-block: var(--space-sm); }
  .wordmark { font-size: var(--text-lg); }
  .bar__nav a { padding: 0 var(--space-sm); }
  .hero { padding-top: var(--space-sm); }
  .hero__in { gap: var(--space-sm); }
  .level__tile { padding: var(--space-sm); }
  .level__vial { padding: var(--space-sm); }
  .vial, .level__tile .vial { max-width: 250px; }
  .axis dd b { font-size: var(--text-xl); }
  .figure__n, .figure__u { font-size: 3.5rem; }
  .figure { margin-top: var(--space-xs); }
  .axes { margin-top: var(--space-sm); }
  .head { padding-block: var(--space-xl); }
  .head__fig { max-width: 280px; }
  .ex__cell { padding: var(--space-md); }
  .ex__n { font-size: var(--text-3xl); }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .bar__nav a, .v-ring, .v-mark { transition: none; }
}
