/* Stat Sign Labs website: tokens, top bar, buttons, reserve form, FAQ, footer,
   phone bar, LED sign frames and the document pages. Dark sections use .dark. */
:root {
  --night: #0C0B0D; --night-2: #17151A; --on-night: #F2EFEA; --on-night-dim: #A9A4A0;
  --stone: #E3E4DF; --paper: #F1F1EE; --line-c: #CBCDC6; --ink: #1A1C1B; --mute: #5F635F;
  --train: rgb(0 57 166); --train-rgb: 0 57 166;   /* the train the visitor picks (sign.js) */
  --display: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --dots: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, canvas, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 900 11.5px/1.3 var(--dots); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0; }
.dark { background: var(--night); color: var(--on-night); }
.dark .label { color: var(--on-night-dim); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgb(241 241 238 / .9); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line-c); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.top.over { background: rgb(12 11 13 / .72); border-color: rgb(255 255 255 / .06); color: var(--on-night); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font: 400 22px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: 14.5px; }
.top nav a:not(.btn) { text-decoration: none; opacity: .75; }
.top nav a:not(.btn):hover { opacity: 1; }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--body); padding: 15px 24px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #000; }
.btn.small { font-size: 14px; padding: 10px 16px; }
.btn.light, .top.over .btn { background: var(--on-night); color: var(--night); }
.btn.light:hover, .top.over .btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn[disabled] { opacity: .6; cursor: default; }

/* reserve form */
#reserve, #buy { scroll-margin-top: 84px; }
.reserve { display: grid; gap: 18px; min-width: 0; }
.reserve fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.reserve legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.reserve legend span { font-weight: 400; color: var(--mute); }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color { position: relative; min-width: 0; }
.color input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.color label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-c); background: #fff; cursor: pointer; font-weight: 600; }
.color input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.color input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.swatch.black { background: linear-gradient(180deg, #333, #0E0E0E); }
.swatch.white { background: #FAFAF8; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field input { width: 100%; min-width: 0; font: 400 18px/1 var(--body); padding: 17px 18px; border-radius: 12px; border: 1.5px solid var(--line-c); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--ink); outline: none; }
.go { width: 100%; font-size: 18px; padding: 20px 24px; }
.error { margin: 0; color: #A3261B; font-size: 15px; min-height: 1.4em; overflow-wrap: anywhere; }
.fine { margin: 0; font-size: 14px; color: var(--mute); text-align: center; }
.reserved { display: grid; gap: 10px; padding: 26px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ink); overflow-wrap: anywhere; }
.reserved h3 { font: 400 30px/1.05 var(--display); margin: 0; }
.reserved p { margin: 0; color: #2F3330; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-c); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; max-width: 62ch; color: #2F3330; }

/* footer */
.foot { background: var(--night); color: #8E8A86; font-size: 14px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; color: #D8D4CF; }

/* phones: a reserve bar always in reach */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: none; gap: 12px; align-items: center; justify-content: space-between; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgb(241 241 238 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-c); }
.bar span { font-size: 14px; color: var(--mute); }
.bar b { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .bar.show { display: flex; } body.has-bar .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* LED signs drawn by sign.js */
.sign-face { background: #0A0A0A; padding: 3%; border-radius: 3px; }
.sign-face canvas, .bezel canvas { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 2px; }
.bezel { position: relative; padding: 3.2%; border-radius: 3% / 6%; background: linear-gradient(180deg, #2C2C2C, #111); box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 24px 34px -20px rgb(0 0 0 / .6), 0 5px 10px -5px rgb(0 0 0 / .4); transition: background .4s ease, box-shadow .4s ease; }
.bezel.white { background: linear-gradient(180deg, #FFFFFF, #E4E4E0); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgb(0 0 0 / .06), 0 24px 34px -20px rgb(0 0 0 / .35), 0 5px 10px -5px rgb(0 0 0 / .2); }
.bezel::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -5%; height: 5%; background: linear-gradient(90deg, #111 0 8%, transparent 8% 92%, #111 92%); }
.bezel.white::after { background: linear-gradient(90deg, #CFCFCA 0 8%, transparent 8% 92%, #CFCFCA 92%); }

/* train bullets */
.bullets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.bullet { width: 30px; height: 30px; border-radius: 50%; border: 0; font: 600 15px/1 var(--body); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bullet.dark-ink { color: #111; }
.bullet[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--on-night); }

/* document pages (support, privacy) */
.document { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 120px); }
.document .eyebrow { font: 900 11.5px/1.3 var(--dots); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.document h1 { font: 400 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
.document h2 { font: 400 28px/1.15 var(--display); margin: 44px 0 10px; }
.document .lede { font-size: 19px; color: #2F3330; }
.document .date { color: var(--mute); margin: 0 0 22px; }
.document .notice { background: var(--paper); border: 1px solid var(--line-c); border-radius: 12px; padding: 18px 20px; margin: 10px 0; }
.document li { margin-bottom: 6px; }
