:root {
  color-scheme: light;
  --paper: #f7f9f5;
  --surface: #fefffc;
  --ink: #304336;
  --heading: #344c3b;
  --muted: #536659;
  --accent: #45634d;
  --accent-hover: #354f3c;
  --tint: #eaf0e6;
  --line: #cbd7c8;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent-hover); text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #856733; outline-offset: 4px; }

.frame { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 5;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip-path: none;
  background: var(--surface);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}
.home-header {
  border-bottom: 1px solid #424a44;
  background: #535c56;
  color: #fbfaf5;
}
.home-header-inner {
  width: min(1600px, calc(100% - clamp(32px, 6vw, 120px)));
  margin-inline: auto;
  padding-block: 16px;
}
.home-header .wordmark, .home-header .main-nav a { color: inherit; }
.home-header .wordmark small { color: #e2e7df; }
.home-header :focus-visible { outline-color: #f1d7a5; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--heading);
  font: 600 1.45rem/1.1 var(--serif);
  white-space: nowrap;
}
.wordmark img { flex: none; border: 1px solid #dfc9a4; border-radius: 13px; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.main-nav > a:not(.action) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.main-nav > a:not(.action):hover { text-decoration: underline; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 23px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  text-align: center;
}
.primary { color: white; background: var(--accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary:hover { background: var(--tint); }

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--accent-hover);
  font-weight: 650;
  text-underline-offset: .24em;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--heading); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  padding-block: clamp(24px, 3.8vw, 54px) 0;
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 5.5vw, 5.35rem);
  line-height: .99;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.hero p {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.65vw, 1.28rem);
  line-height: 1.55;
}
.hero-actions, .closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 19px;
}
.hero-actions { margin-top: 22px; }
.hero p { max-width: 40ch; }
.hero .calendar-support { max-width: none; margin-top: 4px; font-size: .9rem; }
.calendar-support a { display: inline-block; min-height: 44px; padding-block: 11px; }
.home-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}
.preview-stage {
  display: grid;
  justify-items: center;
  width: 100%;
  overflow: hidden;
  padding: clamp(18px, 3.3vw, 44px) clamp(12px, 4vw, 42px) 0;
  border: 1px solid #cbd8c8;
  border-radius: clamp(19px, 3vw, 33px);
  background:
    radial-gradient(ellipse at 80% 12%, #faf0d9, transparent 60%),
    linear-gradient(150deg, #edf2e7, #d9e6d9);
}
.preview-phone {
  position: relative;
  width: min(100%, 400px);
  padding: 19px 7px 0;
  border: 1px solid #657665;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(135deg, #435548, #24382d);
  box-shadow: 0 16px 36px #283e3040, inset 0 0 0 1px #ffffff20;
}
.preview-phone::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  width: 33px;
  height: 3px;
  margin-inline: auto;
  border-radius: 4px;
  background: #1d2d24;
}
.preview-home-screen {
  aspect-ratio: 780 / 926;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
}
.preview-home-screen img { width: 100%; height: auto; margin-top: -23.33%; }
.home-preview figcaption { color: var(--muted); font-size: .82rem; text-align: center; }

.home-showcase {
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(16px, 2vw, 29px);
  padding: clamp(24px, 4.4vw, 62px);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 40px);
  background:
    radial-gradient(ellipse at 75% 14%, #fcf2dc, transparent 52%),
    linear-gradient(125deg, #fcfbf5 18%, #edf2e7 59%, #dce9dd);
}
.home-showcase h1 {
  max-width: none;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  text-wrap: pretty;
}
.home-showcase .preview-stage {
  padding: 12px 8px 0;
  border: 0;
  border-bottom: 1px solid #a3b3a0;
  border-radius: 0;
  background: none;
}
.home-showcase .preview-phone { width: min(100%, 490px); }
.home-showcase .preview-home-screen { aspect-ratio: 780 / 950; }

.highlights {
  margin-top: clamp(43px, 7vw, 98px);
  scroll-margin-top: 20px;
}
.highlights > h2 {
  padding: clamp(19px, 2.5vw, 30px) 0 clamp(13px, 2.5vw, 27px);
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.045em;
}
.feature-preview {
  display: grid;
  grid-template-areas: "copy art";
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(16px, 5vw, 68px);
  padding-block: clamp(22px, 3.6vw, 48px);
  border-top: 1px solid var(--line);
}
.feature-preview:nth-of-type(even) {
  grid-template-areas: "art copy";
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}
.feature-copy { grid-area: copy; }
.feature-copy h3 {
  max-width: 17ch;
  font-size: clamp(1.78rem, 3.3vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.feature-copy p, .closing p, .calendar-info p {
  max-width: 39ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(.99rem, 1.45vw, 1.12rem);
  line-height: 1.55;
}
.feature-art {
  grid-area: art;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: clamp(12px, 3vw, 33px);
  border-radius: clamp(16px, 2vw, 25px);
}
.feature-calendar { background: #e9efe5; }
.feature-meals { background: #f3ede0; }
.feature-invites { background: #f1e8e9; }
.feature-reminders { background: #e5eeeb; }
.feature-notes { background: #f3efe4; }
.feature-palettes { background: var(--tint); }
.screen-crop {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid #d2d8cd;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 6px 18px #344c3b13;
}
.screen-crop img { display: block; width: 100%; height: auto; }
.feature-calendar .screen-crop { aspect-ratio: 780 / 706; }
.feature-calendar img { margin-top: -20.5%; }
.feature-meals .screen-crop { width: min(100%, 430px); }
.preview-rsvp {
  aspect-ratio: 780 / 722;
  width: min(100%, 395px);
}
.preview-rsvp img { margin-top: -23%; }
.feature-reminders .screen-crop { aspect-ratio: 780 / 856; }
.feature-notes .screen-crop { aspect-ratio: 780 / 775; }
@media (prefers-reduced-motion: no-preference) {
  .feature-story.is-staged {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: clamp(24px, 5vw, 74px);
    align-items: start;
    border-top: 1px solid var(--line);
  }
  .feature-story.is-staged .feature-preview {
    display: flex;
    min-height: clamp(245px, 49vh, 390px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .feature-story.is-staged .feature-preview:first-child { border-top: 0; }
  .feature-stage:not([hidden]) {
    position: sticky;
    top: clamp(18px, 12vh, 100px);
    display: grid;
    min-width: 0;
    margin-block: clamp(22px, 4.5vh, 40px);
  }
  .feature-stage .feature-art {
    grid-area: 1 / 1;
    align-items: center;
    min-height: clamp(290px, 51vh, 450px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(17px) scale(.98);
    transition: opacity 380ms ease-out, transform 560ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear 380ms;
  }
  .feature-stage .feature-art.is-current {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
    z-index: 1;
  }
  .feature-stage .screen-crop { width: min(100%, 395px); }
  .feature-story.can-reveal-inline .feature-preview .feature-art {
    opacity: .62;
    transform: translateY(12px);
    transition: opacity 420ms ease-out, transform 490ms cubic-bezier(.22, .61, .36, 1);
  }
  .feature-story.can-reveal-inline .feature-preview .feature-art.has-entered {
    opacity: 1;
    transform: none;
  }
}

.calendar-info {
  scroll-margin-top: 20px;
  padding-block: clamp(24px, 3.3vw, 42px);
  border-top: 1px solid var(--line);
}
.calendar-info p { max-width: 66ch; margin-bottom: 12px; }

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 17px 30px;
  padding-block: clamp(24px, 3.3vw, 42px);
  border-top: 1px solid var(--line);
}
.closing h2, .calendar-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.04em; }

.joining h2 { font-size: 1.35rem; }
.request-card p { color: var(--muted); line-height: 1.6; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 0 27px;
  border-top: 1px solid var(--line);
  font-size: .83rem;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }

.request-main { padding-block: 45px 58px; }
.request-card {
  max-width: 650px;
  margin-inline: auto;
  padding: clamp(22px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 8px; font-size: .89rem; }
.request-card h1 { font-size: clamp(2.35rem, 5.2vw, 3.8rem); line-height: 1.06; letter-spacing: -.045em; }
.request-card p { margin: 13px 0 20px; }
.request-card .mail-note { margin: 12px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.request-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.request-fields { display: grid; gap: 7px; }
.request-fields label { font-weight: 650; line-height: 1.4; }
.request-fields label span { color: var(--muted); font-weight: 400; }
.request-fields input, .request-fields select, .request-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.request-fields textarea { resize: vertical; }
.request-card .request-caption { margin: 0 0 13px; font-size: .88rem; }
.request-form button:not(:disabled) { cursor: pointer; }
.request-form button:disabled { opacity: .7; }
.request-card .request-result { margin: 12px 0 0; }
.request-card .request-result:empty { margin: 0; }
.request-card .request-result:not(:empty) { padding: 10px 12px; border-radius: 9px; background: var(--tint); }
.request-card .request-error:not(:empty) { background: #fbede4; color: #703b2a; }
.joining { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.joining p { margin: 8px 0 0; }


@media (max-width: 960px) {
  .frame { width: calc(100% - 48px); }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .site-header { padding-block: 13px; border-bottom: 1px solid var(--line); gap: 12px; }
  .home-header .site-header { border-bottom: 0; }
  .wordmark { gap: 8px; font-size: 1.25rem; }
  .wordmark img { width: 37px; height: 37px; border-radius: 10px; }
  .main-nav { gap: 12px; font-size: .87rem; text-align: right; }
  .main-nav > .nav-features:not(.action) { display: none; }
  .hero { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-top: 26px; text-align: center; }
  .hero-copy { width: 100%; }
  .hero h1 {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(2.4rem, 9.8vw, 3.65rem);
  }
  .hero p { margin: 13px auto 0; }
  .hero-actions { justify-content: center; gap: 8px 14px; margin-top: 16px; }
  .hero-actions .action { padding-inline: 13px; font-size: .91rem; }
  .hero-actions .text-action { font-size: .91rem; }
  .hero .calendar-support { margin: 3px auto 0; }
  .home-preview { width: min(100%, 440px); }
  .home-showcase { gap: 13px; padding: 20px 15px 16px; }
  .home-showcase h1 { font-size: clamp(2.25rem, 9vw, 3.65rem); text-wrap: balance; }
  .home-showcase .preview-stage { padding-inline: 0; }
  .feature-preview, .feature-preview:nth-of-type(even) {
    grid-template-areas: "copy" "art";
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-copy h3 { max-width: 23ch; text-wrap: pretty; }
  .feature-copy p { margin-top: 7px; }
  .request-main { padding-block: 24px 38px; }
}

.wordmark small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 600 .69rem/1.2 system-ui, sans-serif;
  letter-spacing: .06em;
}
