:root {
  --ink: #2f3035;
  --muted: #696b73;
  --paper: #fffaf0;
  --surface: #ffffff;
  --rust: #c93317;
  --orange: #f47a3c;
  --gold: #ffd98f;
  --sage: #b7c574;
  --blue: #0d6f95;
  --line: #e8ded1;
  --shadow: 0 24px 70px rgba(47, 48, 53, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(232, 222, 209, 0.82);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--rust);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.top-nav a {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(88svh - 20px));
  overflow: hidden;
  background: var(--surface);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.78) 45%, rgba(255, 250, 240, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.02) 62%, var(--paper) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 18%;
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(690px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 104px);
  padding: 54px 0 82px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.2vw, 6.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.hero-copy {
  max-width: 560px;
  color: #41434a;
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.primary {
  color: white;
  background: var(--rust);
}

.button.secondary {
  background: var(--gold);
}

.mission-band,
.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 88px);
}

.mission-band {
  background: var(--paper);
}

.partner-section {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 6vw, 88px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.partner-inner h2 {
  max-width: 780px;
}

.partner-inner img {
  width: 100%;
  margin-top: 24px;
  padding: clamp(18px, 4vw, 34px);
  background: white;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(47, 48, 53, 0.16);
}

.mission-copy p,
.signup-intro p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.mission-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-self: end;
}

.mission-points article {
  min-height: 230px;
  padding: 22px;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(47, 48, 53, 0.18);
}

.mission-points span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.mission-points p {
  color: var(--muted);
}

.signup-section {
  background:
    linear-gradient(180deg, rgba(255, 217, 143, 0.34), rgba(255, 250, 240, 0)),
    var(--surface);
}

.qr-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin-top: 28px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.qr-panel img {
  width: 82px;
  height: 82px;
}

.qr-panel a {
  color: var(--blue);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.signup-form {
  display: grid;
  gap: 18px;
  align-self: start;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
}

label,
legend {
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  border: 2px solid #cfc3b5;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(13, 111, 149, 0.2);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.choice-grid label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  background: white;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.choice-grid input,
.consent input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--rust);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.error {
  min-height: 18px;
  margin: 0;
  color: #9e1d10;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  padding: 30px 20px;
  color: #4f5157;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 980px) {
  .mission-band,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .mission-points {
    grid-template-columns: 1fr;
  }

  .mission-points article {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.82) 50%, var(--paper) 100%),
      rgba(255, 250, 240, 0.4);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 58px 0 96px;
  }

  h1 {
    max-width: 9ch;
  }

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

  .qr-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
