/* Wedding site — monochrome, white, clean. Turquoise accents. Mobile-first. */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f7f8f8;
  --ink:         #131313;
  --ink-mid:     #555555;
  --ink-faint:   #aaaaaa;
  --teal:        #1eadad;
  --teal-deep:   #178f8f;
  --teal-wash:   #edf8f8;
  --line:        #e8e8e8;
  --shadow:      0 1px 16px rgba(0, 0, 0, 0.06);
  --radius:      14px;
  --serif:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:        "DM Sans", system-ui, -apple-system, sans-serif;

  /* resolve design references to undefined vars */
  --card:        var(--bg);
  --ink-soft:    var(--ink-mid);
  --paper-deep:  var(--bg-soft);
  --sage:        var(--teal);
  --sage-light:  var(--teal-wash);
  --sage-deep:   var(--teal-deep);
  --blush:       var(--teal-deep);
  --honey:       var(--ink-mid);

  /* backward-compat for admin.css */
  --paper:       var(--bg-soft);
  --terracotta:  var(--teal);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
label { display: block; }
.muted { color: var(--ink-mid); font-size: .9em; }

/* --- Layout --------------------------------------------------------------- */
.page { max-width: 680px; margin: 0 auto; padding: 108px 24px 80px; }
.home { max-width: none; padding: 0; }

/* --- Top nav -------------------------------------------------------------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 62px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.topnav.transparent { background: transparent; border-bottom-color: transparent; }
.nav-monogram { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); letter-spacing: .01em; flex-shrink: 0; text-decoration: none; }
.topnav.transparent .nav-monogram { color: #fff; }
.nav-links { display: none; list-style: none; gap: 2px; }
.nav-links a { display: block; padding: 6px 13px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; color: var(--ink-mid); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.current { color: var(--teal); }
.topnav.transparent .nav-links a { color: rgba(255,255,255,.7); }
.topnav.transparent .nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topnav.transparent .nav-links a.current { color: #fff; }

/* --- Hamburger (mobile) --------------------------------------------------- */
.hamburger {
  position: fixed; top: 11px; right: 14px; z-index: 50;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--bg); box-shadow: var(--shadow);
  cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Drawer --------------------------------------------------------------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 45;
  width: 78%; max-width: 280px;
  background: var(--bg); box-shadow: 4px 0 40px rgba(0,0,0,.09);
  transform: translateX(-105%); transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.drawer.open { transform: translateX(0); }
.drawer-inner { padding: 80px 28px 28px; }
.drawer-monogram { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 28px; color: var(--teal); }
.drawer ul { list-style: none; }
.drawer li { margin: 2px 0; }
.drawer a { display: block; padding: 11px 10px; text-decoration: none; color: var(--ink); font-size: 1rem; border-radius: 8px; transition: background .15s, color .15s; }
.drawer a.current { color: var(--teal); }
.drawer a:hover { background: var(--teal-wash); color: var(--teal-deep); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.25); backdrop-filter: blur(2px); }

/* --- Page header ---------------------------------------------------------- */
.page-head { margin-bottom: 40px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.page-head h1 { font-size: 3rem; margin: 0 0 8px; }
.lede { font-size: 1rem; color: var(--ink-mid); line-height: 1.6; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; }
.hero-photo { position: absolute; inset: 0; background: #7aafb2 center/cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.48) 100%); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 48px 28px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .24em; font-size: .68rem; color: rgba(255,255,255,.75); font-weight: 500; }
.hero-names { font-family: var(--serif); font-weight: 300; font-size: 4.5rem; color: #fff; line-height: 1; letter-spacing: .01em; }
.hero-rule { width: 40px; height: 1px; background: rgba(255,255,255,.35); }
.hero-date { color: rgba(255,255,255,.82); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-cta { margin-top: 8px; display: inline-block; padding: 11px 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 40px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.hero-cta:hover { background: rgba(255,255,255,.15); color: #fff; }

/* --- Home strip + gallery ------------------------------------------------- */
.home-strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.home-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 32px; padding: 16px 24px;
  font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-mid); flex-wrap: wrap;
}
.strip-sep { color: var(--line); letter-spacing: 0; }

/* --- Home photo grid (4×4 full-bleed) ------------------------------------ */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.grid-cell {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.grid-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease;
}

/* --- Cards ---------------------------------------------------------------- */
.cards { display: grid; gap: 14px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 26px 26px 22px; border: 1px solid var(--line); }
.card-accent { width: 24px; height: 2px; background: var(--teal); border-radius: 1px; margin-bottom: 14px; }
.card h2 { font-size: 1.55rem; margin: 0 0 10px; }
.card p + p { margin-top: 8px; }
.card-day { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--teal); margin: 0 0 4px; font-weight: 500; }
.card ul { padding-left: 1.1rem; margin: 10px 0 0; }
.card li { margin: 5px 0; color: var(--ink-mid); font-size: .96rem; }

/* --- Timeline ------------------------------------------------------------- */
.timeline { background: var(--ink); color: #fff; margin-top: 56px; }
.timeline ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; max-width: 800px; margin: 0 auto; padding: 20px 24px; font-size: .84rem; letter-spacing: .02em; }
.timeline li { display: flex; align-items: center; gap: 9px; }
.t-step { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); font-weight: 600; font-size: .7rem; flex-shrink: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { text-align: center; padding: 28px 16px 40px; color: var(--ink-faint); font-size: .8rem; border-top: 1px solid var(--line); }

/* --- Forms ---------------------------------------------------------------- */
input[type=text], input[type=email], input[type=password], textarea, select {
  font-family: var(--sans); font-size: .98rem; color: var(--ink); width: 100%;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,173,173,.1); }
textarea { min-height: 88px; resize: vertical; }
button { font-family: var(--sans); font-size: .84rem; font-weight: 500; cursor: pointer; border: none; border-radius: 10px; padding: 12px 22px; background: var(--teal); color: #fff; letter-spacing: .04em; transition: background .15s, transform .1s; }
button:hover { background: var(--teal-deep); }
button:active { transform: scale(.98); }
button.ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); padding: 11px 22px; }
button.ghost:hover { background: var(--teal-wash); }
button.primary { background: var(--teal); }
button.primary:hover { background: var(--teal-deep); }
button.danger { background: transparent; color: var(--ink-faint); padding: 8px 10px; border: 1px solid var(--line); }
.form-error { color: #b33; font-weight: 500; font-size: .9rem; }

/* --- RSVP ----------------------------------------------------------------- */
.rsvp-form { display: grid; gap: 18px; margin-top: 20px; }
.rsvp-lookup form { display: grid; gap: 14px; margin-top: 14px; }
.rsvp-lookup label { display: grid; gap: 5px; font-weight: 500; font-size: .92rem; }
.member { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 22px 24px; margin: 0; }
.member legend { font-family: var(--serif); font-size: 1.35rem; padding: 0 6px; }
.attending-toggle { display: flex; gap: 8px; margin: 12px 0 6px; }
.pill { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg-soft); transition: border-color .15s, background .15s; font-size: .9rem; }
.pill:has(input:checked), .pill.selected { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }
.field-label { font-weight: 500; margin: 14px 0 8px; font-size: .84rem; color: var(--ink-mid); text-transform: uppercase; letter-spacing: .07em; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: flex; align-items: center; gap: 7px; font-size: .94rem; }
.check input { width: auto; accent-color: var(--teal); }
.block-label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.confirm-banner { background: var(--teal-wash); color: var(--teal-deep); padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(30,173,173,.2); display: block; margin-bottom: 20px; }

/* --- RSVP split panel ----------------------------------------------------- */
.rsvp-editorial { max-width: none; }
.rsvp-split { display: grid; grid-template-columns: 38% 1fr; min-height: 100vh; }
.rsvp-aside {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(170deg, #0a0c14 0%, #1a1e2e 40%, #252a40 75%, #303550 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 5vw, 64px);
}
.rsvp-aside-kicker {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 32px; font-weight: 500;
}
.rsvp-aside-names {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.1; color: #fff; margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.rsvp-aside-detail { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); line-height: 2.4; }
.rsvp-aside-detail strong {
  color: rgba(255, 255, 255, 0.82); font-weight: 500; display: block;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.65rem;
}
.rsvp-main {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 5vw, 80px);
  background: var(--bg); padding-bottom: 80px;
}
.rsvp-main-h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300; margin: 0 0 6px; letter-spacing: -0.02em;
}
.rsvp-main-sub { font-size: 0.95rem; color: var(--ink-mid); margin: 0 0 48px; line-height: 1.6; }

.line-group { display: grid; gap: 28px; margin-bottom: 32px; }
.line-field label {
  display: block; font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); margin-bottom: 8px;
}
.line-field input, .line-field textarea {
  width: 100%; padding: 8px 0 10px;
  border: none; border-bottom: 1.5px solid var(--line); border-radius: 0;
  background: transparent; font-size: 1.05rem; font-family: var(--sans);
  color: var(--ink); transition: border-color 0.2s;
}
.line-field input:focus, .line-field textarea:focus {
  outline: none; border-bottom-color: var(--teal); box-shadow: none;
}

.member-block { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.member-name { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; margin: 0 0 20px; }

.attend-row { display: flex; gap: 12px; margin-bottom: 28px; }
.attend-btn {
  flex: 1; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 50px;
  background: transparent; font-family: var(--sans); font-size: 0.84rem;
  font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.2s; color: var(--ink-mid); text-align: center;
}
.attend-btn.yes { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }
.attend-btn.no { border-color: var(--ink-faint); background: var(--bg-soft); color: var(--ink-mid); }

.rsvp-field-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-faint);
  margin: 20px 0 12px; display: block;
}
.rsvp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-check-pill {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 50px;
  font-size: 0.84rem; display: flex; align-items: center; gap: 7px;
  cursor: pointer; color: var(--ink-mid); transition: border-color 0.15s;
}
.rsvp-check-pill input { accent-color: var(--teal); width: auto; }

.rsvp-submit {
  background: var(--ink); color: #fff; border: none;
  padding: 16px 44px; border-radius: 50px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; display: inline-block;
}
.rsvp-submit:hover { background: var(--teal-deep); }

/* --- Gate ----------------------------------------------------------------- */
.gate-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.gate { max-width: 400px; width: 100%; padding: 24px; }
.gate-card { background: var(--bg); border-radius: 20px; padding: 48px 40px; box-shadow: 0 2px 32px rgba(0,0,0,.07); text-align: center; border: 1px solid var(--line); }
.gate h1 { font-size: 2.6rem; margin: 10px 0 14px; }
.gate-kicker { text-transform: uppercase; letter-spacing: .2em; color: var(--teal); font-size: .68rem; font-weight: 500; }
.gate p.muted { font-size: .9rem; margin: 0 0 4px; }
.gate form { display: grid; gap: 12px; margin-top: 22px; }
.gate button { width: 100%; padding: 13px; }

/* --- Editorial (Vogue-style) layouts -------------------------------------- */
.ed-page { max-width: none; padding: 0; }

.ed-hero {
  padding: clamp(100px, 12vh, 140px) clamp(24px, 6vw, 80px) clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--line);
}
.ed-overline {
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.72rem;
  font-weight: 500; color: var(--ink-mid); display: block; margin-bottom: 20px;
}
.ed-title {
  font-family: var(--serif); font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 300; line-height: 0.92; letter-spacing: -0.02em; margin: 0;
}
.ed-title em { font-style: italic; color: var(--blush); }

.ed-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 580px; border-bottom: 1px solid var(--line);
}
.ed-photo-panel { overflow: hidden; position: relative; min-height: 480px; }
.ed-photo-fill { position: absolute; inset: 0; display: block; }
.ed-text-panel {
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
}
.ed-section.flip .ed-photo-panel { order: 2; }
.ed-section.flip .ed-text-panel  { order: 1; }

.ed-num {
  font-family: var(--serif); font-size: 4.5rem; font-weight: 300;
  line-height: 1; color: var(--line); display: block;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.ed-day {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem;
  font-weight: 600; color: var(--teal-deep); margin-bottom: 12px; display: block;
}
.ed-h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.01em;
}
.ed-body { font-size: 0.97rem; color: var(--ink-mid); line-height: 1.75; max-width: 380px; }
.ed-body strong { color: var(--ink); font-weight: 600; }
.ed-body em { font-style: italic; }

.ed-full {
  position: relative; min-height: 72vh;
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.ed-full-photo { position: absolute; inset: 0; }
.ed-full-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.04) 58%);
}
.ed-full-text {
  position: relative; z-index: 1;
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 64px);
  color: #fff; width: 100%;
}
.ed-full-text .ed-day  { color: rgba(255, 255, 255, 0.6); }
.ed-full-text .ed-num  { color: rgba(255, 255, 255, 0.16); }
.ed-full-text .ed-h2   { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
.ed-full-text .ed-body { color: rgba(255, 255, 255, 0.82); max-width: 560px; }

.ed-center-section {
  padding: clamp(56px, 8vw, 96px) clamp(32px, 8vw, 120px);
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.ed-center-section .ed-num  { font-size: 3rem; }
.ed-center-section .ed-h2   { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.ed-center-section .ed-body { max-width: 560px; }

.ed-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.ed-option {
  background: var(--bg); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
}
.ed-option:nth-child(2) { border-top-color: var(--blush); }
.ed-option:nth-child(3) { border-top-color: var(--honey); }
.ed-option-label {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--teal-deep); display: block; margin-bottom: 8px;
}
.ed-option h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 10px; }
.ed-option p  { font-size: 0.9rem; color: var(--ink-mid); line-height: 1.6; }

/* Scroll reveals */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-44px);
  transition: opacity 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.in  { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(44px);
  transition: opacity 0.85s 0.14s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* --- Desktop -------------------------------------------------------------- */
@media (min-width: 720px) {
  .hero-names { font-size: 5.5rem; }
  .page-head h1 { font-size: 3.8rem; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .hamburger { display: none; }
  .nav-links { display: flex; }
  .topnav { padding: 0 52px; }
}

@media (max-width: 719px) {
  .rsvp-split { grid-template-columns: 1fr; }
  .rsvp-aside { position: static; height: auto; min-height: 40vh; }
  .ed-section { grid-template-columns: 1fr; }
  .ed-section.flip .ed-photo-panel { order: 0; }
  .ed-section.flip .ed-text-panel  { order: 0; }
  .ed-options { grid-template-columns: 1fr; }
}
