/* ==================================================================
   Jess & John: shared styles
   Direction: letterpress stationery. One ink on soft paper, script
   names, engraved capitals, dotted double frames, notched corners.

   To change the ink colour for the whole site, change --ink below.
   Try #2F4468 (slate blue) or #3A3A37 (charcoal).
   Text sitting directly on the background uses --ink-deep.
   ================================================================== */

:root {
  --table: #E6DDD3;      /* fallback colour shown while the sky painting loads */
  --ink-deep: #252F43;   /* text printed straight onto the painting: Pantone 20-0141 TPM Azurite
                            (previous: #1C1C22 Midnight Sky 20-0195 TPM; #354253 Big Dipper 19-4117 TCX) */
  --paper: #FCF9F2;      /* the cards: warm ivory */
  --ink: #252F43;        /* the single letterpress ink on the cards: Pantone 20-0141 TPM Azurite */
  --ink-soft: #46516A;   /* secondary text, same ink "lightly pressed" */
  --rule: #C5CAD3;       /* faint lines */

  --script: "Monsieur La Doulaise", "Snell Roundhand", "Apple Chancery", cursive;   /* copperplate script: used only for "Jess & John" */
  --caps: "Marcellus", "Copperplate", "Times New Roman", serif;   /* block lettering, set in capitals */
  --text: "Marcellus", "Optima", "Times New Roman", serif;          /* same family for running text */

  --measure: 34rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--table);
  position: relative;
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Background: a soft pastel sky painting, held in place while the page scrolls over it.
   To swap the painting, replace assets/sky.jpg.
   The earlier Constable sky is kept as assets/sky-constable.jpg: change url("sky.jpg") below to use it
   (with a darker sky, set --ink-deep back to a light colour). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,250,244,.10), rgba(255,250,244,.10)),
    url("sky.jpg") center / cover no-repeat;
}

a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 1.5px dotted var(--ink); outline-offset: 4px; }
p { margin: 0 0 0.9em; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.2; }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }

/* ---------- Type roles ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }
.caps {
  font-family: var(--caps); font-size: 0.82rem; letter-spacing: 0.16em;
  line-height: 2; margin: 0 0 1rem;
}
.italic { font-style: normal; }   /* Marcellus has no italic; kept as a hook */
.soft { color: var(--ink-soft); }
.short-rule { width: 4.5rem; border: 0; border-top: 1px solid var(--ink); margin: 1.5rem auto; }

/* ---------- Line drawings (icons are masks, so they print in the ink colour) ---------- */
.icon { display: block; width: 3rem; height: 3rem; margin: 0 auto;
  background: var(--ink); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.emblem { width: 4.5rem; height: 4.5rem; margin-bottom: 1.25rem; }
/* Porto emblem: the flying cherub on a hand-painted azulejo tile, in Azurite (an image, so its colour is fixed).
   The plain cherub without the tile is assets/cherub-porto.png. */
.icon-porto { -webkit-mask: none; mask: none; background: url("tile-porto.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(30,40,70,.25)); }
.emblem.icon-porto { width: 4.5rem; height: 4.5rem; }
/* Geneva emblem: the same cherub tile, in burgundy (#7A1F2B). Rebuild with gen/tile.py if you change it. */
.icon-geneva { -webkit-mask: none; mask: none; background: url("tile-geneva.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(60,20,25,.25)); }
.emblem.icon-geneva { width: 4.5rem; height: 4.5rem; }
.icon-drinks { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12h18M8 12q9 13 18 0M17 18v14M12 32h10'/%3E%3Cpath d='M26 16h16M26 16q8 12 16 0M34 22v12M30 34h8' opacity='.9'/%3E%3Ccircle cx='15' cy='8' r='1'/%3E%3Ccircle cx='36' cy='11' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-rings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='19' cy='29' r='9'/%3E%3Ccircle cx='29' cy='29' r='9'/%3E%3Cpath d='M19 20l-3-4 3-4 3 4z'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-dinner { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='26' r='10'/%3E%3Ccircle cx='24' cy='26' r='6'/%3E%3Cpath d='M8 12v9q0 3 2 4v15M6 12v8M10 12v8M40 12q-5 6 0 13v15'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-cake { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 40h30M12 40V31h24v9M16 31v-8h16v8M20 23v-6h8v6M24 17v-5'/%3E%3Cpath d='M24 6q2 2.5 0 4q-2-1.5 0-4z'/%3E%3Cpath d='M12 35q3 2 6 0t6 0 6 0 6 0'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-music { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 34V12l16-4v22'/%3E%3Cellipse cx='14' cy='34' rx='4' ry='3'/%3E%3Cellipse cx='30' cy='30' rx='4' ry='3'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-coffee { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 20h22v7q0 9-11 9t-11-9z'/%3E%3Cpath d='M32 22q6 0 6 4t-6 5'/%3E%3Cpath d='M6 40h30'/%3E%3Cpath d='M16 8q-2 3 0 6M23 8q-2 3 0 6'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- Header crest: cherub with J and J ---------- */
.crest { display: inline-block; line-height: 0; }
.crest img { width: clamp(9rem, 22vw, 13rem); height: auto; }

.icon-boat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 30h34l-5 7H12z'/%3E%3Cpath d='M14 30v-6h18v6M18 24v-5h9v5'/%3E%3Cpath d='M23 19v-7M23 12l6 2-6 2'/%3E%3Cpath d='M5 41q4-2 8 0t8 0 8 0 8 0 6 0'/%3E%3C/g%3E%3C/svg%3E"); }
.icon-moon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 9a14 14 0 1 0 11 22 11 11 0 0 1-11-22z'/%3E%3Cpath d='M37 9v4M35 11h4M40 19v3M38.5 20.5h3'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- Monogram: J | J ---------- */
.monogram {
  display: inline-grid; grid-template-columns: auto 1px auto; align-items: center; gap: 0 0.7em;
  font-family: var(--caps); font-size: 1.6rem; line-height: 1; color: var(--ink); text-decoration: none;
}
.monogram::before { content: ""; grid-column: 2; grid-row: 1; height: 1.9em; background: var(--ink); }
.monogram span:first-child { grid-column: 1; grid-row: 1; }
.monogram span:last-child  { grid-column: 3; grid-row: 1; }
.monogram.large { font-size: 2.6rem; margin-bottom: 2rem; }

/* Anything printed straight onto the background uses the deeper ink */
.site-header, .site-footer, .section { --ink: var(--ink-deep); --ink-soft: #252F43; color: var(--ink);
  text-shadow: 0 0 10px rgba(255,250,244,.9), 0 0 3px rgba(255,250,244,.8); }
/* slightly heavier text where it sits on the painting */


/* ---------- Header / footer ---------- */
.site-header { text-align: center; padding: 1.75rem 0 0.5rem; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 2.25rem; margin-top: 1.1rem; }
.site-nav a { font-family: var(--caps); font-size: 0.78rem; letter-spacing: 0.18em; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.site-footer { text-align: center; padding: 2rem 0 2.25rem; margin-top: 3rem; color: var(--ink-soft); background: rgba(252,249,242,.72); }
.site-footer .caps { margin-bottom: 0.25rem; }

/* ---------- Cards: printed stationery ---------- */
.card {
  position: relative;
  background: var(--paper) url("paper.jpg") center / cover no-repeat;   /* textured cotton paper (photo) */
  padding: clamp(3rem, 7vw, 4.5rem) clamp(2rem, 6vw, 4rem);
  text-align: center;
  box-shadow: 0 1px 1px rgba(50,36,24,.10), 0 12px 30px -12px rgba(50,36,24,.40);
}
/* dotted outer rule + solid inner rule */
.card::before, .card::after { content: ""; position: absolute; pointer-events: none; }
/* Every card uses the same Art Deco interlaced frame (assets/frame.svg) */
.card::before { inset: 20px; border: 42px solid transparent; border-image: url("frame.svg") 42 stretch; }
.card::after  { display: none; }

/* the main invitation: stepped notched corners, like a die-cut card */
.card-shadow { filter: drop-shadow(0 12px 18px rgba(50,36,24,.28)) drop-shadow(0 1px 1px rgba(50,36,24,.12)); }
/* Every card gets the stepped, die-cut corners. Clipping hides box-shadows, so the shadow comes from a drop-shadow on the card's container. */
.card, .card.notched { box-shadow: none; clip-path: polygon(18px 0, calc(100% - 18px) 0, calc(100% - 18px) 9px, calc(100% - 9px) 9px, calc(100% - 9px) 18px, 100% 18px, 100% calc(100% - 18px), calc(100% - 9px) calc(100% - 18px), calc(100% - 9px) calc(100% - 9px), calc(100% - 18px) calc(100% - 9px), calc(100% - 18px) 100%, 18px 100%, 18px calc(100% - 9px), 9px calc(100% - 9px), 9px calc(100% - 18px), 0 calc(100% - 18px), 0 18px, 9px 18px, 9px 9px, 18px 9px); }
/* Invitation-style cards: Art Deco interlaced frame (assets/frame.svg) instead of the dotted double rule.
   The frame's colour is set inside frame.svg; change it there if you change --ink. */
.card.notched::before { inset: 20px; border: 42px solid transparent; border-image: url("frame.svg") 42 stretch; }
.card.notched::after  { display: none; }

/* ---------- Home: photo strip with white script names ---------- */
.photo-strip { position: relative; margin-top: 1.5rem; background: var(--paper); padding: 6px 0; }
.photo-strip .photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: clamp(15rem, 34vw, 30rem); }
/* object-position keeps faces in view: 50% across, 20% down from the top */
.photo-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
/* shade along the bottom so the white lettering reads against the photos */
.photo-strip::after { content: ""; position: absolute; inset: 6px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,16,12,0) 45%, rgba(20,16,12,.55) 100%); }
.strip-names { position: absolute; line-height: 1.3; left: 0; right: 0; bottom: clamp(0.75rem, 3vw, 2.25rem); z-index: 1; margin: 0; padding: 0 1rem;
  color: #fff; text-align: center; font-size: clamp(3.4rem, 1.6rem + 6.5vw, 7.5rem);
  text-shadow: 0 2px 18px rgba(10,8,6,.6), 0 1px 2px rgba(10,8,6,.4); }
@media (max-width: 640px) {
  .photo-strip .photos { grid-template-columns: repeat(3, 1fr); height: 15rem; }
  .photo-strip img.hide-on-phone { display: none; }
  .strip-names { font-size: 3rem; }
}

/* ---------- Home ---------- */
/* The invitation wording is hand-lettered, like a written card */

.invite { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.invite .card-shadow { width: min(100% - 2rem, 36rem); margin: 0 auto; }
.invite .card { padding-block: clamp(4rem, 10vw, 5.5rem); }
.names { font-size: clamp(4.4rem, 2.6rem + 8vw, 6.4rem); margin: 0.25rem 0 1.25rem; }
.names span { display: block; }
.names .and { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; margin: 0.6rem 0 0.4rem; line-height: 1; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 1rem; max-width: 56rem; margin-inline: auto; }
.event-card { padding: 3.5rem 2.25rem 3.25rem; text-decoration: none; color: var(--ink); display: block; }
.event-card .city { font-family: var(--script); font-size: 3.4rem; letter-spacing: 0; line-height: 1.2; margin: 0.25rem 0 0.9rem; }   /* same copperplate script as the names */
.event-card .go { display: inline-block; font-family: var(--caps); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); line-height: 1.3; margin-top: 0.5rem; }
.event-card:hover .go { border-bottom-width: 2px; }

/* ---------- Event page hero ---------- */
.hero { padding: clamp(1.5rem, 5vw, 3rem) 0 1rem; }
.hero .card-shadow { width: min(100% - 2rem, 38rem); margin: 0 auto; }
.hero .card { padding-block: clamp(4rem, 9vw, 5rem); }
.hero h1, .hero .event-title { font-family: var(--caps); font-size: clamp(2.4rem, 1.5rem + 4vw, 3.6rem); letter-spacing: 0.2em; margin: 0 0 0.25rem; padding-left: 0.2em; }
.hero .script { font-size: 3rem; margin-bottom: 1.25rem; }

.button {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  padding: 0.85rem 1.8rem; margin-top: 0.5rem;
  font: 400 0.8rem/1.2 var(--caps); letter-spacing: 0.18em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.button:hover { background: var(--ink); color: var(--paper); }
.button:disabled { opacity: 0.55; cursor: wait; }

/* ---------- Event page sections ---------- */
.section { padding: clamp(3rem, 7vw, 4.5rem) 0 0; text-align: center; }
.section-title { font-family: var(--caps); font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem); letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; margin-bottom: 2.25rem; }
.column { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* Timeline: icon, day, a rule with a tick, then the event */
.timeline { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); max-width: 60rem; }
.timeline li { padding: 0 0.75rem 2rem; }
.timeline .icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.6rem; }
.timeline .day { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.18em; margin: 0; }
.timeline .tick { display: block; height: 1.6rem; margin: 0.5rem -0.75rem 0.9rem; position: relative; border-top: 1px solid var(--ink); }
.timeline .tick::after { content: ""; position: absolute; left: 50%; top: 0; height: 100%; border-left: 1px solid var(--ink); }
.timeline li:first-child .tick { border-image: linear-gradient(to right, transparent 50%, var(--ink) 50%) 1; }
.timeline li:last-child .tick { border-image: linear-gradient(to right, var(--ink) 50%, transparent 50%) 1; }
.timeline li:only-child .tick { border-top-color: transparent; border-image: none; }
.timeline h3 { font-size: 1.2rem; margin: 0.2rem 0 0.2rem; }
.timeline .time { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 0.3rem; }
.timeline p { margin: 0; }
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline .tick { border-top: 0; border-image: none !important; height: 1.4rem; }
}

/* Details: typeset like an enclosure card */
.entry { margin-bottom: 1.75rem; }
.entry h3 { font-family: var(--caps); font-size: 0.85rem; letter-spacing: 0.16em; margin-bottom: 0.35rem; }
.entry p { margin: 0; color: var(--ink-soft); }
.entry a { color: var(--ink); }

.faq { text-align: left; }

/* The Details: a grid of short answers */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.5rem 3rem; max-width: 52rem; text-align: center; }
.details .entry p { color: var(--ink-soft); }
details { border-top: 1px dotted var(--ink); padding: 0.9rem 0.25rem; }
details:last-child { border-bottom: 1px dotted var(--ink); }
summary { cursor: pointer; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--caps); font-style: normal; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0.5rem 0 0.2rem; color: var(--ink-soft); }

/* ---------- RSVP / contact card ---------- */
.reply { padding: clamp(3rem, 7vw, 4.5rem) 0 0; }
.reply .card { width: min(100% - 2rem, 36rem); margin: 0 auto; text-align: left; padding: clamp(4rem, 9vw, 5rem) clamp(3rem, 8vw, 4.25rem); }
.reply-head { text-align: center; margin-bottom: 2rem; }
.reply-head h2 { font-family: var(--caps); font-size: 1.6rem; letter-spacing: 0.3em; padding-left: 0.3em; margin-bottom: 0.4rem; }
.reply-head p { margin: 0; }

.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.1rem; }
.field > label, .field > legend { font-size: 1rem; color: var(--ink-soft); padding: 0; }
.hint { font-size: 0.95rem; }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  font: 400 1.1rem/1.4 var(--text); color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 0.3rem 0.1rem;
}
textarea { border: 1px solid var(--ink); min-height: 7rem; padding: 0.5rem 0.6rem; margin-top: 0.3rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-width: 2px; background: rgba(47,68,104,.05); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 0.35rem; margin-top: 0.35rem; }
.choices.inline { display: flex; flex-wrap: wrap; gap: 0.35rem 2rem; }
.choice { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-family: var(--caps); font-size: 0.78rem; letter-spacing: 0.14em; }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 1rem; height: 1rem; border: 1px solid var(--ink); background: transparent; display: grid; place-content: center; cursor: pointer;
}
.choice input::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--ink); transform: scale(0); transition: transform .12s; }
.choice input:checked::before { transform: scale(1); }
.choice input:focus-visible { outline: 1.5px dotted var(--ink); outline-offset: 3px; }

.form .actions { text-align: center; margin-top: 0.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; text-align: center; }
.form-status.is-success { color: var(--ink); }
.form-status.is-error { color: #8A2E2A; }

[hidden] { display: none !important; }

/* Small capital labels that sit on the painting, a touch heavier for legibility */
/* Marcellus has lowercase letters, so anything set in the block style is capitalised here */
.caps, .monogram, .site-nav a, .hero h1, .hero .event-title, .button, .timeline .day, .timeline .time, .entry h3, .reply-head h2, .choice { text-transform: uppercase; }

/* Geneva event card on the home page: printed entirely in burgundy, to match its tile */
.event-geneva { --ink: #7A1F2B; --ink-soft: #8C3F48; }

/* Event cards on the home page use the same Art Deco interlaced frame as the invitation */
.event-card { padding: 4.5rem 2.75rem 4.25rem; }
.event-geneva::before { border-image-source: url("frame-burgundy.svg"); }

/* ---------- A note to our guests ---------- */
.note-section { padding: clamp(3rem, 7vw, 4.5rem) 0 0; }
.note { width: min(100% - 2rem, 36rem); margin: 0 auto; padding: clamp(4rem, 9vw, 5rem) clamp(3rem, 8vw, 4.25rem); }
.note h2 { font-family: var(--caps); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.25em; line-height: 1.6; margin-bottom: 1.5rem; }
.note p { color: var(--ink-soft); }
.note .signoff { margin: 1.75rem 0 0.25rem; color: var(--ink); }
.note .signature { font-size: 2.6rem; color: var(--ink); margin: 0; }

/* ---------- Language switch on the event pages ---------- */
.lang-switch { display: flex; justify-content: center; gap: 1.25rem; margin-top: 0.7rem;
  font-family: var(--caps); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.lang-switch a { text-decoration: none; opacity: 0.6; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; border-bottom-color: var(--ink); }

/* On event pages the invitation sits directly above the event card */
.invite + .hero { padding-top: 0; }

/* Shadows for the die-cut cards (drawn on the container so the clipped corners keep their shadow) */
.events, .note-section, .reply { filter: drop-shadow(0 12px 18px rgba(25,40,60,.28)) drop-shadow(0 1px 1px rgba(25,40,60,.12)); }

/* Photo strip: full size, but softly faded like an old print so it sits back against the sky */
.photo-strip img { filter: sepia(.18) contrast(.85) brightness(1.07) saturate(.85); opacity: .88; }
.photo-strip { background: rgba(252,249,242,.75); }

/* The Details: larger, bold headings; "RSVP by" gets its own centred row */
.details .entry h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.18em; margin-bottom: 0.5rem; }
.details .entry-rsvp { grid-column: 1 / -1; justify-self: center; max-width: 30rem; }

/* Bigger section titles (Schedule, Details, Questions) */
.section-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: 0.26em; }

/* ---------- Fixes: strip shading, spacing, steady background ---------- */
/* No dark band along the bottom of the photos; the lettering gets its own soft shadow instead */
.photo-strip::after { display: none; }
.strip-names { text-shadow: 0 0 6px rgba(20,16,12,.55), 0 2px 18px rgba(20,16,12,.6), 0 1px 2px rgba(20,16,12,.5); }
/* Breathing room between the photo strip and the invitation card */
.photo-strip + main .invite, .photo-strip + main > .invite { padding-top: clamp(2.75rem, 6vw, 4.5rem); }

/* Background painting: a fixed layer sized to the tallest phone viewport, so it doesn't
   jump or rescale as the browser's address bar slides in and out while scrolling */
body::before {
  inset: 0 0 auto 0;
  height: 100vh; height: 100lvh;
  transform: translateZ(0);
  will-change: transform;
  /* Fade on the sky: raise or lower the .38 to make the painting softer or stronger */
  background:
    linear-gradient(rgba(252,249,242,.38), rgba(252,249,242,.38)),
    url("sky.jpg") center / cover no-repeat;
}
@media (max-width: 640px) { .strip-names { font-size: 2.3rem; } }
