/* David & Haylea — hand-coded replica of the Canva site (davidandhaylea.com/copy-of-our-story).
   Desktop geometry is measured from the live page at 1280px: 1 design unit = --u.
   Mobile (<720px) geometry is measured from the live page at 375px: 1 design unit = --m. */

@font-face {
  font-family: "Sloop Script Pro";
  src: url("assets/fonts/sloop-script-pro.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("assets/fonts/pinyon-script.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baskerville Display PT";
  src: url("assets/fonts/baskerville-display.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskerville Display PT";
  src: url("assets/fonts/baskerville-display-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskerville Display PT";
  src: url("assets/fonts/baskerville-display-bold-italic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/libre-baskerville.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/libre-baskerville-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --u: calc(100vw / 1280);
  --sloop: "Sloop Script Pro", cursive;
  --pinyon: "Pinyon Script", cursive;
  --bask: "Baskerville Display PT", "Baskerville", serif;
  --libre: "Libre Baskerville", "Baskerville", serif;
  --cream: #fcf9f6;
  --stone: #e4e0da;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #fff;
  overflow-x: hidden;
  font-family: var(--bask);
}

.sec {
  position: relative;
  overflow: hidden;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

h1, h2 { font-weight: 400; }

ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

/* =================== Hero =================== */

.hero { height: calc(716 * var(--u)); }

.hero-bg {
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}

/* video backgrounds simply cover their section at both breakpoints (the still
   photos used hand-placed crops) */
video.bg {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #6b6b63; /* shows for the instant before the first frame paints */
}

/* nav sits above the handkerchief artwork — without this the wrapped mobile row
   (Details / FAQ) falls underneath it and stops being clickable */
.nav { position: relative; z-index: 3; }

.nav a {
  position: absolute;
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(11.6 * var(--u));
  letter-spacing: calc(5.38 * var(--u));
  text-transform: uppercase;
  color: var(--cream);
  /* shadow so the cream type holds against the bright sky behind it */
  text-shadow: 0 calc(1 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.6);
  line-height: 1.36;
}

/* four links, spread evenly across the old five-link span (RSVP removed Nov 2026) */
.nav-story    { left: calc(253 * var(--u));  top: calc(46 * var(--u)); }
.nav-timeline { left: calc(500 * var(--u));  top: calc(46 * var(--u)); }
.nav-details  { left: calc(780 * var(--u));  top: calc(46 * var(--u)); }
.nav-faq      { left: calc(1027 * var(--u)); top: calc(46 * var(--u)); }

.hankie {
  position: absolute;
  left: calc(311 * var(--u));
  top: calc(72 * var(--u));
  width: calc(658 * var(--u));
  height: calc(658 * var(--u));
}

/* Canva rotates the whole name block by -21.2deg (read off its transform matrix) */
.names span {
  --rot: -21.2deg;
  position: absolute;
  font-family: var(--sloop);
  font-size: calc(82.5 * var(--u));
  color: #000;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--rot));
  animation: name-in 1.1s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.names-david  { left: calc(605 * var(--u));   top: calc(268 * var(--u));   animation-delay: 0.3s; }
.names-amp    { left: calc(636.5 * var(--u)); top: calc(323.5 * var(--u)); animation-delay: 0.55s; }
.names-haylea { left: calc(659.5 * var(--u)); top: calc(382 * var(--u));   animation-delay: 0.75s; }

@keyframes name-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px)) rotate(var(--rot));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot));
  }
}

.nav a { animation: nav-in 0.9s ease-out both 0.15s; }

@keyframes nav-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .names span, .nav a { animation: none; }
}

/* =================== Welcome =================== */

/* artwork cropped to its lace frame plus a little paper either side
   (1599x954, ratio 1.676) — height follows that ratio exactly, no stretch */
.welcome { height: calc(764 * var(--u)); }

.welcome-bg {
  height: calc(764 * var(--u));
  object-fit: fill;
}

/* one positioned block, even margins inside — the pattern used across the site */
.copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.welcome-copy {
  top: calc(160 * var(--u));
  width: calc(705 * var(--u));
  color: #fff;
}

.welcome-title {
  font-family: var(--sloop);
  font-size: calc(94.76 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(46 * var(--u));
}

.welcome-body {
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(20.6 * var(--u));
  letter-spacing: calc(3.98 * var(--u));
  line-height: 1.28;
  margin-bottom: calc(26 * var(--u));
}

.welcome-body:last-child { margin-bottom: 0; }

/* =================== Kindly Respond =================== */

.band { height: calc(640 * var(--u)); }

.band-bg {
  height: calc(598 * var(--u));
  object-fit: cover;
  object-position: center top;
}

/* dark scrim so the white text reads over the bright doorway photo.
   0.4 measured only 2.85:1 contrast at the worst spot behind the text; 0.55 gives 4.74:1 */
/* RSVP text removed Nov 2026, so the video no longer needs darkening */
.band::before { content: none; }

.band-title, .band-sub { z-index: 2; }

.band-copy {
  top: calc(195 * var(--u));
  width: calc(900 * var(--u));
  color: #fff;
  z-index: 2;
}

.band-title {
  font-family: var(--sloop);
  font-size: calc(108.2 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(52 * var(--u));
}

.band-sub {
  font-family: var(--bask);
  font-weight: 400;
  font-size: calc(26.76 * var(--u));
  letter-spacing: calc(6.5 * var(--u));
  text-transform: uppercase;
  line-height: 1.383;
}

.band-sub a { text-decoration: underline; text-underline-offset: 0.14em; }

/* =================== Our Story =================== */

.story { height: calc(2490 * var(--u)); }

/* the story runs long, so the paper covers whatever height the copy needs */
.story-bg {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-photo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(150 * var(--u));
  width: calc(434 * var(--u));
  height: calc(653 * var(--u));
  border-radius: 50%;
  object-fit: cover;
}

.story-copy {
  top: calc(893 * var(--u));
  width: calc(768 * var(--u));
  color: #000;
}

.story-title {
  font-family: var(--sloop);
  font-size: calc(137.5 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(54 * var(--u));
}

.story-body {
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(17 * var(--u));
  letter-spacing: calc(3.13 * var(--u));
  line-height: 1.353;
  margin-bottom: calc(28 * var(--u));
}

.story-body:last-child { margin-bottom: 0; }

/* =================== Order on events =================== */

.timeline { height: calc(700 * var(--u)); }

.timeline-bg { height: calc(852 * var(--u)); }

.timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.timeline-title, .tl-item { z-index: 2; }

.timeline-title {
  position: absolute;
  left: calc(620 * var(--u));
  transform: translateX(-50%);
  top: calc(190 * var(--u));
  font-family: var(--sloop);
  font-size: calc(119.1 * var(--u));
  line-height: 1.4;
  color: #fff;
  width: max-content;
}

.tl-item {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

/* all three share one top; the icon slot below keeps them on a common baseline */
.tl-1 { left: calc(320 * var(--u)); top: calc(372 * var(--u)); }
.tl-2 { left: calc(640 * var(--u)); top: calc(372 * var(--u)); }
.tl-3 { left: calc(960 * var(--u)); top: calc(372 * var(--u)); }

/* one fixed slot for every icon, art sitting on the slot's bottom edge, so the
   differing icon shapes all line up */
.tl-icon {
  display: block;
  width: calc(140 * var(--u));
  height: calc(140 * var(--u));
  background: #fff;
  -webkit-mask: var(--icon) center bottom / contain no-repeat;
  mask: var(--icon) center bottom / contain no-repeat;
}

.tl-icon-car     { --icon: url("assets/img/icon-car.png"); }
.tl-icon-glasses { --icon: url("assets/img/icon-glasses.png"); }
.tl-icon-table   { --icon: url("assets/img/icon-table.png"); }

/* in flow beneath the uniform icon slot, so every column lines up automatically */
.tl-time {
  margin-top: calc(16 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(25.58 * var(--u));
  letter-spacing: calc(1.87 * var(--u));
  line-height: 1.37;
  white-space: nowrap;
}

.tl-label {
  margin-top: calc(6 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(19.34 * var(--u));
  letter-spacing: calc(1.41 * var(--u));
  text-transform: uppercase;
  line-height: 1.35;
  white-space: nowrap;
}

/* =================== Where to Stay / Dress Code =================== */

.details { height: calc(1783 * var(--u)); }

/* the artwork bleeds 17px past the right edge on the live site; cover + left keeps
   the identical crop without the element overflowing the viewport */
.details-bg {
  width: 100%;
  height: calc(1816 * var(--u));
  object-fit: cover;
  object-position: left top;
}

.stay-title,
.stay-body,
.dress-title,
.dress-body {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
}

.stay-title {
  left: calc(657 * var(--u));
  top: calc(437 * var(--u));
  font-family: var(--pinyon);
  font-size: calc(110 * var(--u));
  line-height: 1.4;
  color: var(--stone);
  width: max-content;
}

.stay-body {
  left: 50%;
  top: calc(598 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(20.8 * var(--u));
  letter-spacing: calc(4.93 * var(--u));
  line-height: 1.394;
  color: var(--stone);
  width: calc(860 * var(--u)); /* inside the lace borders (195u–1082u) */
}

.hotel {
  position: absolute;
  transform: translateX(-50%);
  top: calc(830 * var(--u));
  width: calc(265 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--stone);
}

/* the paper's plain area sits between the lace borders at 195u–1082u; the three
   columns are placed to stay inside it */
.hotel-1 { left: calc(356 * var(--u)); }
.hotel-2 { left: calc(641 * var(--u)); }
.hotel-3 { left: calc(926 * var(--u)); }

/* underlined caps in the section's own stone colour, sized up from the reference;
   long names wrap within their column */
.hotel-name {
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(20 * var(--u));
  letter-spacing: calc(3 * var(--u));
  line-height: 1.3;
  /* reserve two lines so the BOOK HERE ovals stay level whether a name wraps or not */
  min-height: calc(52 * var(--u));
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: calc(7 * var(--u));
  text-decoration-thickness: calc(1 * var(--u));
}

.hotel-min {
  margin-top: calc(20 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-style: italic;
  font-size: calc(18 * var(--u));
  letter-spacing: calc(0.6 * var(--u));
  line-height: 1.2;
  color: var(--stone);
  white-space: nowrap;
}

.book {
  position: relative;
  margin-top: calc(38 * var(--u));
  width: calc(209 * var(--u));
  height: calc(75 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 209 75'%3E%3Cellipse cx='104.5' cy='37.5' rx='103.7' ry='36.7' fill='none' stroke='%23e4e0da' stroke-width='1.4'/%3E%3Cellipse cx='104.5' cy='37.5' rx='96.7' ry='32.2' fill='none' stroke='%23e4e0da' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.book span {
  font-family: var(--libre);
  font-weight: 700;
  font-size: calc(18.15 * var(--u));
  letter-spacing: calc(4.3 * var(--u));
  margin-right: calc(-4.3 * var(--u)); /* optically recentre the letterspaced text */
  white-space: nowrap;
}

.dress-title {
  left: calc(652 * var(--u));
  top: calc(1090 * var(--u)); /* glyph-top compensation: Pinyon with no descenders sits high in its line box */
  font-family: var(--pinyon);
  font-size: calc(110 * var(--u));
  line-height: 1.4;
  color: var(--stone);
  width: max-content;
}

.dress-body {
  left: 50%;
  top: calc(1266 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(20.16 * var(--u));
  letter-spacing: calc(5.08 * var(--u));
  line-height: 1.39;
  color: var(--stone); /* same stone as the rest of this section */
  width: calc(790 * var(--u));
}

/* =================== Registry =================== */

/* tall enough to show the whole doily — at 717u its bottom lace was cut off */
.registry { height: calc(888 * var(--u)); }

.registry-bg {
  width: 100%;
  height: calc(888 * var(--u));
  object-fit: cover;
  object-position: center top;
}

/* darken the pool photo so the doily and its copy carry the section */
.registry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.doily {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 2;
  width: calc(888 * var(--u));
  height: calc(888 * var(--u));
}

/* the block is centred on the doily's inner panel, which spans 67u–754u */
.registry-copy {
  top: calc(225 * var(--u)); /* nudged up 16u so the taller two-line title block stays centred on the panel */
  width: calc(400 * var(--u));
  color: #000;
  z-index: 3;
}

.registry-title {
  font-family: var(--sloop);
  font-size: calc(74.4 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(30 * var(--u));
}

/* Canva renders this text group scaled to ~0.61 of its declared size — these are the
   true on-screen metrics measured from the live page */
/* the doily's inner cream panel measures 462u wide — the copy stays inside it */
.registry-body,
.registry-mid,
.registry-well,
.registry-thanks {
  text-wrap: pretty;
  font-family: var(--libre);
  font-weight: 700;
  font-size: calc(11.93 * var(--u));
  letter-spacing: calc(2.25 * var(--u));
  line-height: 1.5;
  margin-bottom: calc(22 * var(--u));
}

.registry-bank {
  margin-top: calc(26 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(19.5 * var(--u));
  letter-spacing: calc(1.4 * var(--u));
  line-height: 1.45;
}

.registry-link {
  /* max-content width needs auto side margins to stay centred in the flow block */
  margin: calc(30 * var(--u)) auto 0;
  font-family: var(--bask);
  font-weight: 700;
  font-style: italic;
  font-size: calc(19.5 * var(--u));
  letter-spacing: calc(1.4 * var(--u));
  width: max-content;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* =================== Good to Know =================== */

/* laid out in normal flow rather than absolute tops, so the rhythm stays even
   at every width instead of relying on hand-tuned coordinates */
.faq {
  height: auto;
  padding: calc(60 * var(--u)) 0 calc(110 * var(--u));
}

.faq-bg { height: 100%; object-fit: cover; object-position: center top; }

.faq-title {
  position: relative;
  margin: 0 auto calc(64 * var(--u));
  font-family: var(--pinyon);
  font-size: calc(134 * var(--u));
  line-height: 1.4;
  color: #000;
  width: max-content;
}

.qa {
  position: relative;
  width: calc(985 * var(--u));
  margin: 0 auto;
}

.qa-item { margin-bottom: calc(58 * var(--u)); }
.qa-item:last-child { margin-bottom: 0; }

.qa-item dt,
.qa-item dd {
  text-align: center;
  color: #000;
  font-family: var(--bask);
  font-weight: 700;
}

.qa-item dt {
  font-size: calc(30.3 * var(--u));
  letter-spacing: calc(7.64 * var(--u));
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 auto calc(18 * var(--u));
  max-width: calc(930 * var(--u));
}

.qa-item dd {
  font-size: calc(23.43 * var(--u));
  letter-spacing: calc(2.95 * var(--u));
  line-height: 1.367;
  margin: 0;
}

/* =================== Will you be joining us? =================== */

.final {
  height: calc(800 * var(--u));
  background: #000;
}

.final-bg {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* scrim so the cream text and RSVP oval stay readable over the aerial */
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.final-copy, .final-top { z-index: 2; }

.final-copy {
  top: calc(330 * var(--u)); /* only the names remain, so they sit mid-panel */
  width: calc(600 * var(--u));
}

.final-title {
  font-family: var(--sloop);
  font-size: calc(102.5 * var(--u));
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: calc(34 * var(--u));
}

.final-sub {
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(21 * var(--u));
  letter-spacing: calc(5.2 * var(--u));
  text-transform: uppercase;
  line-height: 1.55;
  color: #faf8f6;
  margin-bottom: calc(38 * var(--u));
}

.final-rsvp {
  margin: 0 auto calc(60 * var(--u));
  width: calc(200 * var(--u));
  height: calc(78 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 78'%3E%3Cellipse cx='100' cy='39' rx='98.8' ry='37.8' fill='none' stroke='%23faf8f6' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.final-rsvp span {
  font-family: var(--libre);
  font-weight: 700;
  font-size: calc(20 * var(--u));
  letter-spacing: calc(5 * var(--u));
  margin-right: calc(-5 * var(--u));
  color: #faf8f6;
}

.final-names {
  font-family: var(--sloop);
  font-size: calc(71.9 * var(--u));
  line-height: 1.15;
  color: #faf8f6;
}

.final-top {
  position: absolute;
  right: calc(64 * var(--u));
  top: calc(742 * var(--u));
  font-family: var(--bask);
  font-weight: 700;
  font-size: calc(12.5 * var(--u));
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
  color: var(--cream);
}

/* =================== Mobile (matches the live site's 375px layout) =================== */

@media (max-width: 719px) {
  :root { --m: calc(100vw / 375); }

  /* ---- hero ---- */
  .hero { height: calc(646 * var(--m)); }

  /* Canva's framing: drawn wide and pulled up so the sky is cropped away and the
     lawn/pond fill the frame. Aspect matches the photo (1.304 vs 1.309), so no stretch. */
  .hero-bg {
    left: calc(-467 * var(--m));
    top: calc(-430 * var(--m));
    width: calc(1430 * var(--m));
    height: calc(1093 * var(--m));
    object-fit: fill;
  }

  /* darker at the very top so the menu reads (measured 2.5:1 without it),
     easing to a light wash over the rest of the photo */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.30) 18%,
      rgba(0, 0, 0, 0.22) 100%);
    z-index: 1;
  }

  .hankie, .names span { z-index: 2; }   /* z-index needs a positioned element — the h1 is static */

  .nav {
    position: absolute;
    top: calc(30 * var(--m));
    left: 50%;
    transform: translateX(-50%);
    width: calc(360 * var(--m));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: calc(17 * var(--m));
    row-gap: calc(10 * var(--m));
  }

  /* larger, and white now the photo behind it is darkened */
  .nav a {
    position: static;
    font-size: calc(11.5 * var(--m));
    letter-spacing: calc(3.6 * var(--m));
    color: var(--cream);
    text-shadow: 0 calc(1 * var(--m)) calc(4 * var(--m)) rgba(0, 0, 0, 0.55);
  }

  /* cloth centred in the hero: (646 - 430) / 2 = 108 */
  .hankie {
    left: 50%;
    transform: translateX(-50%);
    top: calc(108 * var(--m));
    width: calc(430 * var(--m));
    height: calc(430 * var(--m));
  }

  /* name block scaled to the cloth (centre 187.5, 323), angle from the reference */
  .names span { font-size: calc(50 * var(--m)); --rot: -21.2deg; }

  .names-david  { left: calc(170 * var(--m));   top: calc(244 * var(--m)); }
  .names-amp    { left: calc(186 * var(--m));   top: calc(281 * var(--m)); }
  .names-haylea { left: calc(205 * var(--m));   top: calc(317.5 * var(--m)); }

  /* ---- welcome ---- */
  /* portrait artwork (ratio 0.748) shown whole at screen width — no zoom */
  /* the frame's printable area is 79% of the artwork, so at screen width it was
     narrower than the copy. Drawn 442 wide (bleeding past both edges) the inner
     area is ~350 — the 310 copy now sits inside it with 20 to spare. */
  .welcome { height: calc(591 * var(--m)); }

  .welcome-bg {
    left: calc(-33.5 * var(--m));
    width: calc(442 * var(--m));
    height: calc(591 * var(--m));
    object-fit: fill;
  }

  .welcome-copy { top: calc(108 * var(--m)); width: calc(310 * var(--m)); }

  .welcome-title {
    font-size: calc(42 * var(--m));
    line-height: 1.15;
    margin-bottom: calc(20 * var(--m));
  }

  .welcome-body {
    font-size: calc(14.5 * var(--m));
    letter-spacing: calc(1.4 * var(--m));
    line-height: 1.38;
    margin-bottom: calc(13 * var(--m));
  }

  /* ---- band ---- */
  .band { height: calc(560 * var(--m)); }

  .band-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .band-copy { top: calc(199 * var(--m)); width: calc(340 * var(--m)); }

  .band-title { font-size: calc(52 * var(--m)); margin-bottom: calc(30 * var(--m)); }

  .band-sub {
    font-size: calc(17.5 * var(--m));
    letter-spacing: calc(4.2 * var(--m));
  }

  /* ---- story ---- */
  .story { height: calc(2680 * var(--m)); }

  /* the paper is only 2400px tall, so at this section height it would be upscaled
     into a blur — the texture is painted in CSS instead, as in Where to Stay */
  .story-bg { display: none; }

  .story {
    background-color: #e2dbce; /* sampled from paper-story.webp */
    background-image:
      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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.13'/%3E%3C/svg%3E");
    background-size: 180px 180px;
  }

  .story-photo {
    top: calc(96 * var(--m));
    width: calc(367 * var(--m));
    height: calc(551 * var(--m));
  }

  .story-copy { top: calc(690 * var(--m)); width: calc(346 * var(--m)); }

  .story-title { font-size: calc(60.4 * var(--m)); margin-bottom: calc(34 * var(--m)); }

  .story-body {
    font-size: calc(15.4 * var(--m));
    letter-spacing: calc(2.83 * var(--m));
    margin-bottom: calc(24 * var(--m));
  }

  /* ---- timeline: a row like desktop. Stacking it made the section 900 tall,
     which forced the aerial photo to crop ~3.6x; as a row it is 1.7x ---- */
  .timeline { height: calc(430 * var(--m)); }

  .timeline-bg {
    width: 100%;
    height: calc(430 * var(--m));
    object-fit: cover;
    object-position: center;
  }

  .timeline-title {
    left: 50%;
    top: calc(58 * var(--m));
    font-size: calc(46 * var(--m));
    width: max-content;
    text-align: center;
    line-height: 1.4;
  }

  .tl-item { width: calc(118 * var(--m)); }

  .tl-1 { left: calc(62 * var(--m));  top: calc(178 * var(--m)); }
  .tl-2 { left: calc(187 * var(--m)); top: calc(178 * var(--m)); }
  .tl-3 { left: calc(312 * var(--m)); top: calc(178 * var(--m)); }

  .tl-icon { width: calc(68 * var(--m)); height: calc(68 * var(--m)); }

  .tl-time {
    margin-top: calc(10 * var(--m));
    font-size: calc(15 * var(--m));
    letter-spacing: calc(1.1 * var(--m));
  }

  .tl-label {
    margin-top: calc(3 * var(--m));
    font-size: calc(13 * var(--m));
    letter-spacing: calc(0.9 * var(--m));
  }

  /* ---- details ----
     On phones the portrait paper had to be blown up ~2.5x to fill this tall
     section, which read as a zoomed blur. Mobile instead uses the paper's own
     colour with a generated grain, so it stays crisp at any height.
     Desktop keeps the real artwork. */
  .details { height: calc(1340 * var(--m)); }

  .details-bg { display: none; }

  .details {
    background-color: #9d9387;
    background-image:
      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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E"),
      linear-gradient(160deg, rgba(255,255,255,0.05), rgba(0,0,0,0.06));
    background-size: 180px 180px, 100% 100%;
  }

  .stay-title {
    left: 50%;
    top: calc(90 * var(--m));
    font-size: calc(51 * var(--m));
  }

  .stay-body {
    top: calc(200 * var(--m));
    font-size: calc(15 * var(--m));
    letter-spacing: calc(2 * var(--m));
    width: calc(340 * var(--m));
  }

  .hotel {
    position: absolute;
    left: 50% !important;
    display: flex;
  }

  /* taller cards now the names are larger — spaced so they can't collide */
  .hotel-1 { top: calc(400 * var(--m)); }
  .hotel-2 { top: calc(585 * var(--m)); }
  .hotel-3 { top: calc(770 * var(--m)); }

  .hotel { width: calc(300 * var(--m)); }

  .hotel-name {
    font-size: calc(18 * var(--m));
    letter-spacing: calc(3 * var(--m));
    min-height: 0;
    text-underline-offset: calc(7 * var(--m));
  }

  .hotel-min {
    margin-top: calc(16 * var(--m));
    font-size: calc(17 * var(--m));
    letter-spacing: calc(0.55 * var(--m));
  }

  .book {
    margin-top: calc(12 * var(--m));
    width: calc(160 * var(--m));
    height: calc(57 * var(--m));
  }

  .book span {
    font-size: calc(15.4 * var(--m));
    letter-spacing: calc(3.65 * var(--m));
    margin-right: calc(-3.65 * var(--m));
  }

  .dress-title {
    left: 50%;
    top: calc(1000 * var(--m));
    font-size: calc(46 * var(--m));
  }

  .dress-body {
    top: calc(1105 * var(--m));
    font-size: calc(15 * var(--m));
    letter-spacing: calc(2 * var(--m));
    width: calc(340 * var(--m));
  }

  /* ---- registry ----
     The doily's cream panel is 52% of the artwork and sits slightly right of its
     centre, so at 600 the copy had only 11 clearance on the left. Drawn 680 and
     nudged 11 left, the panel centres on screen at 354 wide. */
  .registry { height: calc(720 * var(--m)); }

  .registry-bg {
    width: 100%;
    height: calc(720 * var(--m));
    object-fit: cover;
    object-position: center;
  }

  .doily {
    left: 50%;
    transform: translateX(-50%);
    width: calc(720 * var(--m));
    height: calc(720 * var(--m));
  }

  /* the two-line "Registry & Wishing Well" title plus the wishing-well paragraph
     need more room than the old single-line block: the column is widened to 290
     (the cream panel is ~330 clear of the lace) and everything is tightened so
     the block ends above the panel's bottom edge (~610) */
  .registry-copy { top: calc(125 * var(--m)); width: calc(278 * var(--m)); }

  .registry-title { font-size: calc(50 * var(--m)); line-height: 1.12; margin-bottom: calc(18 * var(--m)); }

  .registry-body,
  .registry-mid,
  .registry-well,
  .registry-thanks {
    font-size: calc(13 * var(--m));
    letter-spacing: calc(1.5 * var(--m));
    margin-bottom: calc(12 * var(--m));
  }

  .registry-link { margin: calc(16 * var(--m)) auto 0; font-size: calc(15 * var(--m)); }

  .registry-bank { margin-top: calc(14 * var(--m)); font-size: calc(16 * var(--m)); }

  /* ---- faq ---- */
  .faq { height: auto; }

  .faq-bg {
    width: 100%;
    height: calc(1793 * var(--m));
    object-fit: cover;
    object-position: center top;
  }

  .faq { padding: calc(56 * var(--m)) 0 calc(84 * var(--m)); }

  .faq-title { font-size: calc(55.5 * var(--m)); margin-bottom: calc(46 * var(--m)); }

  .qa { width: calc(342 * var(--m)); }
  .qa-item { margin-bottom: calc(46 * var(--m)); }

  .qa-item dt {
    font-size: calc(16.5 * var(--m));
    letter-spacing: calc(4.16 * var(--m));
    line-height: 1.3;
    margin-bottom: calc(14 * var(--m));
    max-width: none;
  }

  .qa-item dd {
    font-size: calc(15 * var(--m));
    letter-spacing: calc(1.4 * var(--m));
  }

  /* ---- will you be joining us? ---- */
  .final { height: calc(560 * var(--m)); }

  .final-copy { top: calc(220 * var(--m)); width: calc(330 * var(--m)); }

  .final-title { font-size: calc(54 * var(--m)); margin-bottom: calc(26 * var(--m)); }

  .final-sub {
    font-size: calc(16 * var(--m));
    letter-spacing: calc(3.7 * var(--m));
    margin-bottom: calc(30 * var(--m));
  }

  .final-rsvp {
    margin: 0 auto calc(46 * var(--m));
    width: calc(164 * var(--m));
    height: calc(64 * var(--m));
  }

  .final-rsvp span {
    font-size: calc(16.5 * var(--m));
    letter-spacing: calc(4.1 * var(--m));
    margin-right: calc(-4.1 * var(--m));
  }

  .final-names { font-size: calc(44 * var(--m)); }

  .final-top {
    right: calc(24 * var(--m));
    top: calc(508 * var(--m));
    font-size: calc(11 * var(--m));
    letter-spacing: calc(4 * var(--m));
  }
}
