:root {
  --bg: #ffffff;
  --text: #92513d;
  --accent: #ff9c18;
  --soft: #f9c396;
  --focus: #0097b2;
  --link: #2222df;
  --alert: #ff3131;
  --serif: 'Geist Serif Triangle', Georgia, serif;
  --pixel: 'Geist Pixel Triangle', monospace;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1f2d; --text: #d2d5dd; --accent: #423b0b; --soft: #423b0b; --focus: #d2d5dd; --link: #d2d5dd; --alert: #ff3131; }
}
:root[data-theme="day"] { --bg: #ffffff; --text: #92513d; --accent: #ff9c18; --soft: #f9c396; --focus: #0097b2; --link: #2222df; --alert: #ff3131; }
:root[data-theme="night"] { --bg: #0d1f2d; --text: #d2d5dd; --accent: #423b0b; --soft: #423b0b; --focus: #d2d5dd; --link: #d2d5dd; --alert: #ff3131; }

@font-face { font-family: 'Geist Serif Triangle'; src: url('/fonts/GeistSerif-Triangle.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Pixel Triangle'; src: url('/fonts/GeistPixel-Triangle.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  font-family: var(--mono); font-size: 14px; line-height: 1.54; font-weight: 400;
  padding: 48px 20px 40px;
}
main { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.logo { width: 160px; height: auto; display: block; margin: 0 0 28px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
.soon { font-family: var(--pixel); font-size: 12px; line-height: 1.27; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 40px; text-align: center; }

form { width: 100%; display: grid; gap: 14px; }
form p { margin: 0 0 4px; }
label { display: grid; gap: 6px; font-family: var(--pixel); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
input, select, textarea, button {
  font: inherit; font-family: var(--mono); font-size: 14px; color: var(--text); background: transparent;
  border: 1px solid var(--text); border-radius: 0; padding: 10px 12px; width: 100%; margin: 0;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { color: #92513d; background: #ffffff; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { cursor: pointer; background: var(--accent); border-color: var(--accent); color: #0d1f2d; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px; }
:root[data-theme="night"] button, :root[data-theme="night"] select option { color: #d2d5dd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) button, :root:not([data-theme="day"]) select option { color: #d2d5dd; } }
:root[data-theme="night"] select option, :root:not([data-theme="day"]) select option { background: #0d1f2d; }
:root[data-theme="day"] select option { color: #92513d; background: #ffffff; }
button:hover { filter: brightness(1.05); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 13px; margin: 18px 0 0; text-align: center; min-height: 1.5em; }
.note.err { color: var(--alert); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

footer { margin-top: auto; padding-top: 48px; }
.theme { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 0; padding: 6px 0; width: auto; color: var(--text); cursor: pointer; opacity: .7; }
.theme:hover { opacity: 1; }
.theme::before { content: 'Night'; }
:root[data-theme="night"] .theme::before { content: 'Day'; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .theme::before { content: 'Day'; } }

@media (max-width: 480px) {
  body { padding: 36px 18px 32px; }
  .logo { width: 128px; margin-bottom: 22px; }
  h1 { font-size: 32px; }
  .soon { margin-bottom: 30px; }
}
