/* ─────────────────────────────────────────────
   Ellie & Amey Wedding — Design System
   Direction B: Elegant Antique
   Palette: warm ivory · brass/gold · deep charcoal
   Type: Cormorant Garamond (display) · EB Garamond (body) · Jost (utility)
───────────────────────────────────────────── */

/* ── Custom Properties ── */
:root {
  --ivory:       #f7f3ec;
  --ivory-dark:  #ede7d9;
  --cream:       #faf7f2;
  --brass:       #b8892a;
  --brass-light: #d4aa50;
  --brass-dark:  #8a6418;
  --charcoal:    #2c2825;
  --charcoal-mid:#4a4440;
  --charcoal-light: #7a706a;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-ui:      'Jost', system-ui, sans-serif;

  --max-w: 860px;
  --section-gap: 5rem;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* On the STD page body bg matches the dark photo so no white gap ever shows */
body:has(.std-page) {
  background-color: var(--charcoal);
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Texture Overlay ── */
.texture-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ── Site Layout ── */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ── Header / Nav ── */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* On the STD page the header sits above the fixed bg photo */
.site-header .nav-logo { color: var(--brass-light); }
.site-header .nav-link { color: rgba(247,243,236,0.7); }
.site-header .nav-link:hover,
.site-header .nav-link--active { color: var(--brass-light); border-bottom-color: var(--brass-light); }
.site-header .not-you-link { color: rgba(247,243,236,0.4); }

/* Dark theme (story page) */
.body--dark {
  background-color: #1a1713;
}

.body--dark .site-footer {
  background: #111009;
  border-top: 1px solid rgba(184, 137, 42, 0.15);
}

.body--dark .story-hero,
.body--dark .timeline-section {
  color: var(--ivory);
}

.body--dark .story-title {
  color: var(--ivory);
}

.body--dark .story-divider {
  color: var(--brass-light);
}

.body--dark .timeline::before {
  background: rgba(184, 137, 42, 0.25);
}

.body--dark .timeline-marker {
  background: #1a1713;
  border-color: var(--brass);
}

.body--dark .timeline-heading {
  color: var(--ivory);
}

.body--dark .timeline-body {
  color: var(--ivory-dark);
}

.body--dark .timeline-placeholder {
  color: rgba(247, 243, 236, 0.4);
}

.body--dark .hero-eyebrow {
  color: var(--brass-light);
}

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--brass);
  flex-shrink: 0;
}

/* ── Hamburger (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(247,243,236,0.75);
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Nav drawer — desktop: inline row ── */
.nav-drawer {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link--active {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.not-you-link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--charcoal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.not-you-link:hover {
  color: var(--brass);
}

/* ── Mobile nav ── */
@media (max-width: 560px) {
  .site-nav {
    padding: 0.75rem 1.25rem;
    position: relative; /* anchor for absolute drawer */
  }

  .nav-logo {
    flex: 1;
    text-align: center;
  }

  .nav-hamburger {
    display: flex;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Drawer drops below header, doesn't affect header height */
  .nav-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    flex: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 1.25rem;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.45s ease;
  }

  .nav-drawer--open {
    max-height: 300px;
    opacity: 1;
    padding: 1.25rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-left: 0;
  }

  .nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
  }
}

/* ── Save the Date — Floating Card ── */
.std-page {
  position: relative;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.std-bg {
  position: fixed;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.std-bg-img,
.std-bg picture,
.std-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.std-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 22, 0.28);
}

.std-card {
  background: rgba(247, 243, 236, 0.62);
  border-top: 3px solid rgba(212, 170, 80, 0.75);
  max-width: 680px;
  width: 100%;
  padding: 2.25rem 2.5rem 2rem;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 248, 230, 0.7),
    inset 0 -1px 0 rgba(184, 137, 42, 0.12),
    inset 1px 0 0 rgba(255, 248, 230, 0.4),
    inset -1px 0 0 rgba(255, 248, 230, 0.4);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 2px;
  overflow: hidden;
}

@media (max-width: 500px) {
  .std-page { padding: 2.5rem 0.75rem 1.5rem; align-items: flex-start; }
  .std-card { padding: 1.25rem; border-radius: 2px; }
  .std-header {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 2rem 1.25rem 1.25rem;
  }
  .std-two-col { padding: 0 1.25rem; }
  .std-airbnb, .std-rule { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.std-header {
  text-align: center;
  margin-bottom: 0.75rem;
  background: rgba(30, 26, 22, 0.52);
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  margin-top: -2.25rem;
  padding: 1.75rem 2.5rem 1.25rem;
  border-bottom: 1px solid rgba(184, 137, 42, 0.3);
}

.std-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.6rem;
}

.std-names {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.55rem;
  color: var(--ivory);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.std-amp {
  font-style: italic;
  color: var(--brass-light);
}

.std-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ivory-dark);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.std-dot {
  margin: 0 0.4em;
  color: var(--brass-light);
}

.std-rule {
  text-align: center;
  color: var(--brass-light);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  margin: 0.9rem 0;
}

.std-rule--sm {
  margin: 0.6rem 0 0.8rem;
  font-size: 0.7rem;
}

/* Two-column row: calendar + email */
.std-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .std-two-col { grid-template-columns: 1fr; gap: 1rem; }
}

.std-widget {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.std-widget-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.std-label-note {
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  text-transform: none;
}

.std-cal-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.std-email-form {
  display: flex;
  gap: 0.5rem;
}

/* Airbnb block */
.std-airbnb {
  border-top: 2px solid rgba(184, 137, 42, 0.35);
  margin-top: 1rem;
}

.std-airbnb-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.std-airbnb-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.std-airbnb-bottom {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Section Shared ── */
.story-hero,
.timeline-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn--primary {
  background: var(--brass);
  color: var(--ivory);
  border: 1px solid var(--brass);
}

.btn--primary:hover {
  background: var(--brass-dark);
  border-color: var(--brass-dark);
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal-mid);
}

.btn--outline:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn--sm {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  letter-spacing: 0.1em;
}

/* ── Forms ── */
.form-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ivory-dark);
  background: var(--ivory);
  color: var(--charcoal);
  width: 280px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--brass);
}

.form-input--sm {
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.form-input--notes {
  flex: 1;
  min-width: 0;
}

.form-confirmation {
  font-size: 0.88rem;
  color: var(--brass-dark);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Airbnb / Radio ── */
.radio-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.radio-group--compact {
  justify-content: flex-start;
  margin-bottom: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--ivory-dark);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}

.radio-label input[type="radio"] {
  accent-color: var(--brass);
}

.radio-label:hover,
.radio-label--selected {
  border-color: var(--brass);
  background: var(--ivory);
}

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.footer-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.footer-venue {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-light);
}

/* ─────────────────────────
   Enter / Code Entry Page
───────────────────────── */
.enter-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  font-family: var(--font-body);
}

.enter-card {
  background: var(--ivory);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
}

.enter-monogram {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--brass);
}

.enter-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.enter-subheading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal-mid);
  margin-bottom: 2rem;
}

.enter-instruction {
  font-size: 0.9rem;
  color: var(--charcoal-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.enter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.enter-field-wrap {
  margin-bottom: 1rem;
}

.enter-input {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ivory-dark);
  background: var(--cream);
  color: var(--charcoal);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.enter-input:focus {
  border-color: var(--brass);
}

.enter-input--error {
  border-color: #b94040;
}

.enter-error {
  font-size: 0.83rem;
  color: #b94040;
  margin-top: 0.5rem;
  font-style: italic;
}

.enter-button {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.enter-button:hover {
  background: var(--brass-dark);
  border-color: var(--brass-dark);
}

.enter-cookie-hint {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--charcoal-light);
  margin-top: 1.25rem;
  line-height: 1.6;
  text-align: center;
}

/* ─────────────────────────
   Our Story / Timeline
───────────────────────── */
.story-hero {
  text-align: center;
  padding-bottom: 0;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.story-divider {
  text-align: center;
  color: var(--brass);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
}

.timeline-section {
  padding-top: 3rem;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 620px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: var(--ivory-dark);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2.05rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--brass);
}

.timeline-marker--final {
  background: var(--brass);
  width: 14px;
  height: 14px;
  left: -2.3rem;
}

.timeline-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.timeline-body {
  font-size: 1.2rem;
  color: var(--charcoal-mid);
  line-height: 1.7;
}

.timeline-placeholder {
  font-style: italic;
  color: var(--charcoal-light);
}

.timeline-img-wrap {
  margin: 1rem 0;
  overflow: hidden;
}

.timeline-img {
  width: 100%;
  height: auto;
  display: block;
}
