/* Shared chrome for betweenthemountainandthesky.com rebuild (Squarespace port).
   One source of truth for header, footer, type system, section themes, buttons,
   quotes and marquee across every page. Page-unique bits stay in each page's
   own <style>. Headings on the live site are Orpheus Pro 400 (Adobe); Marcellus
   is the free stand-in until fonts are settled. Palette is the site's own:
   pure black / pure white / #f6f6f6 / #d9d9d9 grayscale.
   Images + hero video are self-hosted under assets/ (portable to any host). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #000; --white: #fff; --light: #f6f6f6; --accent: #d9d9d9;
  --head: 'orpheus-pro', 'Marcellus', 'Times New Roman', serif;
  --body: 'Helvetica Neue', Arial, sans-serif;
  --garamond: 'adobe-garamond-pro', 'Cormorant Garamond', Georgia, serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-weight: 400; letter-spacing: -0.01em; background: var(--black); color: var(--white); }
/* Live type system: Orpheus Pro 400, line-height 1.3em, letter-spacing 0.
   Sizes use Squarespace's fluid formula (h2=2.8rem, h3=2.2rem, h4=1.2rem, maxPageWidth 1800px). */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: min(3.24vw + 1rem, 82px); }
h2 { font-size: min(2.16vw + 1rem, 54.9px); }
h3 { font-size: min(1.44vw + 1rem, 41.9px); }
h4 { font-size: min(0.24vw + 1rem, 20.3px); }
p { line-height: 1.6; text-align: justify; text-align-last: left; text-wrap: pretty; }

/* ---------- header (solid black bar, like the live site) ---------- */
header {
  position: sticky; top: 0; z-index: 50; background: var(--black);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 2vw; padding: 12px 3.4vw;
  transition: transform 0.35s ease;
}
/* Hidden once scrolled a short way down; slides back in near the top */
header.nav-hidden { transform: translateY(-100%); }
/* Single tidy row on desktop (live wraps 5+2, which reads as ragged); wraps gracefully when it can't fit */
nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(13px, 1.35vw, 24px); row-gap: 9px; }
nav a { color: var(--white); text-decoration: none; font-size: 12.5px; letter-spacing: 0.8px; }
nav a:hover { opacity: 0.65; }
/* Live site underlines the current page's nav link (1px, at the baseline) */
nav a.active { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.brand { display: block; justify-self: center; }
.brand img { height: 68px; display: block; }
.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.hdr-right .icon { color: var(--white); opacity: 0.9; }
.hdr-right .icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hdr-right .cta {
  /* Live spec: single 4px stroke, Orpheus 500, ~17px, ls .04em, padding 1rem/1.3rem */
  border: 4px solid var(--white);
  padding: 15px 21px; color: var(--white); text-decoration: none;
  font-family: var(--head); font-size: clamp(17px, 0.12vw + 1rem, 19px);
  letter-spacing: 0.04em; white-space: nowrap;
}
.hdr-right .cta:hover { background: var(--white); color: var(--black); }

/* ---------- shared section chrome ---------- */
section { position: relative; padding: 110px 4vw; }
.bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bgimg.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.inner { position: relative; z-index: 1; width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; }        /* optional centered column */
.s-white { background: var(--white); color: var(--black); }
.s-light { background: var(--light); color: var(--black); }
.s-black { background: var(--black); color: var(--white); }
/* Squarespace "bright-inverse" theme = black bg, light-grey (#d9d9d9) text */
.s-inverse { background: var(--black); color: var(--accent); }
.center { text-align: center; }
.center p { text-align: center; text-align-last: center; }
.kicker { font-family: var(--body); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.75; }
.lead { max-width: 900px; margin: 26px auto 0; }
.btn {
  display: inline-block; border: 1px solid currentColor; padding: 16px 34px;
  font-family: var(--body); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: inherit; text-decoration: none; margin: 10px 12px 0 0;
}
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.s-white .btn:hover, .s-light .btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
iframe.video { width: min(1100px, 92vw); aspect-ratio: 16 / 9; border: 0; display: block; margin: 44px auto 0; }

/* ---------- hero (home) ---------- */
/* Live hero is a short band (~27% of viewport width); video crops top/bottom via object-fit */
#hero {
  height: clamp(430px, 27vw, 60vh); padding: 30px 4vw;
  display: flex; align-items: center; justify-content: center;
}
#hero .inner { text-align: center; }
#hero img.logo { width: clamp(240px, 34vw, 600px); display: block; margin: 0 auto 36px; }
#hero h4 {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(17px, 0.24vw + 1rem, 22px); line-height: 1.5;
  max-width: min(1200px, 78vw); margin: 0 auto;
}

/* ---------- page hero band (subpages: title over a dimmed photo) ---------- */
.page-hero { min-height: clamp(320px, 40vw, 520px); display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero h1 { max-width: 15ch; margin: 0 auto; }
.page-hero .sub { font-family: var(--head); font-weight: 700; font-size: clamp(17px, 0.24vw + 1rem, 22px); line-height: 1.5; max-width: 60ch; margin: 20px auto 0; }

/* ---------- event band ---------- */
/* line1 + date inherit the base h2 size; date only overrides colour (#FDC803) + spacing */
#event h2.line2, .event-date { margin-top: 10px; color: #FDC803; }
#event h3, .event-copy { line-height: 1.35; max-width: 1100px; margin: 26px auto 0; opacity: 0.98; }
#event h3 em, .event-copy em { font-style: italic; }
#event h4 { margin-top: 30px; opacity: 0.85; }

/* ---------- quote rows (centered + italic, like both live quote sections) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.quotes blockquote { text-align: center; }
.quotes blockquote h3 { font-style: italic; }
.quotes blockquote h4 { font-family: var(--body); font-size: 11.5px; letter-spacing: 2.2px; margin-top: 14px; opacity: 0.7; }

/* ---------- letterboxd marquee ---------- */
#letterboxd { padding: 80px 0; overflow: hidden; }
#letterboxd img { height: 64px; display: block; margin: 0 auto 44px; }
.marquee { display: flex; width: max-content; animation: scroll 70s linear infinite; }
.marquee span { font-family: var(--head); font-size: clamp(17px, 1.5vw, 24px); white-space: nowrap; padding-right: 3.2em; }
.marquee span i { font-style: normal; opacity: 0.5; padding-left: 3.2em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- other ways: filled buttons + paired descriptions ---------- */
.watch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4vw; max-width: 1000px; margin: 44px auto 0; }
.watch-grid .col { text-align: center; }
.btn-fill {
  /* Live primary buttons are Adobe Garamond Pro, not sans */
  display: inline-block; background: var(--light); color: var(--black);
  padding: 15px 30px; text-decoration: none;
  font-family: var(--garamond); font-weight: 600; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase;
}
.btn-fill:hover { background: var(--white); }
.watch-grid .col p { margin-top: 20px; font-style: italic; text-align: center; text-align-last: center; }

/* ---------- awards list ---------- */
#awards li, .awards-list li { list-style: none; font-size: clamp(12.5px, 0.95vw, 15px); letter-spacing: 1.5px; line-height: 2.2; }

/* ---------- reviews logos ---------- */
#reviews .logos, .logo-row { display: flex; align-items: center; justify-content: center; gap: 60px; margin-top: 44px; flex-wrap: wrap; }
#reviews .logos img { height: 52px; }

/* ---------- the film (body copy is h4 = Orpheus, justified) ---------- */
#film .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5vw; align-items: center; }
#film p { font-family: var(--head); font-size: min(0.24vw + 1rem, 20.3px); line-height: 1.5; margin-top: 22px; }
#film img { width: 100%; box-shadow: 0 22px 60px rgba(0,0,0,0.35); }

/* ---------- the book ---------- */
#book .cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5vw; align-items: center; }
#book img.cover { width: min(340px, 100%); box-shadow: 0 22px 60px rgba(0,0,0,0.5); }
#book h3 { margin: 16px 0 22px; }
#book h4 { line-height: 1.5; margin-top: 20px; opacity: 0.92; }

/* ---------- impact stats ---------- */
#impact .stats, .stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4vw; margin-top: 60px; }
#impact h4, .stat-grid h4 { font-family: var(--body); font-size: 12px; letter-spacing: 3px; margin-top: 14px; opacity: 0.7; }

/* ---------- image gallery grid (screening / press walls) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 44px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---------- footer ---------- */
footer { position: relative; padding: 120px 4vw 46px; text-align: center; }
footer .bgimg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
footer .inner { position: relative; z-index: 1; }
footer img.title { width: min(560px, 78vw); margin: 0 auto 50px; display: block; }
.join-form input {
  width: min(360px, 80vw); padding: 15px 18px; font-family: var(--body); font-size: 15px;
  background: transparent; border: 1px solid rgba(255,255,255,0.5); color: var(--white); outline: none;
}
.join-form input:focus { border-color: var(--white); }
.join-form button {
  padding: 15px 30px; margin-left: 10px; font-family: var(--garamond); font-weight: 600; font-size: 16px;
  letter-spacing: 1.5px; text-transform: uppercase; background: var(--white);
  border: 1px solid var(--white); color: var(--black); cursor: pointer;
}
#event .join-form, .event-form { margin-top: 44px; }
.socials { display: flex; justify-content: center; gap: 28px; margin: 54px 0 40px; }
.socials a { color: var(--white); opacity: 0.8; }
.socials a:hover { opacity: 1; }
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.legal { font-size: 12px; letter-spacing: 1.5px; opacity: 0.55; text-align: center; text-align-last: center; }

@media (max-width: 900px) {
  nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .quotes, #film .cols, #book .cols, #impact .stats, .stat-grid, .watch-grid { grid-template-columns: 1fr; }
}
