/* Hallmark · shape: Feature Stack · genre: playful · theme: Halftone (deal 3/3, seed kwisted-pubquiz-analoge-pubquiz-2094·b221a148·2026-11-19·r0) · job: hire · draw: 465857
 * hero: Stage (the winners' photo with the answer sheet laid over it) · nav: edge-aligned · footer: one row, logo and links · imagery: user photographs 7 (own), product built (answer sheet), natural · signature: the filled-in answer sheet with ballpoint scores · halftone: recoloured from the Kwisted logo (sky, sage, navy), restrained · logo: user-supplied, transparent cut
 * axes: light/slab-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V3 · weakest: V, a calmer repeated head-then-body rhythm by request; varied the bodies (split, wall, table, three-up) and the paper */
/* Hallmark · waive 59 · sections part by 80px and a change of paper · the owner asked for less whitespace on the Kwisted homepage */
/* Hallmark · waive 78 · section heads are Chivo bold at 36px over a 2px ink rule · the owner found the Kwisted Ultra heads too loud */
@import url("./tokens.css?v=2");
@import url("./base.css?v=2");

:root {
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --nav-h: 76px;
  --section-pad: 80px;
  --text-h2: clamp(1.75rem, 1vw + 1.25rem, 2.25rem);
}

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink);
  font: 700 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-deep); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn--secondary {
  min-height: 44px; padding: 0 0 var(--space-2xs); border-radius: 0; background: none; color: var(--color-ink);
  border-bottom: 2px solid var(--color-accent);
}
.btn--secondary:hover { background: none; color: var(--color-accent-deep); }

a { transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-accent-deep); }

/* ---------- Type: calm heads ---------- */
h2 { font: 700 var(--text-h2)/1.15 var(--font-body); letter-spacing: -0.01em; max-width: 24ch; }
.body { margin-top: var(--space-md); font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink-2); max-width: 44ch; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 56px; width: auto; }
.logo--foot img { height: 88px; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--color-ink); }
.nav__ask { border-bottom: 2px solid var(--color-accent); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.hero__text h1 { font-size: clamp(2.75rem, 3vw + 1.5rem, 4.25rem); line-height: 1.08; max-width: 10ch; }
.hero__text .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl); margin-top: var(--space-xl); }

.hero__visual { position: relative; isolation: isolate; padding-bottom: var(--space-xl); }
.hero__photo { aspect-ratio: 5 / 4; margin: 0 0 0 auto; width: 84%; }
.hero__visual::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: var(--space-lg); right: calc(-1 * var(--space-md)); width: 40%; height: 50%;
  background: radial-gradient(var(--color-sage) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.5px)) 0 0 / var(--halftone-size) var(--halftone-size);
}
.hero__visual .sheet-wrap { position: absolute; left: calc(-1 * var(--space-xl)); bottom: 0; width: min(50%, 25rem); z-index: 2; }
.sheet { transform: rotate(-3deg); padding: var(--space-lg); background: var(--color-sheet); border: 2px solid var(--color-ink); }
.sheet__head { display: flex; flex-direction: column; gap: var(--space-2xs); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-ink); }
.sheet__brand { font: 700 var(--text-sm)/1.2 var(--font-body); color: var(--color-accent); }
.sheet__title { font: 400 1.25rem/1.1 var(--font-display); color: var(--color-ink); white-space: nowrap; }
.sheet__team { display: flex; align-items: baseline; gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.sheet__team .hand { font-size: 1.75rem; line-height: 1; color: var(--color-ink); }
.sheet__table { width: 100%; border-collapse: collapse; margin-top: var(--space-2xs); }
.sheet__table th { text-align: left; font: 500 var(--text-sm)/1.2 var(--font-body); color: var(--color-muted); padding: var(--space-xs) 0; }
.sheet__table td { padding: var(--space-2xs) 0; border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink); height: 42px; }
.sheet__table td:first-child { width: 3rem; font-weight: 700; }
.sheet__table .num:last-child { text-align: right; width: 5rem; }
.sheet__table tfoot th, .sheet__table tfoot td { border-top: 2px solid var(--color-ink); padding-top: var(--space-sm); font: 700 var(--text-md)/1.2 var(--font-body); color: var(--color-ink); }
.hand { font-family: var(--font-hand); font-weight: 700; }
.sheet__table .hand { font-size: 1.625rem; line-height: 1; }
.hand--pen { color: var(--color-accent-deep); }
.tally { display: inline-block; padding: 0 var(--space-sm); border: 2px solid var(--color-accent-deep); border-radius: 50% 46% 52% 44%; transform: rotate(-4deg); }

/* ---------- Load animation: the sheet is laid down, then filled in with the red pen ---------- */
@keyframes kw-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kw-photo { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes kw-drop { from { opacity: 0; transform: translate(-24px, 48px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes kw-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.is-ready .hero__text > * { animation: kw-rise var(--dur-long) var(--ease-out) both; }
.is-ready .hero__text > :nth-child(2) { animation-delay: 80ms; }
.is-ready .hero__text > :nth-child(3) { animation-delay: 160ms; }
.is-ready .hero__photo { animation: kw-photo 600ms var(--ease-out) 100ms both; }
.is-ready .hero__visual .sheet-wrap { animation: kw-drop 650ms var(--ease-out) 350ms both; }
.is-ready .sheet .hand { animation: kw-write 380ms var(--ease-out) both; }
.is-ready .sheet__team .hand { animation-delay: 950ms; animation-duration: 500ms; }
.is-ready .sheet__table tbody tr:nth-child(1) .hand { animation-delay: 1250ms; }
.is-ready .sheet__table tbody tr:nth-child(2) .hand { animation-delay: 1400ms; }
.is-ready .sheet__table tbody tr:nth-child(3) .hand { animation-delay: 1550ms; }
.is-ready .sheet .tally { animation-delay: 1750ms; animation-duration: 450ms; }
/* until the loader has gone, the hero waits in its start state (only with script) */
.js:not(.is-ready) .hero__text > *, .js:not(.is-ready) .hero__photo, .js:not(.is-ready) .hero__visual .sheet-wrap { opacity: 0; }
.js:not(.is-ready) .sheet .hand { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: reduce) {
  .is-ready .hero__text > *, .is-ready .hero__photo, .is-ready .hero__visual .sheet-wrap, .is-ready .sheet .hand { animation: none; }
}

/* ---------- Loader: the pens go round, then the sheet lifts away ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: var(--z-toast); display: grid; place-items: center;
  background: var(--color-paper); transition: transform 750ms var(--ease-in-out);
}
.js.is-loaded .loader { transform: translateY(-100%); }
.loader__inner { display: grid; justify-items: center; gap: var(--space-md); text-align: center; }
.loader__logo { width: min(22rem, 70vw); height: auto; animation: kw-rise var(--dur-long) var(--ease-out) both; }
.loader__hand { margin: 0; font: 700 clamp(1.5rem, 1vw + 1rem, 2rem)/1.2 var(--font-hand); color: var(--color-accent-deep); animation: kw-write 700ms var(--ease-out) 300ms both; }
.loader__bar { width: min(16rem, 60vw); height: 3px; margin-top: var(--space-sm); background: var(--color-paper-3); overflow: clip; }
.loader__bar > span { display: block; height: 100%; background: var(--color-accent); transform-origin: left; animation: kw-fill 1200ms var(--ease-in-out) 200ms both; }
@keyframes kw-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.loader::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 40%; height: 40%; pointer-events: none;
  background: radial-gradient(var(--color-sky) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.5px)) 0 0 / var(--halftone-size) var(--halftone-size);
  mask: linear-gradient(315deg, var(--color-ink) 0%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  .loader__logo, .loader__hand, .loader__bar > span { animation: none; }
}


/* ---------- Facts strip ---------- */
.facts { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts__list > div { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.facts__list > div + div { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.facts__list dt { font: 700 var(--text-lg)/1.3 var(--font-body); color: var(--color-ink); }
.facts__list dd { margin: var(--space-2xs) 0 0; font-size: var(--text-md); color: var(--color-ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--color-paper-2); }
.section--sage { background: var(--color-sage-2); }
.section--sage .roll tbody th, .section--sage .roll tbody td { border-color: var(--color-sage-3); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-bottom: var(--space-lg); margin-bottom: var(--space-xl); border-bottom: 2px solid var(--color-ink); }
.head p { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); max-width: 52ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split__media { margin: 0; }

.photo { aspect-ratio: 4 / 3; outline: var(--rule-hair) solid var(--color-ink); outline-offset: calc(-1 * var(--rule-hair)); }
.photo--square { aspect-ratio: 1; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }

.rows { margin: 0; }
.rows__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows__row:first-child { padding-top: 0; }
.rows dt { font: 700 var(--text-lg)/1.3 var(--font-body); color: var(--color-ink); }
.rows dd { margin: 0; font-size: var(--text-md); line-height: 1.55; color: var(--color-ink-2); }
.rows--compact { margin-top: var(--space-xl); }
.rows--compact .rows__row:first-child { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.section--tint .rows__row, .section--tint .rows--compact .rows__row:first-child { border-color: var(--color-paper-3); }

/* ---------- Hall of Fame ---------- */
.fame__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.fame__item { margin: 0; }
.fame__item .photo { aspect-ratio: 4 / 5; }
.roll { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; }
.roll__caption { caption-side: top; text-align: left; padding-bottom: var(--space-sm); font: 700 var(--text-lg)/1.3 var(--font-body); color: var(--color-ink); }
.roll thead th { padding: var(--space-xs) var(--space-md) var(--space-xs) 0; text-align: left; font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); border-bottom: 2px solid var(--color-ink); }
.roll tbody th, .roll tbody td { padding: var(--space-md) var(--space-md) var(--space-md) 0; text-align: left; vertical-align: baseline; border-bottom: var(--rule-hair) solid var(--color-paper-3); }
.roll tbody th { width: 30%; font: 700 var(--text-md)/1.3 var(--font-body); color: var(--color-ink); }
.roll tbody td { font-size: var(--text-md); color: var(--color-ink-2); }
.fill { padding: 0 0.25em; border: 1px dashed currentColor; border-radius: 3px; font-weight: 400; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Reviews and press ---------- */
.say { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); align-items: start; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink); max-width: 36ch; }
.quote figcaption { margin-top: var(--space-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.clip { margin: 0; }
.clip img { width: 100%; border: var(--rule-hair) solid var(--color-ink); }

/* ---------- Contact ---------- */
.contact { background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-pad); }
.contact h2 { color: var(--color-paper); }
.contact .body { color: var(--color-paper-2); }
.contact__ways { margin: 0; padding: 0; list-style: none; }
.contact__ways li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-ink-2); }
.contact__ways li:first-child { border-top: var(--rule-hair) solid var(--color-ink-2); }
.contact__label { font-size: var(--text-sm); font-weight: 500; color: var(--color-paper-3); }
.contact__big { font: 700 var(--text-xl)/1.3 var(--font-body); color: var(--color-paper); overflow-wrap: break-word; min-width: 0; }
a.contact__big { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a.contact__big:hover { color: var(--color-paper-2); }
.contact .fill { color: var(--color-paper-3); }
.contact :focus-visible { outline-color: var(--color-paper); }

/* ---------- WhatsApp ---------- */
.wa-icon { flex-shrink: 0; }
.btn { gap: var(--space-xs); }
.contact__action { border-bottom: 0; padding-top: var(--space-lg); }
.wa-float {
  position: fixed; right: var(--space-lg); bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg) 0 var(--space-md);
  border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper);
  outline: 1px solid var(--color-paper-3); outline-offset: -1px;
  font: 700 var(--text-md)/1 var(--font-body); text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.wa-float .wa-icon { width: 24px; height: 24px; }
.wa-float:hover { background: var(--color-ink-2); color: var(--color-paper); }
.wa-float:active { transform: translateY(1px); }
.wa-float:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.js:not(.is-ready) .wa-float { opacity: 0; }
.is-ready .wa-float { animation: kw-rise var(--dur-long) var(--ease-out) 1900ms both; }
@media (max-width: 40rem) {
  .wa-float { right: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); padding: 0; width: 56px; min-height: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .foot { padding-bottom: calc(var(--space-xl) + var(--space-2xl)); }
}
@media (prefers-reduced-motion: reduce) { .is-ready .wa-float { animation: none; } }

/* ---------- Footer ---------- */
.foot { padding-block: var(--space-xl); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-ink); }
.foot__small { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  :root { --section-pad: 56px; }
  .nav__links li:not(:last-child) { display: none; }
  .hero__grid, .head, .split, .split--even, .say { grid-template-columns: minmax(0, 1fr); }
  .head { gap: var(--space-xs); }
  .split, .say { gap: var(--space-xl); }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__list > div:nth-child(n+3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .hero__visual { padding-bottom: 0; }
  .hero__photo { width: 100%; }
  .hero__visual .sheet-wrap { position: relative; left: 0; width: 88%; margin-top: calc(-1 * var(--space-2xl)); }
  .fame__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fame__item:first-child { grid-column: 1 / -1; }
  .fame__item:first-child .photo { aspect-ratio: 4 / 3; }
  .roll thead { display: none; }
  .roll tbody tr { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-paper-3); }
  .roll tbody th, .roll tbody td { border: 0; padding: 0; width: auto; }
  .clip { max-width: 28rem; }
}
@media (max-width: 40rem) {
  .rows__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .facts__list dt { font-size: var(--text-md); }
  .sheet { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, a { transition: none; }
}
