/* ============================================================
   RIVERHORSE.LIFE shared stylesheet
   Light editorial theme with alternating section bands.
   Palette + type live in :root, tweak once, changes everywhere.
   ============================================================ */

:root {
  --bg:        #f7f4ee;   /* warm paper */
  --bg-alt:    #ece6d9;   /* sand band (alternating sections) */
  --bg-dark:   #182421;   /* deep water, hero overlay + footer */
  --card:      #ffffff;   /* card surface */
  --ink:       #24312e;   /* primary text */
  --ink-dim:   #6d7873;   /* secondary text */
  --ink-light: #f2f0ea;   /* text on dark */
  --accent:    #3f6f5f;   /* river green, links + buttons */
  --gold:      #c9a26a;   /* driftwood gold, badges */
  --chip:      #37474f;   /* slate pill labels on cards */
  --line:      rgba(36,49,46,.14);
  --line-dark: rgba(255,255,255,.16);
  --serif:     "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max:       1080px;
  --radius:    22px;      /* soft rounded cards */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--ink); }

/* external links: visible "leaves the site" marker.
   \00a0 = non-breaking space so the arrow never wraps to its own line. */
a[target="_blank"]::after {
  content: "\00a0\2197";    /* nbsp + north-east arrow */
  font-size: .75em;
  opacity: .65;
  vertical-align: super;
}
/* card-style links already end with their own "Read →" cue */
a[target="_blank"].card::after { display: none; }

/* ---------- Pill badge (gold outline, serif) ---------- */
.pill {
  display: inline-block;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: .5em 1.7em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  background: rgba(0,0,0,.18);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  transition: background .4s ease, box-shadow .4s ease;
}
/* over the home hero: transparent, light text */
.nav .nav-brand { color: #fff; }
.nav .nav-links a { color: rgba(255,255,255,.75); }
.nav .nav-links a:hover, .nav .nav-links a.active { color: #fff; }
.nav .nav-toggle { color: #fff; }
/* solid state: light bar, dark text */
.nav.scrolled {
  background: rgba(247,244,238,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .nav-brand { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--ink-dim); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--ink); }
.nav.scrolled .nav-toggle { color: var(--ink); }

.nav-brand {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .38em;
  font-size: .95rem;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(247,244,238,.98);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: .8rem 0; color: var(--ink-dim) !important; }
}

/* ---------- Full-screen hero (home), stays dark over video ---------- */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  color: var(--ink-light);
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72);
}
.hero-inner { position: relative; z-index: 2; padding: 0 1.5rem; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: #fff;
}
.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@media (max-width: 640px) {
  /* keep the tracked wordmark inside a phone screen */
  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
    letter-spacing: .3em;
    text-indent: .3em;
  }
}
.hero .pill { margin-top: 1.4rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .tagline {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero .roles {
  margin-top: .4rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero .credit {
  position: absolute; bottom: 1.2rem; right: 1.6rem; z-index: 2;
  font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.65);
}
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: 1.4rem;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ---------- Page hero (interior pages) ----------
   Photo banner on every page except the homepage. Each page sets its own
   image via --hero-img (see the style attribute on its .page-hero div),
   so swapping a header is just replacing that one file in /headers/.
   A soft paper wash keeps the text readable; if an image is missing the
   gradient alone still looks right. */
.page-hero {
  position: relative;
  padding: 10.5rem 1.5rem 5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(247,244,238,.28) 0%, rgba(247,244,238,.38) 55%, var(--bg) 100%),
    var(--bg-alt) var(--hero-img, none) center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker {
  display: inline-block;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: .45em 1.5em;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(247,244,238,.72);
  backdrop-filter: blur(3px);
}
.page-hero h1 {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
}
.page-hero .sub {
  max-width: 640px; margin: 1.1rem auto 0;
  color: var(--ink-dim); font-size: 1.02rem;
}

/* ---------- Layout: alternating section bands ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
section.block { padding: 4.5rem 0; }
section.block:nth-of-type(even) {
  background: var(--bg-alt);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 1.4rem;
}
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }

p { margin-bottom: 1.1rem; color: var(--ink); }
p.dim, .dim { color: var(--ink-dim); }

.lede {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  transition: all .25s ease;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
/* on the video hero, the secondary button defaults to the dark ink fill
   (the Water Lines button's hover look) and brightens to accent on hover */
.hero .btn:not(.solid) { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn:not(.solid):hover { background: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(36,49,46,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(36,49,46,.12); }
/* slate pill label, like the live site's image chips */
.card .meta {
  display: inline-block;
  background: var(--chip);
  color: #fff;
  border-radius: 999px;
  padding: .35em 1.1em;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.card h3 { margin-bottom: .6rem; color: var(--ink); }
.card p { color: var(--ink-dim); font-size: .95rem; }
.card .more { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Photo tiles (rounded image + pill label, like the live site) ---------- */
.photo-tile {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt) var(--tile-img, none) center / cover no-repeat;
  box-shadow: 0 14px 38px rgba(36,49,46,.16);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.photo-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(36,49,46,.22); }
.photo-tile .label {
  position: absolute;
  bottom: 1.3rem; left: 1.3rem;
  background: rgba(45,58,64,.88);
  color: #fff;
  border-radius: 999px;
  padding: .55em 1.4em;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(3px);
}
a.photo-tile[target="_blank"]::after { display: none; } /* pill carries the meaning */
.press-feature { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .press-feature { grid-template-columns: 1fr; } .press-feature .photo-tile { max-width: 380px; } }

/* ---------- Tour list ---------- */
.tour-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.2rem; align-items: center;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.tour-item .date { color: var(--accent); font-weight: 400; font-size: .9rem; letter-spacing: .08em; }
.tour-item .venue h3 { font-size: 1.15rem; }
.tour-item .venue .where { color: var(--ink-dim); font-size: .9rem; margin: 0; }
.tour-item .venue .note { color: var(--ink-dim); font-size: .85rem; font-style: italic; font-family: var(--serif); margin: 0; }
@media (max-width: 640px) {
  .tour-item { grid-template-columns: 1fr; gap: .4rem; }
}

/* ---------- Films ---------- */
.film { margin-bottom: 3.5rem; }
.film .frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 34px rgba(36,49,46,.10);
}
.film .frame iframe,
.film .frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.film h3 { margin: 1.1rem 0 .4rem; }
.film p { color: var(--ink-dim); }

/* ---------- Book page ---------- */
.book-layout { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.book-layout .cover img {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(36,49,46,.22);
}
@media (max-width: 820px) { .book-layout { grid-template-columns: 1fr; } .book-layout .cover { max-width: 320px; margin: 0 auto; } }
.specs { list-style: none; margin: 1.4rem 0; border-top: 1px solid var(--line); }
.specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.specs li span:first-child { color: var(--ink-dim); letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; padding-top: .2rem; }

blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.65;
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem; margin: 2rem 0;
  color: var(--ink);
}
blockquote cite { display: block; margin-top: .6rem; font-size: .8rem; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: .8rem; color: var(--ink-dim); }

/* ---------- Footer, dark anchor ---------- */
footer {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  margin-top: 0;
}
footer .foot-brand { letter-spacing: .38em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1.4rem; color: #fff; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-bottom: 1.6rem; }
footer nav a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); }
footer nav a:hover { color: #fff; }
footer .fine { color: rgba(255,255,255,.55); font-size: .78rem; }

/* ---------- Reveal on scroll (chill) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
