/* ==========================================================================
   Abigail & Aaditya — site styles
   1. Theme tokens       4. Page shell + navigation
   2. Base elements      5. Sections (top to bottom)
   3. Shared components  6. Phones and tablets (max-width: 980px)
   ========================================================================== */


/* 1. Theme tokens
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #5c1c2e;
  --color-surface: #fffaf1;
  --color-text: #2a1a1f;
  --color-divider: color-mix(in srgb, #2a1a1f 16%, transparent);

  --color-accent: #7d2340;
  --color-accent-100: #fbeaf1; --color-accent-200: #f4cddf; --color-accent-300: #e5a2c1;
  --color-accent-400: #c76d97; --color-accent-500: #a33468; --color-accent-600: #7a003c;
  --color-accent-700: #660032; --color-accent-800: #4d0026; --color-accent-900: #34001a;

  --color-accent-2: #d99b1f;
  --color-accent-2-100: #fdf3dd; --color-accent-2-200: #fbe4b3; --color-accent-2-300: #f6cf7c;
  --color-accent-2-400: #ecb448; --color-accent-2-500: #d99b1f; --color-accent-2-600: #b57e15;
  --color-accent-2-700: #8f6310; --color-accent-2-800: #6b4a0b; --color-accent-2-900: #493206;

  --color-neutral-100: #f7f1ea; --color-neutral-200: #eadfd5; --color-neutral-300: #d8c8bb;
  --color-neutral-400: #b9a396; --color-neutral-500: #96806f; --color-neutral-600: #75604f;
  --color-neutral-700: #56463a; --color-neutral-800: #3a2f27; --color-neutral-900: #241d18;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-2: 8.8px;
  --space-3: 13.2px;

  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
}


/* 2. Base elements
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* /wedding shows only the wedding day; /weddingevents shows everything.
   The page sets data-variant="wedding" on <html> for the /wedding route. */
html[data-variant="wedding"] [data-events-only],
html:not([data-variant="wedding"]) [data-wedding-only] { display: none !important; }

html { scroll-behavior: smooth; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }

a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-500); }

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

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Light text on the burgundy background */
.gtxt { color: var(--color-accent-2-300); }
.gmuted { color: #efdcd9; }


/* 3. Shared components
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px;
}
.btn-primary,
.btn-primary:hover { background: var(--color-accent-2-500); color: #3d1220; }
.btn-primary:hover { background: var(--color-accent-2-400); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* Text inputs */
.input {
  width: 100%; min-height: 36px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
  padding: 6px 14px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* Cards */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); background: var(--color-surface);
  border-radius: var(--radius-lg);
}
.card-kicker {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }

/* Photos. Plain images, so a swipe that starts on a photo still scrolls
   the page on phones. */
.photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #f6efe1;
}

/* Centred content column used by most sections */
.section {
  max-width: 1120px; margin: 0 auto; padding: 0 32px 72px;
  position: relative;
}

.section-title { font-size: 44px; margin: 0 0 8px; }
.section-lede { font-size: 17px; max-width: 46ch; margin: 0 0 32px; }


/* 4. Page shell + navigation
   -------------------------------------------------------------------------- */
.page {
  font-family: var(--font-body); color: var(--color-text); background: var(--color-bg);
  min-height: 100vh; overflow-x: hidden; position: relative;
}

.site-nav {
  position: sticky; top: 0; z-index: 30;
  padding: 16px 24px 0; display: flex; justify-content: center;
}
.site-nav__bar {
  display: flex; align-items: center; gap: 28px; max-width: 100%;
  background: var(--color-surface); border-radius: 999px;
  padding: 10px 12px 10px 24px; box-shadow: var(--shadow-md);
}
.site-nav__brand,
.site-nav__brand:hover {
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  text-decoration: none; color: var(--color-text); white-space: nowrap;
}
.site-nav__links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.site-nav__links a,
.site-nav__links a:hover { text-decoration: none; color: var(--color-neutral-800); }
.site-nav__rsvp { padding: 10px 22px; white-space: nowrap; }


/* 5. Sections
   -------------------------------------------------------------------------- */

/* Hero photos: one tall photo, two stacked, one tall */
.hero { width: 100%; margin-top: 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px; height: 600px;
}
.hero-grid > div { position: relative; overflow: hidden; min-height: 0; }
.hero-grid > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.hero-grid > :nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-grid > :nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-grid > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }

/* Names + intro */
.intro { max-width: 1120px; margin: 0 auto; padding: 44px 32px 0; text-align: center; }
.intro__title { font-size: 74px; line-height: 1.05; margin: 18px 0 0; color: #fff9f2; }
.intro__amp { color: var(--color-accent-2-300); }
.intro__lede { font-size: 19px; line-height: 1.6; max-width: 46ch; margin: 16px auto 0; text-wrap: pretty; }

/* Call-to-action buttons + When / Where / Countdown */
.section--welcome { padding: 32px 32px 24px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-cta { padding: 14px 26px; font-size: 16px; white-space: nowrap; }
.btn-on-dark,
.btn-on-dark:hover { color: #fffaf1; border-color: rgba(255, 250, 241, 0.55); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.fact-card { padding: 24px; }
.fact-card--highlight { border: 2px solid var(--color-accent-2-300); }
.fact-card__value {
  font-family: var(--font-heading); font-weight: 700; font-size: 26px;
  margin-top: 6px; line-height: 1.15;
}
.fact-card__value--accent { color: var(--color-accent); }

/* How we got here */
.section--story { padding: 72px 32px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card { padding: 28px; }
.story-card__year {
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  background: var(--color-accent-200); color: var(--color-accent-800);
}
.story-card__year--gold { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.story-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 24px; margin-top: 16px; }
.story-card__text { font-size: 16px; line-height: 1.65; margin-top: 8px; color: var(--color-neutral-800); }

/* The Wedding: schedule */
.section--schedule { padding: 24px 32px 72px; }
.section--schedule .section-lede { max-width: 48ch; }
.schedule-list { display: grid; gap: 24px; align-items: start; max-width: 760px; }
.event-card { padding: 28px; }
.event-card__date { font-family: var(--font-heading); font-size: 30px; font-weight: 700; }
.event-card__name { font-size: 20px; font-weight: 700; margin-top: 14px; }
.event-card__name--next { margin-top: 18px; }
.event-card__text { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin-top: 6px; }

.map-link,
.place {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--color-accent-2-700);
  margin-top: 8px;
}
.event-card > .map-link,
.event-card > .place { margin-top: 10px; }
.map-link:hover { color: var(--color-accent); }
.map-link svg,
.place svg { flex: none; }

.timeline { display: grid; gap: 22px; margin-top: 22px; }
.timeline__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.timeline__time {
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  color: var(--color-accent-700); padding-top: 2px;
}
.timeline__body { min-width: 0; }
.timeline__title { font-size: 18px; font-weight: 700; }
.timeline__note { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin-top: 4px; }

/* Photo gallery */
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.gallery-head .section-title { margin: 0; }
.gallery-head__note { font-size: 16px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; grid-auto-flow: dense; align-items: start;
}
.gallery > div {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.gallery > .gallery__wide { grid-column: span 2; aspect-ratio: 3 / 2; }

/* Cream panels: What to wear, RSVP */
.panel {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-sm);
}
.dress__kicker { font-size: 15px; font-weight: 700; color: var(--color-accent-2-700); letter-spacing: 0.04em; }
.dress__title { font-size: 52px; margin: 12px 0 0; line-height: 1.05; color: var(--color-accent); }
.dress__text { font-size: 19px; line-height: 1.6; max-width: 56ch; margin-top: 18px; color: var(--color-neutral-800); }

/* Questions */
.section--faq .section-title { margin: 0 0 28px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 22px 26px; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--color-text);
}
.faq-item__q:hover { color: var(--color-accent-700); }
.faq-item__q-text { min-width: 0; }
.faq-item__sign {
  flex: none; width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-200); color: var(--color-accent-800);
  font-size: 20px; font-family: var(--font-body); font-weight: 700;
}
.faq-item__a {
  font-size: 17px; line-height: 1.65; max-width: 72ch;
  margin: 0; padding: 0 26px 24px; color: var(--color-neutral-800);
}

/* RSVP */
.panel--rsvp { box-shadow: var(--shadow-md); border: 2px solid var(--color-accent-2-300); }
.rsvp-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: start; }
.rsvp-intro { color: var(--color-neutral-800); }
.rsvp-intro__title { font-size: 56px; margin: 0; line-height: 1.05; color: var(--color-accent); }
.rsvp-intro__text { font-size: 18px; line-height: 1.6; max-width: 34ch; margin-top: 18px; }
.rsvp-intro__contact { margin-top: 24px; font-size: 16px; line-height: 1.8; }
.rsvp-intro__contact a,
.rsvp-intro__contact a:hover { color: var(--color-accent); }

.rsvp-box { background: #f6efe1; border-radius: var(--radius-lg); padding: 36px; }
.rsvp-box--sent { padding: 40px; }
.form-fields,
.extra-fields { display: grid; gap: 20px; }

.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field-input { width: 100%; padding: 13px 20px; font-size: 16px; }

.steppers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.stepper {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-surface); border: 2px solid var(--color-neutral-300);
  border-radius: 999px; padding: 6px;
}
.stepper__btn {
  flex: none; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-accent-100); color: var(--color-accent-700);
  font-size: 22px; font-weight: 700; line-height: 1;
}
.stepper__btn:hover { background: var(--color-accent-200); }
.stepper__value { flex: 1; text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }

/* Yes / No */
.choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.choice {
  padding: 14px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  background: transparent; color: var(--color-neutral-800);
  border: 2px solid var(--color-neutral-300);
}
.choice.is-on { background: var(--color-accent); color: #fffaf1; border-color: var(--color-accent); }

/* Which celebrations: tick boxes */
.event-options { display: grid; gap: 10px; }
.event-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); color: var(--color-text);
  background: transparent; border: 2px solid var(--color-neutral-300);
}
.event-opt.is-on { background: var(--color-accent-100); border-color: var(--color-accent); }
.event-opt__box {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  background: #fffaf1; color: transparent; border: 2px solid var(--color-neutral-400);
}
.event-opt.is-on .event-opt__box { background: var(--color-accent); color: #fffaf1; border-color: var(--color-accent); }
.event-opt__text { display: grid; gap: 2px; text-align: left; min-width: 0; }
.event-opt__name { font-size: 16px; font-weight: 700; }
.event-opt__date { font-size: 14px; color: var(--color-neutral-700); }

.form-error { font-size: 15px; font-weight: 600; color: var(--color-accent-2-600); }
.btn-submit { padding: 15px 28px; font-size: 16px; justify-content: center; }

/* Thank-you message after sending */
.sent-title { font-family: var(--font-heading); font-weight: 700; font-size: 38px; line-height: 1.1; }
.sent-text { font-size: 17px; line-height: 1.65; margin-top: 14px; color: var(--color-neutral-800); }
.btn-change { margin-top: 18px; padding: 12px 24px; }

/* Footer */
.site-footer {
  max-width: 1120px; margin: 0 auto; padding: 0 32px 64px; position: relative;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 15px;
}
/* Copyright + contact line under the footer */
.site-footer__legal {
  flex-basis: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 8px 20px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid rgba(239, 220, 217, 0.25);
  font-size: 13px; line-height: 1.6; opacity: 0.8;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a,
.site-footer__legal a:hover { color: inherit; }


/* 6. Phones and tablets
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-nav__links { display: none; }

  /* Hero: one wide photo on top, three below */
  .hero-grid {
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
    height: 620px;
  }
  .hero-grid > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .hero-grid > :nth-child(1) { grid-column: 1 / -1; }

  .intro__title { font-size: 52px; }

  .facts,
  .story-grid,
  .rsvp-grid,
  .steppers { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .panel { padding: 24px; }
  .rsvp-box { padding: 22px; }

  .rsvp-intro__title,
  .dress__title { font-size: 38px; }
}
