/* Hallmark · shape: Feature Stack · genre: playful · theme: Sticker (deal 1/3, seed iphone-app-turns-one-c804·39e5800e·2026-11-21·r0) · redesign: full · draw: cd9a90
 * hero: Counter (swapped from Corridor: the material is real screens) · nav: slab (swapped from masthead, which the genre refuses) · footer: colophon block · imagery: the product · signature: her real stickers stuck die-cut over the screen and her selfie · sticker: sheet
 * axes: light/display-heavy/chromatic-magenta · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, a download page argues little; it leads with one person's real stickers, so the page proves the claim instead of making it */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Bowlby One SC"; src: url("/fonts/bowlby-one-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/fonts/sofia-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

body { font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1.02; }
h1 { font-size: min(var(--text-display), 4.5rem); }
h2 { font-size: min(var(--text-section), 3.25rem); }
.label { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); color: var(--color-muted); }
.section { padding-block: var(--section-gap-s); }
.section + .section { padding-top: 0; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head p { max-width: 46ch; color: var(--color-ink-2); font-size: var(--text-lead); }

/* Controls: one primary (the pink pill), one ghost. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); text-decoration: none; box-shadow: inset 0 0 0 2px var(--color-ink); background: transparent; transition: translate var(--dur-micro) var(--ease-out), rotate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { translate: 1px 1px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 6px; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 0 0 5px var(--color-white), var(--shadow-card); }
.btn--primary:hover { background: var(--color-accent-deep); translate: 0 -2px; rotate: -1deg; }
.btn--primary:active { translate: 4px 5px; rotate: 0deg; box-shadow: 0 0 0 5px var(--color-white), var(--shadow-press); }
.btn[aria-disabled="true"] { cursor: default; }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.fine { font-size: var(--text-sm); color: var(--color-muted); }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent-2); color: var(--color-ink); font-weight: 700; font-size: var(--text-sm); border: 4px solid var(--color-white); box-shadow: 3px 4px 0 var(--color-ink); }

/* The die-cut: white edge, hard offset, no blur. */
.diecut { border: 6px solid var(--color-white); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; background: var(--color-slot); }
.stuck { filter: drop-shadow(4px 5px 0 var(--color-ink)); }

/* Nav: a slab. */
.slab { background: var(--color-ink); color: var(--color-paper); position: sticky; top: 0; z-index: var(--z-sticky-nav); }
.slab .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-paper); text-decoration: none; letter-spacing: var(--tracking-display); }
.wordmark:focus-visible, .slab a:focus-visible { outline: 3px solid var(--color-accent-2); outline-offset: 4px; border-radius: 6px; }
.slab nav { display: flex; align-items: center; gap: var(--space-lg); }
.slab nav a:not(.btn) { color: var(--color-paper); font-weight: 600; text-decoration: none; }
.slab nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; }

/* Hero: the download beside the screen. */
.hero { min-height: calc(100svh - 72px); display: grid; align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-lg); justify-items: start; }
.hero-copy .lead { color: var(--color-ink-2); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 340px); }
/* A real iPhone: black bezel, a thin metal rim, the side buttons; the screenshot carries the Dynamic Island. */
.iphone { position: relative; aspect-ratio: 1206 / 2622; padding: 3.2%; border-radius: 15% / 7%; background: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink-2), 0 0 0 2px var(--color-muted), 0 0 0 3.5px var(--color-ink), var(--shadow-card); }
.iphone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; }
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; background: var(--color-muted); }
.iphone::before { right: -5.5px; top: 27%; height: 11%; border-radius: 0 3px 3px 0; }
.iphone::after { left: -5.5px; top: 18%; height: 4%; border-radius: 3px 0 0 3px; }
.iphone > .vol { position: absolute; left: -5.5px; width: 3px; border-radius: 3px 0 0 3px; background: var(--color-muted); }
.iphone > .vol--up { top: 26%; height: 7%; }
.iphone > .vol--down { top: 35%; height: 7%; }
.hero-visual .iphone { rotate: -2deg; }
.hero-visual .stuck { position: absolute; width: 46%; }
.hero-visual .s1 { top: 6%; left: -34%; rotate: -7deg; }
.hero-visual .s2 { bottom: 14%; right: -30%; rotate: 6deg; }
.hero-visual .s3 { bottom: -4%; left: -22%; rotate: 4deg; width: 40%; }

/* Before and after: one selfie, her stickers peeling off it. */
.ba .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.ba .head { grid-column: 1 / -1; margin-bottom: var(--space-lg); }
.ba figure { margin: 0; display: grid; gap: var(--space-sm); }
.ba .before .diecut { aspect-ratio: 1; rotate: -2deg; }
.ba .before img { width: 100%; height: 100%; object-fit: cover; }
.ba .after ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.ba .after li:nth-child(odd) { rotate: -4deg; }
.ba .after li:nth-child(even) { rotate: 3deg; translate: 0 var(--space-md); }

/* Moments: a pinned head beside the screens. */
.moments .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.moments .pin { position: sticky; top: calc(72px + var(--space-2xl)); display: grid; gap: var(--space-lg); justify-items: start; }
.moments .pin p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 32ch; }
.moments ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xl); }
.moments li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding-block: var(--space-xl); border-top: var(--rule-bar) dashed var(--color-rule); }
.moments li:first-child { border-top: 0; padding-top: 0; }
.moments li .iphone { max-width: 260px; width: 100%; justify-self: center; }
.moments li:nth-child(odd) .iphone { rotate: 2deg; }
.moments li:nth-child(even) .iphone { rotate: -2deg; }
.moments h3 { font-size: var(--text-2xl); }
.moments li p { margin-top: var(--space-sm); color: var(--color-ink-2); }

/* Styles: a quiet paper band, so the sticker pairs carry the colour. */
.field { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.styles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-lg); }
.styles li { display: grid; gap: var(--space-sm); justify-items: center; }
.styles .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--color-white); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); width: 100%; }
.styles li:nth-child(odd) .pair { rotate: -3deg; }
.styles li:nth-child(even) .pair { rotate: 2deg; }
.styles span { font-weight: 700; color: var(--color-ink); }

/* Memes: the ink band. */
.band { background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap-s); }
.band .head p { color: var(--color-paper-2); }
.band .grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
.band .grid img { filter: drop-shadow(4px 5px 0 var(--color-ink-2)); }
.band .grid img:nth-child(3n+1) { rotate: -5deg; }
.band .grid img:nth-child(3n+2) { rotate: 3deg; }
.band .grid img:nth-child(3n) { rotate: -2deg; }

/* Questions. */
.faq .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
.faq details { border-top: var(--rule-bar) dashed var(--color-rule); padding-block: var(--space-md); }
.faq details:last-child { border-bottom: var(--rule-bar) dashed var(--color-rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); font-weight: 700; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--color-accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin-top: var(--space-sm); color: var(--color-ink-2); }

/* Close: the download again, beside her stack. */
.close .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.close .copy { display: grid; gap: var(--space-lg); justify-items: start; }
.close .copy p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; }
.close .stack { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.close .stack img { position: absolute; width: 56%; }
.close .stack img:nth-child(1) { top: 0; left: 0; rotate: -8deg; }
.close .stack img:nth-child(2) { top: 6%; right: 0; rotate: 7deg; }
.close .stack img:nth-child(3) { bottom: 0; left: 22%; rotate: -2deg; }

/* Footer: a colophon block. */
.colophon { border-top: var(--rule-bar) dashed var(--color-rule); padding-block: var(--space-2xl) var(--space-3xl); margin-top: var(--section-gap-s); }
.colophon .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.colophon .wordmark { color: var(--color-ink); font-size: var(--text-3xl); }
.colophon p { color: var(--color-ink-2); max-width: 60ch; }
.colophon nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-md); }
.colophon a { font-weight: 600; }
.colophon a:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.colophon a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero .container, .ba .container, .moments .container, .faq .container, .close .container, .colophon .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-visual { width: min(62%, 300px); margin-top: var(--space-lg); }
  .moments .pin { position: static; }
  .styles ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .band .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .slab nav a:not(.btn) { display: none; }
  .moments li { grid-template-columns: minmax(0, 1fr); }
  .moments li .iphone { max-width: 220px; }
  /* Smaller stickers that sit beside the screen, clear of its title, instead of over it. */
  .hero-visual { width: min(64%, 260px); }
  .hero-visual .s1 { top: 40%; left: -27%; width: 34%; }
  .hero-visual .s2 { bottom: 24%; right: -25%; width: 34%; }
  .hero-visual .s3 { bottom: -3%; left: -20%; width: 30%; }
  .ba .after ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
  .styles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
