/* Hallmark · shape: Stage · genre: playful · theme: Sticker (deal 1/3, seed tukda-free-open-source-collage-6f88·6cc0ff94·2026-11-29·r0) · job: try · draw: manual
 * hero: Stage, head left, a pile of die-cut archive pieces right · nav: edge-aligned, wordmark and one action · footer: mast, wordmark over the links · imagery: the archive's own public-domain pages · signature: real archive pieces stuck down as die-cut stickers in the hero · sticker: sheet
 * axes: light/display-heavy/chromatic-magenta · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R3 V4 · weakest: R, the sample grid repeats the sticker move; the plain donate card and ink footer break it */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-weight: 700; font-size: var(--text-md); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 2px var(--color-ink); transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn--sm { height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { translate: 1px 1px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 0 0 5px var(--color-white), 5px 6px 0 var(--color-ink); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; translate: none; }
.btn--primary:active { translate: 4px 5px; box-shadow: 0 0 0 5px var(--color-white), var(--shadow-press); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.tag { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--space-md); border: 5px solid var(--color-white); border-radius: var(--radius-pill); font-weight: 700; box-shadow: var(--shadow-card); }
.tag--lime { background: var(--color-accent-2); color: var(--color-ink); }
.diecut { border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* ---------- nav ---------- */
.nav { background: var(--color-ink); color: var(--color-paper); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-paper); text-decoration: none; letter-spacing: var(--tracking-display); }
a.wordmark:hover { color: var(--color-accent-2); }
a.wordmark:focus-visible { outline: 3px solid var(--color-accent-2); outline-offset: 4px; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a:not(.btn) { color: var(--color-paper); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); }
.nav__links a:not(.btn):focus-visible { outline: 3px solid var(--color-accent-2); outline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.hero h1 { font-size: min(var(--text-display), 3.75rem); line-height: 1.02; max-width: 16ch; }
.hero h1 { margin-bottom: var(--space-xl); }
.h1__line { display: block; margin-top: var(--space-sm); }
.pile { position: relative; aspect-ratio: 6 / 5; min-width: 0; }
.cut { position: absolute; margin: 0; border: 6px solid var(--color-white); border-radius: 6px; overflow: hidden; background: var(--color-slot); box-shadow: var(--shadow-card); }
.cut img { width: 100%; height: 100%; object-fit: cover; }
.cut--a { width: 42%; aspect-ratio: 1265 / 1600; left: 4%; top: 2%; rotate: -4deg; z-index: 2; }
.cut--b { width: 27%; aspect-ratio: 256 / 390; left: 40%; top: 18%; rotate: 5deg; z-index: 3; }
.cut--c { width: 34%; aspect-ratio: 500 / 335; right: 2%; top: 4%; rotate: -2deg; z-index: 1; border-radius: 4px; }
.cut--d { width: 46%; aspect-ratio: 1600 / 1225; right: 0; bottom: 0; rotate: 3deg; z-index: 2; }
.pile .tag { position: absolute; left: 10%; bottom: 8%; rotate: -6deg; z-index: 4; }

/* ---------- start (search) ---------- */
.start { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.start h2 { max-width: 22ch; }
.start__note { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-muted); font-weight: 600; }

.themes__label { margin-top: var(--space-xl); font-weight: 600; }
.theme-toggles { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.theme-toggle { height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font-weight: 600; font-size: var(--text-md); cursor: pointer; box-shadow: inset 0 0 0 2px var(--color-ink); transition: background-color var(--dur-micro) var(--ease-out); }
.theme-toggle:hover { background: var(--color-paper); }
.theme-toggle:active { translate: 1px 1px; }
.theme-toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.theme-toggle[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.theme-panel { margin-top: var(--space-xl); }
.theme-panel__line { color: var(--color-muted); font-weight: 600; }
.samples { columns: 4 220px; column-gap: var(--gap-columns); margin: var(--space-lg) 0 var(--space-xl); padding: 0; list-style: none; }
.sample { break-inside: avoid; margin-bottom: var(--gap-columns); }
.sample > a:first-child { display: block; border: 6px solid var(--color-white); border-radius: 6px; overflow: hidden; background: var(--color-slot); box-shadow: var(--shadow-card); transition: translate var(--dur-micro) var(--ease-out), rotate var(--dur-micro) var(--ease-out); }
.sample:nth-child(odd) > a:first-child { rotate: -1deg; }
.sample:nth-child(even) > a:first-child { rotate: 1deg; }
.sample > a:first-child:hover { translate: 0 -2px; }
.sample > a:first-child:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; transition: none; }
.sample img { width: 100%; height: auto; }
.sample__source { display: inline-block; margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-rule); }
.sample__source:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.sample__source:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- demo: a collage coming together ---------- */
.demo { padding-block: var(--section-gap-s); }
.demo__note { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-muted); font-weight: 600; }
.stage { position: relative; margin-top: var(--space-xl); aspect-ratio: 16 / 10; border: 6px solid var(--color-white); border-radius: var(--radius-card); background: var(--color-ink); box-shadow: var(--shadow-card); overflow: hidden; }
.bit { position: absolute; filter: drop-shadow(4px 5px 0 var(--color-ink-2)); animation: bit-land 16s var(--ease-out) var(--d) infinite both; }
.bit__in img { width: 100%; height: auto; }
.bit--1 { left: 5%; top: 6%; width: 27%; rotate: -3deg; }
.bit--1 .bit__in { clip-path: ellipse(47% 46% at 50% 46%); }
.bit--2 { left: 27%; top: 30%; width: 24%; rotate: 4deg; }
.bit--2 .bit__in { clip-path: polygon(4% 2%, 30% 6%, 52% 0, 78% 5%, 97% 3%, 94% 28%, 99% 55%, 95% 80%, 98% 97%, 70% 94%, 45% 99%, 20% 95%, 2% 98%, 6% 70%, 0 45%, 5% 22%); }
.bit--3 { left: 58%; top: 8%; width: 26%; rotate: -2deg; }
.bit--4 { left: 60%; top: 44%; width: 14%; rotate: 5deg; }
.bit--4 .bit__in { clip-path: polygon(0 0, 100% 3%, 97% 100%, 3% 96%); }
.bit--5 { left: 8%; top: 56%; width: 36%; rotate: 2deg; }
.bit--5 .bit__in { clip-path: polygon(6% 10%, 40% 2%, 72% 8%, 96% 4%, 92% 50%, 98% 92%, 60% 97%, 30% 90%, 2% 96%, 5% 55%); }
.bit--6 { left: 79%; top: 42%; width: 15%; rotate: -6deg; }
.mover { position: absolute; inset: 0; animation: mover 16s var(--ease-in-out) infinite both; transform-origin: 71% 26%; }
.select { position: absolute; left: 57%; top: 6.5%; width: 28.5%; aspect-ratio: 500 / 335; border: 2px dashed var(--color-accent-2); rotate: -2deg; opacity: 0; animation: select 16s linear infinite both; }
.select i { position: absolute; width: 14px; height: 14px; border: 3px solid var(--color-white); border-radius: 50%; background: var(--color-accent); }
.select i:first-child { right: -9px; bottom: -9px; }
.select i:last-child { left: calc(50% - 7px); top: -32px; background: var(--color-accent-2); }
.pointer-track { position: absolute; inset: 0; pointer-events: none; animation: pointer 16s var(--ease-in-out) infinite both; }
.pointer { position: absolute; left: 0; top: 0; width: 34px; fill: var(--color-white); stroke: var(--color-ink); stroke-width: 1.5; filter: drop-shadow(2px 3px 0 var(--color-ink)); }
@keyframes bit-land {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(1.25); }
  5% { opacity: 1; transform: none; }
  86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-6%); }
}
@keyframes mover {
  0%, 52% { transform: none; }
  62%, 84% { transform: translate(-6%, 10%) rotate(9deg); }
  92%, 100% { transform: translate(-6%, 10%) rotate(9deg); }
}
@keyframes select {
  0%, 48% { opacity: 0; }
  50%, 76% { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes pointer {
  0%, 36% { opacity: 0; transform: translate(45%, 75%); }
  40% { opacity: 1; transform: translate(45%, 75%); }
  50%, 52% { opacity: 1; transform: translate(70%, 22%); }
  62%, 70% { opacity: 1; transform: translate(64%, 33%); }
  78%, 100% { opacity: 0; transform: translate(88%, 80%); }
}
@media (prefers-reduced-motion: reduce) {
  .bit, .mover, .select, .pointer-track { animation: none !important; }
  .select { opacity: 1; }
  .pointer-track { display: none; }
}

/* ---------- free ---------- */
.free { padding-block: var(--section-gap); }
.free__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: center; }
.free .lead { margin-top: var(--space-lg); }
.donate { display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-xl); background: var(--color-paper-3); rotate: 1deg; }
.donate h3 { font-size: var(--text-2xl); }
.donate__note { color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-2xl); }
.footer__grid { display: grid; gap: var(--space-lg); }
.wordmark--big { font-size: clamp(4rem, 14vw, 11rem); line-height: 0.9; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.footer nav a { color: var(--color-paper); font-weight: 600; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); }
.footer nav a:focus-visible { outline: 3px solid var(--color-accent-2); outline-offset: 4px; }
.footer__credits { max-width: 70ch; color: var(--color-rule); font-size: var(--text-sm); }

/* ---------- narrow ---------- */
@media (max-width: 60rem) {
  .hero__grid, .free__grid { grid-template-columns: minmax(0, 1fr); }
  .pile { max-width: 560px; }
    .nav__links a:not(.btn) { display: none; }
  .samples { columns: 2; column-gap: var(--space-md); }
  .sample { margin-bottom: var(--space-md); }
  .sample:nth-child(n+7) { display: none; }
}
