:root {
  color-scheme: light;
  --ink: #171510;
  --muted: #625d52;
  --paper: #f7f1e5;
  --field: #fffaf0;
  --line: #d1c3aa;
  --gold: #d99a22;
  --red: #a73524;
  --green: #265f44;
  --blue: #1c5e77;
  --shadow: 0 18px 50px rgb(23 21 16 / 20%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #efe4d0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #171510;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-color: #171510;
  background-image:
    linear-gradient(90deg, rgb(0 0 0 / 74%) 0%, rgb(0 0 0 / 36%) 48%, rgb(0 0 0 / 10%) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 68%) 0%, rgb(0 0 0 / 0%) 44%),
    url("/assets/palisades-beer-club.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, contain;
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
  color: #fff8e8;
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 7.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  max-width: 740px;
  margin-bottom: 26px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.43;
  color: #fff2d2;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
}

.facts div {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  background: rgb(23 21 16 / 64%);
  backdrop-filter: blur(8px);
}

.facts span {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.facts small {
  display: block;
  color: #f0d8aa;
  line-height: 1.3;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signup {
  padding: clamp(18px, 3vw, 30px);
}

.panel__heading {
  margin-bottom: 22px;
}

.panel__heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

label span {
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(28 94 119 / 18%);
}

.locked-choice,
.ack {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #cfb36f;
  background: #fff1bf;
}

.locked-choice input,
.ack input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.locked-choice label,
.ack span {
  margin: 0;
  font-weight: 700;
}

.locked-choice label span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 600;
}

button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--red);
  color: #fffaf0;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 0 #6e1f17;
}

button:hover {
  background: #8f2c20;
}

button:disabled {
  opacity: 0.68;
  cursor: progress;
}

.message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.message[data-tone="good"] {
  background: #dff0cf;
  color: #214827;
}

.message[data-tone="bad"] {
  background: #f6d1c7;
  color: #722417;
}

.roster {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.roster__list {
  display: grid;
  gap: 12px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.attendee {
  position: relative;
  min-height: 130px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff8e7;
}

.attendee h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.attendee p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.empty {
  color: var(--muted);
  font-weight: 700;
}

.rules {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 44px;
  padding: 20px 0 0;
  color: #3f392e;
  font-size: 1.08rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero {
    min-height: 76vh;
  }

  .hero__image {
    background-image:
      linear-gradient(0deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 28%) 70%),
      url("/assets/palisades-beer-club.png");
    background-size: 100% 100%, contain;
  }

  .hero__content {
    padding-bottom: 58px;
  }

  .facts,
  .workspace,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .workspace {
    margin-top: -26px;
  }

  .roster {
    position: static;
  }
}

@media (max-width: 520px) {
  .hero__content,
  .workspace,
  .rules {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    min-height: 86vh;
  }

  .facts div {
    min-height: 70px;
  }

  .signup,
  .roster {
    padding: 16px;
  }
}
