/* Lamp & Post — landing page styles
   Palette: ink (near-black), paper (cream), white, soft warm gray.
   Type: Alice throughout; italics and bold handle hierarchy. */

:root {
  /* This page authors its own palette — forbid UA auto-darkening
     (Samsung Internet "website dark theme", Chrome Auto Dark), which
     otherwise rewrites the cream bloom to brown and kills the glow.
     Mirrors the <meta name="color-scheme"> in index.html. */
  color-scheme: only light;

  --ink: #0d0d0e;
  --ink-soft: #2a2724;
  --paper: #f4ecdc;       /* "Library Paper" cream */
  --paper-deep: #ebe1cd;
  --line: rgba(13,13,14,0.15);
  --line-light: rgba(244,236,220,0.18);
  --accent: #f4ecdc;
  --maxw: 1080px;
}

/* Samsung Internet's force-dark ("website dark theme") doesn't reliably
   honor the color-scheme declaration alone — its heuristic checks
   whether the site actually styles a dark scheme. This page's authored
   look IS its dark theme, so declare exactly that: restating the same
   palette under the media query makes Samsung (and any browser with the
   same sniff) use the site's own colors instead of rewriting them
   (observed on-device: the cream bloom force-darkened to muddy brown,
   the glow crushed to black). */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; }
  html { background: #0a0908; }
  body {
    background: #0a0908;
    color: var(--ink);
  }
}

* { box-sizing: border-box; }

html {
  /* Canvas behind any overscroll rubber-band (iOS): dark, so neither
     end of the page ever flashes cream mid-gesture. */
  background: #0a0908;
}
/* Smooth in-page scrolling, switched on by site.js at the visitor's first
   input, so a deep link's landing is a single instant jump. */
html.smooth { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  color: var(--ink);
  /* Dark, NOT paper: every cream section paints its own .paper
     background, so this is never normally visible — it is the color
     that shows through any compositor tile that misses a frame
     mid-rasterization on mobile. Dark reads as shadow; cream read as
     a white flash (observed). */
  background: #0a0908;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 18px;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; }

.amp { font-style: italic; font-weight: 400; }

/* -------- Header -------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  z-index: 10;
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: auto;
  height: 40px;
}

@media (max-width: 560px) {
  .brand-mark { height: 32px; }
}

.site-nav a {
  margin-left: 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 160ms ease;
}
.site-nav a:hover { opacity: 1; }

/* -------- Mobile nav toggle (hamburger) -------- */
.nav-toggle {
  display: none; /* shown on mobile via media query */
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin: -0.5rem;     /* keep visual size while expanding tap target */
  cursor: pointer;
  color: var(--paper);
  width: 44px;
  height: 44px;
  position: relative;
}
/* Three bars built from a single span + its ::before / ::after */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.nav-toggle-bars {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }

/* Bars rearrange into an X when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  /* Mobile: nav becomes a small panel anchored to the right under the
     header. Always mounted and pre-rendered — opening only flips
     opacity/visibility (compositor no-ops). The old display:none →
     flex toggle allocated a fresh backdrop-filter blur surface at tap
     time, which intermittently came up blank on mobile GPUs right
     after heavy scrolling (X showed, panel didn't). Solid background
     for the same reason: no blur surface at all. */
  .site-nav {
    display: flex;
    position: absolute;
    top: 100%; right: 1rem;
    min-width: 180px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0;
    background: #0c0b0a;
    border: 1px solid rgba(244, 236, 220, 0.08);
    border-radius: 4px;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
    /* Own pre-rendered compositor layer: without it the painter may
       skip the transparent panel entirely, recreating the
       allocate-at-tap-time blank-panel failure. */
    will-change: opacity;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
  }
  .site-nav a {
    margin: 0;
    padding: 0.7rem 1.25rem;
    text-align: right;
    opacity: 0.9;
  }
  .site-nav a:hover { background: rgba(244, 236, 220, 0.06); opacity: 1; }
}

/* Reduced motion: skip the hamburger ↔ X transition and the panel fade */
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after,
  .site-nav { transition: none; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;       /* fallback for older browsers */
  min-height: 100svh;      /* small viewport: a CONSTANT on mobile (unlike
                              dvh), so the hero never re-lays-out while the
                              URL bar slides — the lockup cannot twitch */
  background: radial-gradient(ellipse at 50% 38%, #1c1a18 0%, #0a0908 70%);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

/* Inner content frame: the lockup, mission and cue center inside this
   100svh box rather than in the hero itself. When the v4 threshold pins
   the hero at 100lvh, the content keeps centering in the stable small
   viewport — pixel-identical whether the URL bar is shown or hidden. */
.hero-frame {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

/* Hot-spot alphas registered as animatable typed custom properties
   so the radial gradients they feed can smoothly transition between
   target values (background gradients otherwise can't be tweened). */
@property --hs1-a { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --hs2-a { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --hs3-a { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --hs4-a { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --hs5-a { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --hs6-a { syntax: "<number>"; initial-value: 0; inherits: false; }

/* warm glow behind the mark.
   Base radial = uniform halo. Six hot-spot radials at fixed angular
   positions add localized brightness that varies independently — when
   some are bright and others dim, the glow reads as asymmetric, like
   a flame leaning. Opacity / scale / blur affect the whole element.
   (An SVG-image rebuild of this glow was tried and reverted: it read
   brighter than the blurred composite and the extra layers tore under
   stress-scrubbing. This single-surface form is the proven one.) */
.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -55%) scale(var(--glow-scale, 1));
  background:
    /* upper-left */
    radial-gradient(circle at 32% 32%, rgba(244,236,220, var(--hs1-a)) 0%, transparent 35%),
    /* upper-right */
    radial-gradient(circle at 68% 32%, rgba(244,236,220, var(--hs2-a)) 0%, transparent 35%),
    /* top-center (over the lamp head) */
    radial-gradient(circle at 50% 20%, rgba(244,236,220, var(--hs3-a)) 0%, transparent 40%),
    /* lower-left */
    radial-gradient(circle at 32% 65%, rgba(244,236,220, var(--hs4-a)) 0%, transparent 35%),
    /* lower-right */
    radial-gradient(circle at 68% 65%, rgba(244,236,220, var(--hs5-a)) 0%, transparent 35%),
    /* bottom-center (mirrors top-center, below the lamp) */
    radial-gradient(circle at 50% 80%, rgba(244,236,220, var(--hs6-a)) 0%, transparent 40%),
    /* base uniform halo */
    radial-gradient(circle, rgba(244,236,220,0.32) 0%, rgba(244,236,220,0) 60%);
  filter: blur(var(--glow-blur, 8px));
  pointer-events: none;
  opacity: var(--glow-opacity, 1);
  transition:
    opacity   var(--glow-duration, 2s)    ease-in-out,
    transform var(--glow-duration, 2s)    ease-in-out,
    filter    var(--glow-duration, 2s)    ease-in-out,
    --hs1-a   var(--hs1-duration, 1.5s)   ease-in-out,
    --hs2-a   var(--hs2-duration, 1.5s)   ease-in-out,
    --hs3-a   var(--hs3-duration, 1.5s)   ease-in-out,
    --hs4-a   var(--hs4-duration, 1.5s)   ease-in-out,
    --hs5-a   var(--hs5-duration, 1.5s)   ease-in-out,
    --hs6-a   var(--hs6-duration, 1.5s)   ease-in-out;
  /* Permanent own GPU surface. Without this the glow only gets promoted
     while a transition is mid-flight, and every promote/demote cycle —
     plus every flicker tween in the gaps — repaints the HERO's whole
     full-viewport texture. Mid-gesture re-rasterization of big layers
     is what mobile GPUs answer with torn/missing tiles (observed on an
     S22 Ultra). With a persistent layer, the flicker's opacity/
     transform/blur all run compositor-side and the hero texture is
     painted exactly once. */
  will-change: opacity, transform, filter;
  /* Ignition pulse on first load; then the JS flicker loop takes over
     by writing the --glow-*/--hsN-* vars that the transitions tween. */
  animation: glow-pulse 1.8s ease-out 0.30s;
}

/* Scrub guard, added by the v4 controller the moment scrolling starts:
   narrows the glow's transition list so any in-flight random-flicker
   tweens of blur or the hot-spot alphas are cancelled (they snap, on
   the glow's own composited surface, to their targets), and pins the
   blur to a deterministic value. In-flight opacity/transform tweens
   stay in the list and simply finish — they run compositor-side. The
   controller writes NO glow values of its own during the scrub: the
   light just settles and holds. */
.hero.glow-flare::before {
  filter: blur(10px);
  transition:
    opacity   var(--glow-duration, 2s) ease-in-out,
    transform var(--glow-duration, 2s) ease-in-out;
}

/* Once the orb is carrying the light (p ≈ 0.12) the flicker glow is
   redundant — fade it out. Opacity ONLY, never visibility: visibility
   would let the compositor evict the texture, and re-rasterizing it
   mid-reverse-scrub is exactly the artifact source this exists to
   avoid. It stays warm at opacity 0. */
.hero.glow-out::before {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.hero-lockup {
  position: relative;
  margin: 0 0 1.5rem;
  font-size: 0; /* image-only h1 */
  line-height: 0;
}

.hero-mark {
  width: clamp(280px, 44vw, 460px);
  height: auto;
}

.mission {
  position: relative;
  max-width: 36ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.06em;
  opacity: 0.85;
  font-style: italic;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(244,236,220,0.45);
  border-radius: 12px;
  display: block;
}
.scroll-cue span {
  display: block;
  width: 2px; height: 8px;
  background: var(--paper);
  margin: 7px auto 0;
  border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(10px); opacity: 1; }
}

/* -------- Story -------- */
.story {
  padding: 6rem 0 5rem;
  text-align: left;
}

.story .lede {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
}

.story p {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.story .kicker {
  margin-top: 1.75rem;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* Drop cap (only on viewports wide enough that floating makes sense).
   line-height < 1 tightens the floated box; small negative margin-top
   nudges the glyph top up to meet the first wrap line's cap-height. */
@media (min-width: 760px) {
  .drop-cap::first-letter {
    float: left;
    font-family: "Alice", serif;
    font-style: italic;
    font-size: 4.2em;
    line-height: 0.82;
    margin: 0 1.1rem 0.05rem 0;
    padding: 0;
    color: var(--ink);
  }
}

/* -------- Intro (dark "Lamp & Post" section, sits where the bloom fades) -------- */
.intro {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 5rem;   /* tight top — sits right under the film */
  text-align: center;
}
.intro-headline {
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
}
.intro-lede {
  max-width: 36ch;
  margin: 0 auto 3rem;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  opacity: 0.92;
}
.intro-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 0 0 3rem;
}
@media (min-width: 720px) {
  .intro-pair {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}
.intro-side h3 {
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
}
.intro-side p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
}
.intro-close {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  opacity: 0.9;
}

/* -------- Watch — "What is Lamp & Post?" film -------- */
/* Ink like the intro: under v4 this is the section the veil fades onto
   (see the .bloom-stage note in the Threshold v4 block). */
.watch {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 0;   /* no bottom pad — the intro follows as one block */
  text-align: center;
}

/* Uppercase kicker — the events-kicker recipe, on ink, sized up a step
   since it titles the film rather than merely captioning a section. */
.watch-kicker {
  font-weight: 400;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* 16:9 frame. Width is also capped by viewport height (svh — constant
   across mobile URL-bar states) so kicker + frame always fit inside the
   100svh section v4 gives this block. Background is TRUE BLACK, not ink:
   the film and its poster carry baked-in letterbox bars, and the frame
   behind them must match the bars so they read as one surface. */
.watch-frame {
  position: relative;
  width: min(880px, 100%);
  width: min(880px, 100%, calc((100vh - 14rem) * 16 / 9));
  width: min(880px, 100%, calc((100svh - 14rem) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  /* Faint warm halo — the lamp's light resting on the frame. */
  box-shadow: 0 0 80px rgba(252, 243, 226, 0.07);
}

.watch-frame iframe,
.watch-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-poster {
  display: block;
  cursor: pointer;
}
.watch-poster:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}
/* Poster stays in color (unlike the grayscale stills): its warm
   lamplight is the brand palette, and it emerges straight out of the
   warm-white veil. Rests dimmed so the play ring carries; wakes to
   full brightness on hover/focus. */
.watch-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: filter 240ms ease;
}
.watch-poster:hover img,
.watch-poster:focus-visible img { filter: brightness(1); }

.watch-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(13, 13, 14, 0.5);
  border: 1px solid rgba(244, 236, 220, 0.6);
  transition: background 200ms ease, border-color 200ms ease,
              box-shadow 200ms ease, transform 200ms ease;
}
.watch-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;   /* optical centering of the triangle */
}
.watch-poster:hover .watch-play,
.watch-poster:focus-visible .watch-play {
  background: rgba(13, 13, 14, 0.72);
  border-color: rgba(244, 236, 220, 0.9);
  box-shadow: 0 0 46px rgba(252, 243, 226, 0.28);
  transform: translate(-50%, -50%) scale(1.05);
}
@media (max-width: 560px) {
  .watch-play { width: 60px; height: 60px; }
  .watch-play svg { width: 23px; height: 23px; margin-left: 3px; }
}

/* -------- Passage (cream paper, short explanatory text under photo banners) -------- */
.passage {
  padding: 3.5rem 0;
  text-align: left;
}
.passage p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* -------- Gathering (community gathering place — split from Connect) -------- */
.gathering {
  padding: 6rem 0 5rem;
  text-align: center;
}
.gathering h2 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}
.gathering p {
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* -------- Connect / Socials -------- */
.connect {
  padding: 3rem 0 6rem;   /* tight top after the divider; full bottom before the footer */
  text-align: center;
}

.connect h2 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.connect .sub {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  position: relative;
}

.socials a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.socials svg { width: 22px; height: 22px; }

.socials span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* -------- Footer -------- */
.site-footer {
  background: #050505;
  color: var(--paper);
  text-align: center;
  padding: 3rem 1.5rem 2.25rem;
}

.footer-mark {
  width: auto;
  height: 44px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer-mission {
  margin: 0 0 0.5rem;
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* -------- Small screens -------- */
@media (max-width: 560px) {
  .site-header { padding: 1rem 1.25rem; }
  .hero-frame { padding-top: 5rem; }
  .story, .connect { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ============================================================
   Additions: utilities, paper texture, ignition, marquee,
   photo slots, photo banner, ampersand divider, email signup.
   ============================================================ */

/* -------- Screen-reader-only utility -------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------- Paper texture overlay (subtle grain on cream sections) -------- */
.paper {
  position: relative;
  background-color: var(--paper);
  isolation: isolate; /* keep blend mode local */
}
.paper::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.055;
  mix-blend-mode: multiply;
  z-index: -1;
}

/* -------- Hero ignition + content fade-in -------- */
/* mission/cue use fill `backwards`, NOT `both`: a forwards-filling
   animation overrides inline styles forever, which would silently kill
   the v4 controller's opacity scrub on these two elements. */
.hero-mark    { animation: ignite     1.2s ease-out 0.20s both; }
.mission      { animation: fadeup     0.9s ease-out 1.00s backwards; }
.scroll-cue   { animation: fadeup     0.7s ease-out 1.40s backwards; }

@keyframes ignite {
  0%   { opacity: 0; filter: brightness(0.35) blur(12px); transform: scale(0.985); }
  60%  { opacity: 1; filter: brightness(1.1) blur(0);     transform: scale(1.005); }
  100% { opacity: 1; filter: brightness(1) blur(0);       transform: scale(1); }
}
@keyframes glow-pulse {
  0%   { opacity: 0; }
  55%  { opacity: 1.2; }
  100% { opacity: 1; }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Photo slot (aspect-tolerant) -------- */
.photo-slot {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 2px;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}
.photo-slot--portrait { aspect-ratio: 1 / 1; }
.photo-slot--wide     { aspect-ratio: 21 / 9; }

/* Story photo: nudge the cover-crop window leftward in image space so
   the visible content sits ~13px to the right within the slot — adds
   a left-side gap to mirror the existing right-side gap (50% default
   → 44% shifts ~6% of the horizontal overflow). */
.story-photo .photo-slot img { object-position: 44% center; }
@media (max-width: 760px) {
  .photo-slot--wide   { aspect-ratio: 16 / 9; }
}

/* -------- Full-bleed photo banner -------- */
.photo-banner {
  background: var(--ink);
}
.photo-banner .photo-slot { border-radius: 0; }
.photo-banner .photo-slot img { filter: grayscale(100%) brightness(0.82) contrast(1.05); }

/* Storefront banner — portrait-orientation source, shot from across
   Main Street. The wide banner aspect crops top/bottom aggressively; if
   more sky or more street is wanted, nudge these object-position Y values:
     lower %  → image shifts down → more of the TOP shows
     higher % → image shifts up   → more of the BOTTOM shows */
.photo-banner--street .photo-slot img { object-position: 50% 45%; }
@media (min-width: 760px) {
  .photo-banner--street .photo-slot img { object-position: 50% 47%; }
}

/* Parallax: position absolutely with top:-50% / height:200% so the
   image extends 50% above and 50% below the slot. JS only translates
   ±40% of slot height (see MAX in index.html), leaving 10% spare on
   each side to absorb subpixel rounding, browser scroll quirks, and
   mobile URL-bar viewport recalcs without exposing edges. */
.photo-banner.parallax-active .photo-slot img {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  will-change: transform;
}

.banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: var(--paper);
}
.banner-caption p {
  margin: 0;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.08em;
}

/* -------- Ampersand divider --------
   Real <span> hairlines (not pseudo-elements) so the .paper::after
   noise overlay doesn't collide with the divider's structure.

   The outer .amp-divider is a full-width cream band so its .paper
   texture extends to the page edges (otherwise on wide viewports
   the surrounding body cream — which has no noise overlay — reads
   as a brighter "white" gutter on either side of the band). The
   inner .amp-divider-inner is the actual divider geometry, capped
   at 340px and centered. */
.amp-divider {
  padding: 2.75rem 0;
}
/* Tight variant — used between Connect and the Events section. */
.amp-divider--tight { padding: 1rem 0; }
.amp-divider-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.amp-rule {
  display: block;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
}
.amp-divider .amp {
  font-family: "Alice", serif;
  font-style: italic;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

/* -------- Pop-up inquiry contact form -------- */
.popup-inquiry {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.popup-lede {
  margin: 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: center;
}
.popup-form {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 480px;
}
.popup-form label {
  display: grid;
  gap: 0.4rem;
  text-align: left;
}
.popup-form label span {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--ink);
}
.popup-form input,
.popup-form textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  outline: none;
  transition: border-color 160ms ease;
}
.popup-form input:focus,
.popup-form textarea:focus { border-bottom-color: var(--ink); }
.popup-form textarea { resize: vertical; min-height: 110px; }
.popup-form button {
  justify-self: center;
  margin-top: 0.5rem;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.popup-form button:hover { transform: translateY(-1px); background: #000; }
.popup-form button:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
  background: var(--ink);
}

/* Status line under the submit button — only visible when the JS sets
   text on it (errors). Hidden in normal state via empty text content. */
.popup-status {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  min-height: 1.2em;
  color: var(--ink-soft);
}
.popup-status.is-error {
  color: #a14b32;
  opacity: 1;
}

/* Replaces the form contents on successful submission. Padding keeps
   the popup-inquiry block from collapsing in height when the form
   disappears, so the page doesn't jump. */
.popup-thanks {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.75rem 0;
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--ink);
}

/* -------- Upcoming Events (read-only Google Calendar feeds) --------
   Ships hidden (the `hidden` attribute), so no-JS visitors never see an
   empty shell. The events controller in site.js reveals it once every feed
   has answered; a feed that fails counts as zero events, and with no events
   at all it shows the .events-empty line instead of the list.
   All colors come from existing tokens. The kicker mirrors
   `.popup-form label span`; the heading mirrors `.gathering h2`; the italic
   sub mirrors `.gathering p`. No animation / scroll-reveal — already correct
   under prefers-reduced-motion. */
.events {
  padding: 4rem 0 2rem;   /* leads after the banner; tight toward the divider below */
  text-align: left;
}
@media (max-width: 560px) {
  .events { padding-top: 3rem; padding-bottom: 1.5rem; }
}

/* Uppercase kicker — same recipe as the form field labels. */
.events-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--ink);
}
.events h2 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.events-sub {
  margin: 0 0 2.75rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.9;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each event: a fixed date rail + flexible body. Hairline rules between
   items echo the form's --line dividers; the last item closes with a
   bottom rule so the list reads as a bounded ledger. Lots of air. */
.event {
  display: grid;
  grid-template-columns: 10.5rem 1fr;   /* wide enough for a "7:00 AM – 2:00 PM" range */
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }

.event-when {
  display: block;
  color: var(--ink);
}
.event-dow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.event-date {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0.15rem 0;
  letter-spacing: 0.02em;
}
.event-time {
  display: block;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.8;
  white-space: nowrap;   /* never break a "7:00 AM – 2:00 PM" range mid-token */
}

.event-title {
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.event-info {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;   /* preserve the calendar description's line breaks */
}
.event-where {
  margin: 0.4rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* Narrow screens: stack the date rail above the body so neither column
   gets crushed. The date row goes horizontal (dow · date · time). */
@media (max-width: 480px) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 0;
  }
  .event-when {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .event-date { font-size: 1.25rem; margin: 0; }
  .event-dow, .event-time { margin: 0; }
}

/* "Show all" trigger — an understated outline pill (fills on hover, like
   the contact button inverted). Centered under the inline list. */
.events-actions { margin-top: 2.75rem; text-align: center; }
.events-showall {
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.events-showall:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* All-events modal. Closed state = visibility:hidden (out of the a11y tree
   and tab order); the controller toggles .is-open. Scrim dims the page; the
   cream panel caps its height and scrolls its list. */
.events-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.events-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}
.events-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.66);
}
.events-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  max-height: 82svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.6);
  padding: 1.75rem 1.75rem 0;
  transform: translateY(8px) scale(0.99);
  transition: transform 220ms ease;
}
.events-modal.is-open .events-modal-panel { transform: none; }
.events-modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.events-modal-title {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: 0.04em;
  margin: 0;
}
.events-modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  margin: -0.5rem -0.6rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease;
}
.events-modal-close:hover { background: rgba(13, 13, 14, 0.08); }
.events-modal-close svg { width: 20px; height: 20px; }
/* The scrollable list fills the remaining panel height. min-height:0 lets a
   flex child actually scroll instead of overflowing the panel. */
.events-modal-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
}
/* First row in the modal already has its top hairline; tighten its top pad. */
.events-modal-list .event:first-child { padding-top: 0.5rem; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .events-modal,
  .events-modal-panel { transition: none; }
}

/* ============================================================
   Threshold v4 — "Orb & Veil" lamp-bloom scroll transition.

   Concept: scrolling makes the lamp's light swell (.bloom-orb), flood
   the screen (.bloom-veil), then the dark intro emerges from the light.

   Mechanics: the hero is pinned (fixed, 100lvh) while the .bloom-stage
   spacer provides ~1.05 viewports of scroll runway; the JS controller
   (see "Threshold v4" in index.html) maps scrollY/runway to progress
   and writes ONLY transform + opacity onto layers that were each
   painted exactly once — no per-frame paint, no layout, every frame
   is compositor-only.

   URL-bar proofing: every box is sized with a CONSTANT viewport unit —
   content anchors to 100svh (small viewport: never changes during the
   bar dance), full-bleed backdrops to 100lvh (large viewport: can never
   expose a gap) — and progress is a pure function of scrollY against a
   px runway captured once. dvh appears nowhere.

   Inert by default: everything is gated behind BOTH
   body[data-threshold="v4"] AND .v4-active (added by JS), so no-JS
   visitors get the plain static page with no dead scroll runway. */

.bloom-stage,
.bloom-layer,
.bloom-veil { display: none; }

body[data-threshold="v4"].v4-active .hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;    /* fallback for older browsers */
  height: 100lvh;   /* large viewport: constant per orientation, so the
                       hero box never resizes (and never gaps at the
                       bottom) while the URL bar slides in and out */
  min-height: 0;
  /* Below .site-header (z-index 10) so the nav stays clickable; the
     bloom layers (z 20/21) cover both. */
  z-index: 5;
}

/* Content frame pins to the top of the fixed hero at small-viewport
   height: the lockup centers identically whether the URL bar is shown
   (visible viewport = svh) or hidden (the extra space falls below). */
body[data-threshold="v4"].v4-active .hero-frame {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100svh;
}

/* Glow anchors to the same stable point as the frame's center (svh is
   constant across URL-bar states), keeping translate(-50%,-55%) from
   the base rule. The orb anchors separately, to the lantern head. */
body[data-threshold="v4"].v4-active .hero::before {
  top: 50vh;
  top: 50svh;
}

/* JS scrubs opacity + a gentle scale so the lamp dissolves into its
   own light; will-change keeps that on a dedicated surface. No filter
   here on purpose: drop-shadow forces the layer through an offscreen
   filter pass every frame of the dissolve — a known glitch source on
   mobile GPUs — and the logo is gone behind the veil moments after the
   white-on-white window anyway. */
body[data-threshold="v4"].v4-active .hero-lockup {
  will-change: opacity, transform;
}

/* These two get their opacity scrubbed every frame at gesture start —
   promote them like the lockup so the writes are composited effect
   updates, not raster invalidations. */
body[data-threshold="v4"].v4-active .mission,
body[data-threshold="v4"].v4-active .scroll-cue {
  will-change: opacity;
}

/* Scroll runway. JS sets the exact height in px (~0.73 viewports). The
   min-height is only a pre-measure / no-JS fallback and MUST stay ≤ the
   JS value, or it overrides the shorter height and the intro no longer
   lands flush at p=1 (a dead-scroll gap opens after the bloom). 70svh
   is ≤ 0.73·lvh in every viewport, so it can never fight R.
   Ink — NOT the hero's #0a0908 — because this is what shows behind the
   veil as it fades: it must match the .watch section (the first thing
   under it) exactly or the emergence shows a seam. */
body[data-threshold="v4"].v4-active .bloom-stage {
  display: block;
  min-height: 70vh;
  min-height: 70svh;
  background: var(--ink);
}

body[data-threshold="v4"].v4-active .bloom-layer {
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;       /* clips the scaled orb */
  /* Containment: nothing inside this layer can invalidate layout or
     paint outside it — isolates the scaled orb from the rest of the
     compositor tree. */
  contain: strict;
  pointer-events: none;
  z-index: 20;
}

/* The light itself. Painted once; per frame it is ONLY transform-scaled
   and opacity-faded — this is the fix for v3's per-frame full-viewport
   gradient repaint. `closest-side` is load-bearing: the 80% stop must
   land inside the square box or the falloff clips to a visible square
   rim (and the JS coverage math assumes closest-side radii: solid core
   = 55% of half-width). The falloff terminates at the flicker glow's
   cream so the orb's light is continuous with the idle glow. */
body[data-threshold="v4"].v4-active .bloom-orb {
  position: absolute;
  left: 50%;
  /* Pre-measure fallback only: the controller's measure() re-anchors
     the orb to the lantern head's actual position (inline style). */
  top: calc(50vh - 26px);
  top: calc(50svh - 26px);
  /* Texture kept deliberately small (~72lvmin ≈ 300 CSS px): mobile
     compositors rasterize large layers in tiles, and a fast scrub can
     catch tiles mid-re-raster — visible as hard-edged bands across the
     gradient. A small texture rasters quickly/atomically, and since the
     content is a soft radial gradient, the heavy upscale at the crest
     costs nothing visually. The JS coverage math reads offsetWidth, so
     this number can be tuned freely. */
  width: 72vmin;
  height: 72vmin;
  width: 72lvmin;
  height: 72lvmin;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  background: radial-gradient(circle closest-side,
    #fffbf0 0%,
    #fcf3e2 30%,
    #fcf3e2 55%,
    rgba(252, 243, 226, 0.78) 62%,
    rgba(249, 238, 219, 0.42) 69%,
    rgba(246, 234, 214, 0.16) 75%,
    rgba(244, 236, 220, 0) 80%);
  /* Persistent layer promotion — never toggled mid-gesture. */
  will-change: transform, opacity;
}

/* Solid warm-white sheet in exactly the orb's core color, so topping up
   the screen corners at the crest is seamless by construction. A solid
   color composites as a textureless quad — effectively free. Above the
   header: the whiteout is total. */
body[data-threshold="v4"].v4-active .bloom-veil {
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100lvh;
  background: #fcf3e2;   /* MUST equal the orb's core color */
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  z-index: 21;
}

/* The film (.watch) and the .intro flow as ONE continuous dark block —
   neither is forced to a centered full screen (that dropped a whole
   viewport of dead space between the film and the "Lamp & Post"
   heading). Together with the ink bloom-stage above them they run well
   over a viewport of ink, so the bloom emergence still fades onto dark,
   never the cream section below. */

/* Binary gates, flipped by JS with hysteresis strictly inside windows
   where the flip is invisible (v4-covered only while the veil is fully
   opaque; past-bloom only once it has fully faded).

   v4-covered hides via OPACITY, not visibility: visibility:hidden lets
   the compositor evict the layers' textures, and a fast reverse-scrub
   then catches them unrasterized as the veil thins — hard-edged
   checkerboard bands (observed on-device). opacity:0 skips the drawing
   but keeps the textures warm, so reversal at any speed re-reveals
   fully-rendered layers. It also keeps the page's only h1 in the
   accessibility tree below the fold. pointer-events restores
   click-through to the page content stacked underneath the fixed hero. */
body.v4-covered .hero {
  opacity: 0;
  pointer-events: none;
}
body.v4-covered .bloom-layer { opacity: 0; }
body.past-bloom .bloom-veil  { visibility: hidden; }

/* The cue's bobbing dot is an infinite animation — stop it ticking the
   main thread while the hero is hidden below the fold. The flip happens
   under the opaque veil, so pause/resume is never visible. */
body.v4-covered .scroll-cue span { animation-play-state: paused; }

/* Fast travel: while a header-nav smooth scroll is in flight (class
   set by the controller), blank every light layer — flying through
   the bloom at anchor-jump speed reads as a glitchy white flash.
   !important beats the scrub's inline values; the moment the class
   lifts, the pure-function inline state is already correct for
   wherever the jump landed. */
body.v4-warp .hero,
body.v4-warp .bloom-orb,
body.v4-warp .bloom-veil {
  opacity: 0 !important;
  transition: opacity 120ms linear;
  pointer-events: none;
}

/* ============================================================ */

/* Honor users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .hero-mark,
  .hero::before,
  .mission,
  .scroll-cue { animation: none; }
  .hero::before { transition: none; }

  /* Disable v4 threshold: hero falls back to normal flow; runway and
     light layers hidden; intro back to its natural rhythm. (The JS
     controller also early-returns on reduced motion, so .v4-active
     never gets added — belt and suspenders.) */
  body[data-threshold="v4"] .hero,
  body[data-threshold="v4"].v4-active .hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  body[data-threshold="v4"] .bloom-stage,
  body[data-threshold="v4"] .bloom-layer,
  body[data-threshold="v4"] .bloom-veil,
  body[data-threshold="v4"].v4-active .bloom-stage,
  body[data-threshold="v4"].v4-active .bloom-layer,
  body[data-threshold="v4"].v4-active .bloom-veil { display: none !important; }
  body[data-threshold="v4"].v4-active .watch,
  body[data-threshold="v4"].v4-active .intro {
    min-height: 0;
    display: block;
  }
}

/* -------- Print -------- */
/* Un-pin the hero (a fixed element would stamp itself over printed
   pages) and drop the runway/light layers (the runway would print as a
   full blank page). Both .hero and .hero-frame need resetting — the
   frame is absolutely positioned under the v4 gate and would otherwise
   overlay page 1 on its own. */
@media print {
  body[data-threshold="v4"].v4-active .hero {
    position: relative;
    height: auto;
    min-height: 0;
    visibility: visible;
    opacity: 1;
  }
  body[data-threshold="v4"].v4-active .hero-frame {
    position: relative;
    height: auto;
    min-height: 0;
  }
  .bloom-stage,
  .bloom-layer,
  .bloom-veil { display: none !important; }
  body[data-threshold="v4"].v4-active .watch,
  body[data-threshold="v4"].v4-active .intro {
    min-height: 0;
    display: block;
  }
  /* Dark sections print with their backgrounds stripped — switch their
     cream text to ink so the printout stays legible. */
  .hero, .watch, .intro, .site-footer { color: #000; }
}

/* ============================================================
   Multi-page site (added with Bookshop Café). Everything below is new
   for it: the shared menu with its Locations dropdown, the
   opening announcement, footer columns, placeholders, and the
   Bookshop Café and Shop pages. Built on the tokens above.
   ============================================================ */

[hidden] { display: none !important; }

/* -------- Draft marker (fixed, non-interactive; preview only, the go-live tool removes the pill) -------- */
.draft-pill {
  position: fixed;
  left: 12px;
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;              /* above the bloom layers (20/21), below the events modal (200) */
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.85);
  border: 1px solid rgba(244, 236, 220, 0.25);
  color: var(--paper);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

/* -------- Shared bits -------- */
.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.sec { padding: 5rem 0; }
@media (max-width: 560px) { .sec { padding: 3.75rem 0; } }
.sec-title {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5em;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fffbf0; }
.btn--ghost-light { border-color: rgba(244, 236, 220, 0.55); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(244, 236, 220, 0.08); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* -------- Placeholders: what's missing, and what goes there -------- */
.ph-text {
  font-style: italic;
  opacity: 0.6;
  border-bottom: 1px dashed currentColor;
}
.ph-note {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
}
.ph-note p { margin: 0; }
.ph-photo {
  position: relative;
  display: grid;
  place-items: center;
  background-color: #1b1917;
  background-image: repeating-linear-gradient(135deg, rgba(244, 236, 220, 0.05) 0 10px, transparent 10px 20px);
  color: rgba(244, 236, 220, 0.72);
}
.ph-photo > span {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px dashed rgba(244, 236, 220, 0.35);
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.55);
  text-align: center;
}

/* -------- Header: current page, Locations dropdown -------- */
.site-header { --hpad: 1.75rem; }
@media (max-width: 560px) { .site-header { --hpad: 1.25rem; } }

.site-nav a[aria-current="page"],
.nav-group.is-current .nav-drop-btn {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.nav-group {
  display: inline-block;
  position: relative;
  margin-left: 1.5rem;
}
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 160ms ease;
}
.nav-drop-btn:hover,
.nav-group.is-open .nav-drop-btn { opacity: 1; }
.nav-caret {
  width: 0.42em;
  height: 0.42em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 160ms ease;
}
.nav-group.is-open .nav-caret { transform: translateY(0.1em) rotate(-135deg); }

/* Desktop: a small dark panel under "Locations". Pre-rendered and only
   faded in, like the mobile menu panel. Opens on hover (pointer devices)
   or click/tap/keyboard (site.js). */
.nav-sub {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  min-width: 200px;
  padding: 0.5rem 0;
  background: #0c0b0a;
  border: 1px solid rgba(244, 236, 220, 0.08);
  border-radius: 4px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  z-index: 11;
}
.nav-group.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}
.site-nav .nav-sub a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  opacity: 0.9;
}
.site-nav .nav-sub a:hover { background: rgba(244, 236, 220, 0.06); opacity: 1; }
/* The "Locations" button already carries the current-page underline. */
.site-nav .nav-sub a[aria-current="page"] { text-decoration: none; }
@media (min-width: 881px) {
  /* Size the panel to its longest entry so nothing wraps. */
  .nav-sub { width: max-content; }
  .site-nav .nav-sub a { white-space: nowrap; }
}
@media (hover: hover) and (min-width: 881px) {
  /* Hover opens the panel here only without site.js; with it, site.js
     turns hover into .is-open (so Escape and aria-expanded work too). */
  .site-nav:not(.js-drops) .nav-group:hover .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
  }
  .site-nav:not(.js-drops) .nav-group:hover .nav-drop-btn { opacity: 1; }
  .site-nav:not(.js-drops) .nav-group:hover .nav-caret { transform: translateY(0.1em) rotate(-135deg); }
  /* An invisible bridge over the gap above the panel, so the pointer can
     travel from "Locations" down into it without the panel closing. */
  .nav-sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-0.9rem - 2px);
    height: calc(0.9rem + 2px);
  }
}
.nav-sub em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

/* Below 880px the hamburger takes over (see .nav-toggle above), and the
   Locations dropdown opens inline in the menu panel. */
@media (max-width: 880px) {
  .nav-group { display: block; margin: 0; }
  .nav-drop-btn {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding: 0.7rem 1.25rem;
    opacity: 0.9;
  }
  .nav-drop-btn:hover { background: rgba(244, 236, 220, 0.06); opacity: 1; }
  .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.4rem;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-group.is-open .nav-sub { display: block; transform: none; }
  .site-nav .nav-sub a {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
    opacity: 0.75;
  }
}

/* -------- Opening announcement (home only, inside the header) -------- */
.site-header.has-announce { flex-wrap: wrap; padding-top: 0; }
.announce {
  flex: 0 0 calc(100% + 2 * var(--hpad));
  margin: 0 calc(-1 * var(--hpad)) 1.1rem;
  padding: 0.65rem var(--hpad);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-light);
  opacity: 0.85;
  transition: opacity 160ms ease;
}
.announce:hover { opacity: 1; }
.announce-arrow { margin-left: 0.6em; }
.announce .short { display: none; }
@media (max-width: 640px) {
  .announce .long { display: none; }
  .announce .short { display: inline; }
}

/* -------- Home: compact header that slides in on scroll-up -------- */
/* Solid background, no backdrop blur (blur surfaces have come up blank
   on mobile GPUs here before). Hidden = visibility:hidden, so its links
   leave the tab order. */
.mini-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.55rem 1.5rem;
  padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
  background: rgba(10, 9, 8, 0.97);
  border-bottom: 1px solid var(--line-light);
  color: var(--paper);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 0s 220ms;
}
.mini-header.is-shown { transform: none; visibility: visible; transition: transform 220ms ease, visibility 0s; }
.mini-mark img { height: 30px; width: auto; }
.mini-nav { display: flex; gap: 1.4rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.mini-nav::-webkit-scrollbar { display: none; }
.mini-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}
.mini-nav a:hover { opacity: 1; }
@media (max-width: 560px) {
  .mini-header { gap: 0.9rem; padding-left: 1rem; padding-right: 1rem; }
  .mini-nav { gap: 1rem; }
  .mini-nav a { font-size: 0.66rem; letter-spacing: 0.14em; }
  .mini-nav .mini-story { display: none; }
}
@media (max-width: 374px) { .mini-nav { gap: 0.75rem; } }
@media (max-width: 359px) {
  .mini-header { gap: 0.7rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .mini-nav { gap: 0.6rem; }
  .mini-nav a { letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) { .mini-header, .mini-header.is-shown { transition: none; } }

/* -------- Location pages: the Lamp & Post mark alone in the header -------- */
.brand-mark--iso { height: 40px; width: auto; }
@media (max-width: 560px) { .brand-mark--iso { height: 34px; } }

/* -------- Where you are, beside the menu button (collapsed menu only) --------
   On wide screens the menu's underline shows the current page; once the
   menu collapses into the button, this label takes over. */
.nav-here { display: none; }
@media (max-width: 880px) {
  .nav-here {
    display: block;
    margin-left: auto;
    margin-right: 0.85rem;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.85;
  }
}

/* -------- Footer columns -------- */
.site-footer--full { text-align: left; padding: 4.5rem 1.5rem 2.25rem; }
.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-h {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
.footer-col p,
.footer-col li { margin: 0 0 0.4rem; font-size: 0.98rem; line-height: 1.55; }
.footer-col p + p { margin-top: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { opacity: 0.85; transition: opacity 160ms ease; }
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
  text-align: center;
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

/* -------- Connect: a social link that isn't live yet (Facebook) -------- */
.socials a.is-pending { opacity: 0.45; cursor: default; }
.socials a.is-pending:hover { background: transparent; color: var(--ink); transform: none; }

/* -------- Home: one line about the online shop, under Direct Trade -------- */
.passage .shop-note { margin: 1.5rem 0 0; font-style: italic; color: var(--ink-soft); }
.shop-note a {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}
.shop-note a:hover { border-bottom-color: var(--ink); }

/* -------- Home: the Main Street banner is the doorway to the cafe -------- */
.banner-link { display: block; color: var(--paper); }
.photo-banner .banner-link img { transition: filter 260ms ease; }
.photo-banner .banner-link:hover img,
.photo-banner .banner-link:focus-visible img { filter: grayscale(100%) brightness(0.95) contrast(1.05); }
.banner-link:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.banner-caption--link {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding-top: 5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.banner-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.banner-title { font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: 0.06em; }
.banner-status { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* -------- Events: place tags, ticket buttons, link to everything -------- */
.event-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.event-tag--cafe { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.event-tickets {
  display: inline-flex;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}
.event-tickets:hover { background: var(--ink); color: var(--paper); }
.event-repeat {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.events-empty {
  margin: 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: italic;
  color: var(--ink-soft);
}
.events-empty a { border-bottom: 1px solid var(--line); }
.events-more { margin: 2rem 0 0; text-align: center; font-style: italic; }
.events-more a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.events-more a:hover { border-bottom-color: var(--ink); }

/* -------- Forms: selects, two-up rows -------- */
.popup-form select {
  font: inherit;
  color: var(--ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 1.5rem 0.55rem 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230d0d0e' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
}
.popup-form select:focus { border-bottom-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   Location page (/lynchburg)
   ============================================================ */
.loc-section { scroll-margin-top: 3.25rem; }

.loc-hero {
  position: relative;
  min-height: 480px;
  min-height: clamp(480px, 74svh, 700px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.loc-hero-photo { position: absolute; inset: 0; }
.loc-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: grayscale(100%) brightness(0.72) contrast(1.05);
}
/* The café's hanging sign: keep it in the frame when the photo is cropped
   to a wide banner. */
.loc-hero-photo--sign img { object-position: 45% 40%; }
.loc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.4) 55%, rgba(10, 9, 8, 0.6) 100%);
  pointer-events: none;
}
.loc-hero-inner { position: relative; z-index: 1; padding-top: 8rem; padding-bottom: 3.25rem; }
.loc-title {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}
.loc-city { margin: 0 0 1.5rem; font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.3rem); opacity: 0.85; }
.loc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* A small lamp-light dot: lit when open (or opening soon), hollow when closed. */
.loc-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fcf3e2;
  box-shadow: 0 0 12px rgba(252, 243, 226, 0.85);
}
.loc-status.is-closed::before { background: transparent; border: 1px solid var(--paper); box-shadow: none; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sticky "on this page" row */
.loc-subnav {
  position: sticky;
  top: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 0.5rem 0 1rem;
}
.loc-subnav ul {
  position: relative;   /* the links' offsetLeft is measured from here (site.js) */
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.loc-subnav ul::-webkit-scrollbar { display: none; }
.loc-subnav ul[data-more] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}
/* Mark and button: room is always reserved (no layout jump); they fade in
   once the header has scrolled away. The page name takes room only once
   stuck, so the shortcuts get the full width before then. */
.loc-subnav .subnav-mark,
.loc-subnav .subnav-more { flex: none; opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 0s 180ms; }
.loc-subnav .subnav-mark { padding: 0.4rem 0.5rem 0.4rem 0; border: 0; }
.loc-subnav.is-stuck .subnav-mark,
.loc-subnav.is-stuck .subnav-more { opacity: 1; visibility: visible; transition: opacity 180ms ease, visibility 0s; }
.subnav-mark img { height: 28px; width: auto; }
.subnav-more { position: relative; display: flex; align-items: center; align-self: stretch; }
.subnav-here {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
  margin-right: 0.15rem;
}
.loc-subnav:not(.is-stuck) .subnav-here { max-width: 0; margin-right: 0; overflow: hidden; }
@media (max-width: 420px) { .subnav-here { font-size: 0.62rem; letter-spacing: 0.14em; } }
@media (max-width: 380px) { .subnav-here { display: none; } }
.subnav-menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
}
.subnav-menu-btn[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.subnav-menu-btn[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.subnav-menu-btn[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.subnav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  padding: 0.6rem 0;
  display: grid;
  background: #0c0b0a;
  border: 1px solid rgba(244, 236, 220, 0.08);
  border-radius: 4px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
}
.subnav-more.is-open .subnav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease, visibility 0s; }
.loc-subnav .subnav-panel a { border: 0; text-align: right; padding: 0.65rem 1.25rem; opacity: 0.9; }
.loc-subnav .subnav-panel a:hover { background: rgba(244, 236, 220, 0.06); opacity: 1; }
@media (max-width: 560px) { .sub-long { display: none; } }
.loc-subnav a {
  display: block;
  padding: 0.95rem 0.8rem 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  border-bottom: 2px solid transparent;
  transition: opacity 160ms ease, border-color 160ms ease;
}
.loc-subnav a:hover { opacity: 1; }
.loc-subnav a[aria-current="true"] { opacity: 1; border-bottom-color: var(--paper); }

/* Visit: about the café, then Find Us, in one section */
.find-us { margin-top: 4.5rem; scroll-margin-top: 5rem; }
@media (max-width: 560px) { .find-us { margin-top: 3.5rem; } }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.visit-block h4 {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 0.6rem;
}
.visit-block p { margin: 0 0 1.6rem; color: var(--ink-soft); line-height: 1.6; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th,
.hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--ink); }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  opacity: 0.6;
}
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Photo rows (about, food) */
/* Six columns: three photos take two each (one row of three). With five,
   the first two take three each, sitting larger in a row above the rest. */
.expect-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; }
.expect-photos > * { grid-column: span 2; aspect-ratio: 4 / 3; border-radius: 2px; }
.expect-photos > :nth-child(-n+2):nth-last-child(n+4) { grid-column: span 3; aspect-ratio: 3 / 2; }
/* The sidewalk shot is portrait: keep the window lettering and the line. */
.photo-open--sidewalk img { object-position: 50% 62%; }
/* Wider screens: the photos run wider than the text column (up to 1000px). */
@media (min-width: 760px) {
  .expect-photos {
    margin-left: calc(50% - min(500px, 50vw - 1.5rem));
    margin-right: calc(50% - min(500px, 50vw - 1.5rem));
  }
}
@media (max-width: 600px) {
  .expect-photos { grid-template-columns: 1fr 1fr; }
  .expect-photos > *,
  .expect-photos > :nth-child(-n+2):nth-last-child(n+4) { grid-column: auto; aspect-ratio: 4 / 3; }
  .expect-photos > :first-child,
  .expect-photos > :first-child:nth-last-child(n+4) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Café page: the short intro under a section title (Visit, Menu) */
.loc-lede { margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); }
/* Food & drink: Square for the full menu and ordering */
.food-cta { margin: 2rem 0 0; }
/* A button whose destination isn't live yet (e.g. online ordering). */
.btn.is-pending { background: transparent; color: var(--ink-soft); border: 1px dashed var(--line); cursor: default; }
.btn.is-pending:hover { transform: none; background: transparent; }

/* Bookshop: new on our shelves */
.shelf-label { margin: 0 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.shelf { list-style: none; margin: 0; padding: 0; }
.shelf li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.shelf li:first-child { border-top: 1px solid var(--line); }
.shelf-by { font-style: italic; font-size: 0.98rem; color: var(--ink-soft); }
.shelf-note { margin: 1.25rem 0 0; font-style: italic; color: var(--ink-soft); }

/* Reserve the Venue. The occasions read as a plain sentence, not buttons. */
.rent-uses { margin: 0; font-style: italic; color: var(--ink-soft); }
.loc-lede + .rent-uses { margin-top: 1.25rem; }
.rent-soon { margin: 1.25rem 0 0; color: var(--ink-soft); line-height: 1.6; }
.rent-price { margin: 1.25rem 0 0; }
.rent-form { max-width: none; margin-top: 2.25rem; }

/* The white hart, hiding in the Visit section. It bounds off to the right
   (clipped by its row so it never widens the page), then the page scrolls
   down to Our Roots. */
.hart-wrap { display: flex; justify-content: flex-start; overflow: hidden; margin-top: 1.25rem; }
.hart {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  opacity: 0.22;
  cursor: pointer;
  transition: opacity 200ms ease;
}
.hart:hover,
.hart:focus-visible { opacity: 0.65; }
.hart svg { width: 30px; height: 30px; }
.hart.bound { opacity: 0.8; }
.hart.bound svg { animation: hart-bound 1s ease-in forwards; }
@keyframes hart-bound {
  0%   { transform: translate(0, 0); opacity: 1; }
  20%  { transform: translate(28px, -12px); }
  40%  { transform: translate(56px, 0); }
  60%  { transform: translate(84px, -12px); }
  80%  { transform: translate(112px, 0); opacity: 0.6; }
  100% { transform: translate(150px, -8px); opacity: 0; }
}

/* "Part of Lamp & Post" band */
.lp-band { background: var(--ink); color: var(--paper); text-align: center; padding: 4.5rem 1.5rem; }
.lp-band img { height: 72px; width: auto; margin: 0 auto 1.4rem; opacity: 0.92; }
.lp-band p { margin: 0 0 1.5rem; font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: 0.03em; }

/* ============================================================
   Shop page (/shop)
   ============================================================ */
.page-hero {
  background: radial-gradient(ellipse at 50% 30%, #1c1a18 0%, #0a0908 70%);
  color: var(--paper);
  text-align: center;
  padding: 9.5rem 1.5rem 4.5rem;
}
.page-hero h1 {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.9rem;
}
.page-hero p {
  max-width: 46ch;
  margin: 0 auto;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  opacity: 0.85;
}
.page-hero .kicker { max-width: none; margin: 0 0 0.75rem; font-style: normal; font-size: 0.82rem; opacity: 0.6; }
.shop-today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.today-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}
.today-card h2 { font-weight: 400; font-size: 1.5rem; letter-spacing: 0.03em; margin: 0; }
/* A photo across the top of a card, edge to edge (it bleeds over the
   card's padding). Portrait source: the crop keeps the tables and shirts. */
.today-card .card-photo {
  margin: -2rem -1.75rem 0.9rem;
  aspect-ratio: 3 / 2;
  border-radius: 3px 3px 0 0;
}
.today-card .card-photo img { object-position: 50% 72%; }
.soon-tag {
  display: inline-block;
  margin-left: 0.6rem;
  vertical-align: 0.3em;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.today-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.today-card .btn { justify-self: start; margin-top: 0.75rem; }
.soon-items { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.soon-items li {
  scroll-margin-top: 2rem;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.soon-items li:last-child { border-bottom: 1px solid var(--line); }
.soon-name { font-size: 1.1rem; letter-spacing: 0.03em; color: var(--ink); }
.soon-desc { color: var(--ink-soft); font-size: 0.98rem; }
.soon-items li:target .soon-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .shop-today { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .soon-items li { grid-template-columns: 1fr; gap: 0.15rem; } }

@media (prefers-reduced-motion: reduce) {
  .nav-sub, .nav-caret, .btn, .subnav-panel, .subnav-mark, .subnav-more { transition: none; }
  .hart.bound svg { animation: none; }
}

/* Café page: the contact email can be long for a narrow column. */
.contact-email { overflow-wrap: anywhere; }

/* Café page: Our Roots video. Reuses the home film's poster link and play
   ring (.watch-poster, .watch-play); site.js swaps in the player on click. */
.roots-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 2rem;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}
.roots-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* The frame clips anything outside it, so draw the focus ring inside. */
.roots-video .watch-poster:focus-visible { outline-offset: -6px; }
.roots-caption { margin: 0.75rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--ink-soft); }

/* Café page: photos that open in the viewer (site.js). They warm into color
   on hover, a hint of what opening one shows. */
.photo-open { display: block; cursor: zoom-in; }
.photo-open img { transition: filter 260ms ease; }
@media (hover: hover) {
  .photo-open:hover img { filter: grayscale(0%) contrast(1.02); }
}
.photo-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.photo-open:focus-visible img { filter: grayscale(0%) contrast(1.02); }
.photo-zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(13, 13, 14, 0.55);
  border: 1px solid rgba(244, 236, 220, 0.45);
  pointer-events: none;
}
.photo-zoom svg { width: 14px; height: 14px; }

/* The photo viewer: full screen, the photo in color. */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0908;
  color: var(--paper);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: lb-in 180ms ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
/* Flex, not grid: the photo's percentage max-height needs the stage's
   definite height to resolve against. */
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}
.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 80px rgba(252, 243, 226, 0.06);
}
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(13, 13, 14, 0.5);
  border: 1px solid rgba(244, 236, 220, 0.45);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-btn:hover { background: rgba(13, 13, 14, 0.8); border-color: rgba(244, 236, 220, 0.9); }
.lightbox-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next { display: none; }
.lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
  pointer-events: none;
}
/* Phones: the photo takes the full width; the arrows sit at the bottom. */
@media (max-width: 600px) {
  .lightbox-stage { padding: 4.5rem 0.75rem 5.5rem; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-count { bottom: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .photo-open img { transition: none; }
}
