/* Spoolhouse Studio: base (year-round) theme.
   Layout: a dark workshop storefront. Hero pairs the pitch with a live "printer window";
   sections alternate ink and surface bands; one bright moment (the print) leads.
   Seasonal skins (holiday.css) override the tokens and add their own ornaments. */
:root {
  --ink: #14191D;        /* page ground */
  --surface: #1C252B;    /* alternate band, raised surfaces */
  --line: #2F3D45;       /* hairlines, borders */
  --text: #EEF2F1;       /* primary text */
  --dim: #A3B2B5;        /* secondary text */
  --brass: #F0B54A;      /* hot nozzle, primary action */
  --accent2: #E0663A;    /* filament orange accent */
  --ink-on-brass: #2A1A05;
  --art-glow: #24323A;   /* product art backdrop */
  --art-deep: #161E23;
  --plate: #0D1316;
  --font-display: "Recursive", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Recursive", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --mark-layers: var(--brass);
  --mark-ring: #E8623A;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--font-mono); font-variation-settings: "MONO" 1, "CASL" 0; font-variant-numeric: tabular-nums; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "CASL" 1, "MONO" 0;
  font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-variation-settings: "MONO" 1;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 14px;
}

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
/* wordmark: two-line "Spoolhouse / Studio" beside the badge (logo-horizontal in assets/logo) */
.brand-word { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: var(--font-body); white-space: nowrap; font-size: 1.12rem; line-height: 1.02; font-weight: 800; letter-spacing: -0.012em; color: var(--text); }
.brand-layer { animation: layer-in 0.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 200ms); transform-box: fill-box; transform-origin: center; }
@keyframes layer-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.brand-tip { animation: tip 1.8s ease-in-out infinite; }
@keyframes tip { 50% { opacity: 0.55; } }
.brand:hover .brand-layer { animation: layer-in 0.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); animation-name: layer-in-again; }
@keyframes layer-in-again { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.bag {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 600;
}
.bag svg { width: 20px; height: 20px; }
.bag-count { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.bag.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }

/* hero */
.hero { position: relative; z-index: 2; padding-block: clamp(36px, 7vw, 84px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hl { color: var(--brass); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.12em;
  background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 10px);
  border-radius: 99px; opacity: .7;
}
.lede { margin-top: 20px; font-size: 1.15rem; color: var(--dim); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--brass); color: var(--ink-on-brass); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 50%, transparent); }
.btn-primary:hover { box-shadow: 0 0 28px 2px color-mix(in srgb, var(--brass) 45%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--dim); }
.deadline[hidden] { display: none !important; }
.deadline { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding-top: 22px; border-top: 1px dashed var(--line); }
.deadline dt { font-size: 0.8rem; color: var(--dim); }
.deadline dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }

/* printer window */
.printer {
  margin: 0; min-width: 0; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1B2A27, #111B19);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.printer-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot:first-child { background: var(--accent2); }
.dot:nth-child(2) { background: var(--brass); }
.printer-name { margin-left: auto; font-size: 0.7rem; color: var(--dim); letter-spacing: .06em; }
.printer-window { position: relative; aspect-ratio: 5 / 4; max-width: 100%; }
.printer-window canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.readout {
  display: grid; grid-template-columns: repeat(5, auto); gap: 6px 18px; padding: 12px 16px 14px;
  font-size: 0.78rem; border-top: 1px solid rgba(255,255,255,.06); color: var(--dim);
}
.readout div { display: flex; flex-direction: column; min-width: 0; }
.readout b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-progress { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ro-progress i { display: block; height: 100%; width: 0; background: var(--brass); border-radius: inherit; }

/* scrolling ribbon */
.ribbon { position: relative; z-index: 2; background: var(--accent2); color: #fff; overflow: hidden; border-block: 3px solid var(--brass); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span { font-family: var(--font-display); font-variation-settings: "CASL" 1; font-weight: 700; padding: 10px 22px; white-space: nowrap; font-size: 0.98rem; }
.ribbon-track span::after { content: "✦"; margin-left: 44px; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 30px; }
.section-head > div { min-width: 0; }
.section-sub { color: var(--dim); max-width: 34em; }
.preview-note {
  font-size: 0.88rem; color: var(--dim); border: 1px dashed var(--line);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 22px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid var(--line); transition: all .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--dim); }
.chip.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease, opacity .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); }
.card[hidden] { display: none !important; }
.card-art {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%;
  background: radial-gradient(120% 90% at 50% 100%, var(--art-glow) 0%, var(--art-deep) 70%);
  display: grid; place-items: center; overflow: hidden;
}
.card-art svg { width: 72%; height: auto; overflow: visible; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.card-art .plate { position: absolute; left: 10%; right: 10%; bottom: 9%; height: 6px; border-radius: 3px; background: var(--plate); }
.card-art .scan { position: absolute; left: 0; right: 0; height: 2px; bottom: 0; background: var(--brass); box-shadow: 0 0 12px var(--brass); opacity: 0; }
.card:hover .art-shape, .card.replay .art-shape { animation: print-in 1.4s steps(28) both; }
.card:hover .scan, .card.replay .scan { animation: scan 1.4s steps(28) both; }
@keyframes print-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { bottom: 12%; opacity: 1; } 95% { bottom: 88%; opacity: 1; } 100% { bottom: 88%; opacity: 0; } }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--text); color: var(--ink);
}
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-title h3 { font-size: 1.12rem; }
.price { font-family: var(--font-mono); font-variation-settings: "MONO" 1; font-weight: 600; color: var(--brass); white-space: nowrap; }
.card-body p { color: var(--dim); font-size: 0.93rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.swatches { display: flex; gap: 6px; }
.sw {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); outline: 1.5px solid var(--line);
  cursor: pointer; padding: 0; transition: transform .15s ease, outline-color .15s ease;
}
.sw:hover { transform: scale(1.12); }
.sw[aria-pressed="true"] { outline-color: var(--text); }
.print-time { font-size: 0.72rem; color: var(--dim); }
.add {
  font: inherit; font-weight: 700; font-size: 0.88rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1.5px solid var(--dim); transition: all .2s ease;
}
.add:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* spools */
.spools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
.spool { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.spool-disc {
  --c: #888; position: relative; width: 96px; height: 96px; border-radius: 50%; max-width: 100%;
  background:
    radial-gradient(circle at 50% 50%, var(--surface) 0 15%, var(--plate) 15% 22%, transparent 22%),
    repeating-radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 82%, #000) 0 1.5px, var(--c) 1.5px 3.5px);
  box-shadow: inset 0 0 0 5px var(--plate), 0 10px 20px -8px rgba(0,0,0,.6);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.spool:hover .spool-disc { transform: rotate(200deg); }
.spool-disc.silk::after, .spool-disc.glitter::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(255,255,255,.45) 26%, transparent 32% 70%, rgba(255,255,255,.3) 76%, transparent 82%);
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23%); mask: radial-gradient(circle, transparent 0 22%, #000 23%);
  animation: sheen 5s linear infinite;
}
.spool-disc.glitter::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background-image: radial-gradient(#fff 0.8px, transparent 1.2px), radial-gradient(#fff 0.6px, transparent 1px);
  background-size: 11px 13px, 7px 9px; background-position: 0 0, 3px 5px; opacity: .55;
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23%); mask: radial-gradient(circle, transparent 0 22%, #000 23%);
  animation: sparkle 2.2s steps(4) infinite;
}
@keyframes sheen { to { transform: rotate(360deg); } }
@keyframes sparkle { 50% { opacity: .15; } }
.spool-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.spool-finish { font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 22px 24px 26px 0; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--brass);
  transition: width 0.9s ease;
}
.steps.lit li::before { width: 100%; }
.steps.lit li:nth-child(2)::before { transition-delay: .5s; }
.steps.lit li:nth-child(3)::before { transition-delay: 1s; }
.steps.lit li:nth-child(4)::before { transition-delay: 1.5s; }
.step-n { color: var(--brass); font-size: 0.85rem; }
.steps p { color: var(--dim); max-width: 22em; }
.step-spec { font-size: 0.75rem; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; align-self: flex-start; }

/* custom form */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.custom-grid > div { min-width: 0; }
.custom-grid h2 { margin-bottom: 16px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: baseline; gap: 14px; }
.facts b { font-size: 1.15rem; color: var(--brass); min-width: 6.5em; }
.facts span { color: var(--dim); }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: transparent; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--dim) 70%, transparent); }
.form .btn { align-self: flex-start; }
.form-msg { font-size: 0.9rem; min-height: 1.4em; color: var(--dim); }
.form-msg.ok { color: var(--brass); }
.form-msg.err { color: #FF8A94; }

/* footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 40px 48px; }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; align-items: start; }
.footer-brand p { color: var(--dim); margin-top: 8px; font-size: 0.92rem; max-width: 28em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-fine { color: var(--dim); font-size: 0.78rem; justify-self: end; }

/* toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; background: var(--text); color: var(--ink); font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility .35s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* shop perks */
.perks { list-style: none; margin: -6px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font-size: 0.92rem; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex: none; }
.perks b { color: var(--text); font-weight: 600; }

/* bag drawer */
body.bag-open { overflow: hidden; }
.bag-drawer { position: fixed; inset: 0; z-index: 90; }
.bag-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .28s ease; }
.bag-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--ink); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.7);
}
.bag-drawer.is-open .bag-scrim { opacity: 1; }
.bag-drawer.is-open .bag-panel { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 1.25rem; margin: 0; }
.bag-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.bag-close svg { width: 18px; height: 18px; }
.bag-items { list-style: none; margin: 0; padding: 6px 20px; overflow-y: auto; flex: 1; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--art-glow), var(--art-deep)); display: grid; place-items: center; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-thumb svg { width: 86%; height: 86%; }
.bag-name { margin: 0; font-weight: 700; line-height: 1.25; }
.bag-color { margin: 2px 0 8px; color: var(--dim); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 28px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.bag-right { display: grid; justify-items: end; gap: 10px; }
.bag-remove { border: 0; background: none; color: var(--dim); font: inherit; font-size: 0.82rem; cursor: pointer; text-decoration: underline; padding: 0; }
.bag-remove:hover { color: var(--text); }
.bag-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 20px; color: var(--dim); text-align: center; }
.bag-empty[hidden], .bag-foot[hidden], .bag-items[hidden] { display: none; }
.bag-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--surface); }
.ship-meter p { margin: 6px 0 0; font-size: 0.86rem; color: var(--dim); }
.ship-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--brass); border-radius: inherit; transition: width .4s ease; }
.bag-sum { margin: 0; display: grid; gap: 4px; }
.bag-sum div { display: flex; justify-content: space-between; color: var(--dim); }
.bag-sum dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.bag-sum .bag-total { color: var(--text); font-weight: 700; font-size: 1.05rem; padding-top: 4px; }
.bag-checkout { width: 100%; justify-content: center; }
.bag-checkout:disabled { opacity: .7; cursor: progress; }
.bag-note { margin: 0; font-size: 0.8rem; color: var(--dim); text-align: center; }
.bag-foot .form-msg:empty { display: none; }
.form-msg a { color: inherit; }

/* custom form extras */
.field-row-even { grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-mail { color: var(--brass); text-decoration: none; font-weight: 600; }
.footer-mail:hover { text-decoration: underline; }

/* policy and thank-you pages */
.page { padding: 56px 0 80px; }
.page-wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 6px 0 12px; line-height: 1.1; }
.page-lede { color: var(--dim); font-size: 1.12rem; line-height: 1.55; margin: 0 0 30px; }
.page section { border-top: 1px solid var(--line); padding: 22px 0 8px; }
.page h2 { font-size: 1.2rem; margin: 0 0 10px; }
.page section p, .page section li { line-height: 1.65; }
.page section p { margin: 0 0 12px; }
.page ul { padding-left: 1.2em; margin: 0 0 12px; display: grid; gap: 6px; }
.page a:not(.btn) { color: var(--brass); }
.page-updated { color: var(--dim); font-size: 0.85rem; margin-top: 30px; }
.thanks { text-align: center; padding: 24px 0; }
.thanks .page-lede { margin-left: auto; margin-right: auto; max-width: 34em; }
.order-ref { font-family: var(--font-mono); font-variation-settings: "MONO" 1; color: var(--brass); letter-spacing: .06em; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .custom-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .nav { display: none; }
  .bag { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .spools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spool-disc { width: 78px; height: 78px; }
  .steps { grid-template-columns: 1fr; }
  .readout { grid-template-columns: repeat(3, auto); }
  .footer-row { grid-template-columns: 1fr; }
  .footer-fine { justify-self: start; }
  .field-row { grid-template-columns: 1fr 96px; }
  .field-row-even { grid-template-columns: 1fr; }
  .brand-word { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
}

/* seasonal-only elements stay hidden in the base theme */
.snow, .lights { display: none; }

.credits { grid-column: 1 / -1; font-size: 0.78rem; color: var(--dim); border-top: 1px solid var(--line); padding-top: 18px; }
.credits a { color: var(--dim); }
.credit { font-size: 0.78rem; color: var(--dim); }
.credit a { color: var(--text); text-underline-offset: 2px; }

/* product photos: shown for the first listed color; other colors fall back to the drawing */
.card-art .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.card-art.show-photo .photo { opacity: 1; }
.card-art.show-photo .art-holder, .card-art.show-photo .plate { visibility: hidden; }
.card:hover .card-art.show-photo .photo { transform: scale(1.04); }
.card:hover .card-art.show-photo .scan { animation: scan 1.1s ease-out both; }
.card-art .badge { z-index: 2; }
.render-tag {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 0.66rem; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #EEF2F1; opacity: 0; transition: opacity .3s ease;
}
.card-art.show-photo .render-tag { opacity: 1; }
