:root {
  --outpost-green: #4c6a5f;
  --outpost-forest: #243f36;
  --outpost-cream: #f0e8db;
  --ink: #202822;
  --muted: #535e56;
  --line: #d9ded6;
  --paper: #fcfbf8;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body, p, h1, h2, h3, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--outpost-forest); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--outpost-green); outline-offset: 4px; }
section[id] { scroll-margin-top: 1.25rem; }

.wrap {
  width: min(calc(100% - 6rem), 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner, .partners, .site-header nav {
  display: flex;
  align-items: center;
}
.header-inner {
  min-height: 4.9rem;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.partners {
  flex-shrink: 0;
  gap: clamp(0.7rem, 1.65vw, 1.2rem);
  padding-block: 0.5rem;
  text-decoration: none;
}
.partner-yummy { width: 9.3rem; height: auto; }
.partner-outpost { width: 3.55rem; height: auto; }
.partner-divider { color: var(--muted); }
.site-header nav { gap: clamp(0.8rem, 2.4vw, 2rem); }
.site-header nav a:not(.button) {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:not(.button):hover { text-decoration: underline; }

.button,
.preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--outpost-forest);
  color: white;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--outpost-green); }
.button[hidden], .preview-close[hidden] { display: none; }
.button-small { min-height: 2.5rem; }
.site-header .button, .preview-close {
  border-color: var(--line);
  background: transparent;
  color: var(--outpost-forest);
}
.site-header .button:hover, .preview-close:hover { background: #eef1eb; }

.landing-intro { padding-top: clamp(1.5rem, 5.5vw, 4.5rem); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.4rem);
}
.hero-copy { padding-block: 1rem; }
.eyebrow, .venue-label {
  color: var(--outpost-green);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
h1, h2 { font-weight: 700; color: var(--outpost-forest); }
h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.35rem, 4.7vw, 4.4rem);
  letter-spacing: -0.075em;
  line-height: 1.02;
}
h1 span { color: var(--outpost-green); }
h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.hero-description {
  max-width: 41ch;
  margin: 1.25rem 0 1.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.hero-media {
  overflow: hidden;
  border-radius: 6px;
  background: var(--outpost-cream);
}
.hero-media img {
  width: 100%;
  height: auto;
}
.event-meta {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.35fr 0.85fr;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
}
.meta-card dt, .fee dt {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.meta-card dd { color: var(--outpost-forest); font-weight: 700; line-height: 1.35; }

.landing-section { margin-top: clamp(3.25rem, 7.6vw, 6.5rem); }
.programme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 1.75rem clamp(2rem, 7vw, 6rem);
}
.section-intro {
  max-width: 48ch;
  margin-top: 0.75rem;
  color: var(--muted);
}
.event-flow { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: programme; }
.event-flow li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.5rem;
  padding-block: 0.78rem;
  border-top: 1px solid var(--line);
  counter-increment: programme;
}
.event-flow li::before {
  grid-row: span 2;
  content: counter(programme, decimal-leading-zero);
  color: var(--outpost-green);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.event-flow p { grid-column: 2; margin-top: 0.18rem; color: var(--muted); }
.event-flow .outpost-basics h3 { color: var(--outpost-green); }

.food-feature img { width: 100%; height: auto; border-radius: 4px; }
.food-feature .food-feature-main { aspect-ratio: 5 / 3; object-fit: cover; }
.food-feature-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.4rem; }
.food-feature figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.875rem; }
.food-feature-gallery figcaption { margin-top: 0.35rem; font-weight: 600; }
.food-feature strong { color: #811d20; font-weight: 700; }

.venue, .registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4.25vw, 3.25rem);
  border-radius: 6px;
}
.venue { background: var(--outpost-forest); color: white; }
.venue-label { color: var(--outpost-cream); }
.venue h2 { margin-top: 0.45rem; color: white; }
.venue-directions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.venue .button {
  border-color: var(--outpost-cream);
  background: transparent;
  color: var(--outpost-cream);
}
.venue .button:hover { background: var(--outpost-cream); color: var(--outpost-forest); }
.venue .button:focus-visible { outline-color: white; }

.registration { margin-top: clamp(1rem, 2vw, 1.5rem); background: var(--outpost-cream); }
.registration h2 { margin: 0.5rem 0 0.7rem; }
.registration p { max-width: 48ch; }
.fee { margin-top: 1.15rem; }
.fee dd {
  color: var(--outpost-forest);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.fee small { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.preview-button { margin-top: 1.1rem; }
.registration-note { margin-top: 0.65rem; color: var(--muted); font-size: 0.875rem; }
.registration-steps { padding-inline-start: 1.35rem; border-inline-start: 1px solid #bdb6a7; }
.registration-steps h3 { color: var(--outpost-forest); }
.registration-steps ol { margin: 0.55rem 0 0.9rem; padding-inline-start: 1.2rem; }
.registration-steps li + li { margin-top: 0.35rem; }

.preview-dialog {
  width: min(35rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.preview-dialog::backdrop { background: rgb(17 34 28 / 66%); }
.preview-header, .preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.preview-header { justify-content: space-between; margin-bottom: 0.75rem; }
.preview-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.preview-dialog > p { color: var(--muted); }
.preview-step { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.preview-progress { color: var(--outpost-green); font-size: 0.875rem; font-weight: 700; }
.preview-step h3 { margin: 0.2rem 0 0.65rem; }
.preview-step h3:focus { outline: none; }
.preview-terms { display: grid; gap: 0.85rem; }
.preview-terms h4 { margin: 0.25rem 0 0; }
.preview-terms label { display: flex; align-items: baseline; gap: 0.65rem; cursor: pointer; }
.preview-terms input[type="checkbox"] { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--outpost-green); }
.payment-proof { display: grid; gap: 0.4rem; }
.payment-proof label { display: block; font-weight: 700; }
.payment-proof input { width: 100%; min-width: 0; font: inherit; }
.payment-proof p { color: var(--muted); font-size: 0.875rem; }
.payment-proof [role="status"]:empty { display: none; }
.payment-proof input[aria-invalid="true"] ~ [role="status"] { color: #811d20; }
.preview-dialog .button:disabled { background: var(--outpost-forest); opacity: 0.6; cursor: not-allowed; }
.sample-fields { display: grid; gap: 0.7rem; }
.sample-fields label { display: grid; gap: 0.15rem; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.sample-fields p { color: var(--muted); font-size: 0.875rem; }
.sample-fields #participant-age-error { color: #811d20; }
.sample-fields #participant-age-error:empty { display: none; }
.sample-fields input {
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f1f2ed;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}
.preview-actions { justify-content: flex-end; margin-top: 1.25rem; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.35rem 3rem;
  padding-bottom: clamp(3.25rem, 7vw, 5.75rem);
}
.faq h2 + p { margin-top: 0.65rem; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.65rem;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem 0.25rem 0 0;
  border: solid var(--outpost-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 0.25rem; }
.faq details p { padding: 0 1.55rem 1rem 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); color: var(--outpost-forest); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding-block: 1.15rem;
  font-size: 0.875rem;
}
.footer-partners { display: flex; align-items: center; gap: 0.65rem; }
.footer-partners img { width: 2.35rem; height: auto; }
.footer-partners p { font-weight: 700; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { gap: clamp(1.4rem, 3.5vw, 2.35rem); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.3rem 0.65rem; }
  .hero, .programme, .venue, .registration, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.35rem, 9.6vw, 3.9rem); }
  .hero-description { margin-block: 0.85rem 1.1rem; }
  .event-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
  .registration-steps { padding: 1rem 0 0; border-inline-start: 0; border-top: 1px solid #bdb6a7; }
}

@media (max-width: 460px) {
  .header-inner { justify-content: center; }
  .site-header nav { width: 100%; justify-content: center; }
}
