/* Precedential front door (2026-10-07). Light and dark, following the app's palette. */
:root {
  --bg: #f7f6f3; --ink: #1b1a17; --ink-2: #55524b; --ink-3: #6f6b63;
  --accent: #9a7632; --line: rgba(27, 26, 23, .14); --field: #fff; --focus: rgba(154, 118, 50, .45);
  --sans: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131312; --ink: #ecebe6; --ink-2: #b4b1a9; --ink-3: #878480;
    --accent: #d3ae68; --line: rgba(236, 235, 230, .16); --field: #1c1b19; --focus: rgba(211, 174, 104, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131312; --ink: #ecebe6; --ink-2: #b4b1a9; --ink-3: #878480;
  --accent: #d3ae68; --line: rgba(236, 235, 230, .16); --field: #1c1b19; --focus: rgba(211, 174, 104, .5);
  color-scheme: dark;
}
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }

.door { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 24px; gap: clamp(40px, 7vh, 64px); }

.lockup { margin: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 34px);
  transition: transform .35s ease, gap .35s ease; }
/* The wordmark alone (operator, 2026-10-07); only its _ blinks. */
.lockup .word { width: clamp(270px, 52vw, 620px); height: auto; fill: var(--ink); }
.lockup .word .P { stroke: var(--ink); }
.lockup .word .cur { fill: var(--accent); animation: blink 1.06s steps(1, end) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lockup .word .cur { animation: none; } }
body.open .lockup { gap: 20px; }
body.open .lockup .word { width: clamp(220px, 30vw, 340px); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { font: 600 15px/1 var(--sans); padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); min-width: 168px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.panel { width: min(400px, 100%); animation: rise .25s ease both; }
.panel h2 { font: 600 22px/1.25 var(--serif); margin: 0 0 18px; text-align: center; letter-spacing: -.005em; }
.panel form { display: flex; flex-direction: column; gap: 14px; }
.panel label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.panel .opt { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.panel input { display: block; margin-top: 6px; font: 15px/1.3 var(--sans); padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink); width: 100%; }
.panel input[name="invite"], .panel input[name="code"] { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.row .btn { min-width: 0; }
.link { font: 500 14px/1.4 var(--sans); background: none; border: 0; padding: 4px 2px; color: var(--ink-2);
  cursor: pointer; border-radius: 6px; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.alt { margin: 18px 0 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.msg { margin: 0; min-height: 1.4em; font-size: 14px; color: #b3261e; }
:root[data-theme="dark"] .msg { color: #f2b8b5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg { color: #f2b8b5; } }
.msg.ok { color: var(--ink-2); }
.done p, .note { text-align: center; color: var(--ink-2); margin: 0 0 14px; }
.codes { list-style: none; padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--field); }

.foot { text-align: center; padding: 20px; font-size: 12px; color: var(--ink-3); }
.foot a { color: var(--ink-3); text-decoration: none; margin: 0 6px; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .dot { margin: 0 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel, .lockup { animation: none; transition: none; } }
@media (max-width: 480px) {
  .actions { flex-direction: column; width: 100%; max-width: 320px; }
  .actions .btn { width: 100%; }
}

/* The compact Cursor P in the footer (operator, 2026-10-07). */
.foot-mark { height: 14px; width: auto; vertical-align: -2px; margin-right: 8px; }
.foot-mark .P { fill: none; stroke: var(--ink-2); }
.foot-mark .a { fill: var(--accent); }
