:root {
  --ground: #FBF5F2;
  --blush: #F6E4E4;
  --petal: #E9C4CB;
  --line: #EFDFE0;
  --ink: #3F2A30;
  --ink-soft: #6E555B;
  --accent: #A8485F;
  --accent-dark: #7E3346;
  --sage: #5E7356;
  --sage-ink: #4A5E43;
  --sage-wash: #F1F4EE;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.monogram { font: 34px/1 var(--script); color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topbar nav a { padding: 12px 14px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 999px; }
.topbar nav a:hover { background: var(--blush); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blush); border-radius: 32px; padding: clamp(56px, 9vw, 96px) 24px clamp(48px, 8vw, 88px); text-align: center; }
.sprig { position: absolute; display: block; width: clamp(140px, 22vw, 260px); height: auto; aspect-ratio: 1; pointer-events: none; }
.sprig--bl { left: -24px; bottom: -24px; }
.sprig--tr { right: -24px; top: -24px; transform: rotate(180deg); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__kicker { margin: 0; font: italic 500 22px/1.2 var(--serif); color: var(--ink-soft); }
.hero__names { margin: 0; font: 400 clamp(60px, 11vw, 124px)/1.05 var(--script); }
.hero__rule { width: 120px; height: 1px; background: #C9A27A; }
.hero__lede { margin: 0; max-width: 36ch; font: italic 500 clamp(20px, 2.6vw, 26px)/1.35 var(--serif); }
.hero__dates { margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__dates span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--petal); font-size: 15px; }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 48px; padding-bottom: 24px; }
.timeline-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 960px) { .side { position: sticky; top: 24px; } }

h2 { margin: 0; font: 500 44px/1.1 var(--serif); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.segmented { display: flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.segmented button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 15px var(--sans); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.daytabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.daytab { min-height: 44px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-family: var(--sans); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.daytab:hover { border-color: var(--petal); }
.daytab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.daytab__label { font: 600 26px/1.1 var(--serif); }
.daytab__sub { font-size: 14px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.phase { margin: 16px 0 14px 44px; font-size: 15px; font-weight: 500; color: var(--sage); }
.step { display: flex; gap: 16px; }
.rail { flex: 0 0 28px; display: flex; flex-direction: column; align-items: center; }
.node { width: 16px; height: 16px; margin-top: 26px; border-radius: 50%; background: #fff; border: 2px solid #D9B7BD; }
.rail::after { content: ""; flex: 1; width: 2px; margin-top: 4px; background: #EAD3D6; }
.step:last-child .rail::after { background: linear-gradient(#EAD3D6, transparent); }

.card { flex: 1; min-width: 0; margin-bottom: 16px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.card--key { background: #FFF7F7; border-color: var(--petal); }
.card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card__time { font: italic 600 24px/1.2 var(--serif); color: var(--accent); }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; color: var(--ink-soft); border: 1px solid #E6D3D5; }
.card__title { margin: 0; font: 600 27px/1.15 var(--serif); }
.card__place { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 15px; }
.card__place svg { flex: 0 0 18px; margin-top: 3px; }
.card__place a { margin-left: auto; white-space: nowrap; font-size: 15px; }
.note { display: flex; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--sage-wash); color: var(--sage-ink); font-size: 15px; }
.note strong { font-weight: 500; }

.is-done .node { background: var(--sage); border-color: var(--sage); }
.is-done .chip { background: #EEF2EA; color: var(--sage-ink); border-color: #D5DFCD; }
.is-now .node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px #F3D5D9; }
.is-now .card { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(168, 72, 95, .12); }
.is-now .chip { background: var(--accent); color: #fff; border-color: var(--accent); }
.is-next .chip { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .is-now .node { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px #F7E3E6; } }
}

/* Now card */
.now { position: relative; overflow: hidden; padding: 26px 24px; border-radius: 24px; background: var(--ink); color: var(--ground); display: flex; flex-direction: column; gap: 8px; }
.now p { position: relative; margin: 0; }
.now__flower { position: absolute; right: -36px; bottom: -36px; width: 150px; height: 150px; opacity: .3; }
.now__label { font-size: 15px; font-weight: 500; color: #F0CBD1; }
.now__when { font: italic 500 24px/1.2 var(--serif); color: #F0CBD1; }
.now__title { font: 600 32px/1.1 var(--serif); }
.now__place { font-size: 15px; color: #E8DADC; }
.now__next { margin-top: 8px !important; padding-top: 14px; border-top: 1px solid #6A4E55; font-size: 15px; color: #E8DADC; }
.now__next:empty { display: none; }

/* Venues */
.venues { padding: 26px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.venues h2 { font-size: 32px; }
.venues ul { list-style: none; margin: 0; padding: 0; }
.venues li { padding: 14px 0; border-top: 1px solid #F1E4E5; display: flex; flex-direction: column; gap: 2px; }
.venues li:first-child { border-top: 0; padding-top: 0; }
.venue__when { font-size: 14px; font-weight: 500; color: var(--sage); }
.venue__name { font: 600 22px/1.2 var(--serif); }
.venue__what { font-size: 15px; color: var(--ink-soft); }

/* Footer */
footer { padding-top: 24px; padding-bottom: 64px; }
.infos { padding: 32px 24px; border-radius: 24px; border: 1px solid var(--petal); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.infos > div { flex: 1 1 320px; }
.infos p { margin: 0; color: var(--ink-soft); }
.infos .infos__title { font: 600 26px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.signoff { margin: 32px 0 0; text-align: center; font: 36px/1.2 var(--script); }

@media (max-width: 480px) {
  h2 { font-size: 36px; }
  .card { padding: 18px; }
  .card__title { font-size: 24px; }
  .phase { margin-left: 0; }
}
