/* node & noise lock page. Tokens from brand book v0.3 section 3 (light: A paper, dark: B cinema dark). No framework.
   Light/dark follows the device setting only (prefers-color-scheme); there is no switch and nothing is stored. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Pretendard-Medium.subset.woff2") format("woff2"); }

:root {
  --bg: #EFEFED; --ink: #111111; --ink-2: #4A4A45; --ink-3: #6B6B65;
  --line: #D6D6D1; --field-line: #80807A; --btn-bg: #111111; --btn-ink: #FFFFFF;
  --ok: #1F6B3A; --err: #A3241A; --focus: #111111;
  --display: "Poppins", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: "Pretendard", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0C; --ink: #EDEDEA; --ink-2: #B0B0AB; --ink-3: #858581;
    --line: #26262A; --field-line: #707076; --btn-bg: #EDEDEA; --btn-ink: #0B0B0C;
    --ok: #7FD69B; --err: #FF8F84; --focus: #EDEDEA;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--text);
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the lock page (r5, Ken 2026-10-23): the wordmark small at the top left like a standard header (nav size, brand book:
   ~100 px wide, >= the 72 px minimum; not a link), the one waitlist section centred on the screen both ways, and a quiet
   "privacy" link on the bottom edge (CalOPPA: a conspicuous link; kept >= 12 px and >= 4.5:1). Header and footer sit
   over the full-height main, so the section's centre is the screen's centre. ---- */
body.lockpage { position: relative; min-height: 100vh; min-height: 100svh; }
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 1; height: 64px; display: flex; align-items: center;
  padding: 0 clamp(16px, 2.5vw, 32px);
}
.top .wm { margin: 0; line-height: 0; }
.top .wm svg { display: block; width: 100px; height: auto; color: var(--ink); }
.lock {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 72px 16px;
}

.join { width: 100%; max-width: 380px; text-align: center; }
.line { margin: 0 0 14px; color: var(--ink-2); font: 400 14px/1.6 var(--text); letter-spacing: 0; }
.row { display: flex; gap: 10px; align-items: stretch; }
.field {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 2px; font: 400 16px/1.4 var(--text); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
}
.field::placeholder { color: var(--ink-3); opacity: 1; }
.field[aria-invalid="true"] { border-bottom-color: var(--err); }
.btn {
  flex: none; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink); font: 500 14px/1 var(--text);
}
.btn:hover { opacity: .88; }
.btn[disabled] { opacity: .6; cursor: progress; }

.status { margin: 10px 0 0; min-height: 1.6em; font-size: 14px; }
.status:empty { min-height: 0; margin: 0; }
.status:focus { outline: none; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.edge { position: absolute; inset: auto 0 0 0; padding: 0 16px 14px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.edge a { display: inline-block; padding: 4px 6px; color: var(--ink-3); text-decoration-thickness: 1px; }
.edge a:hover { color: var(--ink); }

/* no-JavaScript answers: the API redirects to /#joined, /#error-email ...; only the targeted one shows, and a
   successful join hides the form so the section reads as one line */
.msg { display: none; margin: 0 0 12px; font-size: 14px; }
.msg:target { display: block; outline: none; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
#joined:target ~ form { display: none; }

/* honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- the 404 page ---- */
.wrap { max-width: 560px; margin: 0 auto; padding: clamp(40px, 9vh, 96px) 16px 40px; }
.wrap .wm { margin: 0 0 clamp(28px, 6vh, 48px); line-height: 0; }
.wrap .wm svg { width: min(100%, 420px); height: auto; color: var(--ink); }
.opens { margin: 0; font: 500 clamp(22px, 4.6vw, 28px)/1.15 var(--display); letter-spacing: -0.02em; }
.local { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--ink-3); font-size: 13px; }

/* ---- the privacy notice ---- */
.doc h1 { font: 500 clamp(26px, 5vw, 34px)/1.1 var(--display); letter-spacing: -0.028em; margin: 0 0 8px; }
.doc h2 { font: 500 18px/1.3 var(--display); letter-spacing: -0.01em; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--ink-3); font-size: 13px; margin: 0 0 20px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; }
.small-wm { width: 132px; height: auto; display: block; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
