:root {
  --bg: #f5ede2;
  --bg-2: #eadfce;
  --paper: rgba(255, 251, 245, 0.72);
  --paper-strong: rgba(255, 251, 245, 0.9);
  --ink: #231a16;
  --muted: #6c5f55;
  --line: rgba(35, 26, 22, 0.1);
  --accent: #7d4b3a;
  --sage: #6b7a66;
  --gold: #aa8545;
  --shadow: 0 24px 60px rgba(35, 26, 22, 0.14);
  --shadow-soft: 0 10px 24px rgba(35, 26, 22, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-script: "Parisienne", cursive;
  --font-typewriter: "Special Elite", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 10% 0%, rgba(125, 75, 58, 0.13), transparent 52%),
    radial-gradient(700px 420px at 90% 8%, rgba(107, 122, 102, 0.12), transparent 46%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(35, 26, 22, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.2;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 96%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
  box-shadow: var(--shadow-soft);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark span {
  position: absolute;
}

.brand-mark span:first-child {
  font-size: 1.3rem;
  left: 14px;
  bottom: 13px;
}

.brand-mark .amp {
  font-size: 1.1rem;
  color: var(--accent);
}

.brand-mark span:last-child {
  font-size: 1.3rem;
  right: 13px;
  top: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-script);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  line-height: 0.85;
}

.brand-copy span {
  margin-top: 4px;
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a,
.button {
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.topnav a:hover,
.topnav a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.page {
  display: grid;
  gap: 26px;
}

.landing-body {
  min-height: 100vh;
  display: grid;
}

.landing-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0;
  display: grid;
  gap: 26px;
  place-items: center;
}

.landing-card {
  position: relative;
  width: 100%;
  min-height: min(860px, calc(100vh - 84px));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(255, 251, 245, 0.76)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-photo-card {
  min-height: min(920px, calc(100vh - 84px));
  background: #1f110d;
}

.landing-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(255, 251, 245, 0.38);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

.hero-photo-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  cursor: zoom-in;
}

.hero-photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 251, 245, 0.03), transparent 40%),
    linear-gradient(180deg, rgba(22, 11, 8, 0.1), rgba(22, 11, 8, 0.62)),
    linear-gradient(90deg, rgba(22, 11, 8, 0.52), rgba(22, 11, 8, 0.14) 48%, rgba(22, 11, 8, 0.56));
  pointer-events: none;
}

.hero-photo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.01);
}

.landing-ornament {
  position: absolute;
  z-index: 1;
  width: min(52vw, 520px);
  aspect-ratio: 1;
  background: url("assets/ornate-corner.svg") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  filter: invert(1);
}

.landing-ornament-top {
  top: -110px;
  right: 16px;
}

.landing-ornament-bottom {
  bottom: -132px;
  left: -88px;
  transform: rotate(180deg);
}

.invitation-copy {
  position: relative;
  z-index: 3;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  color: #fffaf3;
}

.invitation-kicker,
.invitation-line,
.venue-preposition,
.event-details {
  font-family: var(--font-typewriter);
}

.invitation-kicker {
  margin: 0 0 18px;
  color: rgba(255, 250, 243, 0.82);
  font-size: clamp(0.7rem, 1.3vw, 0.86rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.couple-names {
  max-width: none;
  margin: 0;
  color: #fff8ee;
  font-size: clamp(4.1rem, 9vw, 8.9rem);
  line-height: 0.74;
  text-shadow: 0 4px 26px rgba(22, 11, 8, 0.58);
}

.couple-names span {
  display: block;
}

.couple-names .name-joiner {
  margin: 0.12em 0 0.04em;
  color: #f1d9c8;
  font-family: var(--font-script);
  font-size: 0.34em;
  line-height: 0.8;
}

.invitation-line {
  margin: clamp(22px, 3vw, 34px) auto 0;
  color: rgba(255, 250, 243, 0.9);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
}

.venue-block {
  margin-top: clamp(18px, 3vw, 30px);
}

.venue-preposition {
  margin: 0 0 8px;
  color: #f1d9c8;
  font-size: clamp(0.9rem, 1.4vw, 1.12rem);
  font-weight: 700;
}

.venue-block h2 {
  color: #fff8ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(22, 11, 8, 0.52);
}

.event-details {
  margin-top: clamp(22px, 3vw, 32px);
  color: #fff4e7;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 3px 18px rgba(22, 11, 8, 0.46);
}

.event-details p {
  margin: 0;
}

.event-details p:nth-child(1),
.event-details p:nth-child(2),
.event-details p:nth-child(3) {
  font-size: clamp(1.16rem, 2.4vw, 2rem);
}

.event-details p:nth-child(4) {
  margin-top: 8px;
  color: rgba(255, 250, 243, 0.82);
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
}

.landing-rsvp {
  width: min(260px, 100%);
  margin-top: clamp(22px, 4vw, 36px);
}

.hero-zoom-link {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  color: rgba(255, 250, 243, 0.82);
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-zoom-link:hover,
.hero-zoom-link:focus-visible {
  color: #fffaf3;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-venue {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
}

.landing-venue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 26, 22, 0.02), rgba(35, 26, 22, 0.24));
  pointer-events: none;
}

.landing-venue img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-story {
  width: 100%;
}

.hero,
.split-section,
.details,
.rsvp-teaser {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 430px);
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  align-items: stretch;
  min-height: 620px;
}

.hero-copy {
  align-self: center;
  padding: clamp(2px, 1vw, 14px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  color: var(--accent);
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8e5c49, #d3ad7b);
  box-shadow: 0 0 16px rgba(142, 92, 73, 0.28);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin-top: 18px;
  font-size: clamp(4.2rem, 8vw, 7rem);
  line-height: 0.8;
}

.lede {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted);
  font-family: var(--font-typewriter);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #6a4336, #9d6451);
  box-shadow: 0 18px 28px rgba(106, 67, 54, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px 16px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.stat-label,
.mini-label,
.timeline-step {
  display: block;
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.4;
  font-family: Manrope, system-ui, sans-serif;
}

.hero-art {
  min-height: 100%;
}

.frame {
  height: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.44));
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.frame-image {
  position: relative;
  min-height: 520px;
  aspect-ratio: 420 / 528;
  isolation: isolate;
  overflow: hidden;
}

.frame-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 13, 0.08), rgba(20, 16, 13, 0.52)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%);
  z-index: 1;
}

.frame-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.frame-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo {
  filter: saturate(1.02) contrast(1.02);
}

.frame-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: rgba(255, 251, 245, 0.88);
}

.frame-meta > div {
  padding: 14px 14px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
}

.mini-label {
  color: var(--muted);
}

.mini-value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.split-section,
.details,
.rsvp-teaser {
  padding: clamp(22px, 4vw, 32px);
}

.split-section {
  display: grid;
  gap: 22px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.story-copy {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow-soft);
}

.story-lead {
  margin-top: 0;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 0.92;
  color: var(--ink);
}

.story-copy p {
  margin: 0;
  color: var(--muted);
}

.story-copy p + p {
  margin-top: 16px;
}

.story-copy p:not(.story-lead) {
  font-family: var(--font-typewriter);
  font-size: 0.98rem;
  line-height: 1.86;
}

.story-album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.1fr 0.9fr;
  gap: 14px;
}

.album-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.album-card-large {
  grid-column: 1 / -1;
  min-height: 320px;
}

.album-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.album-card-large img {
  object-position: center 28%;
}

.story-album .album-card:nth-child(2) img {
  object-position: center 18%;
}

.story-album .album-card:nth-child(3) img {
  object-position: center center;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 740px;
}

.section-heading h2,
.rsvp-teaser h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.86;
}

.section-heading p:last-child,
.rsvp-teaser p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
  font-family: var(--font-typewriter);
}

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

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  font-size: 2.1rem;
  line-height: 0.9;
}

.info-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-family: var(--font-typewriter);
}

.details {
  display: grid;
  gap: 22px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
}

.timeline-step {
  margin-top: 4px;
  color: var(--accent);
}

.timeline-item h3 {
  font-size: 1.8rem;
  line-height: 0.9;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.68;
  font-family: var(--font-typewriter);
}

.rsvp-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rsvp-teaser > div {
  max-width: 760px;
}

.rsvp-teaser .button {
  flex: none;
}

.rsvp-page {
  gap: 18px;
}

.rsvp-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(10px, 2vw, 18px);
}

.rsvp-spread::before,
.rsvp-spread::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  background: url("assets/ornate-corner.svg") no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
}

.rsvp-spread::before {
  top: -170px;
  left: -170px;
}

.rsvp-spread::after {
  right: -170px;
  bottom: -170px;
  transform: rotate(180deg);
}

.invitation-page {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
}

.details-page {
  display: grid;
  gap: 22px;
}

.details-page h1,
.form-intro h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  line-height: 0.82;
  text-align: center;
}

.form-intro {
  margin-bottom: 18px;
  text-align: center;
}

.form-intro p:last-child {
  margin: 10px auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-family: var(--font-typewriter);
  line-height: 1.6;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(245, 237, 226, 0.62);
  color: var(--ink);
  font-family: var(--font-typewriter);
  line-height: 1.45;
}

.schedule-time {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.venue-card img {
  display: block;
  width: 100%;
  aspect-ratio: 311 / 162;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.venue-card h2 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.venue-card address,
.venue-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-style: normal;
  line-height: 1.65;
}

.rsvp-help-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.rsvp-help-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-family: var(--font-typewriter);
  line-height: 1.7;
}

.rsvp-help-card li + li {
  margin-top: 8px;
}

.dinner-options-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(107, 122, 102, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.72)),
    rgba(255, 255, 255, 0.52);
  text-align: center;
}

.dinner-options-card::before,
.dinner-options-card::after {
  content: "";
  position: absolute;
  width: 180px;
  aspect-ratio: 1;
  background: url("assets/ornate-corner.svg") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.dinner-options-card::before {
  top: -78px;
  left: -78px;
}

.dinner-options-card::after {
  right: -78px;
  bottom: -78px;
  transform: rotate(180deg);
}

.dinner-script {
  position: relative;
  margin: 0;
  color: #6b0707;
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 6vw, 5.1rem);
  line-height: 0.82;
}

.dinner-choice-note {
  position: relative;
  margin: 18px 0 0;
  color: #6b0707;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.dinner-option-list {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.dinner-option-list article {
  padding-top: 4px;
}

.dinner-option-list h2 {
  margin: 0;
  color: #6b0707;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 0.95;
}

.dinner-option-list p {
  max-width: 34rem;
  margin: 9px auto 0;
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
  line-height: 1.62;
}

.guest-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.form-row {
  margin-bottom: 16px;
}

.guest-count-field {
  max-width: 260px;
}

.form-row label,
.allergy-fieldset legend,
.guest-number,
.guest-section-heading .timeline-step {
  color: var(--accent);
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.82);
  color: var(--ink);
  font: 700 0.96rem Manrope, system-ui, sans-serif;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.form-row input:focus,
.form-row select:focus,
.check-option input:focus-visible {
  outline: 2px solid rgba(125, 75, 58, 0.34);
  outline-offset: 2px;
}

.form-row small {
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
}

.form-status {
  padding: 12px 14px;
  border: 1px solid rgba(125, 75, 58, 0.16);
  border-radius: 12px;
  background: rgba(125, 75, 58, 0.08);
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-status[data-tone="ok"] {
  background: rgba(42,122,75,0.08);
  border-color: rgba(42,122,75,0.16);
  color: #24593a;
}

.form-status[data-tone="warn"] {
  background: #fcf1ea;
  border-color: rgba(184,92,56,0.22);
  color: #8d4b2e;
}

.captcha-question {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-size: 0.86rem;
  line-height: 1.55;
}

.captcha-question strong {
  color: var(--ink);
}

.guest-section-heading {
  margin: 8px 0 14px;
  padding-top: 4px;
}

.guest-section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-typewriter);
  line-height: 1.6;
}

.guest-slots {
  display: grid;
  gap: 12px;
}

.guest-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(245, 237, 226, 0.58);
  box-shadow: var(--shadow-soft);
}

.guest-card-heading {
  margin-bottom: 12px;
}

.allergy-fieldset {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.allergy-fieldset legend {
  margin-bottom: 10px;
}

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

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.56);
  color: var(--ink);
  font-weight: 700;
}

.check-option input {
  accent-color: var(--accent);
}

.other-allergy {
  margin-top: 12px;
  max-width: 360px;
}

.is-hidden {
  display: none;
}

.btn-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a4336, #9d6451);
  color: #fff;
  cursor: pointer;
  font: 800 0.92rem Manrope, system-ui, sans-serif;
  transition: opacity 180ms ease, transform 180ms ease;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.form-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  line-height: 1.5;
}

.email-preview-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.email-preview-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.email-preview-panel p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-family: var(--font-typewriter);
  line-height: 1.6;
}

.email-preview {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(35, 26, 22, 0.05);
  color: var(--ink);
  padding: 18px;
  font: 0.92rem/1.7 var(--font-typewriter);
}

@media (min-width: 1041px) {
  .rsvp-page {
    min-height: calc(100vh - 122px);
  }

  .rsvp-spread {
    grid-template-columns: minmax(320px, 0.84fr) minmax(460px, 1.16fr);
    align-items: start;
    overflow: visible;
  }

  .details-page {
    align-self: start;
  }

  .rsvp-form {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 1040px) {
  .landing-card {
    min-height: auto;
  }

  .rsvp-spread {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

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

  .hero-copy {
    max-width: 820px;
  }

  .frame-image {
    min-height: 0;
    width: min(100%, 560px);
    margin-inline: auto;
  }

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

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

@media (max-width: 760px) {
  .landing-shell {
    width: min(100% - 20px, 1120px);
    align-items: start;
    padding: 10px 0 18px;
  }

  .landing-card {
    min-height: min(760px, calc(100vh - 28px));
    padding: 30px 18px 22px;
    border-radius: 22px;
  }

  .landing-card::before {
    inset: 10px;
    border-radius: 16px;
  }

  .landing-ornament {
    width: 360px;
    opacity: 0.09;
  }

  .landing-ornament-top {
    top: -106px;
    right: -116px;
  }

  .landing-ornament-bottom {
    bottom: -118px;
    left: -128px;
  }

  .couple-names {
    font-size: clamp(3.25rem, 17vw, 5.3rem);
    line-height: 0.78;
  }

  .venue-block h2 {
    font-size: clamp(1.95rem, 9vw, 3.15rem);
  }

  .shell {
    width: min(100% - 20px, 1280px);
    padding-top: 16px;
  }

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

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .frame-meta {
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding: 18px;
  }

  .story-album {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .album-card-large {
    min-height: 240px;
  }

  .frame-image {
    width: 100%;
    aspect-ratio: 420 / 528;
  }

  .rsvp-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .guest-count-field,
  .other-allergy {
    max-width: none;
  }

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

  .guest-card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
