:root {
  color-scheme: dark;
  --bg: #101a15;
  --paper: #f7edd6;
  --muted: #bdc9bb;
  --line: #3c5342;
  --gold: #f3cf8e;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 54% 0%, #253a2b, transparent 42rem), var(--bg);
  color: var(--paper);
}
.site-header {
  width: min(100% - 3rem, 70rem);
  min-height: 4.75rem;
  border-bottom: 1px solid var(--line);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { color: var(--paper); font: 700 1.65rem Georgia, serif; text-decoration: none; }
.nav-link, .subnav a { color: var(--gold); font-size: .95rem; text-underline-offset: 4px; }
main { width: min(100% - 3rem, 70rem); margin: clamp(3rem, 8vw, 6rem) auto; }
.intro { margin-bottom: 2.5rem; }
h1, h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(3.25rem, 8vw, 6rem); line-height: .94; }
h2 { font-size: clamp(1.9rem, 4vw, 2.3rem); }
p { color: var(--muted); max-width: 43rem; line-height: 1.6; }
.intro p { font-size: clamp(1rem, 2vw, 1.2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel {
  background: linear-gradient(162deg, #23342b, #17241c 75%);
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: clamp(1.3rem, 5vw, 2.2rem);
  box-shadow: 0 1.5rem 3rem #0b120c55;
}
#token-panel, .recovery-panel { max-width: 34rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 650; font-size: .95rem; }
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  padding: .75rem .85rem;
  color: var(--paper);
  background: #121e16;
  border: 1px solid #54725d;
  border-radius: .35rem;
  font: inherit;
}
.choice { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; padding: .5rem 0; }
.choice input { accent-color: var(--gold); width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; }
.choice small { display: block; line-height: 1.6; color: var(--muted); font-weight: 500; margin-top: .2rem; }
button {
  justify-self: start;
  padding: .7rem 1.15rem;
  color: #211a10;
  background: linear-gradient(165deg, #ffe5ad, #eac077);
  border: 1px solid #ebc78b;
  border-radius: .35rem;
  font: 750 .95rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
button:hover:enabled { box-shadow: 0 .45rem 1.5rem #eac07735; transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.status { max-width: 100%; background: #203429; border-left: 2px solid var(--gold); color: var(--paper); padding: .75rem 1rem; }
.status[data-error="true"] { background: #34251e; }
@media (max-width: 42rem) {
  main, .site-header { width: calc(100% - 2rem); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
