:root {
  /* Layout idea: a print bed with a faint grid; product tiles sit on it like finished parts. */
  --bed: #E6E9EC;
  --tile: #F6F7F8;
  --ink: #15181C;
  --muted: #59616A;
  --line: #CBD1D6;
  --accent: #E8480F;
  --accent-ink: #FFFFFF;
  --ok: #17794D;
  --on-ink: #FFFFFF;          /* text on dark --ink backgrounds (buttons, badges) */
  --ink-hover: #2A2F35;
  --hover: rgba(21,24,28,.07);
  --grid: rgba(21,24,28,.05); /* print-bed grid lines */
  --header-bg: rgba(230,233,236,.92);
  --field: #FFFFFF;           /* inputs, order cards */
  --note-bg: #FFF1D6; --note-line: #E8C26A; --note-ink: #5A3E00;
  --err: #B3261E;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
/* Dark mode: same token names, night-time values. Picked in Settings (data-theme on <html>). */
:root[data-theme="dark"] {
  --bed: #121417;
  --tile: #1C1F24;
  --ink: #ECEFF2;
  --muted: #9AA3AD;
  --line: #343A42;
  --on-ink: #15181C;
  --ink-hover: #D2D7DD;
  --hover: rgba(255,255,255,.08);
  --grid: rgba(255,255,255,.04);
  --header-bg: rgba(18,20,23,.9);
  --field: #24282E;
  --note-bg: #3A2F12; --note-line: #7A6220; --note-ink: #F3DFA6;
  --err: #FF8A80;
  --ok: #5ED39A;
  color-scheme: dark;
}
/* Text size: everything is sized in rem, which follows this one number. Picked in Settings. */
html { font-size: 100%; }
html[data-size="small"] { font-size: 87.5%; }
html[data-size="big"] { font-size: 112.5%; }
html[data-size="huge"] { font-size: 125%; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--bed); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.5;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.02; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .04em; text-transform: uppercase; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo svg { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-btn { background: var(--ink); color: var(--on-ink); border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.cart-btn .count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 0.75rem; padding: 0 6px; font-variant-numeric: tabular-nums; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.75rem); font-weight: 800; letter-spacing: -.035em; }
.layered {
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 7px);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hero p.lede { font-size: 1.1875rem; max-width: 46ch; color: var(--muted); margin: 22px 0 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--ink-hover); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #cc3d09; border-color: #cc3d09; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--hover); }
.hero-art { background: var(--tile); border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art svg { width: 78%; height: 78%; }
.hero-art .tag { position: absolute; left: 16px; bottom: 14px; color: var(--muted); }
.hero-art .tag2 { position: absolute; right: 16px; top: 14px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
.rot { transform-box: fill-box; transform-origin: center; }
.hero-art .rot { animation: spin 9s linear infinite; }
.card:hover .spin { animation: spin 2.4s linear infinite; }
.card:hover .spinr { animation: spinr 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-art .rot, .card:hover .spin, .card:hover .spinr { animation: none; } html { scroll-behavior: auto; } }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tile); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.facts .wrap > div { padding: 16px 16px; border-left: 1px solid var(--line); }
.facts .wrap > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.facts span { color: var(--muted); font-size: 0.875rem; }

/* shop */
section.shop { padding: 56px 0 24px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-head h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 0.875rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--tile); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.card .art { aspect-ratio: 1; display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.card .art svg { width: 82%; height: 82%; }
.card .badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--on-ink); border-radius: 6px; padding: 2px 8px; }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.3125rem; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.specs { display: flex; gap: 12px; color: var(--muted); }
.deal { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 3px 9px; font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.sw.special { background-image: linear-gradient(135deg, rgba(255,255,255,.55), transparent 55%) !important; }
.picked { font-size: 0.75rem; color: var(--muted); min-height: 1.4em; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tile); box-shadow: 0 0 0 1.5px var(--sw-ring, var(--line)); padding: 0; }
:root[data-theme="dark"] { --sw-ring: #6B737D; } /* so Carbon Black still shows on a dark card */
.sw[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.add { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 600; }
.add:hover { background: #cc3d09; }

/* how */
section.how { padding: 48px 0 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.step { border-top: 3px solid var(--ink); padding-top: 12px; }
.step h3 { font-size: 1.375rem; font-weight: 800; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); max-width: 40ch; }
section.how h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
footer { border-top: 1px solid var(--line); background: var(--tile); padding: 28px 0 40px; color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* drawer + modal */
.scrim { position: fixed; inset: 0; background: rgba(21,24,28,.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--tile); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer h2 { font-size: 1.625rem; font-weight: 800; }
.x { background: transparent; border: 1.5px solid var(--ink); border-radius: 8px; width: 36px; height: 36px; font-size: 1.125rem; line-height: 1; }
.lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bed); display: grid; place-items: center; }
.line .thumb svg { width: 54px; height: 54px; }
.line b { display: block; font-family: var(--display); font-size: 1.0625rem; }
.line small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 8px; margin-top: 6px; }
.qty button { background: transparent; border: 0; width: 30px; height: 28px; font-size: 1rem; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.line .lt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 0.8125rem; padding: 4px 0 0; }
.sum { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bed); }
.row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; padding: 2px 0; }
.row.total { font-family: var(--display); font-weight: 800; font-size: 1.375rem; padding-top: 8px; }
.sum .btn { width: 100%; margin-top: 12px; }
.ship-note { font-size: 0.8125rem; color: var(--muted); margin: 4px 0 0; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; overflow-y: auto; }
.modal.open { display: grid; }
.sheet { background: var(--tile); border-radius: 18px; width: min(760px, 100%); max-height: calc(100% - 16px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); }
.sheet h2 { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.demo { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); padding: 10px 12px; border-radius: 10px; font-size: 0.875rem; margin: 12px 0 18px; }
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
form .f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
form label { font-size: 0.8125rem; font-weight: 600; }
form input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; }
form input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21,24,28,.15); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recap { background: var(--bed); border-radius: 12px; padding: 14px; align-self: start; }
.recap .li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.875rem; padding: 3px 0; }
.done { text-align: center; padding: 20px 0 8px; }
.done .big { font-family: var(--mono); font-size: 1.125rem; background: var(--ink); color: var(--on-ink); display: inline-block; padding: 6px 14px; border-radius: 8px; margin: 10px 0; }

.ownerlink { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 0.8125rem; padding: 0; }
.card .add[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
#owner { background: rgba(21,24,28,.6); }
#owner .sheet { width: min(980px, 100%); }
.ohead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--bed); border-radius: 12px; padding: 12px 14px; }
.tile b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ord { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--field); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.ord small { color: var(--muted); }
.ord select { font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ptable th { text-align: left; font-weight: 600; padding: 6px 6px; border-bottom: 2px solid var(--ink); font-size: 0.75rem; }
.ptable td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable input[type=number] { width: 78px; padding: 6px 8px; }
.ptable input[type=checkbox], .ptable input[type=radio] { width: 18px; height: 18px; }
.tscroll { overflow-x: auto; }
.small-btn { background: transparent; border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 12px; font-weight: 500; font-size: 0.875rem; }
.small-btn:hover { background: var(--hover); }
.warn { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); padding: 10px 12px; border-radius: 10px; font-size: 0.875rem; margin-bottom: 14px; }
/* settings */
.gear-btn { background: transparent; border: 1.5px solid var(--line); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--ink); }
.gear-btn:hover, .gear-btn[aria-expanded="true"] { background: var(--hover); border-color: var(--ink); }
.gear-btn svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out, ease); }
.gear-btn[aria-expanded="true"] svg { transform: rotate(60deg); }
.settings { position: fixed; top: 72px; right: max(16px, calc((100vw - 1160px) / 2 + 20px)); z-index: 30; width: min(320px, calc(100vw - 32px)); background: var(--tile); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); animation: rise .25s var(--ease-out, ease); }
.settings[hidden] { display: none; }
.settings h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 4px; }
.set-label { color: var(--muted); margin: 12px 0 6px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg.two-up { grid-template-columns: repeat(2, 1fr); }
.seg button { border: 1.5px solid var(--line); background: transparent; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .8125rem; font-weight: 500; }
.seg button span { font-family: var(--display); font-weight: 800; line-height: 1.1; min-height: 1.6rem; display: grid; place-items: end center; }
.seg button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .settings, .gear-btn svg { animation: none; transition: none; } }

/* accounts, checkout choices, newsletter, admin */
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.err { color: var(--err); font-size: .875rem; margin: 0 0 10px; min-height: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
code { font-family: var(--mono); font-size: .85em; background: var(--hover); padding: 1px 5px; border-radius: 4px; }
.acct-btn { background: transparent; border: 1.5px solid var(--line); border-radius: 999px; height: 40px; padding: 0 14px 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--ink); max-width: 160px; }
.acct-btn svg { width: 20px; height: 20px; flex: none; }
.acct-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn:hover, .acct-btn.signed-in { border-color: var(--ink); }
.narrow { max-width: 380px; }
.narrow-sheet { width: min(520px, 100%) !important; }
.role { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 8px; }
h3.sub { font-size: 1.125rem; font-weight: 800; margin: 18px 0 8px; }
.signed { font-size: .875rem; color: var(--muted); margin: 0 0 12px; }
.tick { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; margin: 6px 0 12px; cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
fieldset.choice { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
fieldset.choice legend { font-size: .8125rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
fieldset.choice label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--field); }
fieldset.choice label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
fieldset.choice label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
fieldset.choice input, .tick input { width: auto; flex: none; padding: 0; margin-top: 3px; accent-color: var(--accent); }
fieldset.choice b { display: block; font-size: .9375rem; }
fieldset.choice small { display: block; color: var(--muted); font-size: .8125rem; }
#addrBox[hidden] { display: none; }
.pp-box { display: grid; gap: 10px; max-width: 380px; margin: 16px 0; }
.pp-btn { border: 0; border-radius: 6px; height: 46px; font-weight: 700; font-size: 1rem; }
.pp-gold { background: #FFC439; color: #003087; }
.pp-gold:hover { background: #F2BA36; }
.pp-logo { font-family: Verdana, sans-serif; font-style: italic; font-weight: 800; font-size: 1.25rem; }
.pp-logo i { color: #009CDE; }
.pp-dark { background: #2C2E2F; color: #fff; }
.pp-dark:hover { background: #000; }
.ord-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ord.mini { background: var(--bed); }
.reset-form { display: flex; gap: 6px; align-items: flex-end; }
.reset-form input { display: block; width: 150px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
details.pw { margin-top: 16px; }
details.pw summary { cursor: pointer; font-weight: 600; }
form .f small { font-size: .75rem; }
form select { font: inherit; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); }
section.news { padding: 40px 0 56px; }
section.news .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--tile); border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 1120px; }
section.news h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); }
.news-row input:focus { border-color: var(--ink); outline: none; }
@media (max-width: 760px) {
  section.news .wrap { grid-template-columns: 1fr; margin: 0 16px; padding: 20px; }
  .acct-btn span { display: none; }
  .acct-btn { padding: 0; width: 40px; justify-content: center; }
  .top nav { gap: 10px; }
  .logo { font-size: 1.125rem; }
}

/* logo: "Filament Fidgets" with a small "Canada" tag */
.logo-name { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; row-gap: 0; }
.logo-ca { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 4px; padding: 1px 5px; line-height: 1.3; transform: translateY(-2px); }
@media (max-width: 480px) { .logo-name { flex-direction: column; align-items: flex-start; gap: 2px; } .logo-ca { transform: none; font-size: .5625rem; } }

/* engraving: add a name */
.engrave { display: grid; gap: 6px; }
.eng-toggle { justify-self: start; background: transparent; border: 1.5px dashed var(--line); border-radius: 8px; padding: 4px 10px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.eng-toggle small { font-weight: 400; color: var(--muted); }
.eng-toggle:hover, .eng-toggle[aria-expanded="true"] { border-color: var(--ink); border-style: solid; }
.eng-box { display: grid; gap: 4px; }
.eng-box[hidden] { display: none; }
.eng-input, .p3d-name input { font: 800 1rem var(--display); letter-spacing: .02em; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; }
.eng-input:focus, .p3d-name input:focus { border-color: var(--ink); outline: none; }
.engrave small, .p3d-name small { font-size: .75rem; line-height: 1.3; }
.eng-tag { display: block; color: var(--accent); font-weight: 600; }
.eng-name { font-family: var(--display); font-weight: 800; font-size: 1.375rem; }
.eng-row.pending-review { border-color: var(--accent); }
.eng-row .ord-side { gap: 6px; }

/* 3D preview */
.chip3d { position: absolute; top: 10px; right: 10px; z-index: 1; border: 1.5px solid var(--line); background: var(--tile); color: var(--ink);
  border-radius: 999px; padding: 3px 9px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; font-weight: 500; }
.chip3d:hover, .card .art:hover .chip3d { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.p3d-sheet { width: min(860px, 100%) !important; }
.p3d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
#p3dCanvas { display: block; width: 100%; max-height: calc(100vh - 230px); aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); cursor: grab; touch-action: none; background: var(--tile); }
#p3dCanvas:active { cursor: grabbing; }
.p3d-status { color: var(--muted); margin: 8px 0 6px; min-height: 1.4em; }
.p3d-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.p3d-info { display: flex; flex-direction: column; gap: 10px; }
.p3d-info p { margin: 0; color: var(--muted); }
.p3d-info .specs { flex-wrap: wrap; }
@media (max-width: 760px) { .p3d-layout { grid-template-columns: 1fr; } #p3dCanvas { max-height: 52vh; margin: 0 auto; } }

/* test-site banner (hidden on the live site) */
.test-banner { background: repeating-linear-gradient(135deg, var(--note-bg) 0 14px, var(--note-line) 14px 16px); color: var(--note-ink);
  text-align: center; padding: 5px 12px; font-weight: 500; border-bottom: 1px solid var(--note-line); }
.test-banner[hidden] { display: none; }

/* mini game: Layer Stacker */
.play-btn { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); border: 3px solid var(--tile); border-radius: 999px; padding: 10px 18px 10px 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.0625rem; box-shadow: 0 8px 22px -8px rgba(0,0,0,.45); animation: playPulse 2.4s ease-in-out infinite; }
.play-btn svg { width: 20px; height: 20px; }
.play-btn:hover { background: #cc3d09; }
.play-btn:active { transform: translate(-50%, -50%) scale(.94); }
@keyframes playPulse { 0%, 100% { box-shadow: 0 8px 22px -8px rgba(0,0,0,.45), 0 0 0 0 rgba(232,72,15,.45); } 50% { box-shadow: 0 8px 22px -8px rgba(0,0,0,.45), 0 0 0 12px rgba(232,72,15,0); } }
.game-sheet { width: min(820px, 100%) !important; text-align: center; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.board { text-align: left; background: var(--bed); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.board h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; }
.prize-card { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 10px 12px; font-size: .875rem; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.prize-card small { display: block; font-weight: 400; opacity: .9; margin-top: 2px; }
.board-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.board-list li { counter-increment: rank; display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.board-list li::before { content: counter(rank); font-family: var(--mono); font-size: .75rem; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--tile); border: 1px solid var(--line); flex: none; }
.board-list li:first-child::before { content: "🏆"; border: 0; background: none; font-size: 1rem; }
.board-list li.muted::before, .board-list li.empty::before { content: none; }
.board-list li .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list li .pts { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.board-list li.me { background: var(--tile); border-radius: 8px; font-weight: 600; }
.board-me { font-size: .875rem; margin: 10px 0 4px; }
.board .small-btn { margin-top: 4px; }
.prize-line { color: var(--ok); font-weight: 600; }
:root[data-theme="dark"] .prize-line { color: #5FD69B; }
.game-side { display: grid; gap: 14px; }
.featured { text-align: left; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.feat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.feat-head h3 { color: var(--muted); font-size: .75rem; font-weight: 500; }
.feat-dots { display: flex; gap: 4px; }
.feat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.feat-dots i.on { background: var(--accent); }
.feat-body { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; animation: featIn .5s var(--ease-out, ease); }
.feat-art { width: 76px; height: 76px; border-radius: 10px; background: var(--bed); display: grid; place-items: center; cursor: pointer; border: 0; padding: 0; }
.feat-art svg { width: 66px; height: 66px; }
.feat-body b { display: block; font-family: var(--display); font-size: 1.0625rem; line-height: 1.15; }
.feat-body p { margin: 2px 0 6px; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.feat-buy { display: flex; align-items: center; gap: 8px; }
.feat-buy .price { font-size: 1.125rem; }
.feat-buy .add { padding: 6px 10px; font-size: .8125rem; white-space: nowrap; }
@keyframes featIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .feat-body { animation: none; } }
@media (max-width: 760px) { .game-layout { grid-template-columns: 1fr; } }
.game-sheet .ohead { text-align: left; }
.game-stats { display: flex; justify-content: center; gap: 22px; margin: 6px 0 10px; color: var(--muted); }
.game-stats b { color: var(--ink); font-size: 1rem; }
#gameCanvas { display: block; width: min(100%, 400px, calc((100vh - 340px) * 32 / 44)); min-width: 200px; aspect-ratio: 32 / 44; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); touch-action: manipulation; cursor: pointer; }
.game-msg { min-height: 1.5em; font-family: var(--display); font-weight: 800; font-size: 1.125rem; margin: 10px 0 8px; }
.game-drop { width: 100%; max-width: 400px; }
@media (prefers-reduced-motion: reduce) { .play-btn { animation: none; } }

/* ---------- motion system ---------- */
:root { --ease-out: cubic-bezier(.2,.8,.2,1); --ease-pop: cubic-bezier(.34,1.56,.64,1); }
@keyframes rise { from { transform: translateY(18px) scale(.98); } to { transform: none; } }
@keyframes stripes { to { background-position: 0 14px; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(7deg); } 75% { transform: rotate(-4deg); } }
@keyframes press { 0%,100% { transform: translateY(0); } 40% { transform: translateY(3px); } }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.grid .card { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.grid .card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px -12px rgba(21,24,28,.35); }
.card .art { cursor: pointer; }
.card .art svg { transition: transform .3s var(--ease-pop); }
.card:hover .art svg { transform: scale(1.05); }
.card .art.poke svg { animation: wiggle .6s var(--ease-out); }
.card .art.poke .spin, .card .art.poke .dial { animation: spin .8s var(--ease-out); }
.card .art.poke .spinr { animation: spinr .8s var(--ease-out); }
.key, .flip { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease-pop); }
.card .art.poke .key { animation: press .25s ease-in-out 3; }
.card .art.poke .k1 { animation-delay: .08s; } .card .art.poke .k2 { animation-delay: .16s; } .card .art.poke .k3 { animation-delay: .24s; }
.card .art.poke .flip { transform: translateX(-26px); }
.layered { background-size: 100% 7px; animation: stripes 1.2s linear infinite; }
.add, .btn, .chip, .sw, .cart-btn { transition: transform .15s var(--ease-pop), background-color .2s, box-shadow .2s; }
.add:active, .btn:active, .chip:active, .cart-btn:active { transform: scale(.94); }
.sw:hover { transform: scale(1.15); }
.cart-btn .count.bump { animation: bump .45s var(--ease-pop); }
.hero-art svg { overflow: visible; } /* the print head parks just outside the drawing */
.fly { position: fixed; width: 18px; height: 18px; border-radius: 50%; z-index: 80; pointer-events: none; box-shadow: 0 0 0 3px #fff; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: 999px; z-index: 90; font-weight: 500; animation: toastIn .3s var(--ease-pop); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.toast i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.line { animation: rise .35s var(--ease-out) both; }
.modal.open .sheet { animation: rise .35s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .grid .card, .line, .modal.open .sheet, .layered, .toast, .cart-btn .count.bump, .card .art.poke svg, .card .art.poke .key, .card .art.poke .spin, .card .art.poke .spinr, .card .art.poke .dial { animation: none !important; }
  .grid .card:hover, .card:hover .art svg { transform: none; }
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .co { grid-template-columns: 1fr; }
  .top nav a { display: none; }
}
@media (max-width: 480px) {
  .grid { gap: 10px; }
  .card h3 { font-size: 1.125rem; }
  .card .body { padding: 10px; }
  .buy { flex-wrap: wrap; }
  .two { grid-template-columns: 1fr; }
}

/* ---------- Customers section: popular + recent, reviews, custom print requests ---------- */
section.customers { padding: 48px 0 8px; }
section.customers h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.cust-lede { margin: 6px 0 20px; }
.cust-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.cust-card { background: var(--tile); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.cust-card h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 10px; }
.cust-card h3.cust-sub { margin-top: 20px; }
.cust-wide { grid-column: 1 / -1; }
.pop-list, .recent-list { list-style: none; margin: 0; padding: 0; }
.pop-list { counter-reset: pop; }
.pop-list li, .recent-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pop-list li:last-child, .recent-list li:last-child { border-bottom: 0; }
.pop-list li:not(.muted)::before { counter-increment: pop; content: counter(pop); font-family: var(--mono); font-size: .75rem; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bed); border: 1px solid var(--line); flex: none; }
.pop-list li:first-child:not(.muted)::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pop-name { flex: 1; font-weight: 600; }
.pop-qty { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.recent-list li > span:nth-child(2) { flex: 1; font-size: .875rem; }
.recent-list li > small { white-space: nowrap; font-size: .6875rem; }
.mini { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--bed); border-radius: 10px; overflow: hidden; }
.mini svg { width: 34px; height: 34px; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rev-avg { font-size: .9375rem; }
.stars { color: var(--accent); letter-spacing: .08em; }
.rev-list { max-height: 420px; overflow-y: auto; }
.rev { margin: 0 0 10px; padding: 12px 14px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; }
.rev-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rev blockquote { margin: 6px 0; overflow-wrap: anywhere; }
.rev figcaption { font-size: .8125rem; }
.verified { color: var(--ok); font-size: .75rem; font-weight: 600; }
.rev-cta { margin: 12px 0 0; }
.rev-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rev-form h4 { margin: 0 0 8px; font-size: 1rem; }
.star-pick { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.star-pick legend { float: left; margin-right: 10px; padding: 0; }
.star-pick label { font-size: 1.75rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; position: relative; }
.star-pick label.lit { color: var(--accent); }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label:focus-within { outline: 3px solid var(--ink); outline-offset: 1px; border-radius: 6px; }
form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; resize: vertical; }
form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21,24,28,.15); }
.three { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok { color: var(--ok); font-size: .9375rem; margin: 0 0 10px; }
.ok:empty { display: none; }
.req-idea { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.req-row a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .cust-grid { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
  .three .f:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .cust-card { padding: 16px; }
}

/* ---------- Pop-out 3D panes (v2.4.1): stacked orange "print layers" under a card ---------- */
.pop3d {
  background: var(--tile); border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: 1px 1px 0 var(--accent), 2px 2px 0 var(--accent), 3px 3px 0 var(--accent), 4px 4px 0 var(--accent),
              5px 5px 0 var(--accent), 6px 6px 0 var(--accent), 7px 7px 0 var(--accent), 8px 8px 0 var(--accent),
              8px 8px 0 2px var(--ink), 14px 18px 28px -10px rgba(0,0,0,.35);
}
section.custom-print { padding: 44px 0 12px; }
.cp-card { display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center; padding: 26px 28px; margin-right: 10px;
  transition: transform .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease); }
.cp-card:hover { transform: translate(-2px, -2px); }
.cp-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 2px 0 8px; }
.cp-card p { margin: 0; max-width: 60ch; }
.cp-kicker { color: var(--accent); margin: 0; }
.cp-btn { white-space: nowrap; }
.modal .sheet.pop3d { border: 2px solid var(--ink); margin: 0 10px 10px 0; }
.req-sheet { width: min(720px, 100%); }
.soon-sheet { text-align: center; }
.soon-sheet .ohead { text-align: left; }
.soon { display: grid; gap: 6px; width: 120px; margin: 10px auto 18px; }
.soon i { display: block; height: 14px; border-radius: 7px; background: var(--line); margin: 0 auto; }
.soon i:nth-child(1) { width: 60%; background: var(--accent); animation: soonSlide 2.4s ease-in-out infinite alternate; }
.soon i:nth-child(2) { width: 80%; }
.soon i:nth-child(3) { width: 100%; }
@keyframes soonSlide { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
.soon-title { font-family: var(--display); font-size: 1.75rem; font-weight: 800; margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .cp-card { transition: none; } .cp-card:hover { transform: none; } .soon i { animation: none; } }
@media (max-width: 760px) {
  .cp-card { grid-template-columns: 1fr; padding: 20px; }
  .cp-btn { width: 100%; }
}
