@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/ss4-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/ss4-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/ss4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/ss4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Greek, for the phrasebook and the stamp */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/ss4-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ============================================================
   Jordan & Kirsty — design tokens
   Every value here comes from the design handoff README.
   ============================================================ */
@font-face {
  font-family: 'Parisienne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/parisienne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Jordan & Kirsty — design tokens
   Redesign v2: matches the save-the-date card. Values come from
   the handoff's CHANGES.md (which overrides README.md).
   ============================================================ */
:root {
  --paper: #f8f5ee;
  --card: #fbf9f3;
  --input-fill: #fffefa;
  --ink: #1b2c4f;

  --navy: #24508f;
  --navy-hover: #1a3d72;
  --navy-press: #122d57;
  --navy-light: #a3b6d4;
  --navy-tint: #e8eef7;
  --navy-select: #d9e3f2;

  --cream: #efebe1;

  /* Champagne: soft warm surfaces and fine gilt lines. Navy stays the
     colour for text and buttons; gilt is for lines and dots only. */
  --champagne-soft: #f3eadb;
  --champagne: #e6d6b8;
  --gilt: #b6955f;
  --input-line: #c6cedb;
  --field-line: #7f8ba3; /* form field borders: 3.4:1 on the input fill */
  --rule: #dde2ea;
  --kicker: #4b6188;

  --text-2: #3a4866;
  --text-3: #46557a;
  --muted: #56627d;

  --script: 'Parisienne', cursive;

  /* Triple pinstripe from the card */
  --pinstripe: repeating-linear-gradient(90deg,
    var(--navy) 0 1.5px, transparent 1.5px 4.5px,
    var(--navy) 4.5px 6px, transparent 6px 9px,
    var(--navy) 9px 10.5px, transparent 10.5px 22px);
  --pinstripe-wide: repeating-linear-gradient(90deg,
    var(--navy) 0 1.5px, transparent 1.5px 5px,
    var(--navy) 5px 6.5px, transparent 6.5px 9.5px,
    var(--navy) 9.5px 11px, transparent 11px 26px);

  --pad: clamp(22px, 5.6vw, 72px);
  --section-gap: clamp(96px, 12vw, 160px);
  --arch: inset(0 round 2000px 2000px 0 0);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }
input, textarea, button, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
::selection { background: var(--champagne); }

img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--navy); color: var(--paper);
  border-radius: 2px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Shared helpers ------------------------------------------------ */
.amp { font-style: italic; color: var(--navy); }
.accent { color: var(--navy); }
.italic { font-style: italic; }
.script { font-family: var(--script); font-weight: 400; color: var(--navy); line-height: 1; }

/* Full-width pinstripe band at the very top and bottom of the page */
.edge-band {
  height: clamp(28px, 3vw, 40px);
  background: var(--pinstripe-wide);
}

/* Thin navy rule, as on the card */
.rule-navy { height: 1px; background: var(--navy); width: 56px; }

.section {
  padding: var(--section-gap) var(--pad) 0;
  scroll-margin-top: 8px;
}

/* Sections parked for later with the hidden attribute */
section[hidden] { display: none; }

/* Section numeral "01"–"05": italic navy numeral, then a short line */
.numeral {
  display: flex; align-items: center; gap: 14px;
  font-size: 16px; font-style: italic; color: var(--navy);
}
.numeral::after { content: ""; width: 40px; height: 1px; background: var(--gilt); }

/* Big display headings */
.display {
  font-size: clamp(52px, 8vw, 104px);
  line-height: .9;
  font-weight: 300;
  letter-spacing: -.04em;
}

.kicker {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--kicker);
}

/* Section header: numeral + display on the left, intro on the right */
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 48px;
  align-items: end;
}
.section-head__title { display: flex; flex-direction: column; gap: 12px; }
.section-head__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 460px;
  text-wrap: pretty;
}

/* ---------- header / nav ---------- */
.monogram {
  background: none; border: none; padding: 0;
  font-size: 26px; font-weight: 300; letter-spacing: -.05em;
  color: var(--ink); text-decoration: none; display: inline-block;
}
.monogram .amp { margin: 0 1px; }

.site-header {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px var(--pad);
}
.site-header .monogram { margin-right: auto; }

.nav-link {
  padding: 6px 0;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-link:hover { color: var(--navy); border-bottom-color: var(--navy-light); }

/* Desktop: solid navy pill. Mobile overrides below keep the outline pill. */
.rsvp-pill {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease;
}
.rsvp-pill:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: var(--paper); }

/* "click here to RSVP" doodle hanging under the desktop pill */
.rsvp-wrap { position: relative; display: inline-flex; }
.rsvp-nudge {
  position: absolute; z-index: 2;
  top: calc(100% + 2px); right: 34px;
  display: flex; align-items: flex-end; gap: 2px;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.rsvp-nudge__text {
  font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 26px; font-weight: 500; line-height: 1;
  /* Side/top padding keeps the slanted glyphs (the final P especially)
     inside the box: Safari clips ink that overhangs an animated layer.
     The negative margin cancels it so the spacing doesn't change. */
  padding: 3px 8px 4px 4px; margin: -3px -8px 0 -4px;
  transform: rotate(-4deg);
  animation: nudge-fade .6s 1s var(--ease-out) both;
}
.rsvp-nudge__arrow { width: 90px; height: 72px; overflow: visible; }
.rsvp-nudge__arrow path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: nudge-draw 1.1s .3s ease-in-out forwards;
}
.rsvp-nudge__arrow .rsvp-nudge__head { animation-duration: .25s; animation-delay: 1.35s; }
.rsvp-wrap:hover .rsvp-nudge__arrow,
.rsvp-nudge:hover .rsvp-nudge__arrow { animation: nudge-wiggle .6s ease-in-out; }
@keyframes nudge-draw { to { stroke-dashoffset: 0; } }
@keyframes nudge-fade { from { opacity: 0; transform: rotate(-4deg) translateY(4px); } }
@keyframes nudge-wiggle {
  30% { transform: translate(2px, -3px) rotate(3deg); }
  60% { transform: translate(-1px, 1px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-nudge__text, .rsvp-nudge__arrow path { animation: none; stroke-dashoffset: 0; }
  .rsvp-wrap:hover .rsvp-nudge__arrow, .rsvp-nudge:hover .rsvp-nudge__arrow { animation: none; }
}

/* Mobile header */
.site-header--mobile { display: none; justify-content: space-between; padding: 20px 22px; }
.site-header--mobile .monogram { font-size: 22px; margin-right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header--mobile .rsvp-pill {
  font-size: 14px; letter-spacing: 0; text-transform: none;
  padding: 9px 18px; min-height: 40px; display: flex; align-items: center;
  color: var(--navy); background: none; border-color: var(--navy-light);
}
.site-header--mobile .rsvp-pill:hover { background: var(--navy-tint); color: var(--navy); }
/* Smaller nudge on phones, tucked under the outline pill. The header gets
   extra bottom room so the note doesn't sit on the hero's first line. */
.site-header--mobile { padding-bottom: 52px; }
.site-header--mobile .rsvp-nudge { right: 22px; top: calc(100% + 1px); }
.site-header--mobile .rsvp-nudge__text { font-size: 21px; padding-bottom: 2px; }
.site-header--mobile .rsvp-nudge__arrow { width: 62px; height: 50px; }

.hamburger {
  background: none; border: none; width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; cursor: pointer; padding: 0;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); }

@media (max-width: 759.98px) {
  .site-header--desktop { display: none; }
  .site-header--mobile { display: flex; }
}

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: 20px 22px 32px;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__top .monogram { font-size: 22px; }
.menu__close {
  background: none; border: none; font-size: 15px; min-height: 44px;
  padding: 0 4px; color: var(--ink); cursor: pointer;
}
.menu__links { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.menu__links a {
  text-align: left; padding: 8px 0;
  font-size: 40px; font-weight: 300; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none;
}
.menu__links a.is-rsvp { font-style: italic; color: var(--navy); }
.menu__foot { margin-top: auto; font-size: 15px; color: var(--text-3); }

/* ---------- photos ---------- */
.photo {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(75, 97, 136, .10) 0 10px,
    rgba(75, 97, 136, 0) 10px 20px
  );
  display: flex; align-items: center; justify-content: center;
}
/* The striped placeholder is the default state. A photo that loads
   successfully fades in over it; one that's missing simply never does,
   so a slot with no file still looks deliberate rather than broken. */
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.photo.is-filled img { opacity: 1; }
.photo__label {
  position: relative;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--kicker);
  padding: 0 16px;
  text-align: center;
}
.photo.is-filled .photo__label { display: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(16px, 4vw, 48px) var(--pad) clamp(56px, 7vw, 96px);
  align-items: center;
}
.hero__text { padding-bottom: clamp(0px, 2vw, 24px); }
.hero__kicker {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(12px, 1.8vw, 22px);
}
.hero__kicker img { width: clamp(44px, 4.4vw, 60px); height: auto; }
.hero__kicker .script { font-size: clamp(26px, 2.8vw, 38px); }
.hero__name {
  font-size: clamp(80px, 13vw, 172px);
  line-height: .86;
  font-weight: 300;
  letter-spacing: -.045em;
}
.hero__name--second { padding-left: clamp(40px, 7.5vw, 96px); }

/* Card-style lockup: rule / date / venue / rule, then the two buttons */
.hero__lockup {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: clamp(36px, 4.8vw, 60px);
  padding-left: 4px;
  max-width: 520px;
}
.hero__date, .hero__venue {
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__date { color: var(--navy); }
.hero__venue { line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* The portrait as a print: cream border, deeper at the bottom, a slight
   tilt and a soft shadow, matching the gallery */
.hero__photo { position: relative; padding: 12px 8px 0 0; }
.hero__print.photo {
  height: auto;
  display: block;
  padding: clamp(10px, 1.1vw, 14px) clamp(10px, 1.1vw, 14px) clamp(36px, 4vw, 56px);
  background: #fffdf8;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(27, 44, 79, .08), 0 30px 50px -26px rgba(27, 44, 79, .45);
  rotate: 1.6deg;
}
.hero__print img {
  position: static;
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1080 / 810;
  object-fit: cover;
  background: var(--cream);
}
.hero__print .photo__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* Phones and small tablets: names, then the photo, then the date and buttons */
@media (max-width: 899.98px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero__kicker { order: 1; }
  .hero__name { order: 2; }
  .hero__photo { order: 3; margin: clamp(28px, 6vw, 44px) 4px 4px; padding: 0; }
  .hero__print.photo { rotate: 1.2deg; }
  .hero__lockup { order: 4; }
}

/* ---------- countdown ---------- */
/* Champagne band with a double gilt rule top and bottom: 1px line, 4px gap, 1px line */
.countdown {
  background: var(--champagne-soft);
  border-block: 1px solid var(--gilt);
  box-shadow:
    inset 0 4px 0 var(--champagne-soft), inset 0 5px 0 var(--gilt),
    inset 0 -4px 0 var(--champagne-soft), inset 0 -5px 0 var(--gilt);
  padding: clamp(36px, 5.2vw, 68px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px;
  align-items: center;
}
.countdown__board { justify-self: end; }
.countdown__lede { display: flex; flex-direction: column; gap: 10px; }
.countdown__title {
  font-size: clamp(24px, 3.1vw, 40px);
  font-weight: 300; font-style: italic;
  line-height: 1.1; letter-spacing: -.02em;
}
.countdown__sub { font-size: 16px; color: var(--text-3); }
/* Departures board: split-flap tiles for each digit */
.countdown__board { display: flex; flex-direction: column; gap: 14px; }
.countdown__board-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(182, 149, 95, .55);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
}
.countdown__clock {
  display: flex; flex-wrap: wrap; gap: 18px clamp(16px, 2.4vw, 32px);
}
.countdown__unit { display: flex; flex-direction: column; gap: 8px; }
.countdown__num {
  display: flex; gap: .09em;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1; font-weight: 400;
  font-variant-numeric: tabular-nums;
  perspective: 300px;
}
.flap {
  position: relative;
  display: inline-grid; place-items: center;
  width: .78em; height: 1.18em;
  border-radius: .09em;
  background: var(--card);
  color: var(--navy);
  font-weight: 300;
  box-shadow: inset 0 0 0 1px rgba(182, 149, 95, .55), 0 1px 2px rgba(27, 44, 79, .06), 0 6px 12px -8px rgba(27, 44, 79, .25);
  transform-origin: 50% 50%;
}
/* The split across the middle of each tile */
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(182, 149, 95, .45);
}
.flap.is-flipping { animation: flap-flip .32s var(--ease-out); }
@keyframes flap-flip {
  0% { transform: rotateX(-85deg); filter: brightness(.92); }
  100% { transform: none; filter: none; }
}
.countdown__label {
  font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-3);
}
@media (max-width: 899.98px) {
  .countdown { grid-template-columns: 1fr; text-align: center; }
  .countdown__board { justify-self: center; }
  .countdown__clock { justify-content: center; }
}
@media (max-width: 559.98px) {
  .countdown__clock { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 32px; }
  .countdown__num { font-size: 50px; }
  .countdown__board-head .board-ontime { display: none; }
}

/* ---------- intro: the welcome postcard ---------- */
/* The back of an airmail postcard: red-and-navy striped edge, message on
   the left, stamp, postmark and address lines on the right. */
.intro {
  --post-red: #b5443b;
  padding: clamp(80px, 10vw, 136px) var(--pad) 0;
}
.postcard {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(10px, 1.2vw, 14px);
  background: repeating-linear-gradient(135deg,
    var(--post-red) 0 18px, var(--card) 18px 28px,
    var(--navy) 28px 46px, var(--card) 46px 56px);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(27, 44, 79, .08), 0 24px 48px -20px rgba(27, 44, 79, .35);
  transform: rotate(-.6deg);
}
.postcard__card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 1px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.4vw, 60px);
  background: var(--card);
  border-radius: 2px;
}
.postcard__message { display: flex; flex-direction: column; gap: 28px; }
.postcard__divider { background: var(--input-line); margin: 12px 0; }

.intro__head { display: flex; flex-direction: column; gap: 20px; }
.intro h2 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: .98; font-weight: 300;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.intro__head img { width: clamp(110px, 11vw, 150px); height: auto; }
.intro__body { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.intro__body p { font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.intro__body .intro__lede { font-size: clamp(20px, 2vw, 23px); line-height: 1.45; color: var(--ink); }
.intro__body .intro__sign { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; font-style: italic; color: var(--text-2); }
.intro__sign .script { font-size: clamp(30px, 3vw, 38px); font-style: normal; }

/* Right half: franking at the top, address lines at the bottom */
.postcard__address { display: flex; flex-direction: column; gap: 28px; }
.postcard__franking { position: relative; display: flex; justify-content: flex-end; min-height: 136px; }

.stamp {
  position: relative; z-index: 0;
  width: 124px; padding: 7px;
  /* Perforated edge: a paper border punched with small holes */
  background: radial-gradient(circle, transparent 3.4px, #fffdf7 3.9px) -6px -6px / 12px 12px;
  filter: drop-shadow(0 1px 1.5px rgba(27, 44, 79, .22));
  transform: rotate(3deg);
}
.stamp__inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px;
  background: var(--navy-tint);
  outline: 1px solid var(--navy-light); outline-offset: -4px;
}
.stamp__inner img { width: 62px; height: auto; }
.stamp__country { font-size: 13px; letter-spacing: .2em; color: var(--navy); }
.stamp__value { font-size: 12px; letter-spacing: .08em; font-style: italic; color: var(--post-red); }

.postmark {
  position: absolute; z-index: 1;
  right: 34px; top: 10px;
  width: 230px; height: auto;
  color: var(--navy); opacity: .72;
  transform: rotate(-10deg);
  pointer-events: none;
}
.postmark text { fill: currentColor; font-family: inherit; }
.postmark__ring { font-size: 10.5px; letter-spacing: .14em; }
.postmark__date { font-size: 13px; letter-spacing: .1em; font-weight: 600; }

.postcard__airmail {
  align-self: flex-start;
  padding: 6px 12px 5px;
  border: 1.5px solid var(--post-red);
  border-radius: 2px;
  color: var(--post-red);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  transform: rotate(-2deg);
}

.postcard__lines { margin-top: auto; display: flex; flex-direction: column; }
.postcard__lines p {
  padding: 14px 0 4px;
  border-bottom: 1px solid var(--input-line);
  color: var(--navy);
}
.postcard__lines .script { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }
.postcard__lines .postcard__country {
  font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  padding-top: 18px; padding-bottom: 8px;
}

@media (max-width: 859.98px) {
  .postcard { transform: none; }
  .postcard__card { grid-template-columns: 1fr; }
  .postcard__divider { height: 1px; margin: 0; }
  /* On phones: stamp at the top, then the message, then the address */
  .postcard__address { display: contents; }
  .postcard__franking { order: -1; min-height: 112px; margin-bottom: -12px; }
  .postcard__message { order: 0; }
  .postcard__divider { order: 1; }
  .postcard__airmail { order: 2; justify-self: start; }
  .postcard__lines { order: 3; margin-top: -8px; }
  .postcard__lines .script { font-size: 24px; }
  .stamp { width: 92px; }
  .postmark { width: 190px; right: 28px; }
}

/* ---------- the big day: order of the day ---------- */
/* Times and events joined by a dotted leader, like an order of service */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px clamp(48px, 7vw, 112px);
  align-items: start;
  padding-top: clamp(56px, 8vw, 104px);
}
/* Order of the day, printed on a card with a double gold rule */
.order-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 56px) clamp(32px, 4vw, 48px);
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px var(--gilt), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--gilt),
    0 1px 2px rgba(27, 44, 79, .06), 0 20px 40px -24px rgba(27, 44, 79, .3);
}
@media (max-width: 559.98px) {
  /* Narrow card: time and event side by side, no dotted leader */
  .order-card { padding: 28px 20px 26px; }
  .order-card .order__list li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: baseline; }
  .order-card .order__time { min-width: 0; font-size: 25px; }
  .order-card .order__dots { display: none; }
  .order-card .order__event { text-align: left; font-size: 16px; }
}
.order-card__title {
  font-size: clamp(34px, 3.4vw, 44px);
  text-align: center;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.order__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.order__list li { display: flex; align-items: baseline; gap: 14px; }
.order__time {
  flex: 0 0 auto; min-width: 4.2ch;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300; letter-spacing: -.03em; line-height: 1;
}
.order__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1.5px dotted var(--gilt); transform: translateY(-.3em); }
.order__event { flex: 0 1 auto; font-size: clamp(17px, 1.7vw, 20px); text-align: right; }
.order__key .order__time, .order__key .order__event { color: var(--navy); }
.order__key .order__event { font-style: italic; }

.order__aside {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  border-left: 1px solid var(--rule);
  padding-left: clamp(28px, 3.4vw, 48px);
}
.order__aside img { width: 44px; height: auto; }
.order__script { font-size: clamp(32px, 3vw, 40px); }
.order__aside p:not(.script) { font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.order__aside .link-row { margin-top: 8px; }

@media (max-width: 859.98px) {
  .order { grid-template-columns: 1fr; }
  .order__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
}


/* ---------- travel & stay ---------- */
/* Two rows that zig-zag: journey | map, then photo | hotel details */
.journey, .stay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(48px, 7vw, 112px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
}
.journey__text, .stay__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.journey__text p, .stay__text p { font-size: 17px; line-height: 1.65; max-width: 520px; text-wrap: pretty; }
.travel__h {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1; font-weight: 300; letter-spacing: -.03em;
}
.journey__text .pass { width: 100%; }

/* Embedded Google map of the airport-to-hotel route */
.journey__map { margin: 0; }
.map {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  border: 0; border-radius: 4px; box-shadow: 0 0 0 1px var(--rule);
  background: var(--navy-tint);
}

/* Hotel photo against an offset pinstripe, with a luggage label stuck on */
.stay__photo { position: relative; margin: 0 18px 18px 0; }
.stay__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--pinstripe);
}
.stay__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 597 / 335; object-fit: cover; }
.luggage-label {
  position: absolute; right: -10px; bottom: -34px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 190px;
  padding: 16px 26px 14px;
  text-align: center;
  background: var(--champagne-soft);
  color: var(--navy);
  border-radius: 50% / 42%;
  box-shadow:
    inset 0 0 0 3px var(--champagne-soft), inset 0 0 0 4.5px var(--navy),
    inset 0 0 0 7px var(--champagne-soft), inset 0 0 0 8px var(--gilt),
    0 10px 20px -8px rgba(27, 44, 79, .35);
  transform: rotate(-7deg);
}
.luggage-label__top { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--kicker); }
.luggage-label__name { font-size: 21px; line-height: 1.05; font-weight: 400; letter-spacing: -.01em; }
.luggage-label__place { font-size: 13px; font-style: italic; color: var(--text-2); }

.stay__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 4px; }
.stay__text .stay__ref {
  margin-top: 8px; padding: 14px 18px;
  font-size: 15px; line-height: 1.6;
  background: var(--card);
  border-left: 2px solid var(--gilt);
  max-width: 520px;
}
.stay__ref strong { font-weight: 600; color: var(--navy); }
.stay__ref a { white-space: nowrap; }

/* Other hotels, as old hotel key fobs on brass rings */
.elsewhere {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.elsewhere__title { font-size: clamp(30px, 3vw, 38px); }
.fobs {
  list-style: none; margin: 0; padding: 0 0 0 14px;
  flex: 1 1 560px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 36px;
}
.fob { position: relative; --fob: var(--navy); --fob-ink: var(--paper); --fob-soft: rgba(248, 245, 238, .8); }
.fob--champagne { --fob: var(--champagne); --fob-ink: var(--ink); --fob-soft: var(--text-2); }
.fob--blush { --fob: #e3c6be; --fob-ink: var(--ink); --fob-soft: var(--text-2); }
.fob a {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 96px;
  padding: 16px 22px 16px 46px;
  background:
    radial-gradient(circle at 24px 50%, var(--paper) 7px, rgba(0, 0, 0, .18) 7.5px 8.5px, transparent 9px),
    var(--fob);
  color: var(--fob-ink);
  text-decoration: none;
  /* Long diamond, like an old hotel key fob */
  clip-path: polygon(0 50%, 14px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 14px 100%);
  transition: transform .2s var(--ease-out), filter .2s ease;
}
.fob a:hover { transform: translateY(-2px); filter: brightness(1.04); color: var(--fob-ink); }
.fob a:focus-visible { outline: none; filter: brightness(1.08); }
.fob:has(a:focus-visible) { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
.fob__name { font-size: 19px; line-height: 1.2; }
.fob__for { font-size: 14px; font-style: italic; color: var(--fob-soft); }
/* Brass ring threaded through the hole */
.fob__ring {
  position: absolute; left: -6px; top: calc(50% - 17px); z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--gilt);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 226, .5), 0 1px 2px rgba(90, 64, 26, .3);
  pointer-events: none;
}

@media (max-width: 899.98px) {
  .journey, .stay { grid-template-columns: 1fr; }
  .stay__photo { order: -1; max-width: 560px; }
  .luggage-label { right: 0; bottom: -36px; min-width: 0; padding: 12px 20px 10px; }
  .luggage-label__name { font-size: 17px; }
  .luggage-label__top { font-size: 10px; }
  .luggage-label__place { font-size: 12px; }
  .stay__text { padding-top: 24px; }
  .fobs { grid-template-columns: 1fr; max-width: 360px; flex-basis: 100%; }
}


/* Boarding pass: airport to hotel */
.pass {
  display: flex;
  max-width: 500px;
  margin-top: 8px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--rule), 0 16px 32px -20px rgba(27, 44, 79, .35);
  overflow: hidden;
}
.pass__main { flex: 1 1 auto; min-width: 0; }
.pass__band {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: var(--navy); color: var(--paper);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.pass__route {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 6px;
}
.pass__end { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pass__end--to { text-align: right; }
.pass__code {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1; font-weight: 300; letter-spacing: -.02em;
}
.pass__place { font-size: 13px; font-style: italic; color: var(--muted); }
.pass__line {
  flex: 1 1 40px; position: relative; align-self: flex-start; margin-top: clamp(14px, 1.6vw, 19px);
  border-top: 1.5px dotted var(--gilt);
}
.pass__line svg {
  position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  width: 22px; height: 22px; fill: var(--navy);
  background: var(--card); padding: 0 3px; box-sizing: content-box;
}
.pass__fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px; margin: 0;
  padding: 14px 18px 18px;
}
.pass__fields div { display: flex; flex-direction: column; gap: 3px; }
.pass__fields dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pass__fields dd { margin: 0; font-size: 18px; color: var(--navy); }
/* Tear-off stub with a perforated edge */
.pass__stub {
  flex: 0 0 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 16px 10px;
  background: var(--champagne-soft);
  border-left: 2px dashed var(--card);
  position: relative;
}
.pass__stub::before, .pass__stub::after {
  /* Half-circle notches where the stub tears off */
  content: ""; position: absolute; left: -10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.pass__stub::before { top: -9px; }
.pass__stub::after { bottom: -9px; }
.pass__stub-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pass__stub-date { font-size: 24px; font-weight: 300; letter-spacing: -.02em; color: var(--navy); }
.pass__barcode { width: 64px; height: 28px; margin-top: 6px; background: var(--pinstripe); opacity: .85; }
@media (max-width: 559.98px) {
  .pass { flex-direction: column; }
  .pass__stub { flex-basis: auto; flex-direction: row; gap: 14px; border-left: 0; border-top: 2px dashed var(--card); }
  .pass__stub::before, .pass__stub::after { top: -10px; bottom: auto; left: auto; }
  .pass__stub::before { left: -9px; }
  .pass__stub::after { right: -9px; }
  .pass__barcode { margin-top: 0; }
  .pass__fields { grid-template-columns: 1fr 1fr; }
}

/* Passport dates, set as an inked entry stamp */
.passport-stamp {
  align-self: flex-start;
  display: inline-flex; flex-direction: column; gap: 4px;
  margin: 6px 0 4px 4px;
  padding: 12px 16px 12px;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 6px;
  outline: 1px solid var(--navy); outline-offset: 3px;
  transform: rotate(-3deg);
  opacity: .9;
}
.passport-stamp__head { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.passport-stamp__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.passport-stamp__row strong { font-weight: 600; white-space: nowrap; }

/* ---------- good to know ---------- */
.extras__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px clamp(48px, 7vw, 112px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
}

/* Gift tag: champagne card with a notched end, punched hole and gold string */
.gift-tag {
  position: relative;
  max-width: 520px;
  margin-left: 48px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 14px 22px rgba(27, 44, 79, .14));
}
.gift-tag__body {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 40px) clamp(64px, 6vw, 80px);
  background: var(--champagne-soft);
  /* Notched tag end on the left */
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px), 0 34px);
  /* Punched hole: see-through, so the string threads through it */
  -webkit-mask: radial-gradient(circle at 26px 50%, transparent 8px, #000 8.5px);
          mask: radial-gradient(circle at 26px 50%, transparent 8px, #000 8.5px);
}
.gift-tag__body::before {
  /* Fine gold rule just inside the edge */
  content: ""; position: absolute; inset: 9px 9px 9px 48px;
  border: 1px solid rgba(182, 149, 95, .55);
  pointer-events: none;
}
.gift-tag__string {
  position: absolute; z-index: 1;
  left: -76px; top: calc(50% - 24px);
  width: 108px; height: 54px;
  color: var(--gilt);
  overflow: visible;
}
.gift-tag__title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05; font-weight: 300; letter-spacing: -.03em;
}
.gift-tag p { font-size: 17px; line-height: 1.65; text-wrap: pretty; color: var(--text-2); }

/* Contact: script title and three buttons */
.contact { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact__title { font-size: clamp(36px, 3.6vw, 46px); }
.contact p:not(.script) { font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.contact .contact__details { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

/* Greek phrasebook: a grid of tiles on hairlines, Greek first */
.phrasebook { padding-top: clamp(72px, 10vw, 128px); }
.phrasebook__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.phrasebook__title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1; font-weight: 300; letter-spacing: -.03em;
}
.phrasebook__head p { font-size: 17px; color: var(--muted); font-style: italic; }
.phrasebook__grid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.phrasebook__grid li {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(20px, 2.4vw, 30px) clamp(16px, 2vw, 26px);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  min-height: 150px;
}
.phrase__greek {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1; font-weight: 300; letter-spacing: -.01em;
  margin-bottom: auto; padding-bottom: 14px;
  overflow-wrap: break-word; hyphens: none;
}
.phrase__say { font-size: 17px; font-style: italic; color: var(--navy); }
.phrase__means { font-size: 14px; color: var(--muted); }
.phrasebook__grid .phrase--cheers { background: var(--champagne-soft); }

@media (max-width: 859.98px) {
  .phrasebook__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrasebook__grid li { min-height: 128px; }
  /* The last two phrases get a full row each, so the long Greek word never breaks */
  .phrasebook__grid li:nth-child(7), .phrasebook__grid li:nth-child(8) { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 559.98px) {
  .gift-tag { margin-left: 40px; transform: rotate(-1.2deg); }
  .gift-tag__body { padding-left: 54px; padding-right: 24px; }
  .gift-tag__body::before { left: 42px; }
  .gift-tag__string { left: -56px; width: 84px; }
}

/* Uppercase text link with a light rule underneath */
.text-link {
  align-self: flex-start;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--navy-light);
  padding-bottom: 4px;
  transition: border-color .15s ease;
}
.text-link:hover { border-bottom-color: var(--navy); }

/* Small links get an invisible hit area of at least 44px tall, so they're
   easy to tap on a phone. The visible styling doesn't change. */
.text-link, .monogram, .rsvp-pill { position: relative; }
.text-link::after, .monogram::after, .rsvp-pill::after {
  content: ""; position: absolute; inset: -11px -4px;
}
.monogram::after { inset: -7px -4px; }
.rsvp-pill::after { inset: -2px 0; }

/* Two text links side by side, wrapping on narrow screens */
.link-row { display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: baseline; }

/* Drawn route from the airport to the hotel */
.route {
  display: flex; align-items: center; gap: 14px;
  max-width: 500px;
  margin: 24px 0 4px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--kicker);
}
.route__stop { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.route__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--navy-light);
}
.route__stop img { width: 24px; height: auto; }
.route__line {
  position: relative; flex: 1; min-width: 48px;
  border-top: 1px dashed var(--navy-light);
}
.route__time {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  font-style: italic; letter-spacing: 0; text-transform: none; font-size: 14px;
  color: var(--navy); white-space: nowrap;
}
/* On phones the labels sit under their icons and wrap */
@media (max-width: 559.98px) {
  .route { gap: 10px; letter-spacing: .14em; font-size: 11px; align-items: flex-start; }
  .route__stop {
    flex-direction: column; gap: 6px;
    white-space: normal; text-align: center; max-width: 92px;
  }
  .route__stop img { width: 22px; }
  .route__dot { margin: 6px 0; }
  .route__line { margin-top: 10px; }
}




/* Numbered notes with a hairline above: travel tips and the wear notes */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 56px;
  padding-top: clamp(56px, 8vw, 104px);
}
.note {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.note p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
/* Live or worked-out detail under a travel tip: Crete time, the exchange rate, passport dates */
.note .note__live { font-size: 15px; line-height: 1.55; font-style: italic; color: var(--navy); }
.note__live strong { font-weight: 600; }
.note__source { display: block; margin-top: 4px; font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.note .text-link { margin-top: 4px; }
.options { list-style: none; margin: 0; padding: 0; max-width: 500px; }
.options li { padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.5; position: relative; }
.options li:last-child { border-bottom: 1px solid var(--rule); }
.options li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--navy); }
.stay__text .travel__aside { font-style: italic; color: var(--navy); }

/* ---------- what to wear ---------- */
/* Full-width champagne band. The gap above sits outside the band. */
.section.section--tint {
  margin-top: calc(var(--section-gap) * .7);
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--champagne-soft);
}
.section--tint .note { border-top-color: rgba(182, 149, 95, .45); }
.wear__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px 72px; align-items: end;
}
.wear__intro { display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.wear__code {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.2; font-style: italic; font-weight: 300; letter-spacing: -.01em;
  color: var(--navy);
}
.wear__intro p:not(.wear__code) { font-size: 17px; line-height: 1.65; text-wrap: pretty; }

.wear__board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 80px);
}

/* Fabric sample card: pinked swatches on a cream card */
.sample-card {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(27, 44, 79, .06), 0 22px 40px -26px rgba(27, 44, 79, .35);
  display: flex; flex-direction: column; gap: 22px;
}
.sample-card__title { font-size: clamp(30px, 2.8vw, 38px); }
.fabrics {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fabric { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.fabric:nth-child(odd) .fabric__cloth { transform: rotate(-3deg); }
.fabric:nth-child(even) .fabric__cloth { transform: rotate(2.5deg); }
.fabric__cloth {
  width: 100%; aspect-ratio: 4 / 5;
  /* A faint linen weave over the colour */
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px),
    var(--cloth);
  /* Pinking-shear zigzag along the top and bottom edges */
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 51% repeat-x;
          mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 51% repeat-x;
  filter: drop-shadow(0 2px 2px rgba(27, 44, 79, .12));
}
.fabric__name { font-size: 15px; line-height: 1.3; }
/* Blue-and-white stripe, struck through: the colours to avoid */
.fabric--avoid { position: relative; }
.fabric--avoid .fabric__cloth {
  --cloth: #fff;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 5px), var(--card) calc(50% - 5px) calc(50% - 2px),
      var(--ink) calc(50% - 2px) calc(50% + 2px),
      var(--card) calc(50% + 2px) calc(50% + 5px), transparent calc(50% + 5px)),
    repeating-linear-gradient(90deg, var(--navy) 0 7px, #fff 7px 14px);
  opacity: .9;
}
.fabric--avoid .fabric__name { font-style: italic; color: var(--navy); }
.sample-card figcaption { font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Packing list with real tick boxes */
.packing { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.packing__title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1; font-weight: 300; letter-spacing: -.03em;
}
.packing__list { list-style: none; margin: 0; padding: 0; }
.packing__list li { border-top: 1px solid rgba(182, 149, 95, .45); }
.packing__list li:last-child { border-bottom: 1px solid rgba(182, 149, 95, .45); }
.packing__list label {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; min-height: 44px; cursor: pointer;
}
.packing__list input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 26px; height: 26px; margin: 1px 0 0;
  border: 1.5px solid var(--navy); border-radius: 50%;
  background: var(--card) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color .2s ease;
}
.packing__list input:checked {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23f8f5ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.packing__list input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.packing__list span { display: flex; flex-direction: column; gap: 3px; font-size: 18px; line-height: 1.35; }
.packing__list small { font-size: 15px; font-style: italic; color: var(--muted); }
.packing__list input:checked + span .packing__what {
  color: var(--muted);
  text-decoration: line-through; text-decoration-color: rgba(36, 80, 143, .55);
}

/* Forecast strip */
.forecast {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(32px, 5vw, 72px);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid rgba(182, 149, 95, .45);
}
.forecast__title { font-size: clamp(30px, 2.8vw, 38px); }
.forecast__list {
  flex: 1 1 520px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px; margin: 0;
}
.forecast__list div {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center;
}
.forecast__list .wear__icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
.forecast__list dt { font-size: 14px; color: var(--muted); }
.forecast__list dd { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.forecast__note { flex-basis: 100%; font-size: 15px; font-style: italic; color: var(--muted); }

@media (max-width: 899.98px) {
  .wear__board { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  .forecast__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479.98px) {
  .fabrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 280px; }
}

.wear__icon {
  width: 46px; height: 46px; margin-bottom: -4px;
  fill: none; stroke: var(--navy); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.wear__note-head {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300; letter-spacing: -.03em;
}

/* ---------- gallery ---------- */
/* Masonry: CSS columns, each photo at its natural aspect ratio.
   The img width/height attributes reserve the space before it loads.
   Each photo is an instant print: cream border, deeper at the bottom,
   a soft shadow and a slight tilt that straightens when you hover. */
.masonry {
  columns: 2;
  column-gap: clamp(16px, 2.4vw, 32px);
  padding-top: clamp(48px, 6vw, 80px);
}
.masonry__item.photo {
  height: auto;
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(18px, 2.6vw, 34px);
  padding: clamp(8px, .9vw, 12px) clamp(8px, .9vw, 12px) clamp(30px, 3.4vw, 46px);
  background: #fffdf8;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(27, 44, 79, .08), 0 14px 26px -16px rgba(27, 44, 79, .38);
  rotate: -1.2deg;
  /* rotate and translate are separate from transform, so the scroll
     reveal (which animates transform) doesn't fight the tilt */
  transition: rotate .35s var(--ease-out), translate .35s var(--ease-out), box-shadow .35s ease;
}
.masonry__item:nth-child(3n+2) { rotate: .9deg; }
.masonry__item:nth-child(3n) { rotate: -.4deg; }
.masonry__item:nth-child(4n) { rotate: 1.5deg; }
.masonry__item:nth-child(5n) { rotate: -1.8deg; }
.masonry__item img {
  position: static;
  display: block;
  width: 100%; height: auto;
  background: var(--cream);
}
@media (min-width: 900px) { .masonry { columns: 3; } }
@media (hover: hover) {
  .masonry__item.is-filled:hover {
    rotate: 0deg; translate: 0 -6px;
    box-shadow: 0 2px 4px rgba(27, 44, 79, .08), 0 24px 36px -18px rgba(27, 44, 79, .45);
  }
}
.masonry__item.is-filled { cursor: zoom-in; }
.masonry__item:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; rotate: 0deg; }

/* Photo viewer: full-screen <dialog> opened from the gallery */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(14, 22, 40, .94);
  color: var(--paper);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lightbox::backdrop { background: rgba(14, 22, 40, .6); }
.lightbox__close {
  justify-self: end;
  min-height: 44px; padding: 12px var(--pad) 0;
  background: none; border: 0; color: inherit;
  font: inherit; font-size: 15px; cursor: pointer;
}
.lightbox__stage {
  margin: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 16px;
  touch-action: pan-y pinch-zoom;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; padding: 8px 16px 20px;
}
.lightbox__nav {
  width: 48px; height: 48px;
  border: 1px solid rgba(248, 245, 238, .35); border-radius: 50%;
  background: none; color: inherit;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__nav:hover { background: rgba(248, 245, 238, .1); border-color: rgba(248, 245, 238, .7); }
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.lightbox__count {
  min-width: 64px; text-align: center;
  font-size: 13px; letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}

.gallery__sign-off { padding-top: clamp(32px, 4vw, 48px); font-size: clamp(30px, 3.2vw, 40px); }

/* ---------- RSVP ---------- */
/* Styled as an invitation card: pinstripe frame around a cream card */
.rsvp__frame {
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--pinstripe);
  box-shadow: 0 2px 4px rgba(27, 44, 79, .08), 0 24px 60px rgba(27, 44, 79, .10);
}
.rsvp__panel {
  background: var(--card);
  padding: clamp(28px, 5.6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px 64px;
}
.rsvp__intro { display: flex; flex-direction: column; gap: 16px; }
.rsvp__intro h2 {
  font-size: clamp(52px, 6.4vw, 84px);
  line-height: .92; font-weight: 300; letter-spacing: -.04em;
}
.rsvp__note {
  margin-top: 8px;
  font-size: 17px; line-height: 1.6;
  color: var(--text-2); max-width: 400px;
}
.rsvp__shell { width: 64px; height: auto; margin-top: auto; padding-top: 24px; }

/* The reply card: a champagne card with a double gold rule, inside the
   invitation. The guest code, the form and the thank-you all sit on it. */
.rsvp__right {
  align-self: start;
  padding: clamp(28px, 3.6vw, 48px) clamp(22px, 3.4vw, 44px);
  background: var(--champagne-soft);
  box-shadow:
    inset 0 0 0 1px var(--gilt), inset 0 0 0 6px var(--champagne-soft), inset 0 0 0 7px var(--gilt),
    0 14px 30px -20px rgba(27, 44, 79, .35);
}

.rsvp__form { display: flex; flex-direction: column; gap: 24px; }
.field-stack { display: flex; flex-direction: column; gap: 24px; }
.field-stack[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > .field__legend { padding: 0; margin-bottom: 10px; }
.field > label, .field__legend {
  font-size: 15px; font-style: italic;
  color: var(--text-2);
}

.input, .textarea {
  font-size: 18px;
  padding: 10px 2px 8px;
  border: 0;
  border-bottom: 1.5px solid var(--kicker); /* 5:1 on the reply card */
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  min-height: 48px;
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.input:focus, .textarea:focus { outline: none; border-bottom-color: var(--navy); background: rgba(255, 254, 250, .6); }
.input:focus-visible, .textarea:focus-visible { box-shadow: 0 2px 0 var(--navy); }
.textarea { font-size: 17px; resize: vertical; min-height: 0; }
.input[type="date"] { font-size: 17px; padding: 10px 2px 8px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .75; }
.input.is-invalid { border-bottom-color: var(--navy); border-bottom-width: 2.5px; }

.input--ref { letter-spacing: .04em; }

.field__error, .field__help {
  font-size: 14px; font-style: italic; color: var(--navy-hover);
}
.field__error[hidden] { display: none; }

/* The rest of the party: one small card per extra person */
.party__list { display: flex; flex-direction: column; gap: 12px; }
.party__list:empty { display: none; }
.party__list:not(:empty) + div { margin-top: 14px; }
.party-member {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  border: 1px solid rgba(182, 149, 95, .5);
  border-radius: 2px;
  background: var(--card);
}
.party-member .field[hidden] { display: none; }
@media (max-width: 419.98px) {
  .party-member { padding: 16px; }
}
.party-member__remove { align-self: flex-start; font-size: 14px; }
.link-button.party__add { text-decoration: none; border-bottom: 1px solid var(--navy-light); padding-bottom: 2px; }
.link-button.party__add:hover { border-bottom-color: var(--navy); }
.party__add[hidden] { display: none; }

.date-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

/* Pill toggles — radio inputs styled to match the design exactly */
.toggle-group {
  display: flex; flex-wrap: wrap; gap: 10px;
  border: 0; padding: 0; margin: 0;
}
.toggle-group { gap: 4px 28px; }
.toggle {
  font-size: 18px;
  padding: 8px 2px;
  min-height: 44px;
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: color .15s ease;
}
.toggle::before {
  content: ""; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  transition: background .15s ease;
}
.toggle--sm { font-size: 17px; }
.toggle-group input:checked + .toggle { color: var(--navy); font-style: italic; }
.toggle-group input:checked + .toggle::before {
  background: radial-gradient(circle, var(--navy) 0 5.5px, transparent 6px);
}
.toggle-group input:focus-visible + .toggle {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 18px 40px;
  min-height: 52px;
  border: 1px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: var(--paper);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: var(--paper); }
.btn:active { background: var(--navy-press); border-color: var(--navy-press); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { letter-spacing: .2em; padding: 15px 30px; min-height: 48px; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy-light); padding-inline: 26px; }
.btn--outline:hover { background: var(--navy-tint); border-color: var(--navy-light); color: var(--navy); }
/* "Go to RSVP": the plain sentence-case pill from the reference */
.btn--plain { font-size: 16px; letter-spacing: 0; text-transform: none; padding: 14px 30px; min-height: 0; }

.link-button {
  background: none; border: none; padding: 0;
  cursor: pointer; font-size: 16px;
  color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
}

.form-status { font-size: 15px; font-style: italic; color: var(--navy-hover); }
.form-status[hidden] { display: none; }

/* Success state */
.rsvp__success { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.rsvp__success img { width: 120px; height: auto; }
.rsvp__success[hidden] { display: none; }
.rsvp__success-title {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1; font-weight: 300; letter-spacing: -.035em;
  text-wrap: balance;
}
.rsvp__success p { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 460px; text-wrap: pretty; }

/* Guest-code gate */
.gate { display: flex; flex-direction: column; gap: 20px; justify-content: center; max-width: 420px; }
.gate[hidden] { display: none; }
.gate__title {
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.1; font-weight: 300; letter-spacing: -.03em;
}
.gate__body { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.gate__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gate__row .input { flex: 1 1 200px; width: auto; min-width: 0; letter-spacing: .04em; }

.rsvp__form[hidden] { display: none; }

/* ---------- footer ---------- */
/* Centred, like the bottom of the save-the-date card */
.site-footer {
  margin-top: var(--section-gap);
  padding: clamp(64px, 8vw, 104px) var(--pad) clamp(48px, 6vw, 80px);
  background: var(--champagne-soft);
  border-top: 1px solid var(--gilt);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 18px;
}
.site-footer__shell { width: clamp(56px, 5vw, 72px); height: auto; }
.site-footer__names {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-footer__names .amp { text-transform: none; letter-spacing: 0; font-weight: 300; }
.rule-navy--wide { width: 72px; }
.site-footer__date {
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--navy);
}
.site-footer__line { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; }
.site-footer__wave { width: 120px; height: auto; margin-top: 4px; }

/* ---------- motion ---------- */
/* Blocks marked data-reveal fade up once as they scroll into view
   (see setupReveal in main.js). main.js adds .reveal-ready only when
   motion is allowed, so with reduced motion or no JavaScript
   everything is simply visible. */
.reveal-ready [data-reveal]:not(.is-revealed) { opacity: 0; }
