:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #1f1a14;
  --muted: #6b6155;
  --line: #e7dccb;
  --accent: #d9622b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3d4;
  --error: #b42318;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --card: #221c16;
    --ink: #f4ece1;
    --muted: #b3a797;
    --line: #3a3027;
    --accent: #f07b42;
    --accent-ink: #1b120c;
    --accent-soft: #3a2518;
    --error: #ff8a7a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }

.brand { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600; margin-bottom: 32px; }

h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 600; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.lede { font-size: 1.1rem; color: var(--muted); margin: 16px 0 32px; }
.lede strong, .lede em { color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card section + section { margin-top: 32px; padding-top: 28px; border-top: 1px dashed var(--line); }
.hint { color: var(--muted); margin: 4px 0 16px; font-size: .95rem; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.nominees { list-style: none; margin: 0; padding: 0; }
.nominee { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 4px; margin-bottom: 12px; }
.nominee-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.num { font-weight: 600; color: var(--accent); }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }

.btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; cursor: pointer; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); width: 100%; font-size: 1.05rem; padding: 15px; margin-top: 8px; }
.btn.primary:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: var(--accent-soft); color: var(--ink); }

.error { color: var(--error); font-weight: 500; }
.fine { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 48px 24px; }
.success .big { font-size: 3rem; }
.success p { color: var(--muted); }

footer { text-align: center; color: var(--muted); margin-top: 40px; font-family: Fraunces, Georgia, serif; }

[hidden] { display: none !important; }
