/* Robs & Jon · wedding site
   Burgundy cotton paper, cream ink, one script accent. Mobile first. */

:root {
  --burg: #6b2236;
  --burg-deep: #4d1323;
  --cream: #f4eadf;
  --cream-soft: rgba(244, 234, 223, .92);
  --rose: #dfb7b3;
  --olive: #6f7550;
  --ink: #4a1424;
  --ink-soft: rgba(74, 20, 36, .9);
  --line: rgba(244, 234, 223, .4);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", "Apple Chancery", cursive;
  --bar: 56px;
  --gut: 22px;
}

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

html {
  font-size: 20px; /* every rem on the page is measured from this */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cream);
  background: var(--burg) url("img/paper-burgundy.jpg") 0 0 / 256px 256px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The sheet is lit from above and falls off at the edges, so it reads as paper, not as a flat fill. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 226, 214, .13), transparent 62%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(30, 4, 12, .34) 100%);
}

main, .foot { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* Ink pressed into the paper */

.caps, .label, .hero__meta, .links a, .drawer a, .btn, .float, .bar__rsvp, .card__tag, .foot__line {
  text-transform: uppercase;
  letter-spacing: .2em;
}

.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.dot { padding: 0 .35em; }
.center { text-align: center; }
.soft { color: var(--cream-soft); }

.label {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--rose);
}

/* ---------- shiny text: a band of light sweeping across foil-stamped letters ---------- */

.shine {
  --shine-base: #efe3d6;   /* cream, the letters at rest */
  --shine-light: #b4687a;  /* a cabernet glint, close to the paper, so the passing light reads clearly */
  color: var(--shine-base);
  background-image: linear-gradient(115deg, var(--shine-base) 0%, var(--shine-base) 40%, var(--shine-light) 50%, var(--shine-base) 60%, var(--shine-base) 100%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: shine 3.6s linear infinite;
}
.hero__the .script.shine { display: inline-block; padding: .45em .6em; margin: -.31em -.6em -.39em; }
.hero__names.shine { padding-bottom: .12em; }
/* The gradient is three times the width of the word and never leaves it uncovered: the band enters from the left and exits right. */
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .shine { animation: none; background-position: 100% 0; } }

/* ---------- top bar (phone and tablet) ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--bar);
  padding: 0 6px 0 4px;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  background: var(--burg) url("img/paper-burgundy.jpg") 0 0 / 256px 256px;
  box-shadow: 0 1px 0 rgba(244, 234, 223, .14), 0 6px 18px rgba(30, 4, 12, .28);
}

.bar__menu {
  width: 52px; height: 52px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--cream);
}
.bar__menu span { display: block; width: 26px; height: 1.5px; background: currentColor; }

.bar__mono, .foot__mono {
  font-family: "Cinzel", var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.bar__mono i, .foot__mono i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.12em;
  line-height: 0;
  margin: 0 .1em 0 .04em;
  color: var(--cream);
}
/* This J hangs below the line by design: bring its foot up to sit level with the R. */
.bar__mono b, .foot__mono b { display: inline-block; font-weight: 400; transform-origin: 50% 12%; transform: scaleY(.87); }

.bar__rsvp {
  justify-self: end;
  margin-right: 6px;
  padding: 10px 12px 9px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--ink);
  background: #f6efe4 url("img/paper-cream.jpg") 0 0 / 256px 256px;
  border-radius: 2px;
}

.drawer {
  position: fixed;
  inset: var(--bar) 0 0 0;
  z-index: 29;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
  overflow: hidden;
  padding-bottom: 170px;
  background: var(--burg-deep) url("img/paper-burgundy.jpg") 0 0 / 256px 256px;
}
.drawer[hidden] { display: none; }
.drawer a { font-size: 1rem; font-weight: 700; padding: 16px 24px; }
.drawer__sign {
  position: absolute; left: 0; right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  text-align: center; padding: 0 var(--gut);
}
.drawer__yes { font-size: 1.25rem; font-weight: 600; }
.drawer__date { font-size: 1rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-top: 6px; }
.drawer__from { font-size: 1.15rem; font-weight: 700; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; margin-top: 18px; }
.drawer__from .script { display: block; font-size: 2.5rem; line-height: 1; margin-bottom: 2px; padding: 0 .3em; }
@media (max-height: 640px) { .drawer { justify-content: flex-start; padding-top: 12px; } .drawer a { padding: 10px 24px; } }

/* ---------- hero ---------- */

.hero { display: flex; flex-direction: column; padding-top: var(--bar); }

.hero__photo { order: 1; margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 2000 / 1589; object-fit: cover; }

.hero__title { order: 2; text-align: center; padding: 46px var(--gut) 40px; }

.hero__the { display: flex; flex-direction: column; align-items: center; }
.hero__the .caps { font-size: 1.2rem; letter-spacing: .5em; padding-left: .5em; font-weight: 700; }
.hero__the .script {
  font-size: clamp(5.6rem, 31vw, 8.6rem);
  line-height: .78;
  margin: .14em 0 .06em;
  padding: 0 .1em;
  white-space: nowrap;
}

.hero__names {
  margin-top: 34px;
  font-size: clamp(2rem, 12vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: .13em;
  padding-left: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__names .amp { font-size: .86em; }

.hero__full { margin-top: 16px; font-size: .86rem; font-weight: 700; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: var(--rose); }
.hero__full span { display: block; white-space: nowrap; }
.hero__full i { font-style: normal; padding-right: .2em; }
.hero__meta { margin-top: 20px; font-size: 1.15rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; }
.hero__date span { display: block; }
.hero__date .dot { display: none; }
.hero__count { margin-top: 10px; font-size: 1.05rem; color: var(--rose); min-height: 1.4em; }

.links { display: none; }

/* ---------- the essentials ---------- */

.glance {
  margin: 0 var(--gut);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.glance__item { padding: 30px 0; }
.glance__item + .glance__item { border-top: 1px solid var(--line); }
.glance__big { font-size: 1.5rem; font-weight: 700; text-wrap: balance; line-height: 1.25; margin: 8px 0 4px; }
.glance .soft { text-wrap: balance; }
.sched { display: inline-grid; gap: 8px; margin: 14px auto 12px; text-align: left; font-size: 1.2rem; }
.sched div { display: grid; grid-template-columns: 4.6em auto; column-gap: 10px; align-items: baseline; }
.sched dt { font-weight: 700; color: var(--rose); white-space: nowrap; }
.sched dd { margin: 0; font-weight: 700; white-space: nowrap; }
.glance a { color: var(--rose); font-weight: 700; letter-spacing: .04em; }

/* ---------- welcome note ---------- */

.note { text-align: center; padding: 64px var(--gut) 12px; max-width: 900px; margin: 0 auto; }
.script--line { font-size: clamp(2.2rem, 11.4vw, 3.4rem); line-height: 1; margin-bottom: 18px; white-space: nowrap; }
.note__text { font-size: 1.4rem; line-height: 1.4; color: var(--cream-soft); text-wrap: balance; }

/* ---------- sections ---------- */

.block { text-align: center; padding: 72px var(--gut) 0; max-width: 1080px; margin: 0 auto; }

.block h2, .rsvp h2 {
  font-size: clamp(1.4rem, 7.6vw, 3rem);
  letter-spacing: .06em;
  padding-left: .06em;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.lead { font-size: 1.3rem; color: var(--cream-soft); text-wrap: balance; }

address { font-style: normal; font-size: 1.45rem; font-weight: 700; line-height: 1.4; margin: 22px 0 24px; }

.btn {
  display: inline-block;
  min-height: 52px;
  padding: 16px 30px;
  font: 700 .9rem/1.3 var(--serif);
  letter-spacing: .14em;
  white-space: nowrap;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--cream); color: var(--ink); }

.space { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
.space img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.space img:first-child { grid-column: 1 / -1; }

.cards { display: grid; gap: 14px; margin: 26px 0 24px; text-align: center; }
.block > .soft { font-size: 1.15rem; }

/* Minimal frame: one thin rule with a slight scooped corner. */
.card {
  border: 24px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg width='72' height='72' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M9,1H63A8,8 0 0 0 71,9V63A8,8 0 0 0 63,71H9A8,8 0 0 0 1,63V9A8,8 0 0 0 9,1Z' fill='rgba(40,6,16,.22)' stroke='%23f4eadf' stroke-opacity='.5' stroke-width='1'/%3E%3C/svg%3E") 24 fill / 24px stretch;
  padding: 14px 12px 16px;
}
.card h3 { font-size: 1.7rem; font-weight: 700; letter-spacing: .04em; line-height: 1.25; }
.card p { color: var(--cream-soft); text-wrap: balance; }
.card__soon { font-size: 1.2rem; font-weight: 700; color: var(--rose) !important; margin: 6px 0 12px; }
.card__tag { font-size: .95rem; font-weight: 700; letter-spacing: .24em; color: var(--rose) !important; margin-bottom: 10px; }
.card h3 + p { margin-top: 12px; }
.card__soon + p { margin-top: 0; }
.code { font-size: .7em; font-weight: 700; letter-spacing: .14em; color: var(--rose); padding-left: .3em; }

/* ---------- photos: morph slider ---------- */

.morph { margin: 28px auto 0; max-width: 760px; outline: 0; text-shadow: none; }
.morph__stage {
  position: relative;
  height: min(620px, 118vw);
  border-radius: 16px;
  overflow: hidden;
  background: #05060a;
  box-shadow: 0 2px 4px rgba(30, 4, 12, .3), 0 22px 44px rgba(30, 4, 12, .4);
}
.morph:focus-visible .morph__stage { outline: 2px solid var(--cream); outline-offset: 4px; }
.morph__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.morph__src img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; }
.morph__src img.is-on { opacity: 1; }
.morph--gl .morph__src { visibility: hidden; }
.morph__shade { position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(5, 6, 10, .78), rgba(5, 6, 10, 0)); pointer-events: none; }
.morph__cap {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; color: #fff; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.morph__nav {
  position: absolute; top: 50%; margin-top: -24px;
  width: 48px; height: 48px; display: grid; place-content: center;
  color: #fff; background: rgba(5, 6, 10, .42); border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  cursor: pointer; padding: 0; transition: background-color .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.morph__nav:hover { background: rgba(5, 6, 10, .7); }
.morph__nav:disabled { opacity: .35; cursor: default; }
.morph__nav--prev { left: 12px; }
.morph__nav--next { right: 12px; }
.morph__dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.morph__dot { width: 20px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.morph__dot::after { content: ""; position: absolute; left: 3px; right: 3px; top: 15px; height: 2px; background: var(--line); transition: background-color .2s; }
.morph__dot.is-on::after { background: var(--cream); }

/* ---------- RSVP: a cream card laid on the burgundy sheet ---------- */

.rsvp { padding: 84px 14px 0; }

.invite {
  max-width: 600px;
  margin: 0 auto;
  padding: 44px 22px 40px;
  text-align: center;
  color: var(--ink);
  background: #f6efe4 url("img/paper-cream.jpg") 0 0 / 256px 256px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 2px 4px rgba(30, 4, 12, .3), 0 22px 44px rgba(30, 4, 12, .38);
}


.script--ink { font-size: clamp(2.2rem, 13vw, 3.3rem); line-height: .9; color: var(--burg); }
.rsvp h2 { margin: 6px 0 12px; color: var(--ink); }
.invite__lead { color: var(--ink-soft); text-wrap: balance; max-width: 30em; margin: 0 auto 30px; }
.invite__lead strong { font-weight: 700; color: var(--ink); }

form { text-align: left; }
.field { margin-bottom: 20px; }

label, legend {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  padding: 0;
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font: 700 1.2rem/1 var(--serif);
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(74, 20, 36, .55);
  border-radius: 2px;
  appearance: none;
}
input::placeholder { color: rgba(74, 20, 36, .45); font-weight: 500; }
input:focus-visible { outline: 2px solid var(--burg); outline-offset: 1px; border-color: var(--burg); }
.field--bad input { border-color: #a3261f; background: rgba(163, 38, 31, .06); }

.hint { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

.choice { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.choice legend { grid-column: 1 / -1; }
.choice--stack { grid-template-columns: 1fr; }
.choice label { margin: 0; letter-spacing: 0; text-transform: none; font-size: 1.16rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 10px 12px; text-align: center; line-height: 1.2;
  border: 1.5px solid rgba(74, 20, 36, .55); border-radius: 2px;
  background: rgba(255, 255, 255, .55);
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice input:checked + span { background: var(--burg); border-color: var(--burg); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--burg); outline-offset: 2px; }
.choice--bad span { border-color: #a3261f; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__error { color: #8f1f19; font-size: 1.05rem; margin: 0 0 16px; text-align: center; }

.btn--ink { display: block; width: 100%; color: var(--cream); background: var(--burg); border-color: var(--burg); font-size: .84rem; letter-spacing: .08em; padding-left: 8px; padding-right: 8px; min-height: 64px; }
.btn--ink:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ink[disabled] { opacity: .6; cursor: default; }

.thanks { padding: 10px 0 6px; outline: 0; }
.thanks__text { font-size: 1.2rem; font-weight: 600; color: var(--ink); text-wrap: balance; margin-top: 14px; }

/* ---------- footer ---------- */

.foot { text-align: center; padding: 84px var(--gut) 120px; }
.foot__mono { font-size: 2.3rem; }
.foot__line { font-size: 1rem; font-weight: 700; letter-spacing: .2em; color: var(--cream-soft); margin-top: 10px; }

/* ---------- floating RSVP (phone) ---------- */

.float {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  padding: 15px 24px;
  font: 700 .84rem/1 var(--serif);
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--ink);
  background: #f6efe4 url("img/paper-cream.jpg") 0 0 / 256px 256px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(30, 4, 12, .35), 0 12px 28px rgba(30, 4, 12, .45);
  transition: opacity .25s, visibility .25s;
}
.float.is-off { opacity: 0; visibility: hidden; }

/* ---------- tablet and desktop ---------- */

@media (min-width: 720px) {
  .glance { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; }
  .glance__item { padding: 34px 20px; }
  .glance__item + .glance__item { border-top: 0; border-left: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .space { gap: 12px; }
  .invite { padding: 60px 64px 56px; }
  .block { padding-top: 96px; }
  .rsvp { padding-top: 108px; }
}

@media (min-width: 960px) {
  html { font-size: 22px; }
  html { scroll-padding-top: 24px; }
  .bar, .drawer, .float { display: none !important; }

  .hero { padding-top: 0; }
  .hero__title { order: 1; padding: 84px 24px 0; }
  .hero__photo { order: 2; width: min(1240px, calc(100% - 96px)); margin: 0 auto; }

  .hero__the { flex-direction: row; justify-content: center; align-items: center; gap: 6px; }
  .hero__the .caps { font-size: 1.5rem; letter-spacing: .4em; font-weight: 700; }
  .hero__the .script { font-size: 9.5rem; line-height: .9; }
  .hero__the .script.shine { margin: -.45em -.5em -.45em -.55em; }
  .hero__names { font-size: 4.4rem; margin-top: 30px; letter-spacing: .12em; }
  .hero__full { font-size: 1rem; margin-top: 20px; }
  .hero__full span { display: inline; }
  .hero__meta { font-size: 1.35rem; margin-top: 24px; }
  .hero__date span { display: inline; }
  .hero__date .dot { display: inline; }
  .hero__count { font-size: 1.15rem; }

  .links { display: flex; justify-content: center; gap: 30px; margin: 56px 0 34px; }
  .links a { font-size: .8rem; font-weight: 700; letter-spacing: .14em; padding: 8px 0; color: var(--cream-soft); transition: color .2s; }
  .links a:hover { color: var(--cream); }

  .glance { margin-top: 72px; }
  .space { grid-template-columns: repeat(3, 1fr); }
  .space img:first-child { grid-column: auto; }
  .foot { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ----- Blur-in motion: content arrives out of a soft blur, on load and while scrolling ----- */
.js .rv { opacity: 0; filter: blur(4px); transform: translateY(12px); transition: opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, filter, transform; }
/* The header text keeps the deep, slow blur. */
.js .hero .rv { filter: blur(18px); transform: translateY(18px); transition-duration: 1.3s; }
.js .rv.in, .js .hero .rv.in { opacity: 1; filter: blur(0); transform: none; }
.js .rv.done { filter: none; will-change: auto; transition: none; }

/* A band of progressive blur at the bottom edge: the page rises out of it. */
.edgeblur { position: fixed; left: 0; right: 0; bottom: 0; height: 110px; z-index: 5; pointer-events: none; }
.edgeblur i { position: absolute; inset: 0; }
.edgeblur i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
.edgeblur i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 60%); mask-image: linear-gradient(to bottom, transparent 30%, #000 60%); }
.edgeblur i:nth-child(3) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 85%); mask-image: linear-gradient(to bottom, transparent 55%, #000 85%); }
.edgeblur i:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); }
.edgeblur.is-off { opacity: 0; transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; filter: none; transform: none; transition: none; } }

/* ----- Attire: dress code and palette ----- */
.attire__code { font-size: clamp(1.9rem, 7.4vw, 2.7rem); font-weight: 700; letter-spacing: .06em; line-height: 1.15; margin: 18px 0 0; color: var(--cream); white-space: nowrap; }
.attire__sub { margin-top: 34px; }
.swatches { list-style: none; padding: 0 7%; margin: 18px auto 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; max-width: 700px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* Overlapping circles: each one crosses into its neighbours. */
.swatches i { display: block; box-sizing: border-box; width: 126%; margin: 0 -13%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(244,234,223,.6); }
.swatches span { font-size: clamp(.72rem, 3.3vw, 1.05rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }

#attire .card h3 { font-size: clamp(1.2rem, 5.4vw, 1.7rem); white-space: nowrap; letter-spacing: .02em; }
.attire__note { max-width: 30em; margin: 0 auto 18px; font-size: 1.2rem; font-weight: 600; color: var(--cream); text-wrap: balance; }
.swatches__names { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin: 0 auto 22px; max-width: 24em; text-wrap: balance; }
.swatches__names b { color: var(--rose); font-weight: 700; padding: 0 .15em; }
.swatches--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; max-width: 520px; padding: 0 9%; }
@media (min-width: 700px) { .swatches--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 860px; padding: 0 5%; } }
.cards--one { max-width: 520px; margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, 1fr) !important; }
.ent__name { font-size: 2.4rem !important; letter-spacing: .14em !important; text-transform: uppercase; }
.ent__cta { margin-top: 18px; }
.ent__cta a { color: var(--rose); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-decoration: none; }

/* ----- Vintage record: tap to play Robsy ----- */
.disk { position: relative; display: block; width: min(270px, 68vw); aspect-ratio: 1; margin: 22px auto 14px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 10px 26px rgba(20,2,8,.5); }
.disk__plate { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 0 34.5%, rgba(255,255,255,.06) 34.6% 34.9%, transparent 35% 61%, rgba(255,255,255,.05) 61.1% 61.4%, transparent 61.5% 82%, rgba(255,255,255,.05) 82.1% 82.4%, transparent 82.5%),
    repeating-radial-gradient(circle, #0f0c0c 0 1px, #221c1c 1px 2.2px);
  border: 2px solid #050404; box-sizing: border-box;
  animation: disk-spin 1.8s linear infinite; animation-play-state: paused; }
.disk.is-playing .disk__plate { animation-play-state: running; }
.disk__label { width: 36%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12%;
  background: radial-gradient(circle, #1a1010 0 5%, #e9dcc3 5.6% 8.5%, #7b2639 9% 88%, #e9dcc3 88.6% 92%, #7b2639 92.6%);
  color: #f4eadf; box-shadow: 0 0 0 3px #0c0909; padding-bottom: 0; }
.disk { font-family: inherit; }
.disk__label b { font-size: clamp(.62rem, 2.9vw, .8rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: -34%; }
.disk__label i { font-style: normal; font-size: clamp(.42rem, 1.9vw, .52rem); font-weight: 700; letter-spacing: .22em; color: #e9dcc3; margin-bottom: -34%; }
/* The light stays still while the record turns. */
.disk::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 35deg, transparent 0 8%, rgba(255,255,255,.16) 13%, transparent 19% 50%, rgba(255,255,255,.11) 61%, transparent 68% 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 19%, #000 19.5%); mask-image: radial-gradient(circle, transparent 0 19%, #000 19.5%); }
.disk:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }
@keyframes disk-spin { to { transform: rotate(360deg); } }
.disk__hint { font-size: 1.15rem; font-weight: 700; color: var(--cream) !important; margin: 0 0 16px; }
.disk__player { max-width: 420px; margin: 0 auto; border-radius: 12px; overflow: hidden; min-height: 80px; }
.disk__player iframe { display: block; width: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .disk__plate { animation: none; } }

/* ----- Vintage turntable around the record ----- */
.deck { width: min(380px, 100%); margin: 22px auto 16px; padding: 7.5%; box-sizing: border-box; border-radius: 5px;
  background:
    repeating-linear-gradient(91deg, rgba(40,18,6,.22) 0 1px, transparent 1px 5px, rgba(255,220,170,.06) 5px 6px, transparent 6px 13px),
    repeating-linear-gradient(88deg, transparent 0 22px, rgba(40,18,6,.14) 22px 24px, transparent 24px 61px),
    linear-gradient(180deg, #4e2f1c, #3c2314 45%, #2c180d);
  box-shadow: 0 14px 30px rgba(20,2,8,.5), inset 0 1px 0 rgba(255,225,185,.16), inset 0 -2px 0 rgba(10,4,1,.55), inset 0 0 0 1px rgba(40,18,6,.5); }
.deck__top { position: relative; aspect-ratio: 1.2; border-radius: 3px; background: linear-gradient(160deg, #1d1818, #110e0e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px rgba(30,12,4,.55), 0 2px 5px rgba(0,0,0,.5); }
.deck .disk { position: absolute; left: 4%; top: 50%; width: 76%; margin: 0; transform: translateY(-50%); box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.deck__arm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; filter: drop-shadow(1.5px 3px 2px rgba(0,0,0,.55)); }
.deck__armg { transform-box: view-box; transform-origin: 104px 16px; transform: rotate(2deg); transition: transform 1.1s cubic-bezier(.3,.7,.2,1); }
.deck.is-playing .deck__armg { transform: rotate(27deg); }
@media (prefers-reduced-motion: reduce) { .deck__armg { transition: none; } }

/* R&J on the record label */
.disk__label { gap: 0; }
.disk__label .disk__mono { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; font-size: clamp(.85rem, 4vw, 1.1rem); letter-spacing: .02em; line-height: 1; color: #f4eadf; margin: 0; text-decoration: none; }
/* Minimal social icons */
.socials { display: flex; justify-content: center; gap: 22px; margin: 16px 0 2px; }
.socials a { display: inline-flex; width: 34px; height: 34px; color: var(--cream); }
.socials svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover, .socials a:focus-visible { color: var(--rose); }
.ent__cta a:hover { color: var(--cream); }
.disk__label .disk__mono i { font-size: 1.12em; font-style: italic; letter-spacing: 0; color: #f4eadf; margin: 0 .1em 0 .04em; }
.disk__label .disk__mono b { margin: 0; font-size: 1em; letter-spacing: 0; text-transform: none; }
.disk__label .disk__mono em { font-style: normal; justify-self: end; }
.disk__label .disk__mono b { justify-self: start; }
.disk__label .disk__mono i { margin: 0 .12em; }

/* ----- Our own song list: hover is a light tint, the selected song is clearly darker ----- */
.tracks { list-style: none; padding: 0; margin: 4px auto 14px; max-width: 420px; text-align: left; border-top: 1px solid rgba(244,234,223,.22); }
.tracks li { border-bottom: 1px solid rgba(244,234,223,.22); }
.tracks button { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 13px 12px; border: 0; background: transparent; color: var(--cream); font: inherit; font-size: 1.15rem; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tracks__n { color: var(--rose); font-weight: 700; }
.tracks button:hover { background: rgba(244,234,223,.08); }
.tracks button.is-current, .tracks button.is-current:hover { background: rgba(28,3,10,.62); font-weight: 700; }
.tracks__s { width: 14px; height: 14px; opacity: 0; }
.tracks button.is-current .tracks__s { opacity: 1; background: linear-gradient(var(--rose), var(--rose)) left / 0 0 no-repeat; border-left: 11px solid var(--rose); border-top: 7px solid transparent; border-bottom: 7px solid transparent; width: 0; height: 0; }
.tracks button.is-playing .tracks__s { border: 0; width: 12px; height: 14px; background: linear-gradient(90deg, var(--rose) 0 4px, transparent 4px 8px, var(--rose) 8px 12px); }
.tracks button:focus-visible { outline: 2px solid var(--cream); outline-offset: -2px; }
.disk__player { min-height: 80px; }

/* ===== LETTER INTRO (remove this whole block with the markup to take the letter away) ===== */
.letter-done .letter { display: none; }
html:not(.letter-done) body { overflow: hidden; }
.letter { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255,220,170,.16), transparent 62%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(8,3,1,.72) 100%),
    repeating-linear-gradient(91deg, rgba(20,8,2,.28) 0 1px, transparent 1px 6px, rgba(255,220,170,.035) 6px 7px, transparent 7px 15px),
    repeating-linear-gradient(89deg, transparent 0 46px, rgba(20,8,2,.2) 46px 49px, transparent 49px 131px),
    linear-gradient(180deg, #3d2415, #2c190e 55%, #1f1109);
  transition: opacity .55s ease; }
.letter__scene { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 6vh, 46px); padding: 20px; -webkit-tap-highlight-color: transparent; }
.env { position: relative; display: block; width: min(84vw, 540px); aspect-ratio: 1.46; transform: rotate(-3deg); filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)); will-change: transform; transition: transform 1.05s cubic-bezier(.6,0,.25,1); perspective: 1400px; }
.env > span { position: absolute; display: block; }
.env__back, .env__front, .env__flap { inset: 0; background: #efe6d6 url("/img/paper-cream.jpg") center / 420px; transition: opacity .4s ease; }
.env__back { border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(90,50,30,.12); }
.env__front { z-index: 3; border-radius: 4px; -webkit-clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background-image: linear-gradient(to top, rgba(120,70,40,.12), transparent 55%), url("/img/paper-cream.jpg"); background-size: auto, 420px; display: grid !important; place-items: end center; }
.env__front em { font-style: normal; color: #6b2236; font-size: clamp(1.7rem, 8.2vw, 3.1rem); line-height: 1; padding: 0 0 9%; white-space: nowrap; }
.env__flap { z-index: 4; transform-origin: 50% 0; -webkit-clip-path: polygon(0 0, 100% 0, 50% 58%); clip-path: polygon(0 0, 100% 0, 50% 58%);
  background-image: linear-gradient(to bottom, transparent 40%, rgba(120,70,40,.16)), url("/img/paper-cream.jpg"); background-size: auto, 420px;
  transition: transform .6s cubic-bezier(.5,0,.3,1), opacity .4s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env__seal { z-index: 5; left: 50%; top: 58%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid !important; place-items: center;
  background: radial-gradient(circle at 36% 30%, #94384d, #6b2236 55%, #4d1323); box-shadow: 0 3px 7px rgba(40,6,16,.55), inset 0 0 0 3px rgba(255,255,255,.07), inset 0 0 0 5px rgba(40,6,16,.22);
  transition: opacity .3s ease, transform .3s ease; }
.env__seal .foot__mono { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: clamp(.8rem, 3.9vw, 1.5rem); color: #f4eadf; }
.env__seal .foot__mono em { font-style: normal; justify-self: end; }
.env__seal .foot__mono i { margin: 0 .08em; color: #f4eadf; }
.env__card { z-index: 2; left: 5%; right: 5%; top: 6%; height: 88%; border-radius: 3px; background: #6b2236 url("/img/paper-burgundy.jpg") center / 520px; box-shadow: 0 2px 8px rgba(0,0,0,.35);
  will-change: transform; transition: transform .7s cubic-bezier(.3,.6,.2,1); display: grid !important; place-items: center; }
.env__cardin { display: flex; flex-direction: column; align-items: center; color: #efe3d6; transition: opacity .35s ease; }
.env__cardin i { font-style: normal; font-size: clamp(.5rem, 2.2vw, .8rem); font-weight: 700; letter-spacing: .4em; text-transform: uppercase; }
.env__cardin b { font-weight: 400; font-size: clamp(2rem, 10vw, 3.9rem); line-height: .9; margin: -.04em 0 -.02em; }
.env__cardin strong { font-size: clamp(.9rem, 4.4vw, 1.7rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: .5em; white-space: nowrap; }
.letter__hint { font-size: 1.05rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: #efe3d6; transition: opacity .3s ease; }
.letter__scene:focus-visible .letter__hint { text-decoration: none; outline: 2px solid #efe3d6; outline-offset: 8px; }
/* 1. the seal lets go and the flap lifts */
.letter.is-open .env__seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.letter.is-open .env__flap { transform: rotateX(178deg); z-index: 1; }
.letter.is-open .letter__hint { opacity: 0; }
/* 2. the card rises out of the envelope */
.letter.is-out .env__card { transform: translateY(-58%); z-index: 6; }
/* 3. we go into the card: it grows to fill the screen, the envelope lets go */
.letter.is-in .env { transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(0deg) scale(var(--zoom, 6)); }
.letter.is-in .env__back, .letter.is-in .env__front, .letter.is-in .env__flap { opacity: 0; }
.letter.is-in .env__cardin { opacity: 0; }
.letter.is-gone { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .env, .env__flap, .env__card, .env__seal { transition: none; } }
.env::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity .25s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 L50,54 L100,100' fill='none' stroke='%235a321e' stroke-opacity='.16' stroke-width='.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0,0 L50,58 L100,0' fill='none' stroke='%235a321e' stroke-opacity='.4' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.letter.is-open .env::after { opacity: 0; }
/* ===== END LETTER INTRO ===== */

/* ----- Lock the page to the screen width: nothing may slide sideways on a phone ----- */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
.hero, main, .foot { overflow-x: hidden; overflow-x: clip; }
.letter { touch-action: none; overscroll-behavior: none; }

/* Footer: on a phone the date sits on one line and "Geneva, Florida" on the next, never split. */
.foot__line .nw { white-space: nowrap; }
@media (max-width: 699px) { .foot__line .nw { display: block; } .foot__line .dot { display: none; } .foot__line .nw + .dot + .nw { margin-top: 6px; } }

/* ----- Menu drawer: the links are one block, the sign-off is its own block below a rule; it scrolls on short phones ----- */
.drawer { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 var(--gut) calc(22px + env(safe-area-inset-bottom)); }
.drawer__links { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(10px, 2.4vh, 28px) 0; }
.drawer a { padding: clamp(9px, 1.9vh, 16px) 24px; text-align: center; }
.drawer__sign { position: static; flex: 0 0 auto; margin: 0 auto; width: 100%; max-width: 420px; padding: clamp(18px, 3.2vh, 30px) 0 0; border-top: 1px solid var(--line); }
.drawer__from { margin-top: clamp(8px, 1.6vh, 18px); }
.drawer__from .script { font-size: clamp(2rem, 5.4vh, 2.5rem); }
.drawer__links a { display: block; white-space: nowrap; }
.drawer__sign { border-top-color: rgba(244,234,223,.3); }
.drawer__links a { padding-top: clamp(3px, .7vh, 7px); padding-bottom: clamp(3px, .7vh, 7px); line-height: 1.35; }

/* ----- Phone: a clean arrow on the right to go back to the top ----- */
.totop { display: none; }
@media (max-width: 699px) {
  .totop { display: grid; place-items: center; position: fixed; right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 21; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(244,234,223,.7); background: rgba(77,19,35,.82); color: var(--cream); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .3s ease; }
  .totop[hidden] { display: grid; opacity: 0; pointer-events: none; }
  .totop svg { width: 24px; height: 24px; }
}

.field__note { margin: 8px 0 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: #a3243f; }
.field__note[hidden] { display: none; }
