:root {
  --bg: #f4f1e8;
  --text: #17231f;
  --muted: #68746f;
  --surface: #ffffff;
  --line: #dce2dc;
  --green: #267455;
  --green-dark: #16372d;
  --gold: #c88b30;
  --shadow: 0 22px 56px rgba(20, 35, 29, .16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.resource-select-page main {
  width: min(1320px, calc(100% - 28px));
}

.hero {
  min-height: 590px;
  display: flex;
  align-items: end;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(rgba(22, 55, 45, .18), rgba(22, 55, 45, .82)), url("https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-content {
  max-width: 640px;
  padding-bottom: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #edf7ef;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 12vw, 86px);
  line-height: .96;
}

p {
  margin-top: 0;
  color: inherit;
  font-size: 19px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.steps article,
.notice,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
}

.steps strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}

.notice {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 18px;
}

.notice span,
.status-card span,
.status-card p {
  color: var(--muted);
}

.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.form-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 34px;
}

.form-intro {
  position: sticky;
  top: 28px;
  padding: 28px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.checkin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkin-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

.checkin-form input,
.checkin-form textarea,
.checkin-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.checkin-form textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 22px;
  min-height: 22px;
  order: -1;
}

.field-error,
.form-errors {
  color: #a53f31;
  font-weight: 800;
}

.status-page .eyebrow {
  color: var(--green);
}

.status-card {
  padding: 24px;
}

.status-card.subtle {
  box-shadow: none;
}

.status-card strong {
  display: block;
  margin: 4px 0 18px;
  font-size: 34px;
}

.code {
  display: inline-grid;
  min-width: 150px;
  min-height: 82px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: .12em;
}

.code.muted {
  background: #e5ebe6;
  color: var(--muted);
}

.small-copy {
  margin: 14px 0 0;
  font-size: 15px;
}

.soft-line {
  width: 100%;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.plan-page {
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-page .form-intro {
  position: static;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.plan-page .form-intro h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.plan-page .form-intro p {
  color: var(--muted);
  font-weight: 800;
}

.plan-form {
  gap: 18px;
  padding: 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.resource-card {
  cursor: pointer;
}

.resource-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resource-card span {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
  box-shadow: 0 10px 28px rgba(20, 35, 29, .08);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.resource-card strong {
  font-size: 22px;
}

.resource-card small,
.resource-card em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.resource-card:hover span {
  transform: translateY(-1px);
  border-color: rgba(38, 116, 85, .45);
  box-shadow: 0 16px 34px rgba(20, 35, 29, .12);
}

.resource-card input:checked + span {
  border-color: var(--green);
  background: #eef8f1;
  box-shadow: 0 0 0 3px rgba(38, 116, 85, .16), 0 16px 34px rgba(20, 35, 29, .14);
}

.empty-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.message-stack {
  width: min(920px, calc(100% - 32px));
  margin: 18px auto 0;
}

.message {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid #d9b7aa;
  border-radius: 8px;
  background: #fff5ef;
  color: #7b2e1f;
  font-weight: 850;
}

.message.success {
  border-color: #b9d8c3;
  background: #f0faf3;
  color: var(--green-dark);
}

.info-page main {
  width: min(1120px, calc(100% - 28px));
}

.info-home {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.info-home-head {
  display: grid;
  gap: 8px;
}

.info-home-head span,
.info-strip span,
.event-list article > div > span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.info-home h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(38px, 7vw, 76px);
  line-height: .94;
}

.info-back {
  margin: 18px 0 14px;
}

.info-back a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(20, 35, 29, .08);
}

.info-detail-head {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.info-detail-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.info-detail-head h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: .96;
}

.info-detail-head p {
  max-width: 760px;
  color: #edf7ef;
}

.info-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-tile {
  display: grid;
  min-height: 166px;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 35, 29, .1);
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.info-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 116, 76, .38);
  box-shadow: 0 22px 52px rgba(20, 35, 29, .14);
}

.info-tile span {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.info-tile strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
}

.info-tile small {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.35;
}

.info-tile-primary {
  background: var(--green-dark);
  color: #fff;
}

.info-tile-primary span,
.info-tile-primary small {
  color: #edf7ef;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-strip article,
.info-card-grid article,
.power-table article,
.event-list article,
.info-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 35, 29, .11);
}

.info-strip article {
  padding: 18px;
}

.info-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.info-section {
  margin-top: 46px;
}

.info-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.info-section h2,
.split-info h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-card-grid article,
.power-table article,
.info-note {
  padding: 18px;
}

.info-card-grid h3,
.event-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.info-card-grid p,
.power-table p,
.split-info p,
.info-note p,
.event-list p {
  color: var(--muted);
  font-size: 16px;
}

.map-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-panel img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #f8faf7;
}

.map-panel figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 850;
}

.power-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.power-table strong {
  display: block;
  font-size: 21px;
}

.power-table span {
  display: block;
  margin: 8px 0;
  color: var(--green-dark);
  font-weight: 950;
}

.split-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.split-info h2 {
  color: #fff;
}

.split-info p {
  color: #edf7ef;
}

.info-note {
  background: #fff7e6;
  color: var(--text);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.event-list time {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 94px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.event-list time strong {
  font-size: 28px;
}

.event-list a {
  color: var(--green);
  font-weight: 950;
}

@media (max-width: 760px) {
  .hero {
    min-height: 560px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-page {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

  .plan-form {
    padding: 12px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .info-tile-grid,
  .info-strip,
  .info-card-grid,
  .power-table,
  .split-info {
    grid-template-columns: 1fr;
  }

  .info-tile {
    min-height: 138px;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .event-list time {
    min-height: 74px;
    justify-items: start;
    padding: 14px;
  }
}
