/* 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: cut and compose ---------- */
.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; overflow: hidden; border-radius: var(--radius-card); background: #f1e8d6; isolation: isolate; }
.demo-paper, .demo-piece, .demo-source, .demo-cutout { position: absolute; }
.demo-paper--blue { left: 28%; top: 10%; width: 52%; height: 72%; background: #344f78; clip-path: polygon(2% 4%, 97% 0, 100% 89%, 68% 100%, 0 95%); transform: rotate(-4deg); }
.demo-paper--ochre { left: 16%; top: 45%; width: 46%; height: 43%; background: #e6a73e; clip-path: polygon(0 8%, 93% 0, 100% 90%, 5% 100%); transform: rotate(5deg); }
.demo-paper--rose { left: 0; top: 48%; width: 30%; height: 54%; background: #c66c58; clip-path: polygon(0 3%, 90% 0, 100% 91%, 6% 100%); transform: rotate(-5deg); }
.demo-paper--pattern { right: 0; top: 0; width: 26%; height: 52%; background: repeating-linear-gradient(135deg, #d8b672 0 8px, #f4e4c1 8px 16px); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 90%); transform: rotate(3deg); }
.demo-piece, .demo-cutout { filter: drop-shadow(2px 4px 2px #2b211c55); }
.demo-piece img, .demo-source img, .demo-cutout img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-piece { opacity: 0; animation: collage-arrive 9s ease-out infinite both; }
.demo-piece--photo { left: 15%; top: 43%; width: 43%; height: 38%; transform: rotate(-5deg); animation-delay: .5s; clip-path: polygon(0 4%, 98% 0, 100% 94%, 4% 100%); }
.demo-piece--print { left: 53%; top: 16%; width: 30%; height: 55%; transform: rotate(6deg); animation-delay: 1s; clip-path: polygon(8% 0, 94% 4%, 100% 89%, 87% 100%, 0 95%, 4% 12%); }
.demo-piece--label { left: 63%; top: 65%; width: 23%; height: 20%; transform: rotate(-7deg); animation-delay: 1.5s; clip-path: polygon(2% 0, 98% 3%, 100% 96%, 0 100%); }
.demo-source { z-index: 4; left: 3%; top: 7%; width: 27%; height: 33%; padding: 4px; background: #fffdf7; transform: rotate(-4deg); box-shadow: 0 3px 12px #35292244; animation: source-sheet 9s linear infinite both; }
.demo-cutline { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); overflow: visible; }
.demo-cutline path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 100; vector-effect: non-scaling-stroke; stroke-dashoffset: 100; animation: cut-trace 9s linear infinite both; }
.demo-cutout { z-index: 5; left: 3%; top: 7%; width: 27%; height: 33%; clip-path: polygon(11% 34%, 18% 22%, 32% 18%, 43% 19%, 65% 17%, 82% 23%, 89% 31%, 93% 47%, 88% 61%, 83% 70%, 66% 82%, 39% 82%, 20% 78%, 10% 61%, 7% 46%); animation: cut-place 9s ease-in-out infinite both; }
.demo-scissors { position: absolute; z-index: 6; left: 4%; top: 13%; color: #b32337; font-size: clamp(22px, 3.8vw, 42px); line-height: 1; text-shadow: 1px 2px #fff; animation: scissors-cut 9s ease-in-out infinite both; }
@keyframes collage-arrive { 0%, 6% { opacity: 0; translate: 0 16px; } 13%, 84% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; } }
@keyframes source-sheet { 0%, 33% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes cut-trace { 0%, 10% { stroke-dashoffset: 100; } 32%, 38% { stroke-dashoffset: 0; } 42%, 100% { stroke-dashoffset: 0; } }
@keyframes cut-place { 0%, 31% { opacity: 0; transform: rotate(-4deg); } 34% { opacity: 1; transform: rotate(-4deg); } 52%, 84% { opacity: 1; transform: translate(120%, 92%) rotate(5deg) scale(1.65); } 94%, 100% { opacity: 0; transform: translate(120%, 92%) rotate(5deg) scale(1.65); } }
@keyframes scissors-cut { 0%, 10% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 1; } 18% { transform: translate(4vw, -2vw) rotate(25deg); } 24% { transform: translate(13vw, 1vw) rotate(95deg); } 30% { transform: translate(9vw, 8vw) rotate(180deg); } 34% { opacity: 1; transform: translate(0, 5vw) rotate(260deg); } 39%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .demo-piece, .demo-source, .demo-cutout, .demo-scissors, .demo-cutline path { animation: none !important; }
  .demo-piece { opacity: 1; }
  .demo-source, .demo-scissors, .demo-cutline { display: none; }
  .demo-cutout { opacity: 1; transform: translate(120%, 92%) rotate(5deg) scale(1.65); }
}

/* ---------- 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; }
}
