:root {
  --ink: #201d1a;
  --paper: #f7e7ce;
  --paper-alt: #f0dcbe;
  --accent: #c1694a;
  --accent-dark: #a34f34;
  --accent-soft: rgba(193, 105, 74, 0.12);
  --glow-a: rgba(193, 105, 74, 0.18);
  --glow-b: rgba(122, 138, 108, 0.16);
  --line: #e8e1d5;
  --shadow: 0 20px 40px -24px rgba(32, 29, 26, 0.25);
  --glass: rgba(255, 255, 255, 0.6);
  color-scheme: light;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.title,
.subtitle,
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}

/* Construction notice */
.construction-banner {
  background: var(--accent-dark);
  color: var(--paper);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
}

/* Nav */
.site-nav {
  background: rgba(251, 250, 247, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-monogram {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.site-nav .navbar-item {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.site-nav .navbar-item:hover {
  color: var(--accent);
  background: transparent;
}

.site-nav .navbar-burger {
  color: var(--ink);
}

.site-nav .navbar-burger:hover {
  color: var(--accent);
  background: transparent;
}

.site-nav .navbar-menu.is-active {
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px -12px rgba(32, 29, 26, 0.25);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 231, 206, 0.86), rgba(247, 231, 206, 0.74)),
    url("../images/M&K-37.jpg") center 55% / cover no-repeat;
  padding: 4rem 1.5rem 5rem;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-section::before {
  background: var(--glow-a);
  top: -10rem;
  left: -8rem;
}

.hero-section::after {
  background: var(--glow-b);
  bottom: -12rem;
  right: -8rem;
}

.hero-section .hero-body {
  position: relative;
  z-index: 2;
}

.hero-bloom {
  position: absolute;
  bottom: -1.5rem;
  width: clamp(140px, 18vw, 240px);
  height: auto;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bloom-left {
  left: -2rem;
}

.hero-bloom-right {
  right: -2rem;
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  .hero-bloom {
    display: none;
  }
}

.footer-bloom {
  display: block;
  width: 32px;
  height: auto;
  margin: 0 auto 1rem;
  mix-blend-mode: multiply;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.wedding-title {
  font-size: clamp(3rem, 8vw, 5.5rem) !important;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink) !important;
}

.wedding-subtitle {
  font-family: 'Fraunces', Georgia, serif !important;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem !important;
  color: var(--accent) !important;
  margin-top: 0.5rem !important;
}

.date {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.venue {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.7;
}

.calendar-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.calendar-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.calendar-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.countdown {
  margin-top: 2.25rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.countdown-grid[hidden] {
  display: none;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5rem;
  padding: 1rem 0.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.countdown-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.65;
}

.countdown-message {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}

/* Sections */
.page-container {
  max-width: 760px;
}

.content-section {
  padding: 3.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 20px;
}

.content-section:nth-of-type(even) {
  background: var(--paper-alt);
}

.content-row {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.content-row .content-section {
  flex: 1;
  min-width: 0;
  background: var(--paper-alt);
}

@media (max-width: 760px) {
  .content-row {
    flex-direction: column;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section-heading {
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  margin-bottom: 2.5rem !important;
}

.section-heading::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--accent);
}

/* Detail cards */
.detail-card {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -20px rgba(32, 29, 26, 0.3);
}

.detail-card .title {
  color: var(--accent) !important;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.schedule-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-list li:not(:first-child) {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.schedule-time {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.schedule-label {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.7;
}

.dresscode-tagline {
  color: var(--accent) !important;
  margin-bottom: 1.25rem !important;
}

.dresscode-tip {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.faq-question {
  color: var(--accent) !important;
  margin-bottom: 0.5rem !important;
}

.price-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.price-list li:not(:last-child) {
  border-bottom: 1px dashed var(--line);
}

.price-list li span:last-child {
  font-weight: 500;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* Location */
.venue-address {
  margin-bottom: 1.5rem;
}

.map-embed {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* RSVP form */
.rsvp-intro {
  margin-bottom: 2rem;
}

.rsvp-intro strong {
  color: var(--accent-dark);
}

.rsvp-form[hidden] {
  display: none;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.rsvp-form.box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 2rem;
}

.rsvp-form .label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.rsvp-form fieldset.field {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
}

.rsvp-form fieldset.field legend.label {
  padding: 0;
  margin-bottom: 0.5rem;
  width: 100%;
}

.rsvp-form .input,
.rsvp-form .textarea {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  color: var(--ink);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form .input:focus,
.rsvp-form .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15em var(--accent-soft);
}

.rsvp-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rsvp-form .checkbox-group .checkbox,
.rsvp-form .checkbox-group .radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.rsvp-form .checkbox-group input[type="checkbox"],
.rsvp-form .checkbox-group input[type="radio"] {
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
}

.rsvp-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px var(--accent-soft);
  color: white;
}

.rsvp-status {
  max-width: 480px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--accent-dark);
}

.rsvp-status.is-error {
  color: #a3342f;
}

/* Footer */
.wedding-footer {
  background: transparent;
  color: var(--accent);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  padding: 3.5rem 1.5rem;
}

@media (max-width: 500px) {
  .countdown-grid {
    gap: 0.6rem;
  }

  .countdown-unit {
    min-width: 4.2rem;
    padding: 0.75rem 0.4rem;
  }

  .content-section {
    padding: 2.5rem 1.25rem;
  }
}
