:root {
  --color-page: #0a0a0a;
  --color-surface: #141414;
  --color-surface-raised: #1c1c1c;
  --color-text: #f5f5f5;
  --color-muted: #a6a6a6;
  --color-accent: #6b4226;
  --color-accent-hover: #7d4f2e;
  --color-border: #2a2a2a;
  --color-success: #8fbf98;
  --color-error: #e07a72;
  --shadow: 0 12px 32px rgb(0 0 0 / 35%);
  --radius: 0.75rem;
  --radius-small: 0.45rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --content-width: 70rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-page);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--color-page); color: var(--color-text); font-size: 1rem; line-height: 1.5; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #ffffff; text-decoration-color: var(--color-border); text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3 { margin: 0 0 var(--space-2); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.5rem, 5vw, 2.15rem); }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 var(--space-3); }

/* Buttons: white/black first so they're easy to spot and tap; the brown accent
   is kept to a thin 3px bottom edge, not a full fill, per the "small touch of
   brown only" direction. */
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.1rem;
  border: 1px solid #f5f5f5; border-bottom: 3px solid var(--color-accent); border-radius: var(--radius-small);
  background: #f5f5f5; color: #0a0a0a;
  cursor: pointer; font-weight: 700; text-decoration: none; transition: background-color .18s ease, transform .18s ease;
}
button:hover, .button:hover { background: #ffffff; }
button:active, .button:active { transform: translateY(1px); }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .5; }
.button-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border); border-bottom: 3px solid var(--color-accent); }
.button-secondary:hover { background: var(--color-surface-raised); }
.button-danger { background: #9c3f39; border-color: #9c3f39; color: #fff; }
.button-danger:hover { background: #b84d45; border-color: #b84d45; }

label { display: grid; gap: 0.35rem; color: var(--color-muted); font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 2.85rem; padding: 0.6rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-small);
  background: #101010; color: var(--color-text);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--color-accent-hover); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 0.7rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
th { color: var(--color-muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[role="status"] { padding: var(--space-2) var(--space-3); border-left: 3px solid var(--color-accent); border-radius: var(--radius-small); background: var(--color-surface-raised); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
