/* Hallmark · shape: Split Studio · genre: playful · theme: Hum (deal 1/3, seed multiply-mayhem-casual-mobile-f77d·0e043aec·2026-12-06·r0) · job: try · draw: 19c96e
 * hero: Stage · nav: slab bar · footer: colophon block · imagery: the product (screens rendered by the game itself) · signature: a working gate picker, three real gate pairs on card stock, beside the game frame
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a coming-soon page can only argue so much; it argues by letting you play the first three gates */
/* Hallmark · waive 39b · store buttons stand 58px, two lines each · a store badge carries "coming soon" above the store name, as on useby.zenrec.com */
/* Hallmark · waive 47c · the torn pear sheet and sugar-paper mat use a many-point clip-path · Hum's material is torn paper, and the edge belongs to a paper sheet, not a photograph */
/* Hallmark · dismissed 23 · the torn pear sheet is the page's one pear field, which Hum's full-palette posture allows once a page */
/* Hallmark · dismissed F4 · the hero pairs one pear primary with Hum's card-stock secondary; on the pear close sheet the primary turns ink so it can be seen */
/* Hallmark · dismissed 25 · each gate row is one short sentence beside its tile, a caption that may sit from 28ch */
/* Hallmark · dismissed 58 · the 85 words from y 2150 include the four closed FAQ answers, which are not on screen until opened */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .12 0 0 0 0 .18 .55 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .22' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 .3 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --slab-h: 72px;
  --torn-top: polygon(0 18px, 4% 9px, 8% 15px, 13% 5px, 18% 13px, 23% 8px, 27% 17px, 32% 6px, 37% 12px, 42% 3px, 47% 14px, 52% 8px, 57% 16px, 62% 6px, 66% 12px, 71% 4px, 76% 15px, 81% 9px, 86% 17px, 90% 7px, 95% 13px, 100% 6px, 100% 100%, 0 100%);
  --torn-all: polygon(2% 3%, 18% 1%, 34% 3.5%, 51% 0.5%, 67% 2.5%, 83% 0%, 98% 2%, 100% 18%, 98.5% 36%, 100% 55%, 98% 72%, 100% 88%, 97% 99%, 80% 97.5%, 63% 100%, 46% 98%, 29% 99.5%, 12% 97%, 0 99%, 1.5% 82%, 0 64%, 2% 45%, 0 27%);
}

body { background: var(--grain), var(--fibre), var(--color-paper); font-weight: 500; }
h1, h2, h3 { font-weight: var(--display-weight); }
a { color: var(--color-accent-2); }
mark { background: color-mix(in oklab, var(--color-accent) 55%, transparent); color: inherit; }

/* card-stock controls */
.btn { --edge: 5px; display: inline-flex; flex-direction: column; justify-content: center; gap: var(--space-3xs); min-height: 52px; padding: var(--space-xs) var(--space-lg); border: 0; border-radius: var(--radius-stock); background: var(--grain), var(--fibre), var(--color-card); color: var(--color-ink); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-rule), 0 var(--edge) 0 0 var(--color-edge); transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap), background-color var(--dur-micro) var(--ease-snap); }
.btn--primary { background: var(--grain), var(--fibre), var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep), 2px calc(var(--edge) + 4px) 10px -3px color-mix(in oklab, var(--color-ink) 32%, transparent); transition-timing-function: var(--ease-spring); }
.btn--ink { background: var(--color-ink); color: var(--color-paper); box-shadow: 0 var(--edge) 0 0 var(--color-ink-2); }
.btn:hover { --edge: 7px; translate: 0 -2px; }
.btn:active { --edge: 1px; translate: 0 4px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { --edge: 5px; translate: 0 0; }
.store { min-width: 176px; min-height: 58px; }
.store strong { font-size: var(--text-lg); line-height: 1.1; font-weight: 600; }
.store-small { font-size: var(--text-xs); font-weight: 500; line-height: 1.2; opacity: 0.85; }
.stores { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

/* nav: a heavy ink slab */
.slab { background: var(--color-ink); color: var(--color-paper); }
.slab-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--slab-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-paper); font-size: var(--text-xl); font-weight: 600; letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 9px; }
.slab-links { display: flex; gap: var(--space-2xs); }
.slab-links a { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); color: var(--color-paper); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.slab-links a:hover { background: var(--color-ink-2); }
.slab-links a:active { background: var(--color-muted); }
.brand:focus-visible, .slab-links a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* hero: Stage, text on five, the game on seven */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100svh - var(--slab-h)); padding-block: var(--space-2xl); }
.hero h1 { font-size: clamp(2.75rem, 5.5vw + 1.5rem, 6.5rem); max-width: 9ch; line-height: 1.02; }
.hero-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 30ch; }
.hero-visual { position: relative; display: grid; justify-items: end; padding-inline-end: var(--space-2xl); }
.shot { margin: 0; aspect-ratio: 9 / 16; border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; filter: var(--shadow-paper); }
.shot--hero { height: min(66svh, 640px); }
.mat { position: absolute; inset-block: 4% 2%; inset-inline-end: 0; width: 66%; rotate: 3deg; filter: var(--shadow-paper); }
.mat > i { position: absolute; inset: 0; background: var(--grain), var(--fibre), var(--color-sugar); clip-path: var(--torn-all); }

.picker { position: absolute; left: 0; bottom: var(--space-2xl); width: min(100%, 320px); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-card); box-shadow: var(--shadow-card); z-index: var(--z-raised); }
.picker-head { font-weight: 600; }
.picker-count { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--space-sm); }
.picker-label { font-size: var(--text-sm); color: var(--color-muted); }
.picker-count strong { font-variant-numeric: tabular-nums; font-size: var(--text-display-s); font-weight: 600; line-height: 1; letter-spacing: var(--tracking-display); }
.picker-count strong.bump { animation: bump var(--dur-long) var(--ease-snap); }
@keyframes bump { from { translate: 0 -10px; opacity: 0.4; } to { translate: 0 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .picker-count strong.bump { animation: none; } }
.gates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); margin-top: var(--space-md); }
.gate { --edge: 5px; min-height: 64px; border: 0; border-radius: var(--radius-stock); background: var(--grain), var(--fibre), var(--color-mint); color: var(--color-ink); font-size: var(--text-xl); font-weight: 600; cursor: pointer; box-shadow: 0 var(--edge) 0 0 var(--color-mint-deep); transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap); }
.gate[data-kind="bad"] { background: var(--grain), var(--fibre), var(--color-accent-3); box-shadow: 0 var(--edge) 0 0 var(--color-kraft); }
.gate[data-kind="again"] { grid-column: 1 / -1; background: var(--grain), var(--fibre), var(--color-accent); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); font-size: var(--text-lg); }
.gate:hover { --edge: 7px; translate: 0 -2px; }
.gate:active { --edge: 1px; translate: 0 4px; }
.gate:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.gate:disabled { opacity: 0.5; cursor: not-allowed; }
.picker-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* three moments: a switcher on paper-2, the screen on the left this time */
.moments { padding-block: var(--section-gap-s); background: var(--grain), var(--fibre), var(--color-paper-2); }
.moments-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.shot--moment { height: min(72svh, 620px); justify-self: center; }
.moments-text .tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xl); }
.tab { min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-edge); transition: background-color var(--dur-micro) var(--ease-snap), color var(--dur-micro) var(--ease-snap); }
.tab:hover { background: var(--color-paper-3); }
.tab:active { background: var(--color-rule); }
.tab[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.tab:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tab:disabled { opacity: 0.5; cursor: not-allowed; }
.moment-line { margin-top: var(--space-lg); min-height: 4.5em; color: var(--color-ink-2); }

/* the gates read out: rows of card-stock tiles */
.rules { padding-block: var(--section-gap); }
.rule-rows { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap-columns); }
.rule-rows li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-xl); align-items: center; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.rule-rows li:last-child { grid-column: 1 / -1; }
.rule-rows p { font-size: var(--text-lead); line-height: 1.4; max-width: 34ch; }
.tile { display: grid; place-items: center; width: 112px; height: 88px; border-radius: var(--radius-stock); font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-display); color: var(--color-ink); box-shadow: 0 5px 0 0 var(--tile-edge, var(--color-edge)); background: var(--grain), var(--fibre), var(--tile-c, var(--color-card)); }
.tile--good { --tile-c: var(--color-mint); --tile-edge: var(--color-mint-deep); }
.tile--bad { --tile-c: var(--color-accent-3); --tile-edge: var(--color-kraft); }
.tile--block { --tile-c: var(--color-sand); --tile-edge: var(--color-kraft); height: 56px; }

/* questions: head on four columns, answers on eight */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); padding-block: var(--section-gap-s) var(--section-gap-l); }
.faq-list details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq-list details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 72px; cursor: pointer; font-size: var(--text-title); font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: var(--text-2xl); color: var(--color-accent-2); transition: rotate var(--dur-short) var(--ease-snap); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list summary:hover { color: var(--color-ink-2); }
.faq-list summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-input); }
.faq-list details p { padding-bottom: var(--space-lg); font-size: var(--text-lg); color: var(--color-ink-2); }

/* contact: the shared form (site-worker/contact-form.js), under the questions */
.faq-side { display: grid; align-content: start; gap: var(--space-lg); }
.contact-intro { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 30ch; }
.contact-form { display: grid; gap: var(--space-md); margin-top: var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-card); box-shadow: var(--shadow-card); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field select, .field textarea { min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--color-card); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-form button[type="submit"] { justify-self: start; }
.contact-hp { position: absolute; left: -9999px; }
.contact-status, .contact-note { font-size: var(--text-sm); color: var(--color-muted); }

/* close: one torn pear sheet, the download beside the last screen */
.close { position: relative; padding-block: var(--section-gap-s); }
.close-sheet { position: absolute; inset: 0; filter: var(--shadow-paper); }
.close-sheet > i { position: absolute; inset: 0; background: var(--grain), var(--fibre), var(--color-accent); clip-path: var(--torn-top); }
.close-in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.close-text h2 { color: var(--color-accent-ink); font-size: var(--text-display-s); max-width: 12ch; }
.shot--close { height: min(62svh, 560px); justify-self: center; }

/* footer: a colophon block */
.footer { padding-block: var(--section-gap-s) var(--space-2xl); color: var(--color-ink-2); }
.footer p:first-child { max-width: 72ch; font-size: var(--text-md); }
.footer-small { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.footer a:hover, .faq a:hover { color: var(--color-ink); }

@media (max-width: 60rem) {
  .hero, .moments-in, .faq, .close-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; }
  .hero-visual { justify-items: center; padding-inline-end: 0; }
  .shot--hero { height: 520px; }
  .picker { position: relative; left: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: var(--space-lg); }
  .mat { width: 80%; inset-inline: 10%; inset-block: 0 auto; height: 540px; }
  .shot--moment, .shot--close { height: 480px; }
  .moments-text { order: -1; }
  .rule-rows { grid-template-columns: minmax(0, 1fr); }
  .slab-links a:first-child { display: none; }
}
@media (max-width: 40rem) {
  .brand { font-size: var(--text-lg); }
  .rule-rows li { grid-template-columns: 80px minmax(0, 1fr); gap: var(--space-md); }
  .tile { width: 80px; height: 64px; font-size: var(--text-xl); }
  .rule-rows p { font-size: var(--text-md); }
  .shot--hero, .shot--moment, .shot--close { height: 440px; }
  .mat { height: 460px; }
  .contact-form { padding: var(--space-lg); }
}
