/* ══════════════════════════════════════════════════════════════
   Grace is 29 — vineyard botanical
   Everything you'd want to tweak lives in :root just below.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ── colours ── */
  --chalk:      #FAF7F0;   /* page background */
  --paper:      #F3EDE1;   /* slightly deeper panel */
  --vine:       #4A5D3A;   /* vine green */
  --vine-deep:  #2F3D25;   /* the reveal panel */
  --vine-soft:  #7E8F6C;
  --grape:      #3D2B3D;
  --gold:       #B0894A;
  --gold-light: #D9BE86;
  --ink:        #2C2A26;
  --ink-soft:   #5C574D;

  /* ── type ── */
  --font-serif: 'Cormorant Garamond', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-hand:  'Caveat', 'Bradley Hand', 'Segoe Script', 'Comic Sans MS', cursive;

  /* ── layout ── */
  --wrap:  40rem;
  --pad:   1.5rem;

  color-scheme: light;
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, li, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--chalk);
  overflow-x: hidden;

  /* hand-made paper grain — self-contained, no network request */
  background-image:
    radial-gradient(ellipse at 15% 0%,   rgba(74,93,58,.05), transparent 55%),
    radial-gradient(ellipse at 85% 30%,  rgba(176,137,74,.05), transparent 50%),
    radial-gradient(ellipse at 30% 100%, rgba(74,93,58,.04), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll;
}

.wrap        { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { width: 100%; max-width: 34rem;       margin-inline: auto; padding-inline: var(--pad); }

em { font-style: italic; }


/* ══════════════════════════════════════════════════════════════
   Scroll reveal — set by script.js
   ══════════════════════════════════════════════════════════════ */
/* Tilted elements set --tilt instead of transform, so the hand-made
   rotation survives the reveal animation. */
/* Note the .js prefix: content is visible by default and is only ever
   hidden once the inline script in <head> has confirmed JS is running.
   No JS = no blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px) rotate(var(--tilt, 0deg));
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}
/* tilt still applies when JS never runs */
.reveal { transform: rotate(var(--tilt, 0deg)); }

/* Stagger the direct children of a section so they arrive one after
   another. Deliberately does NOT match .stop — each timeline stop
   animates on its own as it scrolls into view. */
.hero-inner   > .reveal:nth-child(2),
.reveal-inner > .reveal:nth-child(2),
.wrap         > .reveal:nth-child(2),
.wrap-narrow  > .reveal:nth-child(2) { transition-delay: .08s; }

.hero-inner   > .reveal:nth-child(3),
.reveal-inner > .reveal:nth-child(3),
.wrap         > .reveal:nth-child(3),
.wrap-narrow  > .reveal:nth-child(3) { transition-delay: .16s; }

.hero-inner   > .reveal:nth-child(4),
.reveal-inner > .reveal:nth-child(4),
.wrap         > .reveal:nth-child(4) { transition-delay: .24s; }

.hero-inner   > .reveal:nth-child(5),
.reveal-inner > .reveal:nth-child(5) { transition-delay: .32s; }

.hero-inner   > .reveal:nth-child(6),
.reveal-inner > .reveal:nth-child(6) { transition-delay: .40s; }


/* ══════════════════════════════════════════════════════════════
   1 · HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--pad);
  overflow: hidden;
}

.hero-vines { position: absolute; inset: 0; pointer-events: none; color: var(--vine); }
.vine { position: absolute; width: 5rem; opacity: .5; }
.vine-tl { top: -2rem; left: -1.25rem; }
.vine-tr { top: -2rem; right: -1.25rem; }

.hero-inner { position: relative; max-width: 26rem; }

.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--vine);
  margin-bottom: .9rem;
  --tilt: -1.6deg;
}

.hero-title {
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}
.hero-name {
  display: block;
  font-size: clamp(4rem, 22vw, 7rem);
  color: var(--grape);
}
.hero-is {
  display: block;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  color: var(--vine-soft);
  margin: .1em 0 .05em;
  transform: rotate(-2deg);
}
.hero-age {
  display: block;
  position: relative;
  font-size: clamp(4.5rem, 26vw, 8rem);
  color: var(--gold);
  font-weight: 400;
}
.hero-flower {
  font-size: .3em;
  color: var(--vine);
  vertical-align: super;
  margin-left: .12em;
}

.hero-line {
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.hero-line em { color: var(--vine); }

.hero-sub {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.scroll-cue {
  margin-top: 3rem;
  color: var(--vine-soft);
  animation: float 2.6s ease-in-out infinite;
}
.scroll-cue-text {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.scroll-cue-arrow { width: 1.1rem; margin-inline: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}


/* ══════════════════════════════════════════════════════════════
   2 · THE REVEAL — the one dark panel on the page, so it lands
   ══════════════════════════════════════════════════════════════ */
.reveal-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--pad);
  background: var(--vine-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%,  rgba(217,190,134,.14), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.28), transparent 60%);
  color: var(--chalk);
}

.reveal-inner { max-width: 24rem; }

.reveal-lead {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  --tilt: -1deg;
}

.grapes {
  width: 6.5rem;
  margin: 0 auto 1.5rem;
  color: var(--gold-light);
}

.reveal-title {
  font-size: clamp(3rem, 15vw, 4.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .005em;
  color: #fff;
  margin-bottom: 1.2rem;
}

.reveal-sub {
  font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--gold-light);
  margin-bottom: 1.9rem;
}

.reveal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(250,247,240,.72);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(217,190,134,.3);
}
.reveal-meta .dot { color: var(--gold); }

.reveal-note {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-top: 2.4rem;
  --tilt: 1.2deg;
}


/* ══════════════════════════════════════════════════════════════
   Shared section headings
   ══════════════════════════════════════════════════════════════ */
.section-kicker {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--vine-soft);
  margin-bottom: .35rem;
  --tilt: -1deg;
}

.section-title {
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--grape);
  margin-bottom: 2rem;
}


/* ══════════════════════════════════════════════════════════════
   3 · THE TOUR
   ══════════════════════════════════════════════════════════════ */
.tour { padding: 5.5rem 0 4.5rem; }

.tour-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(74,93,58,.22);
  border-radius: 3px 14px 4px 12px;   /* wonky, hand-cut corners */
  padding: 2rem 1.5rem 1.75rem;
  --tilt: -.5deg;
  box-shadow: 0 12px 30px -18px rgba(47,61,37,.5);
}

.tour-intro {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px dashed rgba(74,93,58,.3);
}

.tour-list li {
  display: flex;
  gap: .85rem;
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tour-list li:last-child { margin-bottom: 0; }

.tour-bullet { color: var(--gold); flex-shrink: 0; line-height: 1.5; }

.tour-list strong {
  display: block;
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--vine);
  margin-bottom: .12rem;
}

.tour-facts {
  display: flex;
  gap: .6rem;
  margin: 1.9rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(74,93,58,.3);
}
.fact {
  flex: 1;
  text-align: center;
  padding: .7rem .3rem;
  background: rgba(250,247,240,.75);
  border: 1px solid rgba(74,93,58,.16);
  border-radius: 2px 8px 3px 7px;
}
.fact:nth-child(2) { transform: rotate(.8deg); }
.fact:nth-child(3) { transform: rotate(-.6deg); }
.fact-label {
  display: block;
  font-family: var(--font-hand);
  font-size: .95rem;
  color: var(--vine-soft);
}
.fact-value {
  display: block;
  font-size: 1.15rem;
  color: var(--grape);
  line-height: 1.2;
}

.tour-address {
  font-style: normal;
  font-size: .95rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
}
.tour-phone { color: var(--vine-soft); font-size: .88rem; }


/* ══════════════════════════════════════════════════════════════
   4 · THE JOURNEY
   ══════════════════════════════════════════════════════════════ */
.journey { padding: 4.5rem 0 5rem; }

.journey-blurb {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  margin: -1rem 0 2rem;
}

/* live "you are here" pill — shown by script.js only on the day */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2rem;
  padding: .5rem 1rem .5rem .8rem;
  background: var(--vine);
  color: var(--chalk);
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 1.12rem;
  line-height: 1.3;
  box-shadow: 0 8px 18px -10px rgba(47,61,37,.8);
}
.live-pill[hidden] { display: none; }
.live-dot {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

/* ── the timeline ── */
.stops {
  position: relative;
  padding-left: 2.15rem;
  --vine-progress: 0;
}
/* Spine centre line sits at .625rem from the <ol> edge on mobile.
   The dashed track, the growing vine and every node share it. */
.stops::before {
  content: '';
  position: absolute;
  left: .5625rem; top: .55rem; bottom: .55rem;   /* 2px wide, centred on .625rem */
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(74,93,58,.28) 0 6px,
    transparent 6px 11px
  );
}
/* the vine that grows as you scroll */
.stops::after {
  content: '';
  position: absolute;
  left: calc(.625rem - 1.5px); top: .55rem;      /* 3px wide, centred on .625rem */
  width: 3px;
  height: calc(var(--vine-progress) * (100% - 1.1rem));
  background: linear-gradient(to bottom, var(--vine-soft), var(--vine));
  border-radius: 2px;
  transition: height .15s linear;
}

/* z-index keeps the nodes and cards above the vine — the .reveal
   transform makes each .stop its own stacking context, so without
   this the vine paints straight over the dots. */
.stop { position: relative; z-index: 1; margin-bottom: 2.1rem; }
.stop:last-child { margin-bottom: 0; }

/* node on the vine */
.stop::before {
  content: '';
  position: absolute;
  left: -1.935rem; top: .5rem;   /* .625rem − half node − 2.15rem padding */
  width: .82rem; height: .82rem;
  border-radius: 50%;
  background: var(--chalk);
  border: 2px solid var(--vine-soft);
  z-index: 1;
  transition: background .4s ease, border-color .4s ease, transform .4s ease;
}

.stop-time {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: .45rem;
  font-variant-numeric: tabular-nums;
}
.stop-approx {
  font-family: var(--font-hand);
  font-size: .75em;
  color: var(--vine-soft);
  margin-left: .25rem;
}

.stop-body {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(74,93,58,.2);
  border-radius: 3px 11px 4px 10px;
  padding: 1.05rem 1.15rem 1.15rem;
  transform: rotate(-.45deg);
  box-shadow: 0 8px 20px -16px rgba(47,61,37,.55);
}
.stop:nth-child(even) .stop-body { transform: rotate(.5deg); }

.stop-icon {
  position: absolute;
  top: -.7rem; right: .9rem;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--chalk);
  padding: .18rem .3rem;
  border-radius: 50%;
}

.stop-title {
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vine);
  margin-bottom: .25rem;
}
.stop-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  margin-top: .7rem;
  padding: .18rem .6rem;
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 999px;
  transform: rotate(-1deg);
}
.tag-booked {
  background: rgba(176,137,74,.16);
  color: var(--gold);
  border: 1px solid rgba(176,137,74,.35);
}

/* the centrepiece stop */
.stop-feature .stop-body {
  background: linear-gradient(160deg, #FFFDF7, var(--paper));
  border: 1.5px solid rgba(176,137,74,.5);
  padding: 1.4rem 1.25rem 1.35rem;
  box-shadow: 0 16px 34px -20px rgba(47,61,37,.65);
  transform: rotate(-.7deg);
}
.stop-feature .stop-time { font-size: 2rem; color: var(--gold); }
.stop-feature .stop-title { font-size: 1.7rem; line-height: 1.15; margin-bottom: .4rem; }
.stop-feature .stop-text { font-size: 1.06rem; color: var(--ink); }
.stop-feature .stop-icon { font-size: 1.5rem; top: -.85rem; }
.stop-feature::before {
  width: 1.1rem; height: 1.1rem;
  left: -2.075rem; top: .34rem;
  border-color: var(--gold);
  background: var(--gold-light);
}
.stop-flag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
}

.stop-final .stop-body { background: linear-gradient(160deg, #FFFDF7, var(--paper)); }

/* ── live state, applied by script.js on the day ── */
.stop.is-past::before   { background: var(--vine); border-color: var(--vine); }
.stop.is-past .stop-body { opacity: .55; }

.stop.is-now::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(176,137,74,.2);
}
.stop.is-now .stop-body {
  border-color: rgba(176,137,74,.65);
  box-shadow: 0 10px 26px -14px rgba(176,137,74,.9);
}
.stop.is-now .stop-time { font-weight: 600; }

.stop-now-label {
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .5rem;
  font-family: var(--font-hand);
  font-size: .78em;
  vertical-align: middle;
  color: var(--chalk);
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}


/* ══════════════════════════════════════════════════════════════
   5 · THE NOTE
   ══════════════════════════════════════════════════════════════ */
.note-section { padding: 3rem 0 5rem; }

.note-card {
  position: relative;
  background: #FFFDF7;
  border: 1px solid rgba(74,93,58,.2);
  border-radius: 4px 13px 5px 11px;
  padding: 2.25rem 1.6rem 2rem;
  --tilt: .6deg;
  box-shadow: 0 14px 34px -20px rgba(47,61,37,.55);

  /* faint ruled-notepaper lines */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 2.05rem,
    rgba(74,93,58,.07) 2.05rem 2.1rem
  );
}

.note-card p {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.note-hi { font-size: 1.7rem !important; color: var(--vine) !important; }
.note-sign { margin-top: 1.7rem; margin-bottom: 0 !important; color: var(--vine) !important; }
.note-name { font-size: 1.6rem; color: var(--grape); }

/* optional polaroid, if you uncomment it in index.html */
.polaroid {
  background: #fff;
  padding: .7rem .7rem 0;
  border: 1px solid rgba(74,93,58,.18);
  box-shadow: 0 10px 24px -14px rgba(47,61,37,.6);
  transform: rotate(-2deg);
  max-width: 15rem;
  margin: 0 auto 2rem;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink-soft);
  padding: .5rem 0 .7rem;
}


/* ══════════════════════════════════════════════════════════════
   6 · FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer { padding: 0 var(--pad) 3.5rem; text-align: center; }
.footer-sprig { width: 4.5rem; margin: 0 auto .7rem; color: var(--vine-soft); }
.footer-text {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--vine-soft);
}


/* ══════════════════════════════════════════════════════════════
   Larger screens
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 40rem) {
  body { font-size: 1.2rem; }
  :root { --pad: 2.5rem; }

  .vine { width: 7.5rem; }
  .vine-tl { left: 1rem; }
  .vine-tr { right: 1rem; }

  .tour  { padding: 7rem 0 5.5rem; }
  .tour-card { padding: 2.75rem 2.5rem 2.25rem; }
  .tour-list li { font-size: 1.08rem; }

  .journey { padding: 5.5rem 0 6rem; }
  /* spine centre moves to 1.125rem from the <ol> edge */
  .stops { padding-left: 3.25rem; }
  .stops::before { left: 1.0625rem; }
  .stops::after  { left: calc(1.125rem - 1.5px); }
  .stop::before  { left: -2.535rem; }
  .stop-feature::before { left: -2.675rem; }
  .stop { margin-bottom: 2.5rem; }
  .stop-body { padding: 1.25rem 1.5rem 1.4rem; }
  .stop-feature .stop-body { padding: 1.6rem 1.75rem 1.55rem; }

  .note-card { padding: 3rem 2.75rem 2.5rem; }
  .note-card p { font-size: 1.5rem; }
}


/* ══════════════════════════════════════════════════════════════
   Respect reduced-motion: show everything, animate nothing
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .stops::after { height: calc(100% - 1.1rem); }
}
