:root {
  --bg: #faf6ef;
  --bg-soft: #f4eee1;
  --surface: #ffffff;
  --ink: #26201a;
  --ink-soft: #5f564b;
  --line: #e7ddcc;
  --line-strong: #d8cbb4;
  --brand: #bf4522;
  --brand-dark: #a0391c;
  --brand-2: #e8a33d;
  --grad: linear-gradient(135deg, #c94f32, #e8a33d);
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(38, 32, 26, 0.08);
  --shadow-lift: 0 18px 50px rgba(38, 32, 26, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid rgba(191, 69, 34, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(38, 32, 26, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(191, 69, 34, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(191, 69, 34, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: rgba(232, 163, 61, 0.28);
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -120px;
  background: rgba(201, 79, 50, 0.16);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.invite-card {
  position: absolute;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.invite-back {
  top: 8px;
  left: 4px;
  width: min(300px, 70%);
  padding: 36px 30px;
  text-align: center;
  background: #fffdf6;
  border: 1px solid var(--line);
  transform: rotate(-7deg);
  box-shadow: var(--shadow-soft);
}

.invite-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  color: var(--ink);
}

.invite-caps {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.invite-front {
  top: 110px;
  right: 0;
  width: min(340px, 86%);
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  transform: rotate(2.5deg);
  overflow: hidden;
}

.invite-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--grad);
}

.invite-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.invite-heading {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
}

.invite-meta {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.invite-rsvp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rsvp-pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.rsvp-yes {
  background: var(--brand);
  color: #fff;
}

.rsvp-no {
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}

.chip-rsvp {
  bottom: 52px;
  left: 0;
}

.chip-count {
  top: 56px;
  right: 10px;
  animation-delay: 1.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.section {
  padding: 96px 0;
}

.section-tinted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.occasion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.occasion-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.occasion-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 16px;
  font-size: 26px;
  line-height: 1;
}

.occ-birthday {
  background: linear-gradient(135deg, #ffe3d3, #ffd2a8);
}

.occ-wedding {
  background: linear-gradient(135deg, #ffe0e6, #ffc9d6);
}

.occ-baptism {
  background: linear-gradient(135deg, #dcefff, #c2e2ff);
}

.occ-christmas {
  background: linear-gradient(135deg, #dff1e3, #bfe3c7);
}

.occ-shower {
  background: linear-gradient(135deg, #e0f5ea, #c5ecd8);
}

.occ-graduation {
  background: linear-gradient(135deg, #fff0cf, #ffe1a1);
}

.occ-party {
  background: linear-gradient(135deg, #ece2ff, #dbc8ff);
}

.occ-newyear {
  background: linear-gradient(135deg, #e3e8ff, #c9d4ff);
}

.occasion-name {
  font-size: 17px;
  font-weight: 600;
}

.occasion-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}

.step h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.step p {
  font-size: 15px;
  color: var(--ink-soft);
}

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

.feature-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fbe9df;
  color: var(--brand);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.cta-section {
  padding-top: 24px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  border-radius: 30px;
  background: #241d16;
  text-align: center;
  color: var(--bg);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.cta-band::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -60px;
  background: rgba(201, 79, 50, 0.45);
}

.cta-band::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -40px;
  background: rgba(232, 163, 61, 0.35);
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.015em;
}

.cta-band p {
  position: relative;
  z-index: 1;
  margin: 14px auto 30px;
  max-width: 36em;
  font-size: 17px;
  color: rgba(250, 246, 239, 0.78);
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: calc(100% - 48px);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.occasion-grid .reveal:nth-child(2),
.feature-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.occasion-grid .reveal:nth-child(3),
.feature-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.occasion-grid .reveal:nth-child(4),
.feature-grid .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

.occasion-grid .reveal:nth-child(6),
.feature-grid .reveal:nth-child(6) {
  transition-delay: 0.07s;
}

.occasion-grid .reveal:nth-child(7) {
  transition-delay: 0.14s;
}

.occasion-grid .reveal:nth-child(8) {
  transition-delay: 0.21s;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
}

.error-code {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 6.5rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.error-text {
  max-width: 30em;
  color: var(--ink-soft);
}

.error-wrap .btn {
  margin-top: 14px;
}

@media (max-width: 1020px) {
  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    min-height: 430px;
    max-width: 520px;
  }

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

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 56px 24px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 36px);
  }

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

  .hero-visual {
    min-height: 400px;
  }

  .invite-back {
    display: none;
  }

  .invite-front {
    top: 24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
  }

  .chip-rsvp {
    bottom: 10px;
    left: 6px;
  }

  .chip-count {
    top: 0;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}
