/* Hallmark · macrostructure: Catalogue · genre: editorial · theme: Linen
 * audience: community buyers · use: preference ballot · tone: quiet
 * pre-emit critique: P4 H5 E4 S5 R5 V4 */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/literata-0.woff2) format('truetype');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/literata-1.woff2) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-0.woff2) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-1.woff2) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/manrope-2.woff2) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/manrope-3.woff2) format('truetype');
}
:root {
  --color-paper: oklch(97% .010 85); --color-surface: oklch(99.5% .003 85);
  --color-ink: oklch(24% .016 85); --color-muted: oklch(46% .020 85);
  --color-rule: oklch(82% .017 85); --color-accent: oklch(33% .048 155);
  --color-tint: oklch(93% .025 155); --color-white: oklch(100% 0 0);
  --color-error: oklch(38% .12 25); --color-error-bg: oklch(95% .02 25);
  --font-display: 'Literata', Georgia, serif; --font-body: 'Manrope', sans-serif;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-in: cubic-bezier(.7,0,.84,0); --ease-in-out: cubic-bezier(.65,0,.35,1);
}
* { box-sizing: border-box; }
html,body { margin:0; min-height:100%; overflow-x:clip; }
body { background:var(--color-paper); color:var(--color-ink); font:15px/1.6 var(--font-body); }
::selection { background:var(--color-tint); color:var(--color-accent); }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; color:inherit; cursor:pointer; }
button:disabled { opacity:.5; cursor:not-allowed; }
button:focus-visible,a:focus-visible { outline:3px solid var(--color-accent); outline-offset:4px; }
button:active:not(:disabled) { transform:translateY(1px); }
[hidden] { display:none !important; }
a { color:inherit; text-underline-offset:4px; }
h1,h2 { font-family:var(--font-display); font-weight:500; line-height:1.18; letter-spacing:-.025em; overflow-wrap:anywhere; min-width:0; }
h1 { font-size:clamp(30px,4vw,48px); margin:0 0 var(--space-md); }
h2 { font-size:24px; }
p { margin:0 0 var(--space-md); }
.preview-bar { text-align:center; font-size:12px; padding:var(--space-sm) var(--space-md); background:var(--color-tint); color:var(--color-accent); }
.masthead { max-width:1120px; margin:auto; padding:var(--space-lg) var(--space-lg); display:flex; justify-content:space-between; align-items:center; gap:var(--space-md); border-bottom:1px solid var(--color-rule); }
.wordmark { font-family:var(--font-display); font-size:18px; text-decoration:none; white-space:nowrap; }
.brand-logo { display:block; width:160px; height:76px; object-fit:cover; mix-blend-mode:multiply; }
.step-label { color:var(--color-muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.app { max-width:1120px; margin:auto; padding:var(--space-xl) var(--space-lg) var(--space-lg); min-height:65vh; }
.intro { max-width:680px; padding:var(--space-xl) 0; }
.intro h1 { max-width:620px; }
.lead { color:var(--color-muted); max-width:62ch; font-size:16px; }
.intro .details { margin:var(--space-lg) 0 var(--space-xl); padding:var(--space-md) 0; border-block:1px solid var(--color-rule); color:var(--color-muted); }
.details p:last-child { margin:0; }
.primary { display:inline-flex; align-items:center; justify-content:center; gap:var(--space-md); padding:14px 24px; min-height:52px; background:var(--color-accent); border:1px solid var(--color-accent); color:var(--color-white); border-radius:8px; white-space:nowrap; font-weight:600; transition:opacity .15s var(--ease-out); }
.primary:hover:not(:disabled) { opacity:.9; }
.primary svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; }
.secondary { min-height:44px; background:none; border:1px solid var(--color-rule); padding:10px 20px; border-radius:8px; white-space:nowrap; }
.secondary:hover { border-color:var(--color-ink); }
.small { font-size:12px; color:var(--color-muted); margin-top:var(--space-md); }
.ballot-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-lg); margin-bottom:var(--space-lg); }
.ballot-heading h1 { font-size:clamp(28px,3.5vw,36px); margin-bottom:var(--space-sm); }
.ballot-heading p { color:var(--color-muted); margin:0; }
.progress-track { display:flex; gap:var(--space-sm); margin-bottom:var(--space-xl); max-width:240px; }
.progress-track span { height:3px; flex:1; background:var(--color-rule); }
.progress-track span.done { background:var(--color-accent); }
.gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--space-lg); }
.art-option { min-width:0; position:relative; }
.art-select { width:100%; display:block; border:2px solid transparent; border-radius:4px; padding:var(--space-sm); background:none; text-align:left; transition:border-color .16s var(--ease-out), background-color .16s var(--ease-out); }
.art-select:hover { background:var(--color-surface); }
.art-select[aria-checked="true"] { border-color:var(--color-accent); background:var(--color-tint); }
.art-slot { height:270px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--color-surface); }
.art-crop { position:relative; overflow:hidden; max-width:100%; max-height:100%; }
.art-crop img { position:absolute; max-width:none; max-height:none; display:block; pointer-events:none; }
.art-caption { display:flex; justify-content:space-between; align-items:center; min-height:35px; gap:var(--space-xs); padding-top:var(--space-sm); font-size:13px; font-weight:600; }
.selected-tag { color:var(--color-accent); font-size:11px; font-weight:600; visibility:hidden; white-space:nowrap; }
.art-select[aria-checked="true"] .selected-tag { visibility:visible; }
.zoom-button { display:flex; align-items:center; justify-content:center; gap:6px; border:0; background:none; color:var(--color-muted); margin:0 auto; min-height:44px; font-size:12px; white-space:nowrap; }
.zoom-button svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.5; }
.zoom-button:hover { color:var(--color-accent); }
.none-button { background:none; border:1px solid var(--color-rule); border-radius:8px; padding:12px 20px; margin-top:var(--space-lg); min-height:48px; width:100%; text-align:center; }
.none-button[aria-checked="true"] { background:var(--color-tint); border-color:var(--color-accent); color:var(--color-accent); font-weight:600; }
.none-button:hover { border-color:var(--color-accent); }
.action-footer { position:relative; display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); margin-top:var(--space-lg); padding:var(--space-md) 0 calc(var(--space-md) + env(safe-area-inset-bottom)); background:var(--color-paper); border-top:1px solid var(--color-rule); z-index:2; }
.action-note { color:var(--color-muted); font-size:12px; margin:0; }
.back { border:0; background:none; min-height:44px; padding:8px 0; color:var(--color-muted); font-size:13px; white-space:nowrap; }
.finish { max-width:650px; padding-block:var(--space-xl); }
.finish h1 { margin-top:var(--space-lg); }
.finish-mark { width:56px; height:56px; color:var(--color-accent); }
.finish-mark svg { width:56px; height:56px; fill:none; stroke:currentColor; stroke-width:1.4; }
.promo { background:var(--color-tint); padding:var(--space-lg); margin-top:var(--space-lg); border-radius:12px; }
.promo-code { font-size:28px; font-weight:700; overflow-wrap:anywhere; letter-spacing:.04em; }
.promo .secondary { margin-top:var(--space-md); }
.page-footer { max-width:1120px; margin:auto; padding:var(--space-lg); border-top:1px solid var(--color-rule); }
.text-link { background:none; border:0; color:var(--color-muted); font-size:12px; padding:0; min-height:44px; text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
.error { margin:0 auto var(--space-md); max-width:1072px; padding:var(--space-md); color:var(--color-error); background:var(--color-error-bg); border-radius:8px; }
.error button { border:0; background:none; text-decoration:underline; margin-left:var(--space-md); min-height:44px; white-space:nowrap; }
.loading { padding-block:var(--space-2xl); }
.loading p { color:var(--color-muted); }
dialog { color:var(--color-ink); background:var(--color-paper); border:0; border-radius:12px; padding:var(--space-lg); width:min(760px,calc(100% - 24px)); max-height:calc(100dvh - 24px); }
dialog::backdrop { background:oklch(15% .01 85 / .7); }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:var(--space-md); margin-bottom:var(--space-md); }
.dialog-head h2 { margin:0; }
.icon-button { display:grid; place-items:center; min-width:44px; min-height:44px; border:0; background:none; }
.icon-button svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; }
#zoom-content { display:flex; align-items:center; justify-content:center; height:min(70dvh,720px); }
#zoom-content .art-crop { background:var(--color-surface); }
.privacy-dialog { max-width:560px; }
.privacy-dialog p { color:var(--color-muted); }
.noscript { padding:var(--space-lg); }
body.dialog-open { overflow-y:hidden; }
@media(max-width:767px) {
 .masthead { padding:var(--space-md); }
 .wordmark { font-size:16px; }
 .brand-logo { width:144px; height:68px; }
 .app { padding:var(--space-lg) var(--space-md) var(--space-md); }
 .intro { padding-top:var(--space-lg); }
 .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-md) var(--space-sm); }
 .art-slot { height:190px; }
 .art-select { padding:var(--space-xs); }
 .art-caption { font-size:12px; }
 .selected-tag { font-size:10px; }
 .ballot-heading { margin-bottom:var(--space-md); }
 .ballot-heading h1 { font-size:28px; }
 .ballot-heading p { font-size:13px; }
 .progress-track { margin-bottom:var(--space-lg); }
 .action-footer .primary { padding:12px 20px; min-height:48px; }
 .action-note { max-width:130px; }
 .page-footer { padding:var(--space-md); }
 .error { margin-inline:var(--space-md); }
 .intro .primary { width:100%; }
 .finish { padding-top:var(--space-lg); }
}
@media(max-width:374px) { .step-label { font-size:10px; } .art-slot { height:174px; } .art-caption { flex-direction:column; align-items:flex-start; gap:0; } .selected-tag { min-height:16px; } .action-note { max-width:100px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
