/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
  /* Color Palette Refinements */
  --paper: #fdfbf7;
  --cream: #f6f0e6;
  --white: #ffffff;
  --ink: #2b3329;
  --ink-muted: #535e50;
  --sage: #5b6c54;
  --olive: #485542;
  --terracotta: #b06a54;
  --rust: #8a4e3e;
  --dusty: #7a8a86;
  --gold: #a6874e;
  --line: #e4dcd0;
  --line-light: #efe8dd;
  --shadow-soft: 0 10px 30px -5px rgba(43, 51, 41, 0.05);
  --shadow-lift: 0 20px 40px -10px rgba(43, 51, 41, 0.08);

  /* Typography Stack */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  transition: var(--transition-base);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility Utilities */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: var(--transition-base);
  background: transparent;
  padding: 0.5rem 0;
}

.site-header.is-scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 220, 208, 0.6);
  padding: 0;
}

.nav {
  position: relative;
  width: min(1120px, calc(100% - 3rem));
  min-height: 4.5rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  text-decoration: none;
  font: 600 1.75rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.site-header:not(.is-scrolled) {
  color: var(--white);
}

/* ==========================================================================
   3. GLOBAL TYPOGRAPHY & LAYOUT UTILITIES
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.container {
  width: min(1100px, calc(100% - 3rem));
  margin: auto;
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
}

.script-title {
  margin: 0.2rem 0 0.5rem;
  color: var(--olive);
  font: 400 clamp(2.2rem, 5vw, 3.2rem)/1.1 "Parisienne", cursive;
  text-align: center;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.05;
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  margin: 0.4rem 0 1.2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.5rem 0 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  opacity: 0.75;
}

.flourish span {
  width: 2.5rem;
  height: 1px;
  background: var(--line);
}

.flourish b {
  font-weight: 400;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--olive);
  color: var(--white);
}

.button-primary:hover {
  background: var(--ink);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.button-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.button-outline {
  border-color: var(--olive);
  color: var(--olive);
  background: transparent;
}

.button-outline:hover {
  background: var(--olive);
  color: var(--white);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45)),
    url("assets/LAKE_HERO.jpeg") center/cover no-repeat;
  color: var(--white);
}

.hero .button-primary {
  background: var(--cream);
  color: var(--ink);
}

.hero .button-primary:hover {
  background: var(--white);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  color: var(--white);
}

.hero h1 em {
  color: #f7dcd0;
  font-style: italic;
  font-weight: 300;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(43, 51, 41, 0.15),
    rgba(43, 51, 41, 0.35) 60%,
    rgba(43, 51, 41, 0.65)
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 3rem));
  text-align: center;
  padding-top: 3rem;
}

.script-kicker {
  font: 400 clamp(2rem, 4.5vw, 2.8rem)/1 "Parisienne", cursive;
  margin: 0 0 0.5rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-date {
  font: 400 clamp(1.2rem, 2.5vw, 1.6rem)/1.2 var(--serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
}

.hero-location {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.75rem auto 2rem;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  color: var(--white);
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  animation: float 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.scroll-cue:hover {
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   5. COUNTDOWN SECTION
   ========================================================================== */

.countdown {
  position: relative;
  background: var(--cream);
  padding: 5rem 0 6rem;
}

.wildflower-strip {
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  opacity: 0.2;
  background: url("assets/wildflower-border.svg") center bottom/auto 60px repeat-x;
  pointer-events: none;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.time-card {
  padding: 1.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-base);
}

.time-card:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.time-card span {
  display: block;
  font: 400 clamp(2.5rem, 6vw, 4.2rem)/1 var(--serif);
  color: var(--ink);
}

.time-card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ==========================================================================
   6. STORY SECTION
   ========================================================================== */

.story {
  background: var(--paper);
}

.story-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.story-copy {
  max-width: 560px;
}

.story-copy > p:not(.eyebrow):not(.script-title) {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.signature {
  font: 400 2.25rem var(--serif);
  margin-top: 2rem;
  text-align: center;
  color: var(--ink);
}

.signature span {
  color: var(--terracotta);
  font-style: italic;
}

/* Detail Board */
.detail-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}

.detail-board article {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line-light);
}

.detail-board article:nth-child(odd) {
  border-right: 1px solid var(--line-light);
}

.detail-board article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-board span {
  display: block;
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.detail-board strong {
  font: 400 1.35rem/1.2 var(--serif);
  color: var(--ink);
}

.pressed-flower {
  position: absolute;
  right: -12px;
  top: -20px;
  color: var(--terracotta);
  font-size: 3rem;
  transform: rotate(18deg);
  opacity: 0.85;
  pointer-events: none;
}

/* ==========================================================================
   7. TRAVEL & DETAILS
   ========================================================================== */

.travel {
  background: var(--cream);
}

.travel-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.travel-image-container {
  min-height: 28rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--white);
}

.travel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 28rem;
  transition: transform 0.6s ease;
}

.travel-image-container:hover .travel-photo {
  transform: scale(1.03);
}

.travel-copy {
  max-width: 550px;
}

.travel-copy > p:not(.eyebrow):not(.script-title) {
  color: var(--ink-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.check-list li {
  margin: 0.85rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "✿";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.9rem;
}

.text-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive);
  border-bottom: 1.5px solid var(--olive);
  padding-bottom: 2px;
  text-align: center;
}

.text-link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* ==========================================================================
   8. REGISTRY & FAQ
   ========================================================================== */

.registry {
  background: var(--cream);
  text-align: center;
}

.mini-bouquet,
.rsvp-flower,
.footer-flora {
  color: var(--terracotta);
  letter-spacing: 0.3em;
  font-size: 1.25rem;
  opacity: 0.85;
}

.registry p:not(.eyebrow):not(.script-title) {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--ink-muted);
}

.faq {
  background: var(--paper);
}

.faq-grid {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}

.faq-grid details {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.faq-grid details[open] {
  box-shadow: var(--shadow-lift);
}

.faq-grid summary {
  cursor: pointer;
  font: 400 1.35rem/1.2 var(--serif);
  color: var(--ink);
  list-style-position: outside;
  transition: color 0.2s ease;
}

.faq-grid summary:hover {
  color: var(--terracotta);
}

.faq-grid details p {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   9. RSVP SECTION & FORMS
   ========================================================================== */

.rsvp {
  background: var(--cream);
}

.rsvp-grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

.rsvp-copy {
  padding-top: 1rem;
}

.rsvp-copy p:not(.eyebrow):not(.script-title) {
  max-width: 450px;
  color: var(--ink-muted);
}

.rsvp-form {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 2.5rem;
  box-shadow: var(--shadow-lift);
}

.rsvp-form > .button {
  width: 100%;
  margin-top: 1rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row > label,
legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-row label span,
legend span {
  color: var(--terracotta);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transition: var(--transition-base);
}

input:focus,
textarea:focus {
  background: var(--white);
  border-color: var(--sage);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 108, 84, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-group label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0.6rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
}

.radio-group input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--olive);
  cursor: pointer;
}

.field-help {
  color: var(--dusty);
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
}

.field-error {
  min-height: 1rem;
  color: var(--rust);
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.form-status.success { color: var(--olive); }
.form-status.error { color: var(--rust); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.honeypot {
  display: none !important;
}
.site-footer {
  padding: 3rem 1rem;
  text-align: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--white);
  text-underline-offset: 0.3em;
}

.site-footer a:hover {
  color: var(--cream);
}

/* ==========================================================================
   11. MEDIA QUERIES & RESPONSIVE DESIGN
   ========================================================================== */

@media (min-width: 720px) {
  .section {
    padding: 7rem 0;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .story-grid,
  .travel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .rsvp-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}