:root {
  --cream: #fbf5eb;
  --paper: #fffaf1;
  --paper-soft: #f5eadb;
  --ink: #343436;
  --muted: #6f6a62;
  --gold: #b4894b;
  --gold-dark: #916833;
  --line: #d8c19e;
  --sage: #839487;
  --sage-dark: #697b70;
  --blush: #d8a7a1;
  --blue: #9cadbb;
  --shadow: rgba(100, 77, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sarabun', sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(251, 245, 235, 0.86), rgba(251, 245, 235, 0.9)),
    url('cover-generated.png') center top / 1500px auto repeat-y,
    #fbf5eb;
  line-height: 1.58;
}

.invitation-page,
.form-page {
  position: relative;
  min-height: 100vh;
}

.invitation-page::before,
.form-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 82% 28%, rgba(174, 194, 204, 0.18), transparent 30%),
    radial-gradient(circle at 16% 78%, rgba(216, 167, 161, 0.16), transparent 28%);
  z-index: 0;
}

.invitation-page > *,
.form-page > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(180, 137, 75, 0.22);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 44px));
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand-mark {
  width: 72px;
  min-height: 58px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 0.85;
}

.brand-mark small {
  font-size: 0.9rem;
  color: #9a7352;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  font-size: 0.92rem;
  color: #443f39;
}

.main-nav a,
.brand-mark,
.btn {
  text-decoration: none;
}

.main-nav a {
  padding: 0.35rem 0;
}

.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.68rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

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

.nav-cta,
.gold-btn,
.btn.solid,
.btn.primary {
  color: #fffaf1;
  background: linear-gradient(180deg, #c19a5d 0%, #a97837 100%);
  box-shadow: 0 8px 18px rgba(145, 104, 51, 0.18);
}

.nav-cta {
  min-width: 210px;
  font-size: 0.9rem;
}

.outline-btn,
.btn.outline,
.btn.ghost {
  color: var(--gold-dark);
  background: rgba(255, 250, 241, 0.7);
  border-color: var(--line);
}

.soft-btn {
  color: var(--gold-dark);
  background: rgba(255, 250, 241, 0.86);
  border-color: var(--line);
}

.cream-btn {
  width: min(520px, 100%);
  color: var(--gold-dark);
  background: #fffaf1;
  border-color: #eadfcd;
  box-shadow: 0 10px 18px rgba(52, 52, 54, 0.14);
}

.hero-stage {
  min-height: 650px;
  padding: 88px 24px 44px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.05), rgba(255, 250, 241, 0.7)),
    url('mockup-crops/hero-bg.png') center top / cover no-repeat;
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.invite-panel {
  width: min(450px, calc(100vw - 42px));
  min-height: 520px;
  padding: 48px 42px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.94)),
    url('cover-generated.png') center / cover no-repeat;
  border: 2px solid rgba(180, 137, 75, 0.52);
  border-radius: 8px;
  box-shadow:
    0 0 0 8px rgba(255, 250, 241, 0.36),
    0 22px 48px rgba(83, 67, 48, 0.22);
  position: relative;
  z-index: 1;
}

.invite-panel::before,
.invite-panel::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(180, 137, 75, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.invite-panel::after {
  inset: 24px;
  border-color: rgba(180, 137, 75, 0.2);
}

.monogram,
.script-label,
.hero-title,
.hero-date,
.hero-time,
.countdown-label,
.countdown {
  position: relative;
  z-index: 1;
}

.monogram {
  margin: 0 0 24px;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.script-label {
  margin: 0;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.hero-title {
  margin: 6px 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.25rem;
  font-weight: 500;
  line-height: 1;
}

.hero-title span {
  color: var(--gold);
}

.ornament {
  width: 210px;
  height: 1px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  position: relative;
}

.ornament::after {
  content: '✻';
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0 8px;
  color: var(--gold);
  background: var(--paper);
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
}

.hero-date {
  margin: 0;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.hero-time {
  margin: 6px 0 20px;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}

.hero-rsvp {
  width: 245px;
  justify-content: space-between;
  padding-left: 56px;
  padding-right: 34px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
}

.countdown-label {
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.countdown {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown span {
  padding: 2px 10px;
  border-right: 1px solid rgba(180, 137, 75, 0.3);
}

.countdown span:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
}

.countdown small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  color: #373939;
  text-decoration: none;
  transform: translateX(-50%);
  font-size: 2.4rem;
  line-height: 1;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.section-heading.align-left {
  justify-items: start;
  text-align: left;
}

.section-heading h2,
.form-title,
.content-section h2 {
  margin: 0;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.section-heading span {
  color: var(--gold);
  font-size: 1rem;
}

.section-heading.light h2,
.section-heading.light span {
  color: #fffaf1;
}

.schedule-section {
  position: relative;
  padding: 58px 32px 46px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(251, 245, 235, 0.88), rgba(251, 245, 235, 0.9)),
    url('cover-generated.png') center / cover no-repeat;
}

.floral-corner {
  position: absolute;
  bottom: -4px;
  width: 240px;
  opacity: 0.72;
  pointer-events: none;
}

.floral-left {
  left: 0;
}

.floral-right {
  right: 0;
}

.ceremony-timeline {
  width: min(1120px, 100%);
  margin: 28px auto 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.ceremony-timeline li {
  min-height: 286px;
  padding: 0 18px;
  display: grid;
  grid-template-rows: 38px 128px auto auto;
  justify-items: center;
  align-items: center;
  position: relative;
  border-right: 1px solid rgba(180, 137, 75, 0.34);
}

.ceremony-timeline li:last-child {
  border-right: 0;
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  background: rgba(255, 250, 241, 0.72);
}

.ceremony-timeline img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ceremony-timeline time {
  display: block;
  color: #3f4147;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  line-height: 1;
}

.ceremony-timeline p {
  max-width: 150px;
  margin: 8px 0 0;
  color: #3f4147;
  font-size: 1rem;
  line-height: 1.45;
}

.venue-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0), var(--cream) 62%),
    var(--cream);
  border-top: 1px solid rgba(180, 137, 75, 0.16);
  border-bottom: 1px solid rgba(180, 137, 75, 0.16);
}

.venue-art img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
}

.venue-copy {
  padding: 50px min(8vw, 86px);
}

.venue-name {
  margin: 26px 0 8px;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.soft-text,
.intro-copy,
.deadline {
  color: var(--muted);
}

.soft-text {
  max-width: 560px;
  margin: 0;
}

.venue-copy .outline-btn {
  margin-top: 28px;
}

.rsvp-band {
  padding: 54px 24px 42px;
  color: #fffaf1;
  background:
    linear-gradient(rgba(105, 123, 112, 0.9), rgba(105, 123, 112, 0.92)),
    url('cover-generated.png') center / cover no-repeat,
    var(--sage-dark);
  overflow: hidden;
}

.rsvp-band-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.rsvp-band p {
  margin: 12px auto 22px;
}

.guest-notes {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.guest-notes article {
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  color: rgba(255, 250, 241, 0.92);
}

.guest-notes span {
  font-size: 2rem;
  line-height: 1;
}

.guest-notes p {
  margin: 0;
}

.dress-section {
  padding: 54px 24px 46px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0.94)),
    url('cover-generated.png') center / cover no-repeat;
}

.dress-kicker {
  margin: 0 0 4px;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.05rem;
}

.dress-section .section-heading h2 {
  color: var(--sage-dark);
  font-size: 2.25rem;
}

.palette {
  margin: 22px auto 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.palette span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(66, 60, 50, 0.08);
}

.dress-section .soft-text {
  margin: 0 auto;
}

.dress-floral {
  position: absolute;
  bottom: 16px;
  width: 205px;
  height: 130px;
  background: url('mockup-crops/floral-right-clean.png') center / contain no-repeat;
  opacity: 0.75;
}

.dress-floral.left {
  left: 6vw;
  transform: scaleX(-1);
}

.dress-floral.right {
  right: 6vw;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px min(7vw, 80px) 18px;
  border-top: 1px solid rgba(180, 137, 75, 0.22);
  color: var(--muted);
  background: rgba(255, 250, 241, 0.82);
  text-align: center;
}

.footer-brand {
  justify-self: start;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.05rem;
}

.footer-center p {
  margin: 0;
}

.footer-center {
  min-width: 240px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: 'Cormorant Garamond', serif;
  color: #4a4847;
}

.site-footer small {
  grid-column: 1 / -1;
  color: #8a8175;
  font-size: 0.72rem;
}

.form-page {
  background:
    linear-gradient(rgba(251, 245, 235, 0.92), rgba(251, 245, 235, 0.95)),
    url('cover-generated.png') center / cover no-repeat,
    var(--cream);
}

.form-layout {
  padding: 2.4rem 0;
}

.form-shell,
.card {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 18px 36px var(--shadow);
}

.form-card {
  margin-top: 2rem;
}

.eyebrow {
  margin: 0;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}

.form-title {
  margin: 0.25rem 0 0.45rem;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 0.46rem;
}

.rsvp-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.82rem;
}

.rsvp-form legend {
  padding: 0 0.25rem;
  font-weight: 500;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9cbb8;
  border-radius: 6px;
  background: #fffdf8;
  padding: 0.7rem 0.72rem;
  font: inherit;
}

.inline {
  width: fit-content;
  display: inline-flex !important;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.78rem;
}

.inline input {
  width: auto;
  min-height: auto;
}

.hidden {
  display: none !important;
}

.mini-note {
  margin: 0;
  font-size: 0.88rem;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.actions-row.center {
  justify-content: center;
}

.thanks-shell {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .nav-cta {
    justify-self: end;
  }

  .hero-stage {
    min-height: 610px;
    padding-top: 72px;
  }

  .venue-section {
    grid-template-columns: 1fr;
  }

  .venue-copy {
    padding: 42px 28px;
  }

  .venue-art img {
    min-height: 260px;
  }

  .guest-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dress-floral {
    opacity: 0.42;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    width: min(100% - 26px, 1180px);
    min-height: 64px;
    gap: 14px;
  }

  .brand-mark {
    width: 58px;
    min-height: 48px;
    font-size: 1.55rem;
  }

  .nav-cta {
    min-width: 0;
    padding: 0.62rem 0.88rem;
    font-size: 0.84rem;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero-stage {
    min-height: 660px;
    padding: 48px 16px 42px;
    background-position: center top;
  }

  .invite-panel {
    min-height: 506px;
    padding: 40px 24px 30px;
  }

  .monogram {
    margin-bottom: 18px;
    font-size: 1.7rem;
  }

  .script-label {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 3.15rem;
  }

  .hero-date {
    font-size: 1.2rem;
  }

  .hero-rsvp {
    width: min(240px, 100%);
    padding-left: 42px;
    padding-right: 26px;
  }

  .countdown span {
    padding: 2px 6px;
  }

  .countdown strong {
    font-size: 1.22rem;
  }

  .section-heading h2,
  .form-title,
  .content-section h2 {
    font-size: 2.22rem;
  }

  .schedule-section {
    padding: 46px 16px 34px;
  }

  .ceremony-timeline {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .ceremony-timeline li {
    min-height: auto;
    grid-template-columns: 44px 96px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    gap: 0 14px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(180, 137, 75, 0.34);
    text-align: left;
  }

  .ceremony-timeline li:last-child {
    border-bottom: 0;
  }

  .step-number {
    grid-row: 1 / 3;
    align-self: center;
  }

  .ceremony-timeline img {
    grid-row: 1 / 3;
    width: 84px;
    height: 84px;
  }

  .ceremony-timeline time {
    align-self: end;
    font-size: 1.45rem;
  }

  .ceremony-timeline p {
    max-width: none;
    margin-top: 5px;
  }

  .floral-corner {
    width: 160px;
    opacity: 0.48;
  }

  .venue-copy {
    padding: 36px 20px;
  }

  .rsvp-band {
    padding: 44px 18px 34px;
  }

  .guest-notes {
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
  }

  .guest-notes article {
    min-height: 96px;
    font-size: 0.88rem;
  }

  .dress-section {
    padding: 44px 16px 42px;
  }

  .dress-kicker {
    font-size: 1.72rem;
  }

  .dress-floral {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px 16px;
  }

  .footer-brand {
    justify-self: center;
  }

  .footer-center {
    border: 0;
    padding: 0;
  }

  .form-shell,
  .card {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.7rem;
  }

  .invite-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .countdown small {
    font-size: 0.7rem;
  }

  .guest-notes {
    grid-template-columns: 1fr;
  }
}
