:root {
  --wine: #6B1F2E;
  --wine-deep: #521722;
  --wine-glow: #7E2537;
  --on-wine: #F4ECDD;
  --frame: #CFA99A;
  --paper: #FFFCF6;
  --sand: #EFE6D6;
  --card: #F6EEE0;
  --line: #E4D6BC;
  --ink: #3D3431;
  --muted: #6A5E57;
  --taupe: #7A6A58;
  --olive: #6E7343;
  --olive-soft: #8E9A5E;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Lining (not old-style) numbers everywhere; the `font` shorthand would otherwise reset this */
* { font-feature-settings: "lnum" 1 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.flip { transform: scaleX(-1); }

.wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.nav.show { transform: none; }
.nav-brand {
  font: 30px/1 var(--script); color: var(--wine); text-decoration: none; white-space: nowrap;
}
.nav-brand span { font-size: .8em; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--taupe); text-decoration: none; white-space: nowrap; padding: 8px 0;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--wine); border-color: var(--wine); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 72px 24px 96px;
  text-align: center; color: var(--on-wine);
  background:
    radial-gradient(ellipse at 50% 42%, var(--wine-glow) 0%, var(--wine) 45%, var(--wine-deep) 100%);
  overflow: hidden;
}
.hero-frame {
  position: absolute; inset: clamp(12px, 2.5vw, 30px);
  border: 1px solid rgba(207, 169, 154, .75);
  pointer-events: none;
}
.hero-frame::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(207, 169, 154, .4);
  border-radius: 34px;
}
.hero-frame i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--frame);
}
.hero-frame i:nth-child(1) { top: 22px; left: 22px; }
.hero-frame i:nth-child(2) { top: 22px; right: 22px; }
.hero-frame i:nth-child(3) { bottom: 22px; left: 22px; }
.hero-frame i:nth-child(4) { bottom: 22px; right: 22px; }

.hero-inner { position: relative; max-width: 900px; }
.hero-wreath { width: min(380px, 78vw); aspect-ratio: 356 / 172; margin: 0 auto -10px; display: block; }
.hero-eyebrow {
  font: 500 clamp(14px, 1.8vw, 19px)/1.4 var(--serif);
  letter-spacing: .38em; text-transform: uppercase; margin: 0 0 .2em; padding-left: .38em;
}
.hero-names {
  font: clamp(64px, 12vw, 148px)/1.1 var(--script);
  margin: 0 0 .1em; padding: 0 .1em;
}
.hero-names .amp { font-size: .62em; margin: 0 .08em; }
.diamond-rule { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 22px; }
.diamond-rule span { width: 88px; height: 1px; background: rgba(244, 236, 221, .55); }
.diamond-rule b { width: 11px; height: 11px; border: 1px solid rgba(244, 236, 221, .8); transform: rotate(45deg); }
.hero-date {
  font: 500 clamp(17px, 2.6vw, 30px)/1.3 var(--serif);
  letter-spacing: .22em; text-transform: uppercase; margin: 0 0 .25em; padding-left: .22em;
}
.hero-place { font: italic 400 clamp(19px, 2.4vw, 28px)/1.3 var(--serif); opacity: .9; margin: 0; }

.swag, .divider, .footer-mark { display: flex; align-items: center; justify-content: center; }
.swag { margin: 22px auto 0; }
.swag svg, .divider svg { width: 170px; height: 35px; }
.swag i, .divider i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-wine); margin: 6px -3px 0; position: relative; z-index: 1; }
.swag svg:first-child { margin-right: -6px; }
.swag svg:last-child { margin-left: -6px; }

.countdown {
  margin: 28px 0 0; min-height: 1.6em;
  font: 700 12px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244, 236, 221, .8);
}
.countdown b { font: 500 22px/1 var(--serif); letter-spacing: .04em; color: var(--on-wine); margin-right: 4px; }
.countdown .sep { display: inline-block; margin: 0 12px; opacity: .5; }

.scroll-cue {
  position: absolute; bottom: clamp(26px, 5vw, 52px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(244, 236, 221, .75); text-decoration: none; white-space: nowrap;
}
.scroll-cue span { font-size: 18px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--sand); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  font: 700 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--olive); margin: 0 0 12px;
}
h2 {
  font: 400 clamp(34px, 4.6vw, 52px)/1.12 var(--serif);
  color: var(--wine); margin-bottom: 24px;
}
.section-head h2 { margin-bottom: 0; }
h3 { font: 500 28px/1.2 var(--serif); color: var(--wine); margin-bottom: 14px; }
h4 { font: 600 21px/1.3 var(--serif); color: var(--olive); margin: 26px 0 10px; }
h4 span { font-weight: 400; font-style: italic; font-size: .85em; color: var(--taupe); }

.lead { font: 400 clamp(21px, 2.2vw, 24px)/1.55 var(--serif); color: var(--ink); }

.divider { padding: 0; margin: -8px 0; }
.divider::before, .divider::after { content: ""; flex: 0 1 220px; height: 1px; background: var(--line); }
.divider::before { margin-right: 4px; }
.divider::after { margin-left: 4px; }
.divider i { background: var(--wine); }

/* ---------- Welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.glance {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin: 32px 0 0; background: var(--line); border: 1px solid var(--line);
}
.glance div { background: var(--card); padding: 16px 18px; }
.glance dt { font: 700 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.glance dd { margin: 4px 0 0; font: 500 21px/1.3 var(--serif); color: var(--wine); }

.collage { position: relative; aspect-ratio: 1 / 1.08; max-width: 520px; width: 100%; justify-self: center; }
.ph {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px;
  box-shadow: 0 18px 40px -18px rgba(61, 52, 49, .45), 0 2px 6px rgba(61, 52, 49, .08);
}
.ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.ph-1 { width: 58%; left: 21%; top: 4%; z-index: 2; transform: rotate(-1.5deg); }
.ph-2 { width: 40%; left: 0; top: 38%; z-index: 3; transform: rotate(-7deg); }
.ph-3 { width: 40%; right: 0; top: 30%; z-index: 1; transform: rotate(6deg); }

/* ---------- Cards / travel ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(26px, 3.6vw, 44px);
  box-shadow: 0 1px 0 var(--line);
}
.card > :last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: s; margin: 20px 0; padding: 18px 22px; background: var(--card); border-left: 3px solid var(--wine); }
.steps li { counter-increment: s; position: relative; padding-left: 30px; margin: 0 0 8px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(s) "."; position: absolute; left: 0; top: 0;
  font: 600 20px/1.4 var(--serif); color: var(--wine);
}
.note { color: var(--muted); font-style: italic; }

.route { list-style: none; counter-reset: r; margin: 0 0 6px; padding: 0; }
.route li { counter-increment: r; position: relative; padding: 0 0 16px 46px; }
.route li::before {
  content: counter(r); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--olive-soft); color: var(--olive);
  font: 600 16px/1 var(--serif);
}
.route li::after {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 1px; background: var(--line);
}
.route li:last-child::after { display: none; }

/* ---------- Hotel ---------- */
.hotel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hotel-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 10px solid #fff;
  box-shadow: 0 22px 50px -24px rgba(61, 52, 49, .5);
  transform: rotate(-1.5deg);
}
.place-card {
  background: var(--card); border: 1px solid var(--line);
  text-align: center; padding: 24px 20px; margin: 0 0 22px;
}
.section-tint .place-card { background: var(--paper); }
.place-label { font: 600 12px/1.4 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin: 0 0 4px; }
.place-name { font: 500 27px/1.25 var(--serif); color: var(--wine); margin: 0; }
.place-alt { font: italic 400 18px/1.3 var(--serif); color: var(--taupe); margin: 2px 0 0; }
.place-addr { font: 400 19px/1.4 var(--serif); color: var(--muted); margin: 6px 0 12px; }
.map-link {
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.map-link:hover { color: var(--wine); }
.callout { background: var(--paper); border-left: 3px solid var(--wine); padding: 14px 18px; margin: 0; }

/* ---------- The day ---------- */
.day {
  background: radial-gradient(ellipse at 50% 0%, var(--wine-glow), var(--wine) 55%, var(--wine-deep));
  color: var(--on-wine);
}
.day-wrap { max-width: 720px; text-align: center; }
.day .kicker { color: #C9CF9E; }
.day h2 { color: var(--on-wine); font-style: italic; }
.day-wreath { width: 200px; aspect-ratio: 356 / 172; display: block; margin: 0 auto 8px; }

.timeline { list-style: none; margin: 0 auto 40px; padding: 0; text-align: left; max-width: 560px; }
.timeline li {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid rgba(244, 236, 221, .18);
}
.timeline li:last-child { border-bottom: 0; }
.timeline time { font: 500 20px/1.3 var(--serif); color: #D6D9B3; white-space: nowrap; }
.timeline span { font-size: 17px; }
.timeline .key {
  margin: 6px -20px; padding: 18px 20px;
  background: var(--on-wine); color: var(--wine); border: 0;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .5);
}
.timeline .key time { color: var(--olive); font-weight: 600; }
.timeline .key span { font: 600 25px/1.2 var(--serif); }

.venue { background: var(--paper); color: var(--ink); max-width: 560px; margin: 0 auto 26px; border: 0; }
.day-note { font: italic 400 20px/1.5 var(--serif); color: rgba(244, 236, 221, .88); max-width: 520px; margin: 0 auto 32px; }

.button {
  display: inline-block;
  font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--on-wine); border: 1px solid rgba(244, 236, 221, .7);
  padding: 16px 28px; transition: background .2s, color .2s;
}
.button:hover { background: var(--on-wine); color: var(--wine); }

/* ---------- Good to know ---------- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.tip { background: var(--card); border: 1px solid var(--line); padding: 34px 28px 30px; text-align: center; }
.tip svg {
  width: 52px; height: 52px; margin: 0 auto 16px; display: block;
  fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tip h3 { margin-bottom: 10px; }
.tip p { margin: 0; color: var(--muted); }

/* ---------- Sign-off & footer ---------- */
.signoff { text-align: center; padding-top: 0; }
.signoff-text { font: 400 clamp(21px, 2.4vw, 25px)/1.6 var(--serif); }
.signoff-label { font: 600 13px/1.4 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--taupe); margin: 30px 0 0; }
.signoff-names { font: clamp(48px, 7vw, 68px)/1.2 var(--script); color: var(--wine); margin: 4px 0 0; }

.footer { background: var(--wine); color: var(--on-wine); text-align: center; padding: 48px 24px 40px; }
.footer-mark svg { width: 110px; height: 23px; }
.footer-mark span { font: 52px/1 var(--script); margin: 0 18px; white-space: nowrap; }
.footer-mark em { font-style: normal; font-size: .75em; }
.footer-url { font: 500 15px/1.4 var(--serif); letter-spacing: .32em; text-transform: uppercase; margin: 16px 0 4px; padding-left: .32em; color: #E8CFC0; }
.footer-date { font: italic 400 16px/1.4 var(--serif); opacity: .7; margin: 0; }

/* ---------- Back link (sub-pages) ---------- */
.back-link {
  position: absolute; z-index: 2; top: clamp(30px, 4.5vw, 52px); left: clamp(30px, 4.5vw, 56px);
  font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244, 236, 221, .8); text-decoration: none;
}
.back-link:hover { color: var(--on-wine); }
.footer-link {
  display: inline-block; margin-top: 18px;
  font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-wine); text-decoration: none; border-bottom: 1px solid rgba(244, 236, 221, .5); padding-bottom: 4px;
}
.countdown .cd-label { display: block; margin-bottom: 8px; color: #C9CF9E; }

/* ---------- Home: intro ---------- */
.intro-wrap { max-width: 720px; text-align: center; }

/* ---------- Home: celebrations ---------- */
.celebrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 32px); align-items: stretch; }
.celebration {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  padding: 44px 28px 34px; text-align: center;
  transition: box-shadow .3s, transform .3s;
}
.celebration::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none;
}
.celebration.is-next { border-color: var(--wine); box-shadow: 0 24px 50px -28px rgba(107, 31, 46, .55); }
.celebration.is-next::before { border-color: rgba(107, 31, 46, .25); }
.celebration.is-past { opacity: .78; }
.status {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; white-space: nowrap;
  font: 700 10px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  background: var(--wine); color: var(--on-wine);
}
.status:empty { display: none; }
.is-past .status { background: var(--olive); }
.numeral { font: 400 38px/1 var(--serif); color: var(--olive-soft); margin: 0 0 14px; letter-spacing: .08em; }
.celebration-type { font: 700 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--olive); margin: 0 0 8px; }
.celebration h3 { font: 400 clamp(40px, 4vw, 48px)/1.05 var(--serif); margin: 0; }
.celebration-country { font: italic 400 19px/1.3 var(--serif); color: var(--taupe); margin: 4px 0 0; }
.mini-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 18px; }
.mini-rule span { width: 40px; height: 1px; background: var(--line); }
.mini-rule b { width: 7px; height: 7px; border: 1px solid var(--olive-soft); transform: rotate(45deg); }
.celebration-date { font: 400 18px/1.4 var(--serif); color: var(--muted); margin: 0 0 14px; }
.celebration-date strong { font-weight: 500; font-size: 24px; color: var(--wine); }
.celebration-text { font-size: 15.5px; color: var(--muted); margin: 0 0 24px; max-width: 26ch; }
.celebration-cta {
  margin-top: auto;
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--on-wine); background: var(--wine); padding: 14px 22px; transition: background .2s;
}
.celebration-cta:hover { background: var(--wine-deep); }
.celebration-cta.is-pending { background: none; color: var(--taupe); border: 1px dashed var(--line); }
.save-dates { text-align: center; margin: clamp(36px, 5vw, 52px) 0 0; }
.button-wine { color: var(--wine); border-color: var(--wine); }
.button-wine:hover { background: var(--wine); color: var(--on-wine); }

/* ---------- Home: gallery ---------- */
.gallery {
  display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.4vw, 32px);
  padding: 10px 24px 30px;
}
.gallery .ph { position: relative; flex: 0 0 auto; }
.gallery .ph img { height: clamp(200px, calc((100vw - 260px) / 3.7), 300px); width: auto; aspect-ratio: auto; }
.gallery .ph:nth-child(1) { transform: rotate(-3deg); }
.gallery .ph:nth-child(2) { transform: rotate(1.5deg) translateY(-12px); }
.gallery .ph:nth-child(3) { transform: rotate(-1.5deg) translateY(8px); }
.gallery .ph:nth-child(4) { transform: rotate(3deg); }
.signoff .divider { margin: 0 0 36px; }

@media (max-width: 960px) {
  .celebrations { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 34px; }
  .gallery {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 20px 24px 36px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .ph { scroll-snap-align: center; }
  .gallery .ph img { height: 300px; }
}
@media (max-width: 520px) {
  .back-link { top: 26px; left: 28px; }
  .hero-date { font-size: 15px; letter-spacing: .12em; padding-left: .12em; }
}

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .welcome-grid, .two-col, .hotel-grid { grid-template-columns: 1fr; }
  .collage { max-width: 440px; }
  .tips { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .nav-brand { display: none; }
  .nav { justify-content: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .glance { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .timeline .key { margin: 6px -12px; padding: 14px 12px; }
  .diamond-rule span { width: 56px; }
  .swag svg, .divider svg { width: 104px; height: 22px; }
  .countdown .sep { margin: 0 6px; }
  .hero-frame::before { border-radius: 22px; }
  .nav-links { gap: 16px; }
  .nav-links a { letter-spacing: .08em; font-size: 11px; }
  .footer-mark svg { width: 72px; height: 15px; }
  .footer-mark span { font-size: 44px; margin: 0 10px; }
  .collage { aspect-ratio: 1 / 1; }
}
