/* Alice & Jeven Wedding Starter */

:root {
  --cream: #fbf7f0;
  --warm-white: #fffdf8;
  --sage: #9dad93;
  --sage-dark: #65735f;
  --charcoal: #272727;
  --muted: #6f6a64;
  --gold: #b69a67;
  --line: rgba(39, 39, 39, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

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

.container.narrow {
  width: min(760px, calc(100% - 40px));
}

.section {
  padding: 110px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  color: var(--warm-white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(251, 247, 240, 0.94);
  color: var(--charcoal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.nav-rsvp {
  border: 1px solid currentColor;
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--warm-white);
  background:
    linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.24)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.05), rgba(0,0,0,0.44));
}

.hero-content {
  position: relative;
  width: min(900px, calc(100% - 40px));
  padding-top: 50px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.hero .eyebrow {
  color: var(--warm-white);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 2.25rem;
}

.hero-date {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.hero-location {
  margin: 8px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--charcoal);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--charcoal);
  color: var(--warm-white);
}

.button.secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.full-width {
  width: 100%;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.84;
}

.intro {
  text-align: center;
  background: var(--warm-white);
}

.script-heading {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 10px;
}

.intro p:last-child {
  font-size: 1.08rem;
  color: var(--muted);
}

.countdown-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sage);
}

.countdown-item {
  text-align: center;
  padding: 34px 16px;
  border-right: 1px solid rgba(255,255,255,0.25);
  color: var(--warm-white);
}

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

.countdown-item span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
}

.countdown-item small {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.split-image img {
  height: min(720px, 80vh);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-content p:not(.eyebrow) {
  color: var(--muted);
}

.details-section {
  background: var(--warm-white);
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card,
.travel-card {
  background: var(--cream);
  padding: 38px;
  border: 1px solid var(--line);
  min-height: 300px;
}

.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
}

.card p,
.travel-card p {
  color: var(--muted);
}

.timeline-section {
  background: var(--cream);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row span {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold);
}

.timeline-row p {
  margin: 0;
  align-self: center;
  font-size: 1.1rem;
}

.travel-section {
  background: var(--warm-white);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.travel-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--sage-dark);
  font-weight: 500;
}

.quote-section {
  background: var(--sage);
  color: var(--warm-white);
  text-align: center;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1;
}

cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-section {
  background: var(--cream);
}

.accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 2rem;
  text-align: left;
  cursor: pointer;
}

.accordion-button span {
  font-family: var(--sans);
  font-size: 1.5rem;
  transition: transform 160ms ease;
}

.accordion-button[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
  color: var(--muted);
}

.accordion-panel p {
  margin: 20px 0 28px;
}

.rsvp-section {
  background: var(--warm-white);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 8vw, 90px);
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 120px;
}

.rsvp-copy p:not(.eyebrow) {
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  gap: 20px;
  padding: 38px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--warm-white);
  color: var(--charcoal);
  padding: 14px 16px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 40px;
  background: var(--charcoal);
  color: var(--warm-white);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    padding: 20px;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 72px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px;
    background: var(--warm-white);
    color: var(--charcoal);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-rsvp {
    border: 0;
    padding: 14px 0;
  }

  .hero {
    min-height: 92vh;
  }

  h1 {
    font-size: clamp(4.3rem, 20vw, 7rem);
  }

  .section {
    padding: 76px 0;
  }

  .countdown-band,
  .cards,
  .travel-grid,
  .rsvp-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .countdown-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    width: min(100%, calc(100% - 40px));
  }

  .split-image img {
    height: 440px;
  }

  .card,
  .travel-card,
  .rsvp-form {
    padding: 28px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rsvp-copy {
    position: static;
  }

  .site-footer {
    flex-direction: column;
    padding: 30px 20px;
  }
}

@media (max-width: 520px) {
  .container,
  .container.narrow {
    width: min(100%, calc(100% - 28px));
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .countdown-item {
    padding: 26px 10px;
  }

  .accordion-button {
    font-size: 1.55rem;
  }
}
