:root {
  --bg: #0a0a0a;
  --bg-raise: #111111;
  --bg-sunk: #070707;
  --line: #222222;
  --line-strong: #3a3a3a;
  --text: #e9e8e4;
  --muted: #8b8a86;
  --dim: #5a5956;
  --paper: #e9e8e4;
  --ink: #0a0a0a;
  --warn: #c8a24a;
  --crit: #d2563f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
::selection { background: var(--paper); color: var(--ink); }

button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.field { display: grid; gap: 8px; }
.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font-size: 16px;
  outline: none;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.input:focus { border-color: var(--text); }
.input:focus-visible { outline: none; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.55; }
select.input { appearance: none; -webkit-appearance: none; }
select.input option { background: var(--bg-raise); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); }
.btn.danger { background: transparent; color: var(--crit); border-color: color-mix(in srgb, var(--crit) 50%, transparent); }
.btn.danger:hover { background: var(--crit); color: var(--ink); }
.btn:disabled { opacity: .4; pointer-events: none; }

.error { color: var(--crit); font-size: 12px; min-height: 18px; }

:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
