/* ===== Luke & Jordi — Elegant Chic Festival ===== */

:root {
  --cream: #f6efe1;
  --paper: #efe3ca;
  --ink: #2c2317;
  --ink-soft: rgba(44, 35, 23, 0.62);
  --ink-faint: rgba(44, 35, 23, 0.38);
  --terracotta: #bd5b3a;
  --rust: #97432a;
  --sage: #7c8c64;
  --sage-deep: #5c6b47;
  --gold: #c69a4c;
  --line: rgba(44, 35, 23, 0.16);
  --shadow-soft: 0 24px 60px -30px rgba(44, 35, 23, 0.45);
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Jost', 'Century Gothic', sans-serif;
  --font-script: 'Beau Rivage', cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- grain texture ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.15rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

.eyebrow-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--terracotta);
  margin: 0 0 0.25rem;
}

.centered { text-align: center; }
.centered.eyebrow-script { display: block; }

.body-copy {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.placeholder-copy {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.92rem;
}

/* ---- nav ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgba(246, 239, 225, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(44,35,23,0.3);
}

.nav-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.2rem);
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-cta {
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--terracotta); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #fbf6ea 0%, var(--cream) 55%, var(--paper) 100%);
}

.hero-botanicals {
  position: absolute;
  inset: 0;
  color: var(--sage);
  opacity: 0.55;
  pointer-events: none;
}
.stem { position: absolute; top: 0; height: 100%; width: auto; }
.stem-left { left: -20px; }
.stem-right { right: -20px; }
.stem .line {
  fill: none;
  stroke-linecap: round;
}
.stem .bloom {
  fill: var(--gold);
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroRise 1.2s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-names {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-names .amp {
  color: var(--terracotta);
  padding: 0 0.15em;
}

.hero-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem auto;
}

.hero-date {
  font-family: var(--font-body);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--rust);
  margin: 0 0 0.4rem;
}

.hero-venue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.countdown {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  justify-content: center;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.9rem 0.6rem;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.count-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.count-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* ---- sections ---- */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 6vw, 4rem);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-inner.narrow { max-width: 720px; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  color: var(--gold);
  opacity: 0.6;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- two column (story) ---- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(188,91,58,0.12), rgba(124,140,100,0.16)),
    repeating-linear-gradient(45deg, rgba(44,35,23,0.04) 0 2px, transparent 2px 14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(44,35,23,0.15);
}
.photo-placeholder {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--ink-faint);
}

/* ---- detail cards ---- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.detail-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.detail-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--terracotta);
  margin: 0 0 0.8rem;
}

/* ---- timeline ---- */
.schedule-note { margin-top: -0.5rem; margin-bottom: 2.5rem; }

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 420px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 75px 30px 1fr;
  align-items: center;
  padding: 0.85rem 0;
  position: relative;
}
.timeline li::before {
  content: '';
  grid-column: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  justify-self: center;
  z-index: 1;
}
.tl-time {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-align: right;
  padding-right: 0.5rem;
}
.tl-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  padding-left: 0.5rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-solid {
  background: var(--terracotta);
  color: var(--cream);
  border: 1px solid var(--terracotta);
}
.btn-solid:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-outline {
  border: 1px solid var(--ink-faint);
  color: var(--ink-soft);
}
.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.rsvp-section { text-align: center; }

/* ---- faq ---- */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-style: normal;
}

/* ---- footer ---- */
.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-footer .nav-mark {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.8rem;
}
.site-footer p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.8rem;
}
.back-top {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .stem { opacity: 0.7; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { display: inline-block; width: fit-content; }
}

@media (max-width: 480px) {
  .count-box { min-width: 52px; padding: 0.7rem 0.4rem; }
  .count-num { font-size: 1.4rem; }
  .timeline li { grid-template-columns: 60px 24px 1fr; }
}
