:root {
  --cream: #FDE8C3;
  --green: #0B4A2A;
  --green-dark: #083620;
  --orange: #F5A25D;
  --clay: #C8500A;
  --error: #8A2F00;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--cream); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.display { font-family: Fraunces, Georgia, serif; font-weight: 800; letter-spacing: -0.02em; }

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nav */
.nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  padding-top: 24px;
}
.nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 22px; border-radius: 999px; border: 2px solid var(--green);
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--green);
}
.nav a[aria-current="page"] { background: var(--green); color: var(--cream); }

/* Hero */
.hero-art { padding-top: 48px; padding-bottom: 24px; }
.hero-art img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }

.hero-text { text-align: center; padding-top: 8px; padding-bottom: 56px; }
.hero-text .kicker {
  margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
}
.hero-text .kicker sup { font-size: 0.6em; }
.hero-text h1 { margin: 16px auto 0; max-width: 820px; }
.hero-text h1 img { display: block; width: 100%; height: auto; }
.hero-text .tagline {
  margin: 32px 0 0; font-size: 22px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; line-height: 1.5;
}

/* Details */
.details {
  display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 56px;
}
.details > div { flex: 1 1 280px; border-top: 3px solid var(--green); padding-top: 24px; }
.schedule {
  margin-top: 16px; display: grid; grid-template-columns: auto 1fr;
  column-gap: 24px; row-gap: 10px; font-size: 20px;
}
.schedule dt { font-weight: 700; }
.schedule dd { margin: 0; }
.date-num { margin-top: 12px; font-size: 88px; line-height: 1; }
.date-month { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.place-name { margin-top: 16px; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.place-addr { margin-top: 6px; font-size: 20px; line-height: 1.5; text-transform: uppercase; font-style: normal; }
.place-addr a { text-decoration: none; }
.place-addr a:hover { text-decoration: underline; }

/* RSVP band */
.band { background: var(--green); color: var(--cream); }
.band a { color: var(--orange); }
.rsvp { max-width: 760px; margin: 0 auto; padding: 72px 24px 80px; }
.rsvp h2 { margin: 0; font-size: 56px; line-height: 1.05; }
.rsvp .lede { margin: 12px 0 32px; font-size: 18px; line-height: 1.5; }

.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; }
.field label, .field legend {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0;
}
.field legend { margin-bottom: 8px; }
.input {
  height: 52px; padding: 0 16px; font: inherit; font-size: 18px;
  border: 2px solid var(--cream); border-radius: 8px; background: var(--cream); color: var(--green);
}
textarea.input { height: auto; padding: 14px 16px; resize: vertical; }
select.input { max-width: 200px; }
.party { display: flex; flex-wrap: wrap; gap: 20px; }
.party .field { flex: 0 1 160px; }
.party label { font-size: 13px; letter-spacing: 0.12em; }
.party select.input { width: 100%; }

.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice {
  min-height: 52px; padding: 0 24px; font: inherit; font-size: 17px; font-weight: 700;
  border-radius: 8px; cursor: pointer; border: 2px solid var(--cream);
  background: transparent; color: var(--cream);
}
.choice[aria-pressed="true"] { background: var(--cream); color: var(--green); }

.btn {
  min-height: 56px; padding: 0 36px; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--orange); color: var(--green) !important; border: 0; border-radius: 8px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

.error {
  font-size: 16px; font-weight: 600; background: var(--cream); color: var(--error);
  padding: 12px 16px; border-radius: 8px;
}
.hint { margin: 0; font-size: 15px; line-height: 1.5; }

.done { border: 2px solid var(--cream); border-radius: 12px; padding: 32px; }
.done h3 { margin: 0; font-size: 36px; line-height: 1.1; }
.done p { margin: 12px 0 0; font-size: 18px; line-height: 1.5; }
.ghost {
  margin-top: 20px; min-height: 44px; padding: 0 20px; font: inherit; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 8px; cursor: pointer;
}
.contact { margin: 40px 0 0; font-size: 16px; line-height: 1.5; }

/* What to bring */
.bring { padding-top: 56px; padding-bottom: 72px; }
.bring h1 { margin: 12px 0 0; font-size: 80px; line-height: 1; }
.bring .intro { margin: 20px 0 0; font-size: 20px; line-height: 1.5; max-width: 680px; }

.signup {
  margin-top: 36px; background: var(--green); color: var(--cream); border-radius: 12px; padding: 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.signup .copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.signup p { margin: 0; line-height: 1.5; }
.signup .big { font-size: 18px; }
.signup .small { font-size: 16px; }

.list-head {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px;
}
.list-head h2 { margin: 0; font-size: 40px; line-height: 1.1; }
.status { margin: 0; font-size: 15px; }
.refresh {
  margin-left: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--green); border: 2px solid var(--green); border-radius: 8px; cursor: pointer;
}

.groups {
  margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 32px;
}
.group { border-top: 3px solid var(--green); padding-top: 20px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.group h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.count { font-size: 14px; font-weight: 600; white-space: nowrap; }
.group ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.group li { font-size: 18px; line-height: 1.4; }
.group li b { font-weight: 700; }
.group li span { display: block; font-size: 15px; }
.empty { margin: 14px 0 0; font-size: 17px; line-height: 1.5; }
.open {
  margin-top: 16px; display: inline-block; padding: 6px 12px; border: 2px dashed var(--green);
  border-radius: 999px; font-size: 14px; font-weight: 600;
}
.notice { margin: 20px 0 0; font-size: 18px; line-height: 1.5; }

/* Spam trap: hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dish sign-up form */
.dish-form { flex-direction: column; align-items: stretch; }
.dish-fields { display: flex; flex-wrap: wrap; gap: 20px; }
.dish-fields .field { flex: 1 1 200px; min-width: 0; }
.dish-form .input { width: 100%; }
.dish-actions .btn { flex: 0 1 auto; }
.dish-fields .field-wide { flex: 2 1 280px; }
.dish-form label { color: var(--cream); }
.dish-form select.input { max-width: none; width: 100%; }
.dish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dish-msg { font-size: 16px; line-height: 1.5; }
.dish-msg.is-error { background: var(--cream); color: var(--error); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.dish-msg:empty { display: none; }

.group li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.remove {
  flex: none; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--error); border: 2px solid var(--error); border-radius: 8px; cursor: pointer;
}
.open.full { border-style: solid; }

/* Admin */
.admin { padding-top: 48px; padding-bottom: 72px; }
.admin h1 { margin: 8px 0 0; font-size: 56px; line-height: 1; }
.admin h2 { margin: 48px 0 12px; font-size: 32px; }
.login { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.login .field { flex: 0 1 320px; }
.login .input { border-color: var(--green); background: #fff8ea; }
.stats { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.stat { border-top: 3px solid var(--green); padding-top: 12px; }
.stat .num { font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 48px; line-height: 1; }
.stat .lbl { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.table-tools h2 { margin: 48px 0 12px; }
.small-btn {
  min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700;
  background: transparent; color: var(--green); border: 2px solid var(--green); border-radius: 8px; cursor: pointer;
}
.table-box { overflow-x: auto; border: 2px solid var(--green); border-radius: 10px; background: #fff8ea; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(11, 74, 42, 0.2); vertical-align: top; }
th { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--cream); white-space: nowrap; }
th.num-cell, td.num-cell { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td .remove { min-height: 36px; font-size: 13px; }

/* Shot counter */
.shots { padding-top: 48px; padding-bottom: 72px; }
.shots-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.shots-head h1 { margin: 12px 0 0; font-size: 72px; line-height: 1; max-width: 720px; }
.shots-total { text-align: right; }
.shots-total .num { font-size: 96px; line-height: 0.9; color: var(--clay); }
.shots-total .lbl { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.add-person {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
  background: var(--green); color: var(--cream); border-radius: 12px; padding: 24px;
}
.add-person .field { flex: 1 1 260px; min-width: 0; }
.add-person .input { width: 100%; }
.add-person label { color: var(--cream); }
.form-msg { flex: 1 1 100%; margin: 0; font-size: 15px; line-height: 1.5; }
.form-msg:empty { display: none; }
.form-msg.is-error { background: var(--cream); color: var(--error); font-weight: 600; padding: 10px 14px; border-radius: 8px; }

.board { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.board .empty, .log .empty { font-size: 18px; padding: 8px 0; }
.player { border: 2px solid var(--green); border-radius: 12px; padding: 14px 16px; background: #fff8ea; }
.player.is-leader { background: var(--green); color: var(--cream); }
.player.is-leader .add-shot { background: var(--orange); color: var(--green); border-color: var(--orange); }
.player.is-leader .remove { color: var(--orange); border-color: var(--orange); }
.player-row { display: flex; align-items: center; gap: 16px; }
.rank { flex: none; width: 36px; font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 28px; text-align: center; }
.who { flex: 1 1 auto; min-width: 0; }
.who-name { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.who-last { margin-top: 2px; font-size: 14px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally { flex: none; display: flex; align-items: baseline; gap: 6px; }
.tally-num { font-size: 44px; line-height: 1; }
.tally-lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.add-shot {
  flex: none; min-height: 48px; padding: 0 18px; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--green); color: var(--cream); border: 2px solid var(--green); border-radius: 8px; cursor: pointer;
}
.remove-person { margin-top: 10px; }

.reason-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid currentColor; display: flex; flex-direction: column; gap: 12px; }
.reason-form .input { width: 100%; border-color: var(--green); background: #fff; }
.reason-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 15px; }
.player.is-leader .small-btn { color: var(--cream); border-color: var(--cream); }

.reason-grid { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.reason-grid > .field:first-child { flex: 1 1 220px; min-width: 0; }
.stepper-label { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: 8px; background: #fff; height: 52px; overflow: hidden; }
.step { width: 48px; height: 100%; font: inherit; font-size: 24px; font-weight: 700; background: transparent; color: var(--green); border: 0; cursor: pointer; }
.step:disabled { opacity: 0.35; cursor: default; }
.step-num { min-width: 44px; text-align: center; font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 26px; color: var(--green); }
.player.is-leader .stepper { border-color: var(--cream); }
.log-qty { font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green); color: var(--cream); }
.log-by { margin-top: 2px; font-size: 14px; opacity: 0.8; }

.history-title { margin: 56px 0 12px; font-size: 32px; }
.log { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--green); }
.log-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(11, 74, 42, 0.25); }
.log-text { min-width: 0; }
.log-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 17px; }
.log-time { font-size: 14px; opacity: 0.8; }
.log-reason { margin-top: 2px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }

.host { margin-top: 64px; padding-top: 20px; border-top: 3px solid var(--green); }
.host-form { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.host-form .field { flex: 0 1 280px; }
.host-form .input { border-color: var(--green); background: #fff8ea; width: 100%; }
#host-on { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#host-on .hint { flex: 1 1 280px; }

footer { padding: 32px 24px 48px; text-align: center; font-size: 14px; }

@media (max-width: 640px) {
  .shots-head h1 { font-size: 44px; }
  .shots-total { text-align: left; }
  .shots-total .num { font-size: 64px; }
  .player-row { flex-wrap: wrap; gap: 10px 12px; }
  .rank { width: 28px; font-size: 22px; }
  .who { flex: 1 1 140px; }
  .tally-num { font-size: 36px; }
  .add-shot { flex: 1 1 100%; }
  .add-person .btn { width: 100%; }
  .nav { gap: 8px; }
  .nav a { padding: 0 14px; font-size: 13px; letter-spacing: 0.06em; }
  .hero-art { padding-top: 32px; }
  .hero-text .kicker { font-size: 15px; letter-spacing: 0.2em; }
  .hero-text .tagline { font-size: 17px; }
  .date-num { font-size: 72px; }
  .rsvp { padding: 56px 20px 64px; }
  .rsvp h2 { font-size: 44px; }
  .bring h1 { font-size: 48px; }
  .list-head h2 { font-size: 30px; }
  .signup { padding: 24px; }
  .btn { width: 100%; justify-content: center; padding: 0 20px; font-size: 16px; }
}
