/* =====================================================
   Shared site footer (build/footer.mjs footerHTML). On
   inner pages it closes the page on velvet; on the home
   page the same blocks sit over the r11 finale film
   (.site-foot--film keeps the backdrop transparent).
   ===================================================== */
.site-foot {
  position: relative;
  z-index: 2;
  padding: 72px 24px 40px;
  background: radial-gradient(120% 90% at 50% 0%, #5a1215 0%, var(--wine-deep, #3e0a0c) 60%, #230506 100%);
  color: var(--pearl, #efece3);
  font: 400 17px/1.6 var(--ff-serif, Georgia, serif);
  border-top: 1px solid rgba(211, 193, 129, 0.35);
}

.site-foot--film {
  background: none;
  border-top: 0;
}

.site-foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px 64px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-foot__title,
.site-foot .wordmark {
  font: 400 clamp(44px, 6vw, 84px) / 1 var(--ff-script, cursive);
  color: var(--champagne, #d3c181);
  margin-bottom: 18px;
}

.site-foot h3 {
  font: 500 12px/1.2 var(--ff-sans, sans-serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne, #d3c181);
  margin-bottom: 12px;
}

.site-foot a {
  color: inherit;
  text-decoration-color: rgba(211, 193, 129, 0.55);
  text-underline-offset: 3px;
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--gold-hi, #efe2b0);
}

.site-foot .contacts {
  margin-top: 14px;
  font-family: var(--ff-sans, sans-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.site-foot .socials,
.site-foot .more-links,
.site-foot .foot-menu {
  list-style: none;
}

.site-foot .socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.site-foot .socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(211, 193, 129, 0.5);
  border-radius: 50%;
}

.site-foot .socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-foot .more-links li,
.site-foot .foot-menu li {
  padding: 4px 0;
}

.site-foot .foot-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 20px;
  font: 500 13px/1.4 var(--ff-sans, sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-foot .legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(211, 193, 129, 0.25);
  font: 400 13px/1.6 var(--ff-sans, sans-serif);
  opacity: 0.85;
}

.site-foot .legal a {
  margin-left: 14px;
}

/* tap targets of at least 44 px: the email, the phone and the legal links */
.site-foot .contacts a,
.site-foot .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}

@media (max-width: 760px) {
  .site-foot__in {
    grid-template-columns: 1fr;
  }
}

/* ---- home: the footer inside the r11 finale picture ----------------------
   No band of its own: the blocks sit on the finale's velvet, under the
   seal and the name (lib/book.js fits the film's lockup above them), on a
   soft shade that deepens toward the bottom edge. Real links throughout. */
.film-on:not(.reduced) .panel.panel--finale {
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 44px max(24px, 5vw) 18px;
  border-radius: 0;
  background: linear-gradient(to bottom, rgba(22, 2, 4, 0) 0, rgba(22, 2, 4, 0.42) 46%, rgba(16, 1, 3, 0.72) 100%);
  box-shadow: none;
  color: var(--pearl, #efece3);
  font: 400 13px/1.55 var(--ff-sans, sans-serif);
  text-shadow: 0 1px 10px rgba(16, 1, 3, 0.7);
}

.panel--finale::before {
  display: none;
}

.film-on:not(.reduced) .panel--finale .site-foot__in {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 12px 44px;
  max-width: 1180px;
  padding-top: 16px;
  border-top: 1px solid rgba(211, 193, 129, 0.4);
  font-size: 13px;
}

.film-on:not(.reduced) .panel--finale .areas {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.86;
}

.film-on:not(.reduced) .panel--finale .site-foot__reach {
  text-align: center;
}

.film-on:not(.reduced) .panel--finale .site-foot__side {
  text-align: right;
}

.film-on:not(.reduced) .panel--finale .contacts {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* 28 px targets on desktop (WCAG 2.2 asks 24); phones get 32+ below */
.film-on:not(.reduced) .panel--finale :is(.contacts a, .legal a, .more-links a, .foot-menu a) {
  min-height: 28px;
}

.film-on:not(.reduced) .panel--finale .socials {
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.film-on:not(.reduced) .panel--finale .socials a {
  width: 36px;
  height: 36px;
}

.film-on:not(.reduced) .panel--finale .socials svg {
  width: 16px;
  height: 16px;
}

.film-on:not(.reduced) .panel--finale h3 {
  margin: 0 0 4px;
  font: 500 10.5px/1.3 var(--ff-sans, sans-serif);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--champagne, #d3c181);
}

.film-on:not(.reduced) .panel--finale .more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 16px;
  font-size: 12.5px;
}

.film-on:not(.reduced) .panel--finale :is(.more-links li, .foot-menu li) {
  padding: 2px 0;
}

.film-on:not(.reduced) .panel--finale .foot-menu {
  justify-content: flex-end;
  gap: 0 16px;
  margin-top: 6px;
  font-size: 11px;
}

.film-on:not(.reduced) .panel--finale .legal {
  padding-top: 8px;
  border-top: 1px solid rgba(211, 193, 129, 0.2);
  font-size: 11.5px;
  text-align: center;
  opacity: 0.8;
}

/* narrow landscape windows: one centred column */
@media (max-width: 860px) {
  .film-on:not(.reduced) .panel--finale .site-foot__in {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .film-on:not(.reduced) .panel--finale :is(.site-foot__side, .areas) {
    text-align: center;
  }

  .film-on:not(.reduced) .panel--finale :is(.more-links, .foot-menu) {
    justify-content: center;
  }
}

/* phones: the footer stacks inside the lower part of the final frame
   (centred, contacts first) and scrolls inside itself if it must; the
   bottom padding keeps the last line clear of the fixed Book button */
.is-portrait.film-on:not(.reduced) .panel.panel--finale {
  max-height: 56vh;
  max-height: 56svh;
  overflow-y: auto; /* scrolls chain to the page at either end */
  scrollbar-width: none;
  /* scrolled lines fade out above the footer's first rule, never over
     the film's lockup (lib/book.js fits it right above that rule) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 22px, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 22px, #000 40px);
  padding: 30px 18px 84px;
  border-radius: 0;
  box-shadow: none;
  font-size: 12.5px;
}

.is-portrait.film-on:not(.reduced) .panel--finale .site-foot__in {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 12px;
  text-align: center;
}

.is-portrait.film-on:not(.reduced) .panel--finale .site-foot__reach {
  order: -2;
}

.is-portrait.film-on:not(.reduced) .panel--finale .site-foot__side {
  order: -1;
  text-align: center;
}

.is-portrait.film-on:not(.reduced) .panel--finale .areas {
  font-size: 12px;
  text-align: center;
}

.is-portrait.film-on:not(.reduced) .panel--finale :is(.more-links, .foot-menu) {
  justify-content: center;
}

.is-portrait.film-on:not(.reduced) .panel--finale .socials a {
  width: 44px;
  height: 44px;
}

.is-portrait.film-on:not(.reduced) .panel--finale :is(.contacts a, .legal a, .more-links a, .foot-menu a) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ---- phones: larger, lighter footer text (owner request, 2026-10-05) ------
   Inner pages (About, Package, Journal, Gallery) and the home footer inside the
   finale. Desktop and tablets above 760px are untouched. */
@media (max-width: 760px) {
  .site-foot {
    padding-bottom: calc(136px + env(safe-area-inset-bottom)); /* clear of the Book button and the cookie notice */
    font-size: 18px;
  }

  .site-foot h3 {
    font-size: 14px;
    letter-spacing: 0.24em;
    color: var(--gold-hi, #efe2b0);
  }

  .site-foot .contacts {
    font-size: 17px;
  }

  .site-foot .foot-menu {
    gap: 2px 20px;
    font-size: 15px;
  }

  .site-foot .more-links {
    font-size: 19px;
  }

  .site-foot .legal {
    font-size: 15px;
    opacity: 1;
  }

  .site-foot a {
    text-decoration-color: rgba(239, 226, 176, 0.7);
  }

  /* the home footer inside the finale picture: it scrolls inside its own panel,
     so the larger type only lengthens that scroll */
  .is-portrait.film-on:not(.reduced) .panel.panel--finale {
    font-size: 16px;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .site-foot__in {
    font-size: 16px;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .areas {
    font-size: 15px;
    line-height: 1.55;
    opacity: 1;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .contacts {
    font-size: 16px;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale h3 {
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.24em;
    color: var(--gold-hi, #efe2b0);
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .more-links {
    gap: 0 18px;
    font-size: 17px;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .foot-menu {
    gap: 0 18px;
    font-size: 14px;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale .legal {
    font-size: 14px;
    opacity: 1;
  }

  .is-portrait.film-on:not(.reduced) .panel--finale :is(.contacts a, .legal a, .more-links a, .foot-menu a) {
    min-height: 40px;
  }
}
