/* ======================================================================
   Jay & Manveer — Wedding Website
   A single-page editorial invitation. Design system below.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  /* ---- Backgrounds ---- */
  --color-alabaster: #FBF9F6;
  --color-ivory: #F7F4EB;
  --color-white: #FFFFFF;

  /* ---- Ink ---- */
  --color-charcoal: #2A2E2B;
  --color-ink: var(--color-charcoal);
  --color-ink-soft: #6E645A;
  --color-line: #E4DCC9;

  /* ---- Tuscan accent palette ---- */
  --color-olive-vine: #3D4A32;
  --color-terracotta: #C85A32;
  --color-olive: #4F5D41;
  --color-fig: #5D3A42;
  --color-tomato: #D63929;
  --color-sky: #A9C2D1;
  --color-gold: #B8892B;

  /* Primary colour for all typography, buttons and structural borders —
     never orange. Terracotta/tomato/sky/gold are demoted to small,
     page-specific decorative touches only (see --accent-decor below). */
  --accent: var(--color-olive-vine);
  --accent-decor: var(--color-olive-vine);

  /* ---- Type ---- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Layout ---- */
  --container: 1120px;
  --container-narrow: 700px;
  --radius: 2px;

  /* ---- Leaf/sprig divider (mask-image, recolours via background-color) ---- */
  --divider-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 26'%3E%3Cline x1='0' y1='13' x2='160' y2='13' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='4' cy='13' r='3' fill='%23000'/%3E%3Ccircle cx='156' cy='13' r='3' fill='%23000'/%3E%3Cellipse cx='34' cy='7' rx='7' ry='3.2' fill='%23000' transform='rotate(-22 34 7)'/%3E%3Cellipse cx='62' cy='19' rx='7' ry='3.2' fill='%23000' transform='rotate(22 62 19)'/%3E%3Cellipse cx='90' cy='7' rx='7' ry='3.2' fill='%23000' transform='rotate(-22 90 7)'/%3E%3Cellipse cx='118' cy='19' rx='7' ry='3.2' fill='%23000' transform='rotate(22 118 19)'/%3E%3C/svg%3E");

  /* ---- Shared luxury hover timing ---- */
  --transition-soft: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Cream veil laid over each painting (a gradient layer, not CSS opacity,
     so text and cards on top stay fully crisp). 0.55 = the soft, faded look;
     lower the alpha toward 0 for more vivid paintings, raise it for fainter.
     The top/bottom 15% of each section fades to the page colour regardless. */
  --section-veil: rgba(251, 249, 246, 0.55);
}

/* ======================================================================
   Reset & base
   ====================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background-color: var(--color-alabaster);
  background-image:
    linear-gradient(rgba(251, 249, 246, 0.93), rgba(251, 249, 246, 0.93)),
    url('../assets/illustrations/wallpaper.jpg');
  background-size: auto, cover;
  background-position: center, center top;
  background-repeat: repeat, no-repeat;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-ink);
  margin: 0 0 0.35em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 0.8em; }

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition-soft); }
a:hover { opacity: 0.68; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ======================================================================
   Scroll-reveal fade-ins
   ====================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blur-in variant: block emerges from a soft 20px blur as it scrolls in.
   Add alongside .reveal (the same IntersectionObserver drives both). */
.reveal.reveal-blur {
  filter: blur(20px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1), filter 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.reveal-blur.is-visible { filter: blur(0); }

/* Drift variant: a longer, slower rise for the Order of Events cards, so
   they float up and fade in one by one as each is scrolled to. (No blur
   filter here — it would fight the card's own backdrop blur.) */
.reveal.reveal-drift {
  transform: translateY(46px);
  transition: opacity 1.3s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.reveal-drift.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.reveal-blur { filter: none; transition: none; }
  .reveal.reveal-drift { transform: none; transition: none; }
}

/* ======================================================================
   Typographic helpers
   ====================================================================== */

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--color-ink-soft);
  line-height: 1.55;
}

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

/* Hero names line + body paragraph (the body's first letter is the drop cap) */
.hero-kicker { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.hero-kicker .eyebrow { margin: 0; }

.kicker-line {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.hero-names { margin: 0; }

.hero-body {
  max-width: 480px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  color: var(--color-ink);
}

/* Centred under the names, so the initial is a larger inline letter rather
   than a floated drop cap (a float pushes centred lines off-centre). */
.hero-body.dropcap::first-letter {
  float: none;
  padding: 0;
  font-size: 1.7em;
  line-height: 1;
}

/* Oversized drop cap for the opening line of a text block */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  font-style: normal;
  font-weight: 400;
  float: left;
  line-height: 0.78;
  padding: 0.05em 0.08em 0 0;
  color: var(--accent);
}

/* Leaf/sprig divider — the one spot each page's own theme colour
   (tomato/terracotta/gold/fig) is allowed to show, as a tiny decorative
   touch. Everything else uses the olive/charcoal system. */
.sprig-divider {
  display: block;
  width: 150px;
  height: 22px;
  margin: 1rem auto;
  background-color: var(--accent-decor);
  -webkit-mask-image: var(--divider-sprig);
  mask-image: var(--divider-sprig);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.85;
}

/* ======================================================================
   Fine double-line frame (stationery-style)
   ====================================================================== */

.fine-frame {
  position: relative;
  border: 1px solid var(--accent);
  padding: 1.6rem 1.6rem;
}

.fine-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}

/* ======================================================================
   Organic soft shadow utility
   ====================================================================== */

.soft-shadow {
  box-shadow: 0 40px 70px -35px rgba(43, 38, 33, 0.28);
}

/* ======================================================================
   Sticky nav
   ====================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent); font-style: normal; }
.logo:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--color-ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
}

.site-nav a {
  position: relative;
  color: var(--color-ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  transition: color var(--transition-soft), opacity var(--transition-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: left var(--transition-soft), right var(--transition-soft);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  left: 0;
  right: 0;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding-top: 1rem;
  }
  .site-nav.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
}

/* ======================================================================
   Buttons
   ====================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  padding: 0.9rem 2.1rem;
  border: 1px solid var(--accent);
  color: var(--color-charcoal);
  border-radius: var(--radius);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-alabaster);
  cursor: pointer;
  transition: opacity var(--transition-soft), background var(--transition-soft), box-shadow var(--transition-soft);
}

/* Gentle fade on hover — no hard colour swap */
.btn:hover {
  opacity: 0.6;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(43, 38, 33, 0.3);
}

.btn.btn-solid {
  background: var(--color-ivory);
  border-width: 1.5px;
  font-weight: 700;
}
.btn.btn-solid:hover { opacity: 0.6; }

/* ======================================================================
   ARTWORK BACKDROPS
   The seven paintings are fixed layers (.backdrop, inside .backdrops right
   after <body>) that sit behind the whole page and never move while you
   scroll. A small script cross-fades them: each fades in over the one before
   it as its section reaches the middle of the screen, so there is no sliding
   and no hard cut. The cream veil is painted INTO each layer (the first
   background layer), so it can never be drawn in the wrong order.

   Fixed layers (not `background-attachment: fixed`, which iPhones and iPads
   ignore) keep this working on every device.

   Two sets of art, chosen by screen shape (not width), so every iPad and phone
   gets the right one whichever way it is held:
     landscape screens -> the landscape crops, `cover` + centred
     portrait screens  -> the portrait crops (assets/illustrations/mobile/) at
                          full screen width so the hand-drawn borders are fully
                          in view, over a soft blurred extension of the same
                          painting (assets/illustrations/fill/) for screens
                          taller than the crop.

   Without JavaScript the first (hero) painting simply stays up behind
   everything. To swap a painting, change the three url('...') variables in
   its .bd-* rule below. Strength of the veil: --section-veil (top of file).
   ====================================================================== */

.bd-hero {
  --art: url('../assets/illustrations/tuscany.jpg');
  --art-portrait: url('../assets/illustrations/mobile/tuscany.jpg');
  --fill: url('../assets/illustrations/fill/tuscany.jpg');
}

.bd-events {
  --art: url('../assets/illustrations/orderofevents.jpg');
  --art-portrait: url('../assets/illustrations/mobile/orderofevents.jpg');
  --fill: url('../assets/illustrations/fill/orderofevents.jpg');
}

.bd-friday {
  --art: url('../assets/illustrations/tomato.jpg');
  --art-portrait: url('../assets/illustrations/mobile/tomato.jpg');
  --fill: url('../assets/illustrations/fill/tomato.jpg');
}

.bd-saturday {
  --art: url('../assets/illustrations/maiyaan.jpg');
  --art-portrait: url('../assets/illustrations/mobile/maiyaan.jpg');
  --fill: url('../assets/illustrations/fill/maiyaan.jpg');
}

.bd-sunday {
  --art: url('../assets/illustrations/lights.jpg');
  --art-portrait: url('../assets/illustrations/mobile/lights.jpg');
  --fill: url('../assets/illustrations/fill/lights.jpg');
}

.bd-rsvp {
  --art: url('../assets/illustrations/tiles.jpg');
  --art-portrait: url('../assets/illustrations/mobile/tiles.jpg');
  --fill: url('../assets/illustrations/fill/tiles.jpg');
}

.bd-travel {
  --art: url('../assets/illustrations/house.jpg');
  --art-portrait: url('../assets/illustrations/mobile/house.jpg');
  --fill: url('../assets/illustrations/fill/house.jpg');
}

.tomato-bg { --accent-decor: var(--color-tomato); }
.terracotta-sky-bg { --accent-decor: var(--color-terracotta); }
.gold-olive-bg { --accent-decor: var(--color-gold); }
.travel-bg { --accent-decor: var(--color-olive); }

.backdrops {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh; /* constant height, so it doesn't resize as mobile toolbars slide away */
  z-index: -1;
  pointer-events: none;
}

.backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  background:
    linear-gradient(var(--section-veil), var(--section-veil)),
    var(--art) center center / cover no-repeat;
}

.backdrop:first-child { opacity: 1; }

@media (orientation: portrait) {
  .backdrop {
    background:
      linear-gradient(var(--section-veil), var(--section-veil)),
      var(--art-portrait) center center / 100vw auto no-repeat,
      var(--fill) center center / cover no-repeat;
  }
}

/* ======================================================================
   Sections — shared rhythm
   ====================================================================== */

.section {
  padding: 4rem 0;
  position: relative;
}

/* section-head always nests inside .center-col now, which already
   supplies the soft tint/blur — so this is typography spacing only. */
.section-head {
  text-align: center;
  max-width: none;
  margin: 0 auto 1.2rem;
}

/* ======================================================================
   Full-screen artwork framing
   Every artwork section is exactly one viewport tall on desktop (its
   painting is centred, cover-sized and never cropped to a corner), so
   the artist's own painted centre gap always lines up with the screen.
   Text lives in a single centred column nested inside that gap —
   no side-by-side split, no dedicated "art column": the whole frame
   IS the art, and the text sits where the painting already leaves room
   for it.
   ====================================================================== */

.section-full {
  display: block;
  padding: 0;
}

/* The section itself is plain block layout so the sticky backdrop can be its
   first child; the content is centred vertically by this wrapper instead. */
.section-full > .container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

@media (max-width: 640px) {
  .section-full > .container { min-height: auto; padding: 3rem 1.25rem; }
}

/* The centred text lane. A soft, minimal tint + blur sits behind it only
   for contrast — deliberately no border/box so it never reads as a hard
   rectangle cutting across the painting's own borders. */
.center-col {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  background: rgba(251, 249, 246, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(42, 46, 43, 0.04);
  padding: 1.75rem 1.75rem;
}

/* Slightly wider text lane on full-size desktop screens so the layout
   doesn't feel vertically compressed once there's room to breathe. */
@media (min-width: 1024px) {
  .center-col { max-width: 768px; }
}

@media (max-width: 640px) {
  .center-col { padding: 1.4rem 1.15rem; }
}

/* ======================================================================
   SECTION 1 — Hero
   ====================================================================== */

.hero-inner {
  text-align: center;
}


.hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.hero-detail .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.hero-detail .value {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.about-frame {
  /* No background of its own — it already sits inside the frosted
     hero-inner panel, so a second translucent layer would just muddy it.
     Vertical spacing comes from .center-col's gap, not its own margin. */
  background: none;
}

/* "Words About Us": paragraph (with drop cap) beside a small portrait photo */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.4rem;
  align-items: center;
  text-align: left;
}

.about-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

/* Fine deep-olive line, a thin cream mat, and a soft organic shadow */
.about-photo {
  margin: 0;
  padding: 5px;
  background: var(--color-alabaster);
  border: 1px solid var(--color-olive-vine);
  box-shadow: 0 18px 32px -16px rgba(42, 46, 43, 0.4);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .about-photo { width: 200px; margin: 0 auto; }
}

/* ======================================================================
   SECTION 2 — Order of Events (editorial storybook flow)
   A strict, centred vertical stack grouped by day. Events are separated by
   a fine double-lined diamond, days by the olive-sprig flourish; each block
   drifts in from a soft blur via .reveal-blur (see Scroll-reveal above).
   ====================================================================== */

.events-flow {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-flow .section-head { margin-bottom: 1.8rem; }

.events-flow > .sprig-divider { margin: 2rem auto; }

.event-day {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.day-header {
  margin: 0;
  padding: 0.5rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--accent);
  border: 1px solid rgba(61, 74, 50, 0.35);
}

/* Each event (and the page heading) is its own sheer frosted card with a
   fine-line border and a second hairline inset inside it. */
.events-flow .section-head,
.story-event,
.day-header {
  background: rgba(251, 249, 246, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.events-flow .section-head,
.story-event {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(61, 74, 50, 0.4);
}

.events-flow .section-head::before,
.story-event::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(61, 74, 50, 0.22);
  pointer-events: none;
}

.story-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.story-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-ink-soft);
}

.story-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.15;
}

/* The label (Arrival / Ceremony) is bold Lato; the time follows it */
.time-label {
  font-family: var(--font-body);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.story-desc {
  max-width: 440px;
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  color: var(--color-ink-soft);
}

/* Fine double-lined diamond between events: a hairline that fades out at
   both ends, broken in the middle around a small diamond with a second
   outline around it. Pure CSS. */
.diamond-divider {
  position: relative;
  display: block;
  width: min(220px, 70%);
  height: 22px;
}

.diamond-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  opacity: 0.6;
  background: linear-gradient(to right,
    transparent 0%,
    var(--accent) 22%,
    var(--accent) calc(50% - 18px),
    transparent calc(50% - 18px),
    transparent calc(50% + 18px),
    var(--accent) calc(50% + 18px),
    var(--accent) 78%,
    transparent 100%);
}

.diamond-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -5px;
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  transform: rotate(45deg);
}

/* ======================================================================
   SECTION 3/4/5 — Day sections shared
   ====================================================================== */

.event-block {
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.event-block:last-child { margin-bottom: 0; }

.event-block h3 {
  color: var(--accent);
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 0.9rem 0 0.8rem;
}

.detail-row .item .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.detail-row .item .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.dress-card {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 1.1rem 1.6rem;
  margin-top: 0.25rem;
  background: rgba(255, 255, 255, 0.5);
}

.dress-card .label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.dress-card .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

/* Explicit dress-code guidance (Sunday): a quiet inset card under the title */
.dress-guidance {
  max-width: 400px;
  margin: 0.8rem auto 0;
  padding: 0.85rem 1.2rem;
  background: rgba(61, 74, 50, 0.06);
  border-top: 1px solid rgba(61, 74, 50, 0.35);
  border-bottom: 1px solid rgba(61, 74, 50, 0.35);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-ink);
}

/* Household phone + email side by side */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.1rem;
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Dress-code details */
.dress-emphasis {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.dress-lines {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
}

.dress-who {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Countdown: spaced-out Lato digits, delicate italic Cormorant labels */
.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.7rem;
  margin: 0.2rem 0;
}

.cd-unit { white-space: nowrap; }

.cd-num {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.cd-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  text-transform: lowercase;
  color: var(--color-ink-soft);
}

.cd-dot { color: var(--accent); opacity: 0.7; }

.countdown.is-done {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
}

/* "Add to Calendar" mini links */
.cal-links {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cal-links:empty { display: none; }

.cal-link {
  display: inline-block;
  padding: 0.7rem 0.6rem;
  color: var(--color-ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(61, 74, 50, 0.35);
  text-underline-offset: 4px;
  transition: color var(--transition-soft), text-decoration-color var(--transition-soft), opacity var(--transition-soft);
}

.cal-link:hover { color: var(--accent); text-decoration-color: var(--accent); opacity: 1; }
.cal-dot { color: var(--color-ink-soft); opacity: 0.6; }

/* The one weekend-wide link, under the Order of Events heading */
.cal-weekend {
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

/* Where to stay */
.stay {
  width: 100%;
  margin-top: 0.6rem;
  text-align: center;
}

.stay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.6rem 1.3rem 1.4rem;
  text-align: center;
}

.stay-name {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.stay-type {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-ink-soft);
}

.stay-site {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid rgba(61, 74, 50, 0.35);
  word-break: break-all;
}

.stay-site:hover { opacity: 1; border-bottom-color: var(--accent); }

.stay-map {
  margin-top: 0.7rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.7rem;
}

/* ======================================================================
   Brush-stroke colour swatches (dress codes)
   Each swatch is a solid colour (--swatch-fill) revealed through an inline-SVG
   mask: a bundle of ~14 rough bristle strands with ragged, uneven ends, dry
   gaps and stray hairs, roughened further by an feTurbulence displacement.
   So the paint takes on fibrous brush edges instead of a smooth digital shape.
   Four masks (--brush-1..4) are rotated through a row so no two strokes match.

   Self-drawing: each stroke starts fully clipped on the right and, when its
   row scrolls into view (an IntersectionObserver adds .is-drawn, one stroke
   after another), sweeps open left to right over 1s like a wet brush. Without JS the strokes are simply visible.
   ====================================================================== */

.swatch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0.25rem;
  filter: drop-shadow(0 1px 1px rgba(42, 46, 43, 0.25));
}

.brush-swatch {
  --swatch-fill: #999;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%25' y='-25%25' width='110%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.16' numOctaves='2' seed='11' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath d=%22M25.1 9.0Q90.4 9.0 165.7 9.3%22 stroke-width=%224.0%22 opacity=%220.88%22/%3E%3Cpath d=%22M22.7 12.2Q91.0 13.2 174.0 12.8%22 stroke-width=%224.2%22 opacity=%220.80%22/%3E%3Cpath d=%22M22.4 15.5Q61.1 13.9 99.7 15.6%22 stroke-width=%224.5%22 opacity=%220.81%22/%3E%3Cpath d=%22M105.9 15.6Q139.9 13.9 173.9 15.5%22 stroke-width=%224.5%22 opacity=%220.81%22/%3E%3Cpath d=%22M15.2 18.7Q100.2 19.1 180.1 18.7%22 stroke-width=%224.7%22 opacity=%220.89%22/%3E%3Cpath d=%22M11.6 21.9Q49.9 22.6 88.2 21.3%22 stroke-width=%225.0%22 opacity=%220.96%22/%3E%3Cpath d=%22M98.8 21.3Q137.1 22.6 175.4 21.6%22 stroke-width=%225.0%22 opacity=%220.96%22/%3E%3Cpath d=%22M11.3 25.2Q90.5 26.3 179.0 23.6%22 stroke-width=%225.2%22 opacity=%220.99%22/%3E%3Cpath d=%22M11.3 28.4Q55.8 28.8 100.3 29.3%22 stroke-width=%225.5%22 opacity=%220.80%22/%3E%3Cpath d=%22M112.0 29.3Q145.1 28.8 178.1 28.9%22 stroke-width=%225.5%22 opacity=%220.80%22/%3E%3Cpath d=%22M13.9 31.6Q96.5 30.2 189.4 32.6%22 stroke-width=%225.5%22 opacity=%220.80%22/%3E%3Cpath d=%22M11.8 34.8Q57.3 35.3 102.7 33.6%22 stroke-width=%225.2%22 opacity=%220.81%22/%3E%3Cpath d=%22M114.6 33.6Q151.1 35.3 187.6 34.1%22 stroke-width=%225.2%22 opacity=%220.81%22/%3E%3Cpath d=%22M16.3 38.1Q74.9 37.7 133.5 39.2%22 stroke-width=%225.0%22 opacity=%220.83%22/%3E%3Cpath d=%22M140.8 39.2Q162.6 37.7 184.4 38.8%22 stroke-width=%225.0%22 opacity=%220.83%22/%3E%3Cpath d=%22M13.4 41.3Q62.1 39.9 110.8 40.0%22 stroke-width=%224.7%22 opacity=%220.85%22/%3E%3Cpath d=%22M119.1 40.0Q147.4 39.9 175.7 40.5%22 stroke-width=%224.7%22 opacity=%220.85%22/%3E%3Cpath d=%22M17.8 44.5Q88.3 45.7 169.9 43.5%22 stroke-width=%224.5%22 opacity=%220.91%22/%3E%3Cpath d=%22M24.4 47.8Q109.7 46.8 182.8 49.2%22 stroke-width=%224.2%22 opacity=%220.99%22/%3E%3Cpath d=%22M24.8 51.0Q107.8 51.7 180.5 50.2%22 stroke-width=%224.0%22 opacity=%220.83%22/%3E%3Cpath d=%22M6.0 22.6L15.0 22.0%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M184.4 32.1L196.3 33.0%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M2.9 19.3L17.1 18.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M5.0 18.3L14.8 18.1%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M178.9 44.1L196.6 44.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M1.1 17.1L21.9 17.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M5.5 46.7L20.2 47.1%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3C/g%3E%3C/svg%3E");
  --bristle: repeating-linear-gradient(
    178deg,
    rgba(255, 255, 255, 0.16) 0 1px,
    rgba(0, 0, 0, 0.06) 1px 2px,
    transparent 2px 5px
  );
  position: relative;
  display: block;
  width: 84px;
  height: 26px;
  background: var(--bristle), var(--swatch-fill);
  -webkit-mask-image: var(--brush);
  mask-image: var(--brush);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: rotate(-1.5deg);
}

/* Vary the stroke mask and tilt along a row */
.brush-swatch:nth-child(2) { --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%25' y='-25%25' width='110%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.16' numOctaves='2' seed='23' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath d=%22M29.3 9.0Q62.0 9.3 94.7 8.8%22 stroke-width=%224.0%22 opacity=%220.80%22/%3E%3Cpath d=%22M103.4 8.8Q132.0 9.3 160.7 8.9%22 stroke-width=%224.0%22 opacity=%220.80%22/%3E%3Cpath d=%22M19.0 12.2Q102.0 12.0 177.5 12.3%22 stroke-width=%224.2%22 opacity=%220.94%22/%3E%3Cpath d=%22M14.2 15.5Q91.0 15.8 172.2 17.0%22 stroke-width=%224.5%22 opacity=%220.92%22/%3E%3Cpath d=%22M14.4 18.7Q99.8 17.4 178.3 18.6%22 stroke-width=%224.7%22 opacity=%220.85%22/%3E%3Cpath d=%22M13.1 21.9Q52.8 22.9 92.4 20.9%22 stroke-width=%225.0%22 opacity=%220.85%22/%3E%3Cpath d=%22M100.1 20.9Q142.9 22.9 185.7 21.3%22 stroke-width=%225.0%22 opacity=%220.85%22/%3E%3Cpath d=%22M12.9 25.2Q100.6 24.5 179.4 24.5%22 stroke-width=%225.2%22 opacity=%220.86%22/%3E%3Cpath d=%22M9.4 28.4Q100.2 29.4 189.5 27.5%22 stroke-width=%225.5%22 opacity=%220.94%22/%3E%3Cpath d=%22M12.4 31.6Q104.9 31.3 187.5 30.1%22 stroke-width=%225.5%22 opacity=%220.79%22/%3E%3Cpath d=%22M16.5 34.8Q95.6 36.4 179.6 35.6%22 stroke-width=%225.2%22 opacity=%220.90%22/%3E%3Cpath d=%22M12.5 38.1Q64.9 39.5 117.4 39.5%22 stroke-width=%225.0%22 opacity=%220.82%22/%3E%3Cpath d=%22M124.4 39.5Q158.6 39.5 192.7 38.9%22 stroke-width=%225.0%22 opacity=%220.82%22/%3E%3Cpath d=%22M16.0 41.3Q93.1 42.6 175.2 41.1%22 stroke-width=%224.7%22 opacity=%220.87%22/%3E%3Cpath d=%22M21.0 44.5Q60.2 45.2 99.4 45.6%22 stroke-width=%224.5%22 opacity=%220.87%22/%3E%3Cpath d=%22M107.9 45.6Q139.3 45.2 170.7 45.2%22 stroke-width=%224.5%22 opacity=%220.87%22/%3E%3Cpath d=%22M24.0 47.8Q94.7 46.5 170.9 48.2%22 stroke-width=%224.2%22 opacity=%220.96%22/%3E%3Cpath d=%22M28.5 51.0Q94.9 51.2 169.8 51.1%22 stroke-width=%224.0%22 opacity=%220.80%22/%3E%3Cpath d=%22M6.0 28.9L14.1 28.7%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M7.1 40.3L17.9 40.6%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M4.0 18.2L13.1 18.6%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M180.0 29.3L195.8 29.3%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M172.3 22.7L192.6 23.4%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M180.2 29.9L196.7 29.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M3.1 23.5L24.6 23.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3C/g%3E%3C/svg%3E"); transform: rotate(1deg) translateY(1px); }
.brush-swatch:nth-child(3) { --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%25' y='-25%25' width='110%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.16' numOctaves='2' seed='37' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath d=%22M27.1 9.0Q101.6 10.1 171.8 9.0%22 stroke-width=%224.0%22 opacity=%220.97%22/%3E%3Cpath d=%22M21.8 12.2Q103.0 11.5 176.7 11.8%22 stroke-width=%224.2%22 opacity=%220.91%22/%3E%3Cpath d=%22M22.3 15.5Q93.8 14.1 169.7 14.8%22 stroke-width=%224.5%22 opacity=%220.80%22/%3E%3Cpath d=%22M18.5 18.7Q93.9 17.2 178.5 18.8%22 stroke-width=%224.7%22 opacity=%220.91%22/%3E%3Cpath d=%22M9.2 21.9Q65.9 22.2 122.7 20.4%22 stroke-width=%225.0%22 opacity=%220.80%22/%3E%3Cpath d=%22M133.0 20.4Q156.4 22.2 179.8 21.0%22 stroke-width=%225.0%22 opacity=%220.80%22/%3E%3Cpath d=%22M15.8 25.2Q69.7 25.2 123.7 26.5%22 stroke-width=%225.2%22 opacity=%220.93%22/%3E%3Cpath d=%22M132.6 26.5Q159.9 25.2 187.2 26.0%22 stroke-width=%225.2%22 opacity=%220.93%22/%3E%3Cpath d=%22M9.0 28.4Q92.7 26.8 189.7 28.9%22 stroke-width=%225.5%22 opacity=%220.90%22/%3E%3Cpath d=%22M10.2 31.6Q96.3 30.5 190.5 31.6%22 stroke-width=%225.5%22 opacity=%220.79%22/%3E%3Cpath d=%22M12.0 34.8Q96.1 33.9 182.5 35.5%22 stroke-width=%225.2%22 opacity=%220.84%22/%3E%3Cpath d=%22M17.3 38.1Q101.2 36.6 188.2 38.9%22 stroke-width=%225.0%22 opacity=%220.90%22/%3E%3Cpath d=%22M12.8 41.3Q94.7 42.6 181.5 42.0%22 stroke-width=%224.7%22 opacity=%220.94%22/%3E%3Cpath d=%22M22.0 44.5Q63.3 43.6 104.6 46.0%22 stroke-width=%224.5%22 opacity=%220.93%22/%3E%3Cpath d=%22M113.7 46.0Q147.8 43.6 181.8 45.4%22 stroke-width=%224.5%22 opacity=%220.93%22/%3E%3Cpath d=%22M17.3 47.8Q101.3 48.6 170.4 48.1%22 stroke-width=%224.2%22 opacity=%220.85%22/%3E%3Cpath d=%22M28.7 51.0Q96.7 49.6 160.9 50.8%22 stroke-width=%224.0%22 opacity=%220.89%22/%3E%3Cpath d=%22M175.5 35.5L192.6 34.6%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M6.1 17.2L27.3 17.4%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M175.3 15.1L193.2 15.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M2.6 46.0L15.1 45.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M178.1 46.0L192.7 45.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M1.0 46.7L19.4 46.4%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M176.9 35.4L192.5 36.3%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3C/g%3E%3C/svg%3E"); transform: rotate(-0.5deg) translateY(-1px); }
.brush-swatch:nth-child(4) { --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%25' y='-25%25' width='110%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.16' numOctaves='2' seed='52' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath d=%22M29.8 9.0Q79.6 10.4 129.4 8.7%22 stroke-width=%224.0%22 opacity=%220.89%22/%3E%3Cpath d=%22M137.8 8.7Q155.1 10.4 172.3 8.8%22 stroke-width=%224.0%22 opacity=%220.89%22/%3E%3Cpath d=%22M18.7 12.2Q58.0 11.9 97.3 10.7%22 stroke-width=%224.2%22 opacity=%220.79%22/%3E%3Cpath d=%22M105.0 10.7Q139.3 11.9 173.6 11.3%22 stroke-width=%224.2%22 opacity=%220.79%22/%3E%3Cpath d=%22M20.7 15.5Q100.1 16.7 177.0 16.9%22 stroke-width=%224.5%22 opacity=%220.98%22/%3E%3Cpath d=%22M19.0 18.7Q97.3 17.7 185.8 17.4%22 stroke-width=%224.7%22 opacity=%220.90%22/%3E%3Cpath d=%22M16.4 21.9Q98.6 20.3 179.8 22.4%22 stroke-width=%225.0%22 opacity=%220.79%22/%3E%3Cpath d=%22M9.3 25.2Q100.5 24.5 194.0 25.3%22 stroke-width=%225.2%22 opacity=%220.91%22/%3E%3Cpath d=%22M13.8 28.4Q108.9 29.4 189.6 28.2%22 stroke-width=%225.5%22 opacity=%220.97%22/%3E%3Cpath d=%22M9.2 31.6Q62.4 32.9 115.6 31.7%22 stroke-width=%225.5%22 opacity=%220.95%22/%3E%3Cpath d=%22M122.5 31.7Q152.2 32.9 182.0 31.7%22 stroke-width=%225.5%22 opacity=%220.95%22/%3E%3Cpath d=%22M14.3 34.8Q90.8 33.4 178.3 34.9%22 stroke-width=%225.2%22 opacity=%220.80%22/%3E%3Cpath d=%22M14.6 38.1Q99.0 37.9 181.8 36.6%22 stroke-width=%225.0%22 opacity=%220.81%22/%3E%3Cpath d=%22M12.4 41.3Q65.4 40.4 118.3 40.5%22 stroke-width=%224.7%22 opacity=%220.85%22/%3E%3Cpath d=%22M125.9 40.5Q151.4 40.4 176.8 40.8%22 stroke-width=%224.7%22 opacity=%220.85%22/%3E%3Cpath d=%22M20.5 44.5Q57.5 44.7 94.5 44.0%22 stroke-width=%224.5%22 opacity=%220.82%22/%3E%3Cpath d=%22M102.9 44.0Q136.9 44.7 170.8 44.2%22 stroke-width=%224.5%22 opacity=%220.82%22/%3E%3Cpath d=%22M17.8 47.8Q92.7 46.8 175.2 49.2%22 stroke-width=%224.2%22 opacity=%220.85%22/%3E%3Cpath d=%22M27.2 51.0Q92.8 52.1 165.8 51.6%22 stroke-width=%224.0%22 opacity=%220.91%22/%3E%3Cpath d=%22M178.5 30.3L192.8 31.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M181.8 14.4L198.3 13.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M4.6 39.9L24.1 39.6%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M3.4 20.8L12.8 21.2%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M4.7 41.9L23.8 42.4%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M181.5 21.5L196.8 22.5%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3Cpath d=%22M184.5 44.8L192.9 45.0%22 stroke-width=%221%22 opacity=%220.7%22/%3E%3C/g%3E%3C/svg%3E"); transform: rotate(1.5deg); }

/* Self-drawing sweep (left to right). Only hidden once JS has marked the page
   as ready, so the strokes never vanish if scripts fail. */
html.js-ready .brush-swatch:not(.is-drawn) {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.brush-swatch.is-drawn {
  animation: brush-draw 1s cubic-bezier(0.45, 0.05, 0.25, 1) both;
}


@keyframes brush-draw {
  from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .brush-swatch:not(.is-drawn) { clip-path: none; }
  .brush-swatch.is-drawn { animation: none; }
}

.swatch-caption {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-ink-soft);
}

/* ======================================================================
   SATURDAY dress-code swatches
   The sky-blue / terracotta palette lives ONLY in these four brush strokes;
   the Saturday section's panel, titles, labels and borders use the same
   master styling as every other page.
   ====================================================================== */

.swatch-sat-sky-light { --swatch-fill: #D2E7EE; }
.swatch-sat-sky { --swatch-fill: #89B2D0; }
.swatch-sat-terra-light { --swatch-fill: #DC9D85; }
.swatch-sat-terra { --swatch-fill: #C36C51; }

/* Overlapping sweeps: each stroke tucks under the next, like one wet
   brush dragged across the page in four colours. */
.swatch-overlap { gap: 0; }
.swatch-overlap .brush-swatch + .brush-swatch { margin-left: -18px; }

@media (max-width: 640px) {
  .swatch-overlap .brush-swatch { width: 66px; }
  .swatch-overlap .brush-swatch + .brush-swatch { margin-left: -15px; }
}

/* ======================================================================
   Booking / RSVP forms
   ====================================================================== */

.form-card {
  max-width: 480px;
  margin: 0.9rem auto 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 1.6rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.form-card h3 {
  text-align: center;
  margin-bottom: 0.3rem;
}

.form-card .form-sub {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin-bottom: 1.2rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-ink-soft);
  margin-bottom: 0.5rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  padding: 0.5rem 0.1rem;
  transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 4.5rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field-radio-group {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.field .field-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-ink);
  cursor: pointer;
}

.field-radio input { accent-color: var(--accent); }

/* ---- Household RSVP: dynamic guest blocks ---- */

[hidden] { display: none !important; }

.guest-block {
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem 0.1rem;
  border: 1px solid var(--color-line);
  background: rgba(251, 249, 246, 0.55);
  text-align: left;
}

.guest-block .field { margin-bottom: 0.8rem; }
.guest-block .field textarea { min-height: 2.8rem; }

.guest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.guest-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.guest-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity var(--transition-soft);
}
.guest-remove:hover { opacity: 0.55; }

.guest-enter { animation: guest-in 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.guest-leave { opacity: 0; transform: translateY(-6px); transition: opacity 0.28s ease, transform 0.28s ease; }

@keyframes guest-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.add-guest {
  display: block;
  margin: 0.2rem auto 1.1rem;
  padding: 0 0 2px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: opacity var(--transition-soft);
}
.add-guest:hover { opacity: 0.55; }

/* Weekend transport choice: a framed household-level question */
.transport-field {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem 0.8rem;
  border: 1px solid var(--color-line);
  background: rgba(251, 249, 246, 0.55);
  text-align: left;
}

.transport-title {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.transport-options {
  flex-direction: column;
  gap: 0.6rem;
}

.field .transport-options .field-radio {
  align-items: flex-start;
  line-height: 1.5;
  text-align: left;
}

.transport-options .field-radio input { margin-top: 0.3rem; flex-shrink: 0; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: #B5483A;
}

/* ---- Validation: muted tomato alert + tinted missing fields ---- */

.form-alert {
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(181, 72, 58, 0.3);
  background: rgba(181, 72, 58, 0.06);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: #B5483A;
  animation: guest-in 0.4s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-bottom-color: rgba(181, 72, 58, 0.8);
  background: rgba(181, 72, 58, 0.05);
}

.field-radio-group.is-invalid {
  outline: 1px solid rgba(181, 72, 58, 0.55);
  outline-offset: 6px;
}

/* Incomplete form: the button stays elegant but softened; it is still
   clickable so a guest can be shown what's missing, but nothing is sent. */
.form-submit {
  transition: opacity var(--transition-soft), background var(--transition-soft), border-color var(--transition-soft), box-shadow var(--transition-soft);
}

.form-submit.is-incomplete {
  opacity: 0.55;
  border-color: rgba(61, 74, 50, 0.45);
  box-shadow: none;
}

.form-submit.is-incomplete:hover { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  .form-alert { animation: none; }
}

.thanks-summary {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thanks-sign {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .guest-enter { animation: none; }
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Thank-you state */

.form-thanks {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.form-thanks .sprig-divider { margin: 1.2rem auto 1rem; }

.form-thanks h3 { margin-bottom: 0.6rem; }
.form-thanks p { color: var(--color-ink-soft); }

.form-card.is-submitted .form-fields,
.form-card.is-submitted .form-sub { display: none; }
.form-card.is-submitted .form-thanks {
  display: block;
  animation: thanks-in 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

@keyframes thanks-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RSVP: section accent colour (its tiles painting is set in the artwork block). */
.rsvp-accent {
  --accent-decor: var(--color-fig);
}

/* Busy tile pattern behind the form, so this panel is more opaque than the
   sheer panels over the paintings. */
.rsvp-accent .center-col {
  background: rgba(251, 249, 246, 0.9);
}

.notice-banner {
  max-width: 640px;
  margin: 0 auto 1rem;
  text-align: center;
  padding: 1.1rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

/* ======================================================================
   Travel cards
   ====================================================================== */

/* Two perfectly balanced columns from tablet width up, one column below.
   Cards that should span both columns (Poppi Town) use .travel-card-wide. */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .travel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* The travel panel carries the most content on the site, so on desktop it
   gets a wider lane than the other sections to stop the two columns feeling
   compressed. */
@media (min-width: 768px) {
  .travel-bg .center-col { max-width: 720px; }
}

@media (min-width: 1024px) {
  .travel-bg .center-col { max-width: 920px; }
}

.travel-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--color-line);
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.travel-card .eyebrow { margin-bottom: 0.4rem; }
.travel-card h3 { margin-bottom: 0.4rem; }
.travel-card p { font-size: 0.92rem; color: var(--color-ink-soft); }

.travel-card-wide { grid-column: 1 / -1; }

.travel-card .btn { margin-top: 0.4rem; }

.map-embed {
  margin: 0.7rem 0 0.5rem;
  border: 1px solid rgba(61, 74, 50, 0.4);
  padding: 4px;
  background: var(--color-alabaster);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.link-stack .btn {
  width: 100%;
  margin-top: 0;
  padding: 0.7rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* High-visibility note for guests who won't hire a car */
.transport-callout {
  width: 100%;
  margin: 0.4rem 0 0;
  padding: 1.4rem 1.6rem;
  background: var(--color-olive-vine);
  border: 1px solid var(--color-olive-vine);
  outline: 1px solid rgba(251, 249, 246, 0.5);
  outline-offset: -7px;
  text-align: center;
  box-shadow: 0 18px 32px -18px rgba(42, 46, 43, 0.5);
}

.transport-callout .eyebrow { color: #E4DCC9; margin-bottom: 0.5rem; }

.transport-callout p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-alabaster);
}

/* ---- Our Florence & Tuscany Curations ---- */

.curations {
  width: 100%;
  margin-top: 0.6rem;
  text-align: center;
}

.curations-head .eyebrow { margin-bottom: 0.4rem; }

.curations-intro {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-ink-soft);
}
.curations-head h3 { margin-bottom: 0.2rem; }

.curations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  text-align: left;
}

@media (max-width: 760px) {
  .curations-grid { grid-template-columns: 1fr; }
}

/* Thin cream-white frosted cards with a fine olive line and an inset hairline */
.curation-card {
  position: relative;
  padding: 1.5rem 1.3rem 0.7rem;
  background: rgba(251, 249, 246, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(61, 74, 50, 0.4);
}

.curation-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(61, 74, 50, 0.22);
  pointer-events: none;
}

.curation-heading {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
}

.curation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.curation-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(61, 74, 50, 0.14);
}

.curation-item:last-child { border-bottom: none; }

.curation-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.curation-name a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-soft), opacity var(--transition-soft);
}

.curation-name a:hover { opacity: 1; border-bottom-color: var(--accent); }

.curation-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.curation-note {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
}

/* Gentle cascade when a row of cards reveals together */
.travel-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.travel-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ======================================================================
   Footer
   ====================================================================== */

.site-footer {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 2.25rem;
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: var(--color-ivory);
  border-top: 1px solid var(--color-line);
}

.footer-credit {
  margin: 0.9rem 0 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.22em;
}

/* ======================================================================
   Minimalist audio toggle — Volare
   Muted/paused by default — nothing plays until the guest clicks it.
   Cream pill, fine olive border; pulses gently only while playing.
   ====================================================================== */

.music-toggle {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-alabaster);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(61, 74, 50, 0.3);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-olive-vine);
  cursor: pointer;
  transition: color var(--transition-soft), border-color var(--transition-soft), box-shadow var(--transition-soft), opacity var(--transition-soft);
}

.music-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.music-toggle .music-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Subtle rhythmic pulse while the track is actually playing */
.music-toggle.is-playing {
  border-color: var(--color-olive-vine);
  animation: music-pulse 2.2s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 74, 50, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(61, 74, 50, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing { animation: none; }
}

@media (max-width: 640px) {
  .fine-frame { padding: 1.4rem 1.2rem; }
  .form-card { padding: 1.4rem 1.15rem; }
  .music-toggle {
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.6rem;
  }
}
