@import url('/css/fonts.css');

/* ==================================================================== tokens
   Champagne Luxury: ivory paper, champagne-gold line work, charcoal type.
   Gold text and fills use the darker golds where contrast matters (see comments). */
:root {
  --ivory: #F8F5EF;
  --ivory-deep: #F0EADF;
  --ivory-shade: #E8E0D2;
  --gold: #D6BE91;          /* champagne: lines, borders, ornaments */
  --gold-soft: #E6D6B5;     /* hairlines */
  --gold-mid: #C2A36E;      /* ring frame, laurels */
  --gold-deep: #9C7F4C;     /* icons / accents (3.5:1 on ivory, non-text) */
  --gold-dark: #7E6236;     /* gold text and small buttons (5.2:1 on ivory) */
  --gold-ink: #6F5630;      /* focus ring, darkest gold */
  --charcoal: #2B2926;
  --charcoal-soft: #46423D;
  --white: #FFFFFF;
  --taupe: #766B5B;         /* 4.8:1 on ivory */
  --line: #E4D9C6;
  --error: #9B3B2E;
  --error-bg: #FBF0EC;
  --success: #4C6646;
  --display: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --pill: 999px;
  /* Arch: semicircular top on a 4:5 box (vertical radius 0.5w / 1.25w = 40%), near-square foot. */
  --arch: 50% 50% 6px 6px / 40% 40% 6px 6px;
  /* Gold fills. Hero CTA uses large 600-weight text (>= 3:1 on the lightest stop: 3.6:1);
     regular buttons use the darker pair (>= 4.7:1 for white text). */
  --gold-fill-hero: linear-gradient(180deg, #D3B781 0%, #BC9C66 30%, #AC8D57 50%, #A58650 70%, #977843 100%);
  --gold-fill: linear-gradient(180deg, #8C6F40 0%, #7E6236 60%, #6F5630 100%);
  --shadow-s: 0 1px 2px rgb(43 41 38 / .05), 0 4px 14px rgb(43 41 38 / .05);
  --shadow: 0 1px 2px rgb(43 41 38 / .04), 0 18px 48px rgb(43 41 38 / .09);
  --shadow-gold: 0 8px 22px rgb(126 98 54 / .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  color-scheme: light;
}

/* ==================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory) radial-gradient(140% 60% at 50% 0%, #FFFDF9 0%, rgb(255 253 249 / 0) 70%) no-repeat;
  color: var(--charcoal);
  font: 400 16px/1.65 var(--sans);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
main, .topbar, .footer { position: relative; z-index: 1; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; z-index: 30; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.eyebrow { font: 500 .72rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); }
.muted { color: var(--taupe); }
.hint { font-size: .84rem; color: var(--taupe); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-mid); margin: 26px auto; width: min(220px, 64%); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span { width: 7px; height: 7px; border: 1px solid var(--gold-mid); transform: rotate(45deg); }

/* ==================================================================== botanical ornaments
   Purely decorative (aria-hidden). The layer is clipped to the page box, never receives
   pointer events and sits beneath the content, so it can't cause scroll or block taps. */
.botanicals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.botanical { position: absolute; width: clamp(110px, 36vw, 230px); height: auto; opacity: .95; user-select: none; }
.botanical--tl { top: calc(115px + 20vw); /* just below the date line */ left: clamp(-40px, -6vw, -16px); }
.botanical--tr { top: calc(129px + 20vw); right: clamp(-40px, -6vw, -16px); transform: scaleX(-1); }
/* Lower pair flanks only the R&A signature and privacy link, below the privacy row. */
.botanical--bl, .botanical--br { width: clamp(84px, 22vw, 120px); }
.botanical--bl { bottom: -24px; left: clamp(-24px, -3vw, -14px); transform: scaleY(-1); }
.botanical--br { bottom: -24px; right: clamp(-24px, -3vw, -14px); transform: scale(-1, -1); }
/* Sub-pages carry only a light pair at the top corners. */
.botanicals--top .botanical { width: clamp(78px, 20vw, 170px); opacity: .8; }
.botanicals--top .botanical--tl { top: -34px; left: -30px; transform: rotate(-12deg); }
.botanicals--top .botanical--tr { top: -34px; right: -30px; transform: scaleX(-1) rotate(-12deg); }


/* ==================================================================== layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; width: 100%; margin: 0 auto; padding: 16px var(--gutter); }
.monogram { font: italic 500 1.5rem/1 var(--display); color: var(--charcoal); text-decoration: none; letter-spacing: .01em; }
.monogram span { color: var(--gold-dark); padding: 0 .04em; }
.back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--gold); color: var(--charcoal); box-shadow: var(--shadow-s); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.back:hover { border-color: var(--gold-deep); color: var(--charcoal); box-shadow: var(--shadow-gold); }
.back svg { width: 18px; height: 18px; }

.lang { display: inline-flex; border: 1px solid var(--gold); border-radius: var(--pill); padding: 3px; background: var(--white); }
.lang button { border: 0; background: transparent; border-radius: var(--pill); padding: 6px 12px; min-width: 44px; min-height: 34px; font: 500 .72rem/1 var(--sans); letter-spacing: .12em; color: var(--taupe); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--gold-dark); color: var(--white); }

/* ==================================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  border: 1px solid #6F5630; border-radius: var(--pill);
  background: var(--gold-fill); color: var(--white);
  font: 600 .98rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 4px 14px rgb(126 98 54 / .18);
  transition: filter .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { color: var(--white); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), var(--shadow-gold); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.btn--gold {
  background: var(--gold-fill-hero); border-color: #A9894F; font-size: 1.18rem; font-weight: 600; min-height: 56px;
  text-shadow: 0 1px 1px rgb(96 72 34 / .35);
  box-shadow: inset 0 1px 0 rgb(255 248 230 / .55), inset 0 -1px 0 rgb(120 92 48 / .25), 0 6px 18px rgb(166 134 80 / .28);
}
.btn--ghost, .btn--outline { background: var(--white); color: var(--charcoal); border: 1.5px solid var(--gold-mid); box-shadow: 0 2px 10px rgb(126 98 54 / .06); font-weight: 500; }
.btn--ghost:hover, .btn--outline:hover { background: #FFFDF8; color: var(--charcoal); border-color: var(--gold-deep); filter: none; box-shadow: 0 6px 18px rgb(156 127 76 / .16); }
.btn--outline { font-size: 1.12rem; min-height: 58px; }
.btn--outline svg, .btn--ghost svg { color: var(--gold-deep); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--charcoal); box-shadow: none; font-weight: 500; }
.btn--quiet:hover { background: var(--ivory-deep); color: var(--charcoal); box-shadow: none; filter: none; }
.btn--danger { background: var(--error); border-color: var(--error); box-shadow: none; }
.btn--danger:hover { background: #7E2F24; }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold svg, .btn--outline svg { width: 26px; height: 26px; }
.btn--small svg { width: 17px; height: 17px; }
.btn:focus-visible { outline-offset: 4px; }
/* Narrow phones: the champagne button keeps its large (>= 18.66 px, 600) label for contrast;
   only the decorative icon gives way so the label stays on one line. */
@media (max-width: 360px) { .btn--gold { padding-inline: 12px; font-size: 1.17rem; } .btn--gold svg { display: none; } .btn--outline { font-size: 1.05rem; } }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--taupe); border-radius: 50%; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--ivory-deep); color: var(--charcoal); }
.icon-btn svg { width: 20px; height: 20px; }

/* ==================================================================== forms */
.field { display: grid; gap: 7px; text-align: left; }
.field label, .field .label { font: 500 .8rem/1.3 var(--sans); letter-spacing: .04em; color: var(--taupe); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 13px 15px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23766B5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold-deep); outline: none; box-shadow: 0 0 0 3px rgb(214 190 145 / .4); }
.counter { font-size: .78rem; color: var(--taupe); text-align: right; }
.counter.is-over { color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-dark); flex: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.card { position: relative; background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(22px, 5vw, 40px); }
.card::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(214 190 145 / .35); border-radius: calc(var(--radius-l) - 5px); pointer-events: none; }
.stack { display: grid; gap: 20px; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; border: 1px solid; }
.alert--error { color: var(--error); background: var(--error-bg); border-color: #EBCFC7; }
.alert--info { color: var(--charcoal); background: var(--ivory); border-color: var(--gold-soft); }

/* ==================================================================== arch portrait */
.arch {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden;
  background: var(--ivory-deep);
  /* Thin champagne frame drawn outside the photo (keeps the 4:5 crop exact) + soft depth. */
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gold-mid), 0 0 0 5px rgb(156 127 76 / .25), 0 22px 44px rgb(43 41 38 / .14);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--placeholder { background: radial-gradient(120% 80% at 50% 18%, #FFFDF8 0%, var(--ivory-deep) 62%, var(--ivory-shade) 100%); display: grid; place-items: center; }
.arch--placeholder::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 4px 4px / 39% 39% 4px 4px;
}
.arch__mono { text-align: center; color: var(--charcoal); padding: 0 12%; }
.arch__mono .initials { display: block; font: italic 500 clamp(3.6rem, 19vw, 5.8rem)/1 var(--display); letter-spacing: 0; }
.arch__mono .initials span { color: var(--gold-dark); padding: 0 .04em; }
.arch__mono .line { display: block; width: 46px; height: 1px; background: var(--gold); margin: 18px auto 14px; }
.arch__mono .date { font: 500 .68rem/1.4 var(--sans); letter-spacing: .34em; color: var(--taupe); }

/* ==================================================================== home: crest */
.page--home main { padding: 0 var(--gutter); }
.crest { display: grid; justify-items: center; text-align: center; padding-top: clamp(14px, 4vw, 40px); }
.crest__mark { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(100%, 420px); }
.crest__line { flex: 1; height: 1px; min-width: 18px; background: linear-gradient(90deg, rgb(214 190 145 / 0), var(--gold) 60%, var(--gold)); }
.crest__mark .crest__line:last-child, .crest__divider .crest__line:last-child, .footer__sign .crest__line:last-child { background: linear-gradient(90deg, var(--gold), var(--gold) 40%, rgb(214 190 145 / 0)); }
.crest__laurel { width: clamp(36px, 11vw, 50px); height: auto; flex: none; }
.crest__laurel--right { transform: scaleX(-1); }
.crest__mono {
  font: italic 500 clamp(2.1rem, 9vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; padding: 0 .08em .06em;
  background: linear-gradient(180deg, #D9C08F 0%, #BC9A62 55%, #A3824C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.crest__mono span { font-size: .78em; padding: 0 .02em; }
.crest__mono--small { font-size: 1.5rem; }

.names {
  margin-top: clamp(20px, 5.2vw, 24px); /* breathing room under the R&A monogram */
  font: italic 500 clamp(1.7rem, 9.6vw, 4.6rem)/1.08 var(--display);
  letter-spacing: -.01em; color: var(--charcoal);
}
.names .amp { color: var(--charcoal); padding: 0 .02em; }
.crest__subtitle {
  margin: clamp(8px, 2.5vw, 14px) 0 0; padding-left: .3em; /* balance the trailing letter-spacing */
  font: 400 clamp(.74rem, 3.4vw, 1.02rem)/1.3 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--charcoal);
}
.crest__divider { display: flex; align-items: center; gap: 10px; width: min(78%, 360px); margin: 8px auto 4px; color: var(--gold-mid); }
.crest__rings { width: 34px; height: 20px; flex: none; }
.crest__date {
  margin: 0; padding-left: .3em;
  font: 400 clamp(.74rem, 3.3vw, .98rem)/1.3 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--charcoal);
}

/* ==================================================================== home: hero + welcome */
.home-grid { display: grid; justify-items: center; text-align: center; gap: clamp(20px, 5vw, 36px); margin-top: clamp(16px, 4.5vw, 34px); }
.home-hero__portrait { width: min(76vw, 340px); min-width: 0; }
.home-intro { width: min(100%, 520px); min-width: 0; }
.welcome-title { font: italic 500 clamp(1.75rem, 7.6vw, 2.6rem)/1.15 var(--display); color: var(--charcoal); letter-spacing: -.005em; }
.heart-divider { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(76%, 320px); margin: 12px auto 18px; color: var(--gold-deep); }
.heart-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, rgb(214 190 145 / 0), var(--gold)); }
.heart-divider span:last-child { background: linear-gradient(90deg, var(--gold), rgb(214 190 145 / 0)); }
.heart-divider svg { width: 18px; height: 18px; flex: none; }
/* Welcome rhythm: heading -> heart (12) -> body (18); 1.7 line-height; 16 px between paragraphs. */
.welcome-text, .welcome-text p { color: #4A453F; font-size: clamp(.95rem, 3.9vw, 1.06rem); line-height: 1.7; }
.welcome-text p { margin: 0 0 16px; }
.welcome-text p:last-child, p.welcome-text { margin-bottom: 0; }
.welcome-custom { white-space: pre-line; }
.actions { display: grid; gap: 14px; width: min(100%, 400px); margin: clamp(28px, 7.5vw, 32px) auto 0; }
.actions__note { font-size: .82rem; color: var(--taupe); margin: 4px 0 0; }

/* ==================================================================== desktop editorial layout */
@media (min-width: 900px) {
  .crest { padding-top: 44px; }
  .crest__mark { width: 520px; }
  .home-grid {
    grid-template-columns: minmax(320px, 420px) minmax(0, 470px); justify-content: center; align-items: center;
    column-gap: clamp(56px, 7vw, 110px); margin-top: 46px;
  }
  .home-hero__portrait { width: 100%; }
  .home-intro { text-align: left; }
  .welcome-title { font-size: clamp(2.3rem, 3.2vw, 2.9rem); }
  .heart-divider { margin-left: 0; width: 300px; }
  .heart-divider span:first-child { background: linear-gradient(90deg, var(--gold), var(--gold)); flex: 0 0 64px; }
  .actions { margin-left: 0; width: min(100%, 420px); }
  .botanical--tl { top: 120px; left: -50px; width: clamp(150px, 17vw, 230px); }
  .botanical--tr { top: 130px; right: -50px; width: clamp(150px, 17vw, 230px); }
  .botanical--bl, .botanical--br { width: clamp(160px, 15vw, 230px); }
}
@media (min-width: 1280px) {
  .botanical--tl, .botanical--tr { top: 90px; width: 260px; }
}

/* ==================================================================== page header (upload / guestbook / thanks) */
.page-head { text-align: center; max-width: 34em; margin: 6px auto 28px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font: italic 500 clamp(2rem, 8vw, 2.9rem)/1.12 var(--display); margin-bottom: 14px; }
.page-head h1 + .ornament, .page-head .ornament { margin: 12px auto 16px; }
.page-head p { color: #4A453F; margin: 0; }
.page-foot { text-align: center; margin: 22px auto 0; display: grid; gap: 10px; justify-items: center; }
.link-quiet { color: var(--taupe); font-size: .9rem; }

/* ==================================================================== upload */
.upload { display: grid; gap: 22px; }
.dropzone {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 36px 18px; border: 1.5px dashed var(--gold-mid); border-radius: var(--radius-l);
  background: linear-gradient(180deg, #FFFDF8, var(--ivory)); cursor: pointer; transition: background .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-dragover { background: var(--ivory-deep); border-color: var(--gold-deep); }
.dropzone:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FBF4E6, #F1E5CD); box-shadow: inset 0 0 0 1px rgb(214 190 145 / .5); color: var(--gold-dark); margin-bottom: 6px; }
.dropzone__icon svg { width: 26px; height: 26px; }
.dropzone__title { font: italic 500 1.4rem/1.2 var(--display); }
.dropzone__hint { font-size: .84rem; color: var(--taupe); }
.hint--limits { margin: -10px 0 0; text-align: center; }
.hint--keep { margin: 8px 0 0; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: var(--white); }
.file__thumb { width: 58px; height: 58px; border-radius: var(--radius-s); overflow: hidden; background: var(--ivory-deep); display: grid; place-items: center; color: var(--gold-deep); position: relative; }
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__thumb svg { width: 22px; height: 22px; }
.file__body { min-width: 0; }
.file__name { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__meta { font-size: .78rem; color: var(--taupe); }
.file__meta.is-error { color: var(--error); }
.file__meta.is-done { color: var(--success); }
.file__bar { height: 3px; background: var(--ivory-deep); margin-top: 7px; border-radius: 3px; overflow: hidden; }
.file__bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-mid), var(--gold-dark)); transition: width .25s linear; }
.file.is-done .file__bar > span { background: var(--success); }
.file.is-error, .file.is-invalid { border-color: #E9C9C0; background: var(--error-bg); }
.status-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--success); }
.status-icon svg { width: 20px; height: 20px; }

.summary { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--taupe); }
.progress { height: 4px; background: var(--ivory-deep); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-mid), var(--gold-dark)); transition: width .3s linear; }
.legal { font-size: .8rem; color: var(--taupe); text-align: center; margin: 0; }

/* ==================================================================== thank you */
.thanks { text-align: center; max-width: 520px; margin: 10px auto 0; }
.thanks__emblem { width: 132px; margin: 8px auto 30px; }
.thanks__emblem .arch { display: grid; place-items: center; }
.thanks__emblem svg { width: 44px; height: 44px; color: var(--gold-deep); }
.thanks h1 { font: italic 500 clamp(2rem, 8vw, 2.7rem)/1.12 var(--display); margin-bottom: 14px; }
.thanks p { color: #4A453F; max-width: 28em; margin: 0 auto 10px; }
.thanks .actions { margin-top: 28px; }
.fade-in { animation: fade .7s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==================================================================== footer */
.footer { text-align: center; padding: 72px var(--gutter) 36px; }
.footer .footer__names { font: italic 500 1.45rem/1.2 var(--display); margin: 0 0 4px; }
.footer p { font-size: .84rem; color: var(--taupe); margin: 0 0 8px; }
.footer nav { display: flex; justify-content: center; align-items: center; gap: 10px 22px; flex-wrap: wrap; font-size: .84rem; margin-top: 18px; }
.footer nav a { color: var(--taupe); }
.footer .lang-links { display: inline-flex; gap: 6px; align-items: center; color: var(--taupe); }
.footer .lang-links button { border: 0; background: none; padding: 8px 4px; min-height: 40px; cursor: pointer; font-size: .84rem; color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.footer .lang-links button[aria-pressed='true'] { color: var(--charcoal); text-decoration-color: var(--gold-deep); font-weight: 500; }

/* Homepage footer: privacy note + language pill, then the signature line. */
.footer--home { padding: 0 var(--gutter) 34px; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: min(100%, 560px); margin: clamp(40px, 11vw, 64px) auto 0; padding-top: 16px;
  /* hairline that fades out at both ends, echoing the crest lines */
  background: linear-gradient(90deg, rgb(214 190 145 / 0), var(--gold) 20%, var(--gold) 80%, rgb(214 190 145 / 0)) top / 100% 1px no-repeat;
}
.footer .privacy-note { display: flex; align-items: center; gap: 10px; margin: 0; text-align: left; font-size: .76rem; line-height: 1.4; color: var(--charcoal-soft); }
.privacy-note svg { width: 18px; height: 18px; flex: none; color: var(--gold-dark); }
.lang-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 40px; padding: 0 10px 0 11px; border: 1px solid var(--gold); border-radius: var(--pill);
  background: var(--white); box-shadow: var(--shadow-s); color: var(--charcoal); cursor: pointer;
}
.lang-pill:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.lang-pill svg { width: 16px; height: 16px; color: var(--gold-dark); flex: none; }
.lang-pill select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  min-height: 38px; padding: 0 18px 0 0; font: 500 .8rem/1 var(--sans); color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E6236' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 14px;
}
.lang-pill select:focus { outline: none; }
.footer__sign { display: flex; align-items: center; gap: 12px; width: min(70%, 300px); margin: 18px auto 0; }
.footer--home nav { margin-top: 8px; }
@media (max-width: 359px) {
  .footer__bar { flex-direction: column; align-items: center; gap: 12px; }
}

/* ==================================================================== prose (privacy) */
.prose { max-width: 680px; margin: 0 auto; padding: 12px var(--gutter) 0; }
.prose h1 { font: italic 500 clamp(2rem, 7vw, 2.8rem)/1.12 var(--display); text-align: center; margin: 12px 0 8px; }
.prose .eyebrow { text-align: center; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 10px; }
.prose p, .prose li { color: #3E3A35; }
.prose .back-link { display: inline-flex; margin-top: 40px; }

/* ==================================================================== hero carousel
   The controls float over the arch: arrows at its mid-sides (half outside the frame),
   dots inside the photo near the foot, pause at the bottom-right corner. */
.carousel { position: relative; display: block; }
.carousel .arch { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease-in-out; -webkit-user-drag: none; }
.carousel__slide.is-active { opacity: 1; }
.carousel__controls { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.carousel__controls > * { pointer-events: auto; }
.carousel__btn {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--gold); border-radius: 50%; background: rgb(255 255 255 / .96); color: var(--charcoal);
  box-shadow: 0 4px 14px rgb(43 41 38 / .14); cursor: pointer; transition: border-color .2s, box-shadow .2s, color .2s;
}
.carousel__btn:hover { border-color: var(--gold-deep); color: var(--gold-dark); box-shadow: 0 6px 18px rgb(126 98 54 / .22); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev { left: -22px; top: 50%; transform: translateY(-50%); }
.carousel__btn--next { right: -22px; top: 50%; transform: translateY(-50%); }
.carousel__btn--pause { width: 32px; height: 32px; right: -10px; bottom: -10px; }
.carousel__btn--pause svg { width: 13px; height: 13px; }
.carousel__btn--pause .icon-play, .carousel__btn--pause[aria-pressed='true'] .icon-pause { display: none; }
.carousel__btn--pause[aria-pressed='true'] .icon-play { display: block; }
.carousel__dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; max-width: calc(100% - 40px); }
.carousel__dot { width: 24px; height: 24px; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.carousel__dot::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid #D9BF8C; background: rgb(255 255 255 / .92);
  box-shadow: 0 0 0 .5px rgb(43 41 38 / .25), 0 1px 3px rgb(43 41 38 / .35);
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.carousel__dot[aria-current='true']::before { background: #C9A96E; border-color: #F6ECD4; transform: scale(1.15); }
.carousel__dot:focus-visible { outline-offset: -2px; outline-color: var(--white); }
@media (max-width: 380px) {
  .carousel__btn--prev, .carousel__btn--next { width: 40px; height: 40px; }
  .carousel__btn--prev { left: -18px; }
  .carousel__btn--next { right: -18px; }
}

/* The `font` shorthand resets numeral style; Playfair and Cormorant default to old-style figures. */
.crest__date, .names, .welcome-title, .arch__mono .date, .page-head h1, .thanks h1, .prose h1, .dropzone__title, .footer__names, .monogram { font-variant-numeric: lining-nums; }
