/* Nicelist · look B "Lights", red and green (Nicholas, 2026-11-08). Green means nice, red means naughty.
   The lit bulbs on the tree are red, green and warm white: Christmas lights. Anywhere else, red marks naughty. */
:root {
  --ground: #060a08; --ever: #0a1810; --surface: #0e1612; --surface-2: #121d17; --line: #1f2924; --line-2: #2b3a31;
  --ink: #f4f7f3; --soft: #bcc6bf; --muted: #8f9a93; --faint: #5f6a63;
  --green: #2fc46d; --green-deep: #17753f; --red: #e8413e; --red-deep: #b9262a; --warm: #fff1cf;
  --display: 'Gambarino', Georgia, serif; --text: 'Golos Text', system-ui, sans-serif; --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4.4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 400 16px/1.55 var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; }
b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.strip { background: var(--red-deep); color: var(--ink); text-align: center; font-size: 14px; padding: 8px var(--pad); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn.solid { background: var(--green); color: #06110a; }
.btn.solid:hover { background: #3bd47a; }
.btn.line { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn.line:hover { border-color: var(--muted); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: relative; z-index: 3; display: flex; align-items: center; gap: 32px; padding: 32px var(--pad) 0; max-width: 1440px; margin: 0 auto; }
.word { display: inline-flex; align-items: center; gap: 10px; font: 400 32px/1 var(--display); text-decoration: none; }
.word.small { font-size: 22px; }
.mark { width: 22px; height: 30px; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .btn { height: 42px; font-size: 15px; }
.top .buy { margin-left: auto; gap: 0.28em; }   /* a flex item drops a leading space, so the gap is the space */
.top nav + .buy { margin-left: 0; }

/* hero: words, the tree, the key */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 430px) 500px minmax(0, 320px); justify-content: space-between; align-items: center;
  gap: 24px; max-width: 1440px; margin: 0 auto; padding: 12px var(--pad) 40px; min-height: 820px; isolation: isolate; }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90px at 50% 100%, #0e1612 70%, transparent 71%); border-top: 0; }
h1 { font: 400 clamp(52px, 6.2vw, 80px)/1 var(--display); letter-spacing: -0.015em; }
.sub { margin-top: 26px; font-size: 18px; line-height: 1.55; color: var(--soft); max-width: 430px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* the countdown sits between the star and the first lights at every width: sized from the tree's own width */
.tree-wrap { position: relative; width: 500px; justify-self: center; container-type: inline-size; }
.tree { display: block; width: 100%; height: auto; }
.count { position: absolute; left: 0; right: 0; top: 17.2cqw; text-align: center; }
.count b { display: block; font: 400 10.8cqw/1 var(--display); font-variant-numeric: tabular-nums; }
.count span { font-size: max(12px, 2.8cqw); color: var(--muted); }
.gifts { display: flex; justify-content: center; gap: 46px; margin-top: -6px; font-size: 14px; color: var(--soft); text-align: center; }
.gifts b { display: block; font: 400 26px/1.1 var(--display); }
.gifts b.g { color: var(--green); }
.gifts span { display: block; }

.key { font-size: 15px; line-height: 1.5; color: var(--soft); }
.key .row { display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-bottom: 18px; }
.key b { display: block; color: var(--ink); font: 400 30px/1.1 var(--display); }
.dots { display: flex; gap: 3px; margin-top: 10px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; }
.dots .lit-r { background: var(--red); } .dots .lit-g { background: var(--green); }
.dots .out { border: 1.5px solid #4a544e; }
.drawn { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* the tree's bulbs */
.bulb { transition: r .9s ease, fill .9s ease, stroke .9s ease; }
.bulb.out { fill: var(--ground); stroke: #4a544e; stroke-width: 1.4; }
.bulb.empty { fill: #2a3530; }
.bulb.you { stroke: var(--ink); stroke-width: 2.2; }
@media (prefers-reduced-motion: reduce) { .bulb { transition: none; } }

/* sections */
section h2 { font: 400 clamp(32px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -0.01em; }
.how, .find, .two, .xmas, .ca { max-width: 1440px; margin: 0 auto; padding: 88px var(--pad) 0; }
.rules { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 40px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.rules .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--green); font: 400 18px/1 var(--display); }
.rules .n.red { color: var(--red); }
.rules h3 { font: 400 22px/1.2 var(--display); margin: 3px 0 8px; }
.rules p { color: var(--soft); font-size: 15px; }
.rules p b { color: var(--ink); }

.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; align-items: start; }
.find-head p { color: var(--muted); margin-top: 12px; }
.lookup { display: flex; gap: 10px; }
.lookup input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 0 22px; font: 400 15px/1 var(--mono); }
.lookup input::placeholder { color: var(--faint); font-family: var(--text); }
.lookup .btn { height: 52px; }
.card { grid-column: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; min-height: 96px; }
.card h3 { font: 400 26px/1.15 var(--display); }
.card h3.nice { color: var(--green); } .card h3.naughty { color: var(--red); }
.card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.card dt { font-size: 13px; color: var(--muted); }
.card dd { font: 400 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.card .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.card ul { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.card li a { color: var(--green); text-decoration: none; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.lede { color: var(--muted); margin: 12px 0 22px; }
.ledger { list-style: none; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger li.empty { display: block; color: var(--muted); }
.ledger .addr { font: 400 14px/1.3 var(--mono); }
.ledger .t { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ledger .lost { color: var(--red); font-variant-numeric: tabular-nums; }
.ledger .sol { color: var(--green); font-variant-numeric: tabular-nums; }
.ledger a { color: inherit; }
.ledger .tag { font-size: 12px; color: var(--warm); border: 1px solid #4b4535; border-radius: 999px; padding: 1px 8px; margin-left: 8px; }

.xmas { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.xmas > div:first-child { max-width: 640px; }
.xmas p { color: var(--soft); margin-top: 14px; }
.xmas-count { text-align: right; }
.xmas-count b { display: block; font: 400 clamp(64px, 9vw, 120px)/0.9 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.xmas-count span { color: var(--muted); }

.ca h2 { font-size: clamp(26px, 2.6vw, 32px); }
.ca-box { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); max-width: 760px; }
.ca-box code { font: 400 15px/1.4 var(--mono); overflow-wrap: anywhere; flex: 1; }
.ca-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.ca-links a { color: var(--green); text-decoration: none; }
.ca p { margin-top: 10px; }

.foot { max-width: 1440px; margin: 96px auto 0; padding: 28px var(--pad) 36px; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.foot .links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.foot .links a { text-decoration: none; }
.fine { margin-top: 18px; font-size: 11px; color: var(--faint); }

.missing { max-width: 1440px; margin: 0 auto; padding: 120px var(--pad) 40px; }
.missing h1 { margin-top: 28px; font-size: clamp(40px, 5vw, 64px); }

/* narrower screens */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) 460px; }
  .tree-wrap { width: 460px; }
  .key { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .drawn { grid-column: 1 / -1; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 28px; }
  .tree-wrap { width: min(460px, 100%); }
  .find { grid-template-columns: 1fr; }
  .card { grid-column: auto; }
  .two { grid-template-columns: 1fr; gap: 72px; }
  .xmas { flex-direction: column; align-items: start; }
  .xmas-count { text-align: left; }
}
@media (max-width: 560px) {
  .top { padding-top: 20px; gap: 12px; }
  .word { font-size: 28px; }
  .top .btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .key { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 28px; }
  .gifts { gap: 24px; }
  .gifts b { font-size: 22px; }
  .card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup { flex-direction: column; }
  .lookup input { flex: none; }
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger li .t { grid-column: 1 / -1; }
  .how, .find, .two, .xmas, .ca { padding-top: 72px; }
}
@media (max-width: 340px) { .top .buy .long { display: none; } }
