/* Hallmark · shape: Narrative Workflow (five numbered stages, from a dot to a sale) · genre: modern-minimal · theme: Ultraviolet (deal assigned by sites) · job: buy · draw: b8114e
 * hero: Corridor (the word in dots over the head; the offer moved to the close, the hero keeps its action) · nav: banner over a retracting bar · footer: index columns · imagery: none, the dots are drawn on the page · signature: the name set in its own dot font, and a working dottifier that redraws any word · ultraviolet: lavender
 * axes: light/geometric-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a name sale argues little; the page lets the visitor use the verb before it asks for an offer */
/* Hallmark · finish-review: in-thread · 4 findings (hero dots low-contrast, panel copy too small beside the pin, rail cards cramped, close screen over budget) · 4 resolved · gap: none */
/* Hallmark · waive 82 · the marks are letters of a dot font spelling dottify, not one mark per counted thing · the product this name sells turns words into dots, so the dots are the type */
/* Hallmark · dismissed 23 · the banner is a 44px strip of chrome, not a viewport fill; base.css slot rule is unused, the page has no photographs */
/* Hallmark · dismissed 58 · the close holds the three sale terms beside the offer form, whose labels the brief fixes word for word */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

body { color: var(--color-ink-2); font-variant-ligatures: no-common-ligatures; }
h1, h2, h3 { color: var(--color-ink); text-transform: lowercase; line-height: 1; }
a:hover { text-decoration-color: var(--color-accent); }
.lead { color: var(--color-ink-2); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls: lowercase pills, one violet fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-display); text-transform: lowercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--quiet { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

/* Chrome: a violet banner over a bar that tucks away while you read down. */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); transition: transform var(--dur-short) var(--ease-out); }
.top.is-scrolled { transform: translateY(-44px); }
.top.is-tucked { transform: translateY(-100%); }
.banner { background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-sm)/1 var(--font-display); }
.banner__in { display: flex; justify-content: center; align-items: center; gap: var(--space-md); min-height: 44px; }
.banner a { color: inherit; text-underline-offset: 0.25em; }
.banner a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.banner a:focus-visible { outline-color: var(--color-accent-ink); }
.bar { background: var(--color-paper); box-shadow: inset 0 -1px 0 var(--color-rule); }
.bar__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.mark { font: 500 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; margin-right: auto; }
.mark span, .foot__mark span { color: var(--color-accent); }
.mark:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.bar__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font: 500 var(--text-sm)/1 var(--font-display); }
.bar__links a { color: var(--color-ink-2); text-decoration: none; }
.bar__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* Dot boards: the unlit grid is a pattern, the lit dots are circles. */
.defs { position: absolute; width: 0; height: 0; }
#dotgrid circle { fill: color-mix(in oklab, var(--color-rule) 65%, var(--color-paper-2)); }
.board { width: 100%; height: auto; }
.board__lit { fill: var(--color-accent); }
.board__grid { transition: opacity var(--dur-short) var(--ease-out); }
.board.is-bare .board__grid { opacity: 0; }
.well { background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Hero: one centred column, the word in dots over the head. */
.hero { min-height: calc(100dvh - 116px); display: grid; align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__board { width: min(100%, 900px); margin-bottom: var(--space-xl); }
.board--hero .board__lit circle { animation: light var(--dur-long) var(--ease-out) backwards; animation-delay: calc(var(--c) * 16ms + 150ms); }
@keyframes light { from { fill: var(--color-accent-soft); } }
.hero h1 { max-width: none; font-size: clamp(2.75rem, 6vw + 0.25rem, 6rem); }
.hero .lead { margin-top: var(--space-lg); max-width: 34ch; }
.hero__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }

/* 1. Pinned: the board holds while the panels pass. */
.made { padding-block: var(--section-gap) var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.made__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.made__pin { grid-column: 1 / 8; }
.made__board { position: sticky; top: var(--space-3xl); display: grid; padding: var(--space-xl); }
.made__board svg { grid-area: 1 / 1; transition: opacity var(--dur-short) var(--ease-out); }
.made__board svg.is-off { opacity: 0; }
.made__panels { grid-column: 9 / 13; margin: 0; padding: 0; list-style: none; }
.made__panels li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.made__panels li:first-child { border-top: 0; min-height: 36vh; justify-content: start; }
.made__panels h3 { font-size: var(--text-2xl); }
.made__panels p { font-size: var(--text-lead); line-height: 1.45; }

/* 2. The dottifier. */
.try { padding-block: var(--section-gap-s) var(--section-gap); }
.try__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.try__head h2 { grid-column: 1 / 7; }
.try__head .lead { grid-column: 8 / 13; }
.try__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.pill-input { flex: 1 1 18rem; max-width: 30rem; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-lead)/1 var(--font-display); box-shadow: inset 0 0 0 1.5px var(--color-muted); transition: box-shadow var(--dur-micro) var(--ease-out); }
.pill-input:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
.pill-input:focus { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.pill-input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.toggle { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--color-rule-2); transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.toggle:hover { background: var(--color-paper-2); }
.toggle[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.toggle:active { transform: translateY(1px); }
.toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.try__board { margin-top: var(--space-lg); padding: clamp(var(--space-md), 3vw, var(--space-2xl)); }
.board--tool .board__lit circle { animation: pop var(--dur-short) var(--ease-out) backwards; animation-delay: calc(var(--c) * 6ms); }
@keyframes pop { from { opacity: 0; } }

/* 3. Uses, as a rail that runs past the edge. */
.uses { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.uses__head { display: grid; gap: var(--space-md); }
.uses__head .lead { max-width: 44ch; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 30%); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); overscroll-behavior-x: contain; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.use { scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.use__pic { margin-bottom: var(--space-md); }
.use p { color: var(--color-muted); }
.use h3 { font-size: var(--text-xl); }

/* 4. Who it suits, as rows. */
.who { padding-block: var(--section-gap) var(--section-gap-l); }
.who__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.who__grid h2 { grid-column: 1 / 5; }
.who__rows { grid-column: 5 / 13; margin: 0; }
.who__rows div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.who__rows div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.who__rows dt { font: 500 var(--text-title)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }
.who__rows dd { margin: 0; font-size: var(--text-lg); }

/* 5. The close: the terms beside the offer. */
.close { padding-block: var(--section-gap) var(--section-gap-l); border-top: var(--rule-hair) solid var(--color-rule); }
.close__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.close__text { grid-column: 1 / 6; }
.facts { margin: var(--space-2xl) 0 0; }
.facts div { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); }
.facts dd { margin: var(--space-2xs) 0 0; max-width: 46ch; }
.tray { grid-column: 7 / 13; position: relative; display: grid; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); }
.label__top { font: 500 var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-transform: lowercase; padding-right: 7rem; }
.stamp { position: absolute; top: calc(-1 * var(--space-lg)); right: var(--space-xl); display: grid; place-items: center; width: 6.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-sm)/1.15 var(--font-display); text-transform: lowercase; text-align: center; }
.tray__fields { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-xs); font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-ink-2); }
.field input { width: 100%; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-lg)/1 var(--font-body); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--color-muted); transition: box-shadow var(--dur-micro) var(--ease-out); }
.field input::placeholder { color: var(--color-muted); }
.field input:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
.field input:focus { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.field input:user-invalid { box-shadow: inset 0 0 0 1.5px var(--color-error); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.field__money { position: relative; display: block; }
.field__money > span { position: absolute; left: var(--space-lg); top: 50%; transform: translateY(-50%); color: var(--color-muted); font: 400 var(--text-lg)/1 var(--font-body); }
.field__money input { padding-left: calc(var(--space-lg) + 1.1rem); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tray__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.tray__foot .btn { min-width: 10rem; }
.tray__note { font-size: var(--text-sm); color: var(--color-muted); }
.tray__note a { color: var(--color-ink-2); }
.tray__status:empty { display: none; }
.tray__status { font-weight: 500; color: var(--color-ink); }
.tray.is-done .tray__fields, .tray.is-done .tray__foot { opacity: 0.55; }

/* Footer: index columns. */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-ink); color: var(--color-paper-3); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.foot__mark { grid-column: 1 / 9; font: 500 var(--text-section)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-paper); }
.foot__col { grid-column: span 2; display: grid; align-content: start; gap: var(--space-sm); font-size: var(--text-sm); }

.foot__h { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-rule-2); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.foot a { color: var(--color-paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-soft); }
.foot a:focus-visible { outline-color: var(--color-accent-soft); }
.foot__legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink-2); font-size: var(--text-sm); color: var(--color-rule-2); }

/* Privacy and 404. */
.page { padding-block: var(--section-gap-s) var(--section-gap); }
.prose { display: grid; gap: var(--space-md); max-width: calc(46rem + 2 * var(--gutter)); margin-inline: 0; }
.prose h1 { font-size: var(--text-display-s); }
.prose h2 { font-size: var(--text-title); margin-top: var(--space-lg); }
.prose a { color: var(--color-ink); text-decoration-color: var(--color-accent); }

@media (max-width: 60rem) {
  .bar__links { display: none; }
  .made__pin, .made__panels { grid-column: 1 / -1; }
  .made__board { position: relative; top: auto; }
  .made__panels li, .made__panels li:first-child { min-height: 0; padding-block: var(--space-xl); }
  .try__head h2, .try__head .lead, .who__grid h2, .who__rows, .close__text, .tray { grid-column: 1 / -1; }
  .tray { margin-top: var(--space-xl); }
  .foot__mark { grid-column: 1 / -1; }
  .foot__col { grid-column: span 4; }
}
@media (max-width: 40rem) {
  .banner__in { gap: var(--space-sm); font-size: var(--text-xs); }
  .hero { min-height: 0; }
  .who__rows div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-lg); }
  .tray { padding: var(--space-lg); }
  .stamp { width: 5rem; right: var(--space-md); font-size: var(--text-xs); }
  .label__top { padding-right: 5.5rem; font-size: var(--text-xl); }
  .foot__col { grid-column: span 6; }
  .rail { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .board--hero .board__lit circle, .board--tool .board__lit circle { animation: none; }
  .top, .made__board svg, .board__grid { transition: none; }
}
