:root {
  --paper: #fbfaf7;
  --ink: #171717;
  --muted: #67645e;
  --line: #d8d2c8;
  --soft: #f1eee8;
  --accent: #760f23;
  --accent-soft: #760f23;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.narrow {
  width: min(100% - 32px, 690px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.poster-label {
  color: var(--accent);
  letter-spacing: 0.28em;
}

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

p {
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.45;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 400;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.line-art {
  display: block;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.hero-image {
  width: min(76vw, 430px);
  max-height: 44svh;
}

.hero-subtitle {
  margin-bottom: 0;
  color: var(--accent);
  font-size: clamp(24px, 4vw, 42px);
  font-style: italic;
  line-height: 1;
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.intro {
  padding-top: clamp(36px, 5vw, 64px);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  margin-bottom: 0;
  color: var(--ink);
}

.intro-art {
  width: min(58vw, 190px);
  margin: clamp(24px, 4vw, 40px) auto 0;
  opacity: 0.9;
}

.script {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: clamp(24px, 4vw, 42px);
  font-style: italic;
  line-height: 1;
  font-weight: 400;
}

.section-title {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 44px);
  text-align: center;
}

.event-date {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.event-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.section-art {
  width: min(46vw, 220px);
  margin: calc(clamp(14px, 3vw, 28px) * -1) auto clamp(24px, 4vw, 40px);
  opacity: 0.9;
}

.event-card {
  min-height: 255px;
  display: grid;
  grid-template-rows: 88px 64px auto;
  align-content: start;
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper);
}

.event-number {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.event-card h3 {
  align-self: start;
}

.event-card p,
.details-list p,
.dress-layout p {
  color: var(--ink);
}

.details-list p {
  line-height: 1.4;
}

.event-card p:last-child,
.details-list p:last-child,
.dress-layout p:last-child {
  margin-bottom: 0;
}

.dress-code {
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dress-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
  width: min(100%, 920px);
  margin: 0 auto;
}

.dress-layout p {
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

.palette {
  display: grid;
  grid-template-columns: repeat(4, clamp(42px, 5vw, 56px));
  justify-content: center;
  gap: 14px;
}

.palette span {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  background: var(--color);
  border: 1px solid rgba(23, 23, 23, 0.12);
}

.details-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: center;
}

.details-list article {
  padding-top: 0;
}

.detail-art {
  width: min(100%, 168px);
  margin: 0 auto 28px;
  opacity: 0.88;
}

.rsvp {
  padding-top: clamp(36px, 5vw, 64px);
  text-align: center;
  border-top: 1px solid var(--line);
}

.rsvp-art {
  width: min(62vw, 210px);
  margin: calc(clamp(10px, 3vw, 22px) * -1) auto clamp(20px, 4vw, 34px);
  opacity: 0.88;
}

.rsvp > p {
  margin-bottom: clamp(34px, 6vw, 54px);
  color: var(--ink);
}

.rsvp-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(158, 47, 69, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(251, 250, 247, 0.9));
  box-shadow: 0 22px 60px rgba(23, 23, 23, 0.06);
  text-align: left;
}

.rsvp-form::before,
.rsvp-form::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rsvp-form::before {
  inset: 10px;
  border: 1px solid rgba(158, 47, 69, 0.12);
}

.rsvp-form::after {
  top: 0;
  left: 50%;
  width: 72px;
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -1px);
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
}

.rsvp-form label:first-child,
.rsvp-form fieldset,
.rsvp-form label:has(textarea),
.rsvp-form button,
.form-status {
  grid-column: 1 / -1;
}

.rsvp-form span,
.rsvp-form legend {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.rsvp-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 16px 18px 16px 52px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(251, 250, 247, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.radio-option span {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.radio-option input {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
}

.radio-option::before,
.radio-option::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.radio-option::before {
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  transform: translateY(-50%);
}

.radio-option::after {
  left: 23px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(158, 47, 69, 0.07);
  transform: translateY(-1px);
}

.radio-option:has(input:checked) span {
  color: var(--accent);
}

.radio-option:has(input:checked)::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.rsvp-form input:not([type="radio"]),
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 0;
  background: rgba(251, 250, 247, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  line-height: 1.35;
  padding: 15px 16px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rsvp-form textarea {
  min-height: 124px;
  resize: vertical;
}

.rsvp-form input:not([type="radio"]):focus,
.rsvp-form textarea:focus {
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 47, 69, 0.08);
}

.rsvp-form button {
  justify-self: center;
  min-width: min(100%, 290px);
  margin-top: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 22px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.rsvp-form button:hover {
  background: var(--paper);
  color: var(--accent);
}

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  min-height: 1.6em;
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 16px;
  text-align: center;
}

.sequel {
  text-align: center;
  border-top: 1px solid var(--line);
}

.sequel h2 {
  margin-top: 12px;
  font-style: italic;
}

.footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 36px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer p:last-child {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@media (max-width: 760px) {
  .section {
    width: min(100% - 24px, var(--max-width));
  }

  .hero {
    min-height: 92svh;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero-image {
    width: min(86vw, 360px);
    max-height: 36svh;
  }

  .event-grid,
  .details-list,
  .dress-layout,
  .rsvp-form,
  .rsvp-form fieldset {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 210px;
  }

  .section-art {
    width: min(64vw, 190px);
  }

  .detail-art {
    width: min(58vw, 150px);
  }

  .palette {
    grid-template-columns: repeat(4, clamp(38px, 10vw, 52px));
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .rsvp-form {
    padding: 24px 18px;
  }

  .radio-option {
    min-height: 60px;
    padding-right: 14px;
  }

  h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
