@font-face {
  font-family: Story;
  src: url("/prologue/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Story;
  src: url("/prologue/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
:root {
  --forest: #283322;
  --forest-deep: #182415;
  --forest-cream: #fff1d9;
  --forest-gold: #f8d18e;
  --forest-paper: #f1e3c8;
  --forest-ink: #342822;
  --forest-rule: #f7db9b50;
  --forest-button-edge: #f6e4bb6b;
  --forest-paper-rule: #b68e557d;
  --forest-muted: #584b3b;
  --forest-display: Story, var(--script-font, Georgia), Georgia, serif;
  --forest-ui: var(--script-font, system-ui), system-ui, sans-serif;
}

/* The same English label remains visible with any selected language.
   The native select still exposes the active value and the entire option list. */
.form-language:has(.language-caption),
.language-switch:has(.language-caption),
.cover-tools .cover-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  max-width: none;
  padding: .56rem .9rem;
  border: 1px solid var(--forest-button-edge);
  border-radius: 2rem;
  color: var(--forest-cream);
  background: #1b2419dc;
  font: 500 .92rem/1.2 system-ui, sans-serif;
  direction: ltr;
}
.form-language:has(.language-caption), .cover-tools .cover-language { position: relative; }
.cover-tools .cover-language {
  flex-direction: row;
  min-height: 2.25rem;
  padding: .45rem .7rem;
  gap: .4rem;
  background: #1b241985;
  font-size: .8rem;
}
.cover-tools .cover-language > span { font: inherit; }
.form-language:has(.language-caption)::after,
.language-switch:has(.language-caption)::after,
.cover-tools .cover-language::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-block-start: -.22rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
:is(.form-language,.language-switch) .language-caption { font: inherit; }
:is(.form-language,.language-switch):has(.language-caption) select,
.cover-tools .cover-language select {
  position: absolute;
  inset: 0;
  block-size: 100%;
  inline-size: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
}
:is(.form-language,.language-switch,.cover-language):focus-within {
  outline: 2px solid var(--forest-gold);
  outline-offset: 3px;
}

/* Film chrome. Framing, aspect ratio, encoded titles and transport geometry
   belong to the existing player, including its separate rotated-phone mode. */
.forest-film #theatre, #theatre.forest-film {
  --gold: var(--forest-gold);
  --paper: var(--forest-cream);
  --ink: var(--forest-ink);
  background: var(--forest);
  color: var(--forest-cream);
  font-family: var(--forest-ui);
}
.forest-film #film, .forest-film #entry img { background: var(--forest); }
.forest-film #entry::after {
  background: linear-gradient(0deg, #182415f7, #182415a3 30%, transparent 65%);
}
.forest-film #entry::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid var(--forest-rule);
  pointer-events: none;
}
.forest-film .hosts,
.forest-film #film-title, .forest-film #household p, .forest-film #sheet :is(h2,h3,.reply-name) {
  font-family: var(--forest-display);
  font-weight: 600;
}
.forest-film .hosts {
  font-size: clamp(1.82rem, 3.8vw, 3.25rem);
  line-height: 1.04;
  color: var(--forest-cream);
}
.forest-film #view-label { color: var(--forest-gold); }
.forest-film :is(.tools button, .tools a, #transport, #close, #retry, .open, #end-reply) {
  border: 1px solid var(--forest-button-edge);
  border-radius: 2rem;
  color: var(--forest-cream);
  background: #1b2419ed;
}
.forest-film :is(.tools button, .tools a) { min-height: 44px; }
.forest-film #transport button { color: var(--forest-cream); }
.forest-film .open,
.forest-film #end-reply {
  color: var(--forest-ink);
  border-color: var(--forest-paper);
  background: var(--forest-gold);
  padding: .64rem 1.25rem;
  text-shadow: none;
}
.forest-film #household {
  background: #283322f5;
  color: var(--forest-cream);
  border: 1px solid var(--forest-rule);
  box-shadow: 0 .4rem 2rem #11190e75;
}
.forest-film #sheet,
.forest-film #error {
  color-scheme: light;
  color: var(--forest-ink);
  background: var(--forest-paper);
  border: 1px solid #c7ab7a;
  border-radius: .25rem;
  box-shadow: inset 0 0 0 4px var(--forest-paper), inset 0 0 0 5px var(--forest-paper-rule), 0 .8rem 3rem #18241580;
  font: 1rem/1.5 var(--forest-ui);
}
.forest-film #sheet::backdrop { background: #142013c7; }
.forest-film #sheet :is(.day,.event p,.event a,.more) { font-size: 1rem; }
.forest-film #sheet .day {
  margin-block: 1.2rem .1rem;
  color: var(--forest-muted);
  font-weight: 600;
}
.forest-film #sheet .event { border-color: var(--forest-paper-rule); }
.forest-film #sheet .event-title { font-size: 1.65rem; }
.forest-film #sheet :is(a,.livestream), .forest-film #error a { color: var(--forest); }
.forest-film #sheet #close { color: var(--forest-ink); border-color: var(--forest-paper-rule); background: transparent; }

/* Long pages use the illustrated cover as their masthead and the prologue's
   cream montage paper and inset rules as their reading surface. */
.forest-rsvp {
  --ink: var(--forest-ink);
  --line: var(--forest-paper-rule);
  --accent: var(--forest);
  --paper: var(--forest-paper);
  background: var(--forest);
  color: var(--forest-cream);
  font: 1rem/1.55 var(--forest-ui);
}
.forest-rsvp main {
  width: min(100%, 58rem);
  max-width: none;
  margin: auto;
  padding: clamp(.65rem, 2.5vw, 1.85rem) clamp(.65rem, 4vw, 2.2rem) 3rem;
}
.forest-rsvp main > header {
  isolation: isolate;
  position: relative;
  min-height: 18rem;
  padding: clamp(1.3rem, 4.4vw, 3rem);
  border: 1px solid var(--forest-rule);
  background: linear-gradient(90deg, #182415eb, #182415a8 53%, #18241545),
    linear-gradient(0deg, #182415a8, transparent 70%),
    url("/prologue/art/cover.webp?v=3") center 56% / cover;
}
.forest-rsvp header::after {
  content: "";
  position: absolute;
  inset: .45rem;
  z-index: -1;
  border: 1px solid var(--forest-rule);
  pointer-events: none;
}
.forest-rsvp .couple {
  margin: 2rem 0 .4rem;
  font: italic 600 1.5rem/1.1 Story, Georgia, serif;
  color: var(--forest-gold);
}
.forest-rsvp :is(h1, h2, h3, legend), .forest-rsvp .view-options strong {
  font-family: var(--forest-display);
  font-weight: 600;
}
.forest-rsvp section[lang="en"] :is(h2, h3, .view-options strong) {
  font-family: Story, Georgia, serif;
}
.forest-rsvp .back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  min-height: 44px;
  border: 1px solid var(--forest-button-edge);
  border-radius: 2rem;
  color: var(--forest-cream);
  background: #1b2419cc;
  text-decoration: none;
}
.forest-rsvp main > :is(form, .giving, #keepsake, .invitation-views) {
  margin: 1rem 0 0;
  padding: clamp(1.3rem, 5vw, 3rem);
  color: var(--forest-ink);
  background: var(--forest-paper);
  border: 1px solid #c7ab7a;
  box-shadow: inset 0 0 0 4px var(--forest-paper), inset 0 0 0 5px var(--forest-paper-rule);
  scroll-margin-block-start: .7rem;
}
.forest-rsvp :is(.giving, .invitation-views) .eyebrow {
  color: var(--forest-muted);
  font-size: .8rem;
}
.forest-rsvp :is(.hint, .event p, .optional, #keepsake-hint, .view-options small, .cause-grid article > p) {
  color: var(--forest-muted);
  font-size: 1rem;
}
.forest-rsvp :is(.giving > p:not(.eyebrow), .invitation-views > p:not(.eyebrow), label, .preview-sections) { font-size: 1rem; }
.forest-rsvp label.form-language { font-size: .92rem; }
.forest-rsvp legend { font-size: 2rem; line-height: 1.2; }
.forest-rsvp .event h2 { font-size: 1.55rem; }
.forest-rsvp :is(.view-options button, .cause-grid article, .giving-methods) {
  border: 1px solid var(--forest-paper-rule);
  border-radius: .2rem;
  background: #f9edd6;
  color: var(--forest-ink);
}
.forest-rsvp .view-options button[aria-pressed="true"] {
  border-color: var(--forest);
  box-shadow: inset .2rem 0 var(--forest);
}
.forest-rsvp .view-options button > span,
.forest-rsvp .giving-methods summary { color: var(--forest); }
.forest-rsvp .cause-grid h3 { font-size: 1.4rem; line-height: 1.15; }
.forest-rsvp :is(input:not([type="radio"]),textarea) {
  color-scheme: light;
  background: #fff8e9;
  color: var(--forest-ink);
  border-color: #91816a;
}
.forest-rsvp input[type="radio"] { accent-color: var(--forest); }
.forest-rsvp .choices label:has(:checked) { color: var(--forest-cream); background: var(--forest); }
.forest-rsvp .choices label:has(:checked) input { accent-color: var(--forest-gold); }
.forest-rsvp :is(button[type="submit"], .giving-method button, #save-keepsake, #edit-reply) {
  border: 1px solid var(--forest);
  border-radius: 2rem;
  color: var(--forest-cream);
  background: var(--forest);
}
.forest-rsvp #edit-reply { background: transparent; color: var(--forest); }
.forest-rsvp #keepsake-image { border-color: var(--forest-paper-rule); box-shadow: 0 .5rem 1.75rem #34282230; }
.forest-rsvp :is(input, textarea, a, button, summary):focus-visible,
.forest-film #sheet :is(input, select, a, button):focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
.forest-rsvp header a:focus-visible, .forest-film #theatre :focus-visible:not(dialog *) {
  outline: 2px solid var(--forest-gold);
  outline-offset: 3px;
}
@media (max-width: 500px) {
  .forest-film .language-switch:has(.language-caption) {
    min-height: 40px;
    padding: .45rem .68rem;
    gap: .4rem;
  }
  .forest-film :is(.tools button,.tools a) { min-height: 40px; }
  .forest-rsvp .phone { grid-template-columns: minmax(5rem, .85fr) minmax(0, 1.65fr); }
  .forest-rsvp .page-tools { gap: .45rem; }
}
@media (forced-colors: active) {
  :is(.form-language, .language-switch):focus-within { outline-color: Highlight; }
}

/* Guest-facing scrapbook: framed memories and a deliberate browsing rail. */
.montage-heading { gap:1rem; }
.reel { scrollbar-width:none; -ms-overflow-style:none; }
.reel::-webkit-scrollbar { display:none; }
.reel-strip { gap:.8rem; padding-bottom:.1rem; }
.reel-strip li { overflow:hidden; border:1px solid #f8d18e52; border-radius:.5rem; background:#18241599; }
.reel-strip img { border-radius:0; }
.reel-strip li > span { min-height:3.3em; padding:.5rem .6rem; font:600 .94rem/1.17 Story,Georgia,serif; }
.reel-navigation { display:flex; align-items:center; gap:.7rem; margin-top:.6rem; }
.reel-navigation button { display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #f8d18e70; border-radius:50%; background:#18241570; color:var(--forest-cream); font:1.7rem/1 Georgia,serif; }
.reel-navigation button:hover { background:#f8d18e25; }
.reel-position { flex:1; height:2px; background:#fff1d930; overflow:hidden; }
.reel-position-fill { display:block; height:100%; width:3%; background:var(--forest-gold); }
#reel-count { font:500 .72rem/1 system-ui,sans-serif; font-variant-numeric:tabular-nums; color:var(--forest-cream); }
.montage-route { font:400 .70rem/1.45 var(--forest-ui); opacity:.8; }
@media (max-aspect-ratio: 4/5) {
  .cover-inner { grid-template-columns:minmax(0,1fr); }
  .montage { width:calc(100% + var(--side)); max-width:none; }
  .montage-heading,.reel-navigation,.montage-route { margin-right:var(--side); }
  .reel-strip li { width:clamp(8.6rem,42vw,18rem); }
}

/* Compact payment layout retains the original UI typography. */
.forest-rsvp .payment-lines { margin-top:.8rem; }
.forest-rsvp .payment-lines p { display:flex; align-items:baseline; gap:.65rem; margin:.1rem 0; min-height:44px; }
.forest-rsvp .payment-lines strong { flex:0 0 3.4rem; font-weight:600; }
.forest-rsvp .payment-detail { display:inline; min-width:0; min-height:44px; padding:.3rem 0; border:0; border-radius:0; background:none; color:var(--forest); font:400 1rem/1.4 var(--forest-ui); text-align:left; overflow-wrap:anywhere; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.2em; cursor:pointer; }
.forest-rsvp .payment-detail.is-copied { text-decoration-color:transparent; color:#66744f; }
[hidden] { display:none!important; }
