:root {
  --garnet: #73000a;
  --garnet-deep: #4a0009;
  --red: #c4122f;
  --black: #0b0b0b;
  --white: #ffffff;
  --cream: #f6f2ea;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at top, rgba(115, 0, 10, 0.45), transparent 50%),
    linear-gradient(180deg, #12080a 0%, var(--black) 28%, #10090b 100%);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); color: var(--black); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; backdrop-filter: blur(10px);
  background: rgba(11, 11, 11, 0.88); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; }
.brand strong {
  display: block; font-family: var(--font-display);
  letter-spacing: 0.06em; font-size: 1.15rem; font-weight: 400;
}
.brand em { display: block; font-style: normal; font-size: 0.72rem; color: #d7b4ba; }
.top-nav { display: flex; gap: 0.45rem; }
.topbar-link {
  font-size: 0.86rem; font-weight: 600; color: #f0d6da; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0.45rem 0.85rem;
}

main { width: min(720px, 100%); margin: 0 auto; padding: 1.25rem 1.1rem 3rem; }

.hero { text-align: center; padding: 1.5rem 0 1.1rem; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #e0a8b1; margin-bottom: 0.65rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 3.5rem);
  font-weight: 400; letter-spacing: 0.02em; line-height: 1.02; margin-bottom: 0.55rem;
}
.subhead { font-size: 1.05rem; color: #f0d6da; margin-bottom: 0.75rem; }
.hero-lead { color: #ddd3d5; max-width: 38rem; margin: 0 auto; }
.hero-lead strong { color: #fff; }

.board-card, .form-shell, .confirm-card {
  background: rgba(20, 16, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem 1.25rem;
  margin-bottom: 1.15rem;
}
.board-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.board-head h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; font-size: 1.7rem;
}
.board-stats {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem;
}
.stat-pill {
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28); padding: 0.35rem 0.7rem;
  font-size: 0.78rem; font-weight: 700; color: #f0d6da;
}
.board-status { color: #c9b4b8; font-size: 0.92rem; }
.board-list { display: grid; gap: 0.85rem; }
.cat-block h3 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e0a8b1; margin-bottom: 0.45rem;
}
.signup-row {
  display: grid; gap: 0.15rem;
  padding: 0.75rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28); margin-bottom: 0.45rem;
}
.signup-row strong { font-size: 0.98rem; }
.signup-row span { color: #d7c4c8; font-size: 0.9rem; }
.signup-row em {
  font-style: normal; color: #9b8e91; font-size: 0.78rem;
}

.form-shell h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.7rem;
  letter-spacing: 0.03em; margin-bottom: 0.35rem;
}
.form-grid { display: grid; gap: 0.85rem; margin: 1rem 0; }
.field label {
  display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.35rem; color: #f0d6da;
}
.req { color: #ff8a9a; }
.opt { color: #9b8e91; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35); color: #fff;
  padding: 0.7rem 0.85rem; font: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(196, 18, 47, 0.55); border-color: rgba(196, 18, 47, 0.8);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b7f; }
.hint { color: #b7a8ab; font-size: 0.86rem; }
.check-row {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin: 0.35rem 0 1rem; font-size: 0.92rem; color: #e8dfe1;
}
.check-row input {
  margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--red);
}
.check-row.invalid { color: #ffd0d7; }
.form-error {
  background: rgba(196, 18, 47, 0.18); border: 1px solid rgba(255, 107, 127, 0.45);
  color: #ffd6dc; border-radius: 10px; padding: 0.8rem 0.9rem; margin-bottom: 0.9rem;
}

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; border-radius: 12px; font: inherit;
  font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none;
  border: none; padding: 0.9rem 1rem;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--garnet) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(196, 18, 47, 0.28);
}
.btn-secondary {
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  background: transparent; color: #d7c4c8; border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 600;
}
.btn-small { width: auto; min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.84rem; }
.legal-note { margin-top: 0.75rem; font-size: 0.78rem; color: #a8989c; text-align: center; }

.confirmation { padding-top: 0.15rem; }
.confirm-lead { color: #ddd3d5; margin: 0.5rem 0 1rem; }
.calc-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem; color: #d7c4c8;
}
.calc-row:last-child { border-bottom: none; }
.calc-row strong { color: #fff; text-align: right; }
.confirm-actions { display: grid; gap: 0.65rem; margin-top: 0.85rem; }

.closing { text-align: center; padding: 2rem 0.5rem 1rem; }
.closing-line { font-size: 1.15rem; font-weight: 700; color: #f4e9eb; margin-bottom: 0.65rem; }
.signature {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 1.35rem; color: #fff; margin-bottom: 0.45rem;
}
.mission {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c9a2ab;
}
.site-footer {
  width: min(720px, 100%); margin: 0 auto; padding: 0 1.1rem 2.5rem;
  text-align: center; color: #9b8e91; font-size: 0.82rem;
}
.site-footer a { color: #d7c4c8; }
.site-footer p + p { margin-top: 0.35rem; }

@media (min-width: 640px) {
  .confirm-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
