:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --bg-tint: #faf7f1;
  --paper: #ffffff;
  --ink: #1a1612;
  --ink-soft: #3a322a;
  --muted: #7a7166;
  --line: rgb(26 22 18 / 12%);
  --line-soft: rgb(26 22 18 / 7%);
  --accent: #e2603c;
  --accent-deep: #b8492a;
  --accent-soft: #fbd8c8;
  --sun: #f4c95d;
  --meadow: #6f8f5c;
  --sky: #87b5c8;
  --shadow-sm: 0 2px 12px rgb(26 22 18 / 6%);
  --shadow-md: 0 12px 36px rgb(26 22 18 / 10%);
  --shadow-lg: 0 24px 64px rgb(26 22 18 / 14%);
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgb(226 96 60 / 8%), transparent 38%),
    radial-gradient(circle at 88% 22%, rgb(135 181 200 / 10%), transparent 42%),
    radial-gradient(circle at 50% 100%, rgb(244 201 93 / 8%), transparent 50%);
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 18%, var(--accent) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 14%, var(--sun) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 78%, var(--meadow) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 62%, var(--accent-deep) 0 3px, transparent 4px),
    radial-gradient(circle at 8% 48%, var(--sky) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 88%, var(--sun) 0 4px, transparent 5px);
  opacity: 0.55;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 22px 40px;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  font-size: 0.92rem;
}

.site-brand {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.site-link:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.invite-card {
  position: relative;
  background: transparent;
}

.hero {
  position: relative;
  padding: 36px 0 28px;
}

.hero-copy {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0;
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 22px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.2rem, 11vw, 5.4rem);
  font-weight: 800;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  text-wrap: balance;
}

h1 .accent-word {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-mark {
  position: absolute;
  top: 8px;
  right: -8px;
  z-index: 0;
  display: grid;
  place-items: center;
  width: clamp(110px, 28vw, 180px);
  height: clamp(110px, 28vw, 180px);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
}

.intro {
  max-width: 30ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-image {
  position: relative;
  width: 100%;
  margin: 32px 0 0;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: -1;
  width: 64%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--accent);
  opacity: 0.12;
}

.event-grid {
  display: grid;
  gap: 12px;
  margin: 44px 0 0;
  padding: 0;
}

.event-grid article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.event-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.event-grid article:nth-child(1) .tile-icon { background: var(--accent-soft); color: var(--accent-deep); }
.event-grid article:nth-child(2) .tile-icon { background: rgb(244 201 93 / 28%); color: #8a6712; }
.event-grid article:nth-child(3) .tile-icon { background: rgb(111 143 92 / 22%); color: #4a6238; }
.event-grid article:nth-child(4) .tile-icon { background: rgb(135 181 200 / 28%); color: #3e6c80; }

.tile-icon {
  display: grid;
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
}

.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.detail-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-grid strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.event-grid article > span:not(.detail-label):not(.tile-icon) {
  color: var(--muted);
  font-size: 0.9rem;
}

.action-row {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button-primary {
  width: 100%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgb(226 96 60 / 30%);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-panel {
  position: relative;
  margin: 44px 0 14px;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.form-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.section-heading {
  margin-bottom: 26px;
}

form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

label span,
legend {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 500;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:hover,
textarea:hover {
  border-color: rgb(26 22 18 / 22%);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgb(226 96 60 / 14%);
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.choice-group label {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  cursor: pointer;
  transition: all 160ms ease;
}

.choice-group label:has(input:checked) {
  border-color: var(--accent);
  background: rgb(226 96 60 / 8%);
  color: var(--accent-deep);
}

.choice-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-error {
  min-height: 1.4em;
  margin: 0;
  color: #c53030;
  font-weight: 600;
  font-size: 0.92rem;
}

.success-panel {
  margin: 44px 0 14px;
  padding: 44px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(226 96 60 / 30%);
}

.success-panel h2 {
  max-width: 22ch;
  margin: 0 auto;
}

.success-panel p:not(.success-mark) {
  margin: 14px auto 0;
  color: var(--muted);
}

.invite-footer {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.print-link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 160ms ease;
}

.print-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (min-width: 720px) {
  .page-shell {
    padding: 0 40px 60px;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .hero-copy {
    width: min(100%, 640px);
  }

  .hero-mark {
    top: 24px;
    right: 12px;
  }

  .intro {
    font-size: 1.18rem;
  }

  .hero-image {
    width: min(100%, 700px);
    margin-top: 44px;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 56px;
  }

  .action-row {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
  }

  .form-panel {
    margin-top: 56px;
    padding: 48px 44px;
  }

  .form-panel::before {
    left: 44px;
  }

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

  .field-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .success-panel {
    padding: 56px 44px;
  }
}

@media (min-width: 980px) {
  .event-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.options-page {
  background: var(--bg);
}

.options-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 22px 22px 40px;
}

.options-header {
  display: grid;
  justify-items: center;
  padding: 44px 18px 32px;
  text-align: center;
}

.options-header h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.option-grid {
  display: grid;
  gap: 18px;
}

.option-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.option-card img {
  display: block;
  width: 100%;
  height: auto;
}

.option-card div {
  padding: 22px 24px 26px;
}

.option-kicker {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .hero-mark,
  .action-row,
  .form-panel,
  .success-panel,
  .invite-footer {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

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