/* Cinnabar waitlist styles. Tokens and base from mockups/cinna.css, page from mockups/waitlist.css. */
@font-face{font-family:'Figtree';font-style:normal;font-weight:300 900;font-display:swap;src:url(/fonts/Figtree.woff2) format('woff2');}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/Unbounded-700.woff2) format('woff2');}
:root {
  /* Greys: ground, panels, raised, lines */
  --ground: oklch(0.185 0 0);
  --panel: oklch(0.235 0 0);
  --panel-2: oklch(0.275 0 0);
  --sunk: oklch(0.205 0 0);
  --line: oklch(0.31 0 0);
  --line-soft: oklch(0.275 0 0);
  --hover: oklch(0.26 0 0);      /* hover on a panel */
  --hover-2: oklch(0.31 0 0);     /* hover on something raised */
  --press: oklch(0.285 0 0);

  /* Text: titles, reading, secondary, labels. Nothing people read is below --text-3 (Lc 60). */
  --text: oklch(0.95 0 0);
  --text-1: oklch(0.90 0 0);
  --text-2: oklch(0.90 0 0);
  --text-3: oklch(0.77 0 0);
  --text-4: oklch(0.68 0 0);      /* signatures and line numbers only */

  /* Deep azure is structure (V3rm's method); the lighter azure is for small coloured text */
  --brand: #0071a5;
  --brand-hi: #0a83bd;
  --accent: oklch(0.74 0.11 235);
  --accent-hi: oklch(0.80 0.10 235);
  --like: oklch(0.80 0.17 150);
  --dislike: oklch(0.68 0.21 22);

  /* Name colours (owner, 28 Nov 2026): members light grey, the mid plan green, the top plan gold. Violet is kept for rare awards. */
  --name: oklch(0.86 0 0);
  --gold: oklch(0.86 0.15 85);
  --green: oklch(0.80 0.15 155);
  --violet: oklch(0.78 0.14 300);

  /* Type scale */
  --sans: 'Figtree', system-ui, sans-serif;
  --mono: 'Recursive', ui-monospace, monospace;
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 14px; --fs-b: 16px; --fs-l: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  --fs-read: 16.5px;

  /* Shape and size */
  --r-s: 6px; --r: 8px; --r-l: 8px;
  --ctl: 36px;
  --wrap: 1840px;
  --gut: clamp(14px, 2.6vw, 40px);

  /* Motion: short, answers the pointer, nothing moves on arrival */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --d-press: 60ms; --d-state: 140ms; --d-in: 140ms; --d-out: 90ms;
  --t: var(--d-state) var(--ease);
}
@media (max-width: 760px) { :root { --ctl: 44px; } }

* { box-sizing: border-box; }
html { background: var(--ground); color-scheme: dark; overscroll-behavior-x: none; overflow-x: clip; scroll-padding-top: calc(var(--hdr, 58px) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; padding-top: var(--hdr, 58px); font: 400 var(--fs-b)/1.55 var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; display: flex; flex-direction: column; }
body > .page { flex: 1 0 auto; }
a { color: var(--text); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-2xl); line-height: 1.2; }
code, pre, .mono { font-family: var(--mono); font-variation-settings: "MONO" 1, "CASL" 0; }
[id] { scroll-margin-top: calc(var(--hdr, 58px) + 12px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; flex: none; }

/* One focus ring everywhere; corners stay as they are */
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Subtle crystal pattern behind every page, fading towards the bottom (owner, 26 Nov 2026) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.18) 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.18) 100%);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cg transform='translate(306 164) rotate(-3)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.023' d='M0 -31 L19 0 L0 31 L-19 0 Z'/%3E%3Cpath fill-opacity='0.018' d='M0 -31 L19 0 L0 8 Z'/%3E%3C/g%3E%3Cg transform='translate(574 99) rotate(12)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.025' d='M0 -71 L44 0 L0 71 L-44 0 Z'/%3E%3Cpath fill-opacity='0.020' d='M0 -71 L44 0 L0 18 Z'/%3E%3C/g%3E%3Cg transform='translate(479 340) rotate(-4)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.030' d='M0 -39 L24 0 L0 39 L-24 0 Z'/%3E%3Cpath fill-opacity='0.024' d='M0 -39 L24 0 L0 10 Z'/%3E%3C/g%3E%3Cg transform='translate(88 456) rotate(26)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.045' d='M0 -32 L20 0 L0 32 L-20 0 Z'/%3E%3Cpath fill-opacity='0.036' d='M0 -32 L20 0 L0 8 Z'/%3E%3C/g%3E%3Cg transform='translate(388 718) rotate(4)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.024' d='M0 -50 L31 0 L0 50 L-31 0 Z'/%3E%3Cpath fill-opacity='0.019' d='M0 -50 L31 0 L0 13 Z'/%3E%3C/g%3E%3Cg transform='translate(841 78) rotate(-4)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.028' d='M0 -31 L19 0 L0 31 L-19 0 Z'/%3E%3Cpath fill-opacity='0.022' d='M0 -31 L19 0 L0 8 Z'/%3E%3C/g%3E%3Cg transform='translate(691 613) rotate(-15)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.023' d='M0 -69 L43 0 L0 69 L-43 0 Z'/%3E%3Cpath fill-opacity='0.018' d='M0 -69 L43 0 L0 17 Z'/%3E%3C/g%3E%3Cg transform='translate(758 297) rotate(7)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.025' d='M0 -75 L47 0 L0 75 L-47 0 Z'/%3E%3Cpath fill-opacity='0.020' d='M0 -75 L47 0 L0 19 Z'/%3E%3C/g%3E%3Cg transform='translate(40 164) rotate(-23)' fill='rgb(255,255,255)'%3E%3Cpath fill-opacity='0.034' d='M0 -54 L34 0 L0 54 L-34 0 Z'/%3E%3Cpath fill-opacity='0.027' d='M0 -54 L34 0 L0 14 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 900px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctl); padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: var(--fs-m); font-weight: 700; white-space: nowrap; transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--d-press) var(--ease); }
.btn svg.i { width: 18px; height: 18px; }
.btn.main { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn:active { transform: scale(.97); transition-duration: var(--d-press); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wordmark { display: flex; align-items: center; color: var(--text); font: 700 21px/1 'Unbounded', var(--sans); letter-spacing: -0.03em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--hover-2); border-color: oklch(0.38 0 0); }
  .btn.main:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
  .wl-foot a:hover { color: var(--text-2); }
}
.btn:disabled { opacity: .6; cursor: default; }

/* Messages from the server (sign-in problems) */
.note-err { margin: 14px 0 0; font-size: var(--fs-m); font-weight: 600; color: var(--dislike); }

/* Privacy and terms */
.legal { flex: 1 0 auto; width: 100%; max-width: 680px; margin: 0 auto; padding: 48px var(--gut) 64px; }
.legal h1 { font-size: var(--fs-2xl); }
.legal h2 { margin: 32px 0 8px; font-size: var(--fs-l); }
.legal p { margin: 0 0 12px; color: var(--text-2); line-height: 1.65; }
.legal a { color: var(--accent); }
.legal .upd { color: var(--text-3); font-size: var(--fs-m); }

/* Waitlist page: one field, one button. Built by tools/build_waitlist.py. */

body.p-waitlist { padding-top: 0; }
.wl { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; align-content: center; padding: 48px var(--gut); }
.stack[hidden] { display: none; }
.stack { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }

.wl-top { display: flex; justify-content: center; padding: 28px var(--gut) 0; }
.wl-top .wordmark { height: auto; font-size: 22px; }
.lead { text-wrap: balance; margin: 0 0 28px; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }

/* The address is the field */
.claim { width: 100%; }
.addr { display: flex; align-items: center; height: 64px; padding: 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: text; transition: border-color var(--t); }
.addr:focus-within { border-color: var(--brand); }
.pre, .addr input { font: 650 22px/1 var(--sans); letter-spacing: -0.01em; }
.pre { color: var(--text-4); white-space: nowrap; }
.addr input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--text); outline: none; }
.addr input::placeholder { color: var(--text-4); opacity: .55; }
.st { margin-left: 12px; font-size: var(--fs-m); font-weight: 600; color: var(--text-3); white-space: nowrap; }
.st.hot { color: var(--accent); }
.st.bad { color: var(--dislike); }
.shake { animation: shake 240ms var(--ease); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.go { width: 100%; height: 56px; margin-top: 12px; border-radius: 14px; font-size: var(--fs-b); }
.go svg.i { width: 24px; height: 24px; }
.count { margin: 22px 0 0; font-size: var(--fs-m); color: var(--text-3); }
.count .num { color: var(--text); font-weight: 700; }

/* Returning: Discord sign-in shows your place. The page also remembers you on the same device. */
.check { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 12px; border-radius: var(--r); color: var(--text-3); font-size: var(--fs-m); font-weight: 600; transition: color var(--t), background-color var(--t); }
.check svg.i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .check:hover { color: var(--text); background: var(--panel); } }

/* After joining: a card with the name and place */
.pass { width: 100%; margin-top: 0; padding: 24px 26px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pass-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lbls { font-size: var(--fs-s); font-weight: 700; color: var(--text-3); }
.vals { margin-top: 6px; }
.nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; color: var(--name); }
.spot { font: 700 clamp(28px, 7.5vw, 40px)/1.1 'Unbounded', var(--sans); letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.pass-addr { margin: 6px 0 0; font-size: var(--fs-m); color: var(--text-3); }
.pass-foot { margin: 22px -26px 0; padding: 14px 26px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--sunk); font-size: var(--fs-m); color: var(--text-3); }
.rule { margin: 10px 0 0; font-size: var(--fs-m); color: var(--text-3); }
.rule b { color: var(--text); font-weight: 700; }
.inv { display: flex; gap: 8px; width: 100%; margin-top: 28px; }
.inv input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text-1); font: 600 var(--fs-b) var(--sans); }
.copy { height: 52px; min-width: 116px; border-radius: 12px; }
.copy .ic-copy, .copy .ic-done { display: flex; }
.copy .ic-done, .copy.done .ic-copy { display: none; }
.copy.done .ic-done { display: flex; color: var(--like); }

.wl-foot { display: flex; justify-content: center; gap: 22px; padding: 20px; font-size: var(--fs-s); }
.wl-foot a { color: var(--text-4); }

@media (max-width: 480px) {
  .addr { height: 58px; padding: 0 14px; }
  .pre, .addr input { font-size: 18px; }
  .st { font-size: var(--fs-s); }
}
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

/* Arriving from an invite link */
.invited { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: var(--fs-m); color: var(--text-3); }
.invited b { color: var(--text); font-weight: 700; }
.invited:has(img) { padding: 5px 16px 5px 5px; }
.invited img { width: 26px; height: 26px; margin-right: 2px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
