/* ═══════════════════════════════════════════════════════════════════════
   wedding-rustic-country-flyer-barnwood-burlap — styles.css
   "Barnwood & Burlap" — a rustic country save-the-date poster.

   Palette (weathered wood, burlap, harvest earth):
     bark       #241509 · wood #3A2414 · wood-light #5A3A20
     kraft      #EFE0C4 · cream #F6EDDA · paper #FBF4E6
     burlap     #C9A878 · gold #DFAE45 · harvest #D9A441
     sage       #8A9A64 / #6E7D4E · terracotta #B55E3E
     ink        #3A2818 · muted #8A7458

   Layout: one 100dvh shell — masthead / tabs / active panel / foot.
   Only the active panel scrolls (html.js gates this; without JS the page
   reads as a normal scrolling document).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --bark: #241509;
  --wood: #3A2414;
  --wood-light: #5A3A20;
  --kraft: #EFE0C4;
  --kraft-deep: #E4D0A8;
  --cream: #F6EDDA;
  --paper: #FBF4E6;
  --burlap: #C9A878;
  --gold: #DFAE45;
  --harvest: #D9A441;
  --sage: #8A9A64;
  --sage-deep: #6E7D4E;
  --terracotta: #B55E3E;
  --terracotta-deep: #9A4D31;
  --ink: #3A2818;
  --ink-soft: #5C4632;
  --muted: #8A7458;
  --line: rgba(58, 40, 24, 0.18);
  --line-light: rgba(246, 237, 218, 0.22);

  /* type */
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --font-ui: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* shape */
  --radius: 14px;
  --shadow-soft: 0 14px 40px rgba(24, 12, 4, 0.35);
  --shadow-poster: 0 26px 60px rgba(16, 8, 2, 0.55);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { height: 100%; }

body {
  height: 100%;
  background: var(--wood);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── the shell ─────────────────────────────────────────────────────────── */
/* JS mode: one 100dvh app with a fixed chrome and a single scrolling
   panel. Without JS this collapses to a normal scrolling document and
   every panel reads in order (progressive enhancement). */
html.js .app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

html:not(.js) .app { height: auto; overflow: visible; display: block; }
html:not(.js) .panels { height: auto; overflow: visible; }
html:not(.js) .panel { display: block; position: static; overflow: visible; }
html:not(.js) .tabs { display: none; }

/* ── masthead (barn-wood) ──────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  padding-top: calc(10px + env(safe-area-inset-top));
  background:
    linear-gradient(180deg, rgba(255, 224, 170, 0.07), rgba(0, 0, 0, 0.25)),
    linear-gradient(160deg, var(--wood-light), var(--wood) 60%, var(--bark));
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 230, 190, 0.08) inset;
}

.masthead__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.masthead__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #DDBB7E, var(--burlap));
  box-shadow: inset 0 0 0 1px rgba(59, 36, 16, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.masthead__text { min-width: 0; line-height: 1.25; }
.masthead__top {
  display: block;
  font: 500 9.5px var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 237, 218, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__name {
  display: block;
  font: 700 21px var(--font-script);
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__name i { font-style: normal; color: var(--gold); padding: 0 3px; }

.masthead__actions { display: flex; gap: 8px; flex: none; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 237, 218, 0.28);
  background: rgba(36, 21, 9, 0.45);
  color: var(--cream);
  font: 500 12.5px var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.chip-btn:hover { background: rgba(201, 168, 120, 0.22); border-color: rgba(246, 237, 218, 0.5); }
.chip-btn:active { transform: translateY(1px); }
.chip-btn.is-done { border-color: var(--gold); color: var(--gold); }

/* ── tabs (generated by main.js) ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px clamp(14px, 3vw, 28px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--bark), #1C0E05);
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 230, 190, 0.07);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  appearance: none;
  border: 1px solid rgba(246, 237, 218, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(246, 237, 218, 0.06);
  color: rgba(246, 237, 218, 0.85);
  font: 500 12.5px var(--font-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { border-color: rgba(223, 174, 69, 0.6); color: var(--cream); }
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, #D9B878, var(--burlap));
  border-color: rgba(90, 58, 32, 0.4);
  color: var(--bark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── panels ────────────────────────────────────────────────────────────── */
.panels {
  position: relative;
  min-height: 0;
}

html.js .panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.js .panel.is-active { display: block; }

.panel {
  background: linear-gradient(180deg, #2E1C0F, #3A2414);
  background-attachment: fixed;
}

.panel-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4.5vw, 40px);
  padding-bottom: calc(clamp(28px, 5vw, 52px) + env(safe-area-inset-bottom));
  color: var(--cream);
}

/* thin rustic scrollbar inside the panel */
.panel::-webkit-scrollbar { width: 10px; }
.panel::-webkit-scrollbar-thumb { background: rgba(90, 58, 32, 0.45); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
.panel::-webkit-scrollbar-track { background: transparent; }

/* ── the poster (wood wall + hanging sheet) ─────────────────────────────── */
.wood-panel {
  background-color: #3A2414;
  background-image:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 214, 150, 0.15), rgba(58, 36, 20, 0.4) 70%),
    repeating-linear-gradient(90deg, rgba(90, 58, 32, 0.25) 0 3px, rgba(255, 235, 205, 0.08) 3px 4px, transparent 4px 16.666%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.007 0.085' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.36  0 0 0 0 0.21  0 0 0 0 0.10  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='900' height='700' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: auto, auto, 900px 700px;
}

.poster-stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 3vw, 30px) clamp(12px, 3vw, 28px);
  padding-bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom));
}

/* margin:auto centres the sheet AND degrades gracefully when the sheet is
   taller than the viewport (flex centering alone would clip the top and
   make it unreachable by scroll). */
.poster { margin: auto; }

.poster__greeting {
  margin: 0 0 clamp(10px, 2vw, 18px);
  max-width: 560px;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: #FFF8E7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}
.poster__greeting b { font-weight: 700; color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 164, 65, 0.6); }

.poster {
  position: relative;
  width: min(94%, 560px);
  background:
    linear-gradient(180deg, #FBF4E6, var(--cream) 55%, #F3E5C8);
  color: var(--ink);
  border-radius: 4px;
  padding: calc(clamp(26px, 5vw, 44px) + 46px) clamp(20px, 5vw, 46px) clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-poster), 0 0 0 1px rgba(24, 12, 4, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.1);
  transform: rotate(-0.5deg);
  text-align: center;
  /* faint paper grain so the sheet feels like real card stock */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #FBF4E6, var(--cream) 55%, #F3E5C8);
}

/* double letterpress frame */
.poster::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(58, 40, 24, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(58, 40, 24, 0.16);
  border-radius: 2px;
  pointer-events: none;
}

/* twine rig across the top of the sheet — kept INSIDE the sheet (in-flow
   via the extra top padding) so it can never be clipped or become
   unreachable on short screens */
.poster__rig {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 46px;
  pointer-events: none;
  z-index: 0;
}

/* corner staples */
.poster__staple {
  position: absolute;
  top: 16px;
  width: 22px;
  height: 22px;
  opacity: 0.85;
  pointer-events: none;
}
.poster__staple--tl { left: 16px; }
.poster__staple--tr { right: 16px; }

/* corner wildflower sprigs — sit behind the text (z-index 0) so they
   frame the lettering without ever covering it */
.poster__sprig {
  position: absolute;
  width: clamp(88px, 17vw, 138px);
  height: auto;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.poster__sprig--tl { top: 34px; left: 18px; }
.poster__sprig--tr { top: 34px; right: 18px; }
.poster__sprig--bl { bottom: 18px; left: 18px; }
.poster__sprig--br { bottom: 18px; right: 18px; }

/* all poster text + banner paint above the artwork */
.poster > *:not(.poster__sprig):not(.poster__staple):not(.poster__rig) {
  position: relative;
  z-index: 1;
}

.poster__kicker {
  margin: 0 0 10px;
  font: 600 10.5px var(--font-ui);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* polaroid couple photo pinned to the poster — optional; delete the
   <figure> to remove. A paper mat with a dashed letterpress inner frame,
   slightly tilted like a photo taped to the sheet. object-fit: cover + a
   warm fallback behind the image mean any real photo fills the frame. */
.poster__photo {
  position: relative;
  margin: clamp(6px, 1.2vw, 12px) auto clamp(14px, 2.4vw, 20px);
  width: min(44%, 150px);
  padding: 7px 7px 9px;
  background: linear-gradient(180deg, var(--paper), #EFE3C8);
  border: 1px solid rgba(58, 40, 24, 0.32);
  box-shadow: 0 12px 26px rgba(90, 62, 34, 0.3), 0 0 0 1px rgba(251, 244, 230, 0.7) inset;
  transform: rotate(-1.4deg);
}
.poster__photo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(58, 40, 24, 0.18);
  pointer-events: none;
}
.poster__photo-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--kraft-deep);   /* warm fallback behind the image */
}
.poster__photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the polaroid photo is a real button — tap to open it full size with
   zoom (main.js). The zoom badge whispers "tap me" on hover/touch. */
.photo-open {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-open:hover img,
.photo-open:focus-visible img { transform: scale(1.04); }

/* gentle zoom badge — whispers "tap me" on every photo slot */
.photo-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(58, 40, 24, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 3px 10px rgba(58, 40, 24, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.photo-open:hover .photo-zoom,
.photo-open:focus-visible .photo-zoom,
.gallery-item:hover .photo-zoom,
.gallery-item:focus-visible .photo-zoom,
.banner-open:hover .photo-zoom,
.banner-open:focus-visible .photo-zoom,
.free-media:hover .photo-zoom,
.free-media:focus-visible .photo-zoom {
  opacity: 1;
  transform: none;
}
/* touch devices have no hover — keep the badge gently visible */
@media (hover: none) {
  .photo-zoom { opacity: 0.85; transform: none; }
}

.poster__photo-cap {
  margin: 7px 0 0;
  font: italic 500 0.72rem/1.4 var(--font-display);
  color: var(--ink-soft);
}

.poster__names {
  margin: 0;
  font: 700 clamp(2.4rem, 9vw, 4.4rem) / 1.12 var(--font-script);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 3px rgba(90, 58, 32, 0.18);
}
.poster__name { display: inline-block; }
.poster__amp {
  display: inline-block;
  margin: 0 0.18em;
  font-style: normal;
  color: var(--terracotta);
}

.poster__line {
  margin: 6px 0 0;
  font: italic 500 clamp(0.95rem, 2.6vw, 1.15rem) var(--font-display);
  color: var(--ink-soft);
}

/* burlap banner (stitched top & bottom) with the date */
.poster__banner {
  position: relative;
  margin: clamp(18px, 3.4vw, 26px) auto clamp(14px, 2.6vw, 20px);
  max-width: 410px;
  padding: 12px 18px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(90, 58, 32, 0.16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(90, 58, 32, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(120% 160% at 50% 0%, #D9B878, var(--burlap) 70%);
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(58, 40, 24, 0.35), inset 0 0 0 1px rgba(90, 58, 32, 0.35);
}
.poster__banner::before,
.poster__banner::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  border-top: 1px dashed rgba(36, 21, 9, 0.55);
}
.poster__banner::before { top: 5px; }
.poster__banner::after { bottom: 5px; }

.poster__banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.poster__banner-date {
  position: relative;
  margin: 0;
  font: 700 clamp(0.95rem, 2.8vw, 1.15rem) var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FBF4E6;
  text-shadow: 0 1px 2px rgba(58, 40, 24, 0.5);
}

.poster__date {
  margin: 0 0 14px;
  font: 400 1.02rem/1.5 var(--font-body);
  color: var(--ink-soft);
}

.poster__place {
  margin: 0;
  font: 400 0.98rem/1.5 var(--font-display);
  color: var(--ink-soft);
}
.poster__place strong {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
}

.poster__dress {
  margin: 16px auto 0;
  max-width: 340px;
  padding-top: 12px;
  border-top: 1px dashed rgba(58, 40, 24, 0.22);
  font: 500 10px var(--font-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.poster__hashtag {
  margin: 14px 0 0;
  font: 600 1.3rem var(--font-script);
  color: var(--terracotta);
}

.poster__follow {
  margin: 12px auto 0;
  max-width: 360px;
  font: italic 400 0.86rem/1.5 var(--font-body);
  color: var(--muted);
}

/* ── section heads (details / RSVP / guestbook) ────────────────────────── */
.section-head { margin-bottom: clamp(22px, 4vw, 34px); }
.kicker {
  margin: 0 0 8px;
  font: 600 10.5px var(--font-ui);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section-head h2 {
  margin: 0 0 10px;
  font: 700 clamp(1.6rem, 4.5vw, 2.3rem) / 1.2 var(--font-display);
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.lede {
  margin: 0;
  font: italic 400 1.05rem/1.7 var(--font-body);
  color: rgba(246, 237, 218, 0.9);
}
.lede .rsvp-date { font-style: normal; font-weight: 600; color: var(--gold); }

.block-title {
  margin: clamp(26px, 4vw, 36px) 0 14px;
  font: 700 1.2rem var(--font-display);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

/* ── ceremony countdown tiles ──────────────────────────────────────────── */
.countdown-tiles {
  text-align: center;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(251, 244, 230, 0.85);
  border: 1px dashed rgba(217, 164, 65, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.countdown-tiles__label {
  margin: 0 0 14px;
  font: 500 10.5px var(--font-ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wood);
}
.tiles { display: flex; justify-content: center; gap: clamp(8px, 2vw, 14px); }
.tile {
  min-width: 64px;
  padding: 10px 8px 8px;
  background: linear-gradient(180deg, var(--paper), #EFE3C8);
  border-radius: 8px;
  border: 1px solid rgba(58, 40, 24, 0.22);
  box-shadow: 0 2px 6px rgba(58, 40, 24, 0.18);
}
.tile-num {
  display: block;
  font: 700 1.7rem/1 var(--font-display);
  color: var(--ink);
}
.tile-cap {
  display: block;
  margin-top: 6px;
  font: 500 9px var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wood-light);
}
.countdown-tiles__here {
  margin: 14px 0 0;
  font: italic 1.02rem var(--font-body);
  color: var(--terracotta);
}

/* ── timeline ──────────────────────────────────────────────────────────── */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 11px 0 11px 26px;
  border-bottom: 1px dashed rgba(246, 237, 218, 0.25);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--harvest));
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.22);
}
.timeline-item__time {
  flex: none;
  width: 82px;
  font: 700 13px var(--font-ui);
  letter-spacing: 0.06em;
  color: var(--gold);
  padding-top: 2px;
}
.timeline-item__text { font: 400 1rem var(--font-body); color: rgba(246, 237, 218, 0.9); }

/* ── venues ────────────────────────────────────────────────────────────── */
.event-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.event-item {
  position: relative;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--paper), #F2E6CB);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(58, 40, 24, 0.25);
}
.event-item__chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #D9B878, var(--burlap));
  color: var(--bark);
  font: 700 9.5px var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.event-item__title { margin: 0 0 4px; font: 700 1.25rem var(--font-display); color: var(--wood); }
.event-item__when { margin: 0; font: 500 12.5px var(--font-ui); color: var(--terracotta); }
.event-item__addr { margin: 4px 0 0; font: 400 0.94rem var(--font-body); color: var(--ink); }
.event-item__actions { margin-top: 12px; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 13px var(--font-ui);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--ghost {
  border-color: rgba(246, 237, 218, 0.4);
  background: rgba(246, 237, 218, 0.1);
  color: var(--cream);
}
.btn--ghost:hover { 
  border-color: var(--gold); 
  background: rgba(217, 164, 65, 0.2); 
  color: var(--gold); 
}
.btn--primary {
  background: linear-gradient(180deg, #C46947, var(--terracotta));
  border-color: rgba(90, 58, 32, 0.35);
  color: var(--paper);
  box-shadow: 0 3px 10px rgba(154, 77, 49, 0.4);
}
.btn--primary:hover { background: linear-gradient(180deg, #B55E3E, var(--terracotta-deep)); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ── notes ─────────────────────────────────────────────────────────────── */
.notes { margin-top: clamp(24px, 4vw, 34px); }
.note {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  font: 400 0.96rem/1.6 var(--font-body);
  color: rgba(246, 237, 218, 0.85);
}
.note::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.3);
}
.note strong { color: var(--cream); font-weight: 700; }

/* ── official flyer / banner (optional) ──────────────────────────────────
   A slot for hosts who already have a designed flyer or save-the-date
   poster — display it so guests can confirm they are in the right place.
   Delete the whole <div class="banner-block"> to hide the feature.
   Clicking it opens the full-screen viewer with zoom (main.js). */
.banner-block { margin-top: clamp(26px, 4vw, 36px); }
.banner-flyer {
  position: relative;
  margin: 0;
  text-align: center;
}
.banner-open {
  appearance: none;
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(58, 40, 24, 0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--paper), #EFE3C8);
  box-shadow: 0 8px 20px rgba(90, 62, 34, 0.2), 0 0 0 1px rgba(251, 244, 230, 0.7) inset;
  cursor: zoom-in;
  transform: rotate(-0.6deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-open:hover,
.banner-open:focus-visible {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 18px 40px rgba(90, 62, 34, 0.3), 0 0 0 1px rgba(251, 244, 230, 0.7) inset;
}
.banner-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--kraft-deep);   /* warm fallback behind the image */
}
.banner-caption {
  margin: 10px 0 0;
  font: italic 500 0.82rem var(--font-display);
  color: var(--muted);
}

/* ── optional film feature (video URL embed) ─────────────────────────────
   Ships visible with its placeholder poster. A URL in data-video-url
   (YouTube / Vimeo / any embeddable link) swaps the "coming soon" note
   for the play button; guests tap and an <iframe> is lazily built —
   nothing loads until then. Empty URL = poster + note stay, as shipped;
   delete the block = feature removed. */
.film-card {
  margin-top: clamp(30px, 5vw, 44px);
  padding-top: clamp(24px, 4vw, 34px);
  border-top: 1px dashed rgba(58, 40, 24, 0.24);
  text-align: center;
}
.film-card[hidden],
.film-play[hidden],
.film-hint[hidden],
.film-note[hidden] { display: none; }
.film-label {
  margin: 0;
  font: 600 10.5px var(--font-ui);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.film-frame {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 16px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--kraft-deep);
  border: 1px solid rgba(58, 40, 24, 0.32);
  box-shadow: 0 14px 32px rgba(90, 62, 34, 0.28);
}
.film-open {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.film-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: linear-gradient(135deg, #C46947, var(--terracotta));
  box-shadow: 0 12px 26px -10px rgba(154, 77, 49, 0.9);
  animation: film-pulse 2.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.film-play svg { width: 27px; height: 27px; margin-left: 4px; }
.film-open:hover .film-play,
.film-open:focus-visible .film-play { transform: translate(-50%, -50%) scale(1.08); }
.film-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font: 600 10px var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(58, 40, 24, 0.6);
  padding: 7px 14px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.film-note {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  font: 600 11px var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(58, 40, 24, 0.62);
  padding: 9px 16px;
  border-radius: 999px;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.film-frame.is-playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-external {
  display: inline-block;
  margin-top: 16px;
  font: 600 12px var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  padding: 10px 18px;
  border: 1px solid rgba(154, 77, 49, 0.4);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.film-external:hover { background: rgba(181, 94, 62, 0.1); border-color: var(--terracotta); }
.film-external[hidden] { display: none; }
@keyframes film-pulse {
  0%, 100% { box-shadow: 0 12px 26px -10px rgba(154, 77, 49, 0.9), 0 0 0 0 rgba(154, 77, 49, 0.45); }
  50%      { box-shadow: 0 12px 26px -10px rgba(154, 77, 49, 0.9), 0 0 0 14px rgba(154, 77, 49, 0); }
}

/* ── RSVP form ─────────────────────────────────────────────────────────── */
.rsvp-form { margin-top: 6px; }

.form-group { margin-bottom: 16px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font: 700 12px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.form-group label small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--burlap);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(58, 40, 24, 0.32);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 74px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--wood-light); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.3);
}

.error {
  display: block;
  margin-top: 5px;
  font: 600 12px var(--font-ui);
  color: #B0413A;
}
.error:empty { display: none; }

.form-hint {
  margin: -6px 0 18px;
  font: italic 400 0.86rem var(--font-body);
  color: rgba(246, 237, 218, 0.7);
}

/* declined state: main.js toggles .is-declining on the form */
.rsvp-extras,
.declined-note {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rsvp-extras { padding-top: 4px; }
.declined-note {
  display: none;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px dashed rgba(181, 94, 62, 0.5);
  border-radius: 10px;
  background: rgba(181, 94, 62, 0.08);
  font: italic 400 0.97rem var(--font-body);
  color: var(--terracotta-deep);
  line-height: 1.6;
}
form.is-declining .rsvp-extras { opacity: 0.35; pointer-events: none; }
form.is-declining .declined-note { display: block; }

/* RSVP deadline countdown (revealed only when the platform sets rsvpDeadline) */
.rsvp-countdown {
  margin: 0 0 22px;
  padding: 14px 18px;
  text-align: center;
  background: rgba(217, 164, 65, 0.2);
  border: 1px dashed rgba(217, 164, 65, 0.7);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.rsvp-countdown__label {
  margin: 0 0 4px;
  font: 500 10px var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--burlap);
}
.rsvp-countdown__nums {
  margin: 0;
  font: 700 1.25rem var(--font-display);
  color: var(--gold);
}
.rsvp-countdown__nums span { color: var(--cream); }

.loading {
  display: none;
  text-align: center;
  padding: 12px 0 0;
  font: italic 600 0.92rem var(--font-body);
  color: var(--muted);
  line-height: 1.6;
}

/* ── guestbook (platform injects form + list into .guestbook-body) ─────── */
.guestbook-body #guestbookForm {
  margin-top: 6px;
}
.guestbook-body #guestbookForm input,
.guestbook-body #guestbookForm textarea {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1px solid rgba(58, 40, 24, 0.32);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px var(--font-body);
}
.guestbook-body #guestbookForm textarea { min-height: 96px; resize: vertical; }
.guestbook-body #guestbookForm button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid rgba(90, 58, 32, 0.35);
  background: linear-gradient(180deg, #C46947, var(--terracotta));
  color: var(--paper);
  font: 600 13px var(--font-ui);
  cursor: pointer;
}
.guestbook-body .guestbook-chapta { margin-bottom: 14px; }
.guestbook-body .loading-guestbook {
  text-align: center;
  font-style: italic;
  color: var(--burlap);
  padding: 8px 0;
}

#comments-container { margin-top: 26px; }
.guestbook-entry {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, var(--paper), #F2E6CB);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-left: 3px solid var(--burlap);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.guestbook-entry h5 {
  margin: 0 0 4px;
  font: 700 1.02rem var(--font-display);
  color: var(--wood);
}
.guestbook-entry p { margin: 0 0 4px; font: 400 0.95rem/1.55 var(--font-body); color: var(--ink); }
.guestbook-entry small { font: 500 11px var(--font-ui); color: var(--wood-light); }

.more-guestbook-wrap { text-align: center; margin-top: 14px; }
.more-guestbook-wrap #load-more {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(246, 237, 218, 0.4);
  background: rgba(246, 237, 218, 0.1);
  color: var(--cream);
  font: 600 12.5px var(--font-ui);
  cursor: pointer;
}
.more-guestbook-wrap #load-more:hover { 
  border-color: var(--gold); 
  background: rgba(217, 164, 65, 0.2); 
  color: var(--gold); 
}

/* ── photo gallery (The Album panel) ─────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.2vw, 20px);
}
/* the repeatable photo set: the platform clones .gallery-item inside
   .gallery-grid; display:contents keeps those clones flowing in the same
   grid as the fixed wide opening shot above it */
.gallery-grid { display: contents; }
.gallery-item {
  margin: 0;
  border-radius: 8px;
  cursor: zoom-in;
  outline-offset: 4px;
}
.gallery-item__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(58, 40, 24, 0.28);
  box-shadow: 0 6px 16px rgba(90, 62, 34, 0.18);
  background: var(--kraft-deep);   /* warm fallback behind the image */
}
.gallery-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover .gallery-item__media img,
.gallery-item:focus-visible .gallery-item__media img {
  transform: scale(1.05);
}
.gallery-item--wide { grid-column: 1 / -1; }
.gallery-item--wide .gallery-item__media { aspect-ratio: 16 / 9; }
.gallery-item__cap {
  margin: 8px 2px 0;
  font: italic 500 0.88rem var(--font-display);
  color: var(--ink-soft);
}

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(36, 23, 12, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 82dvh);
  border-radius: 6px;
  border: 6px solid var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: var(--kraft-deep);
  cursor: zoom-in;
}

/* tap/click the photo to zoom in — the frame scrolls to explore;
   tap again to zoom out (keyboard: Enter/Space on the photo) */
.lightbox__figure.is-zoomed {
  overflow: auto;
  max-width: 94vw;
  max-height: 94vh;
  -webkit-overflow-scrolling: touch;
}
.lightbox__figure.is-zoomed .lightbox__img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.lightbox__hint {
  margin: 10px 0 0;
  font: 600 10.5px var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 244, 230, 0.65);
}
.lightbox__cap {
  margin-top: 16px;
  font: italic 500 1.05rem var(--font-display);
  color: var(--paper);
}
.lightbox__count {
  margin: 8px 0 0;
  font: 600 12px var(--font-ui);
  letter-spacing: 0.2em;
  color: rgba(251, 244, 230, 0.6);
}

.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(251, 244, 230, 0.35);
  background: rgba(251, 244, 230, 0.08);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { background: rgba(251, 244, 230, 0.18); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(251, 244, 230, 0.35);
  background: rgba(251, 244, 230, 0.08);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__nav:hover { background: rgba(251, 244, 230, 0.18); }
.lightbox__nav--prev { left: clamp(0.8rem, 3vw, 2.2rem); }
.lightbox__nav--next { right: clamp(0.8rem, 3vw, 2.2rem); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox__nav:disabled { opacity: 0.25; cursor: default; }

/* ── foot ──────────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(14px, 3vw, 28px);
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  background: linear-gradient(180deg, #1C0E05, var(--bark));
  border-top: 1px solid rgba(255, 230, 190, 0.07);
  color: rgba(246, 237, 218, 0.6);
  font: 500 11.5px var(--font-ui);
  letter-spacing: 0.08em;
}
.foot::-webkit-scrollbar { display: none; }
.foot__dot { opacity: 0.5; }
.footer-brand { font-weight: 700; letter-spacing: 0.12em; }
.footer-brand-name { color: var(--terracotta); font-style: normal; }

/* ── free page / More panel (optional, repeatable blocks) ────────────────
   One optional page of the couple's own: repeatable blocks, each with a
   title, free text and an OPTIONAL photo. The photo opens full-screen
   with zoom like every other photo slot. Delete the whole
   <section id="panel-free"> to hide the page (the More tab disappears
   with it); the render engine also removes the section on its own when
   the host leaves every free block empty (or toggles the Free Page
   section off in the cockpit). */
.free-blocks {
  display: grid;
  gap: clamp(28px, 4.5vw, 44px);
}
.free-block {
  margin: 0;
  text-align: center;
}
.free-title {
  margin: 0 0 clamp(12px, 2.4vw, 18px);
  font: 700 clamp(1.35rem, 4vw, 1.9rem) / 1.25 var(--font-display);
  color: var(--cream);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.free-title:focus { outline: none; }
.free-media {
  position: relative;
  margin: 0 auto clamp(14px, 2.6vw, 20px);
  max-width: 560px;
  cursor: zoom-in;
  outline-offset: 4px;
}
.free-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  padding: 6px;
  background: linear-gradient(180deg, var(--paper), #EFE3C8);
  border: 1px solid rgba(58, 40, 24, 0.32);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(90, 62, 34, 0.3), 0 0 0 1px rgba(251, 244, 230, 0.7) inset;
  transition: transform 0.45s ease;
}
.free-media:hover .free-img,
.free-media:focus-visible .free-img { transform: scale(1.02); }
.free-content {
  margin: 0 auto;
  max-width: 34em;
  text-align: left;
  font: 400 0.98rem/1.7 var(--font-body);
  color: rgba(246, 237, 218, 0.9);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ── full-width powered-by brand strip ─────────────────────────────────
   A slim, full-width closing credit line at the bottom of the shell. The
   platform swaps the literal brand token inside .link-footer for the
   platform name at render; the cockpit's Free Powered By field can
   override the whole line. Stays visible even when the free page is
   hidden. */
html:not(.js) .powered-by {
  width: 100%;
  text-align: center;
  padding: 14px 16px 22px;
  border-top: 1px solid rgba(58, 40, 24, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
html.js .powered-by {
  width: 100%;
  text-align: center;
  padding: 5px 14px;
  border-top: 1px solid rgba(58, 40, 24, 0.18);
  background: rgba(251, 244, 230, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-by .link-footer { color: var(--terracotta); }

/* ── reveal-on-scroll (skipped entirely under reduced motion) ──────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ── reduced motion ────────────────────────────────────────────────────── */
html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.no-motion [data-reveal] { opacity: 1; transform: none; }
html.no-motion .film-play { animation: none; }

/* ── focus visibility ──────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--harvest);
  outline-offset: 2px;
}

/* ── small screens ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .chip-btn { padding: 8px 11px; }
  .chip-btn__label { display: none; }
  .masthead__top { max-width: 46vw; }
  .timeline-item__time { width: 68px; font-size: 12px; }
  .tile { min-width: 56px; }
  .tile-num { font-size: 1.4rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .poster__photo { width: min(56%, 168px); }
  .banner-img { aspect-ratio: 8 / 4.4; }

  /* tap-friendly chrome: 44px touch targets */
  .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
  }
  .chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
  .btn,
  .guestbook-body #guestbookForm button,
  .more-guestbook-wrap #load-more,
  .film-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  /* 16px field text stops iOS Safari zooming on focus */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .guestbook-body #guestbookForm input,
  .guestbook-body #guestbookForm textarea {
    font-size: 16px;
    min-height: 44px;
  }

  /* fixed backgrounds repaint poorly / jank while scrolling on iOS */
  .panel { background-attachment: scroll; }
}

/* Touch tablets (portrait/landscape) also want roomy targets and no
   focus-zoom; keep the desktop feel on hover-capable devices. */
@media (hover: none) and (pointer: coarse) {
  .tab,
  .chip-btn,
  .btn,
  .guestbook-body #guestbookForm button,
  .more-guestbook-wrap #load-more,
  .film-external {
    min-height: 44px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .guestbook-body #guestbookForm input,
  .guestbook-body #guestbookForm textarea {
    font-size: 16px;
    min-height: 44px;
  }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  @page { margin: 12mm; }

  html.js .app { height: auto; display: block; overflow: visible; }
  html.js .panels { height: auto; overflow: visible; }
  html.js .panel { display: block !important; overflow: visible !important; position: static; }

  .masthead__actions, .tabs, .foot, .no-print,
  .poster__rig, .poster__staple { display: none !important; }

  /* the lightbox is an on-screen overlay — never print it */
  .lightbox { display: none !important; }

  /* a playing video can't print — the poster prints instead */
  .film-frame iframe { display: none !important; }
  .film-play, .film-hint, .film-note { box-shadow: none; }

  .wood-panel {
    background: #F6EDDA;
  }
  .poster {
    transform: none;
    box-shadow: none;
    width: 100%;
    border: 1px solid rgba(58, 40, 24, 0.4);
  }
  .panel-inner { max-width: none; }
  .rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    border-color: #9A8A6E;
  }

  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
