/* Arzi's Dream: inner pages (Privacy, 404). Loaded after /css/road.css, which brings the fonts, colours, type, the skip
   link, the focus ring, .nav, .foot, .watch, .orn and .atmo. This file only adds what the home page gets from its
   ?hb=h layer (proto-hb/h.css: gold wordmark sizes, glass header, header on the gutter, phone Watch + menu) and the
   two page layouts. No JS: the phone menu is a <details>. Everything is scoped to body.pg. */

/* ---------- atmosphere: one painting, still, behind a shade (road.css .atmo; no road.js, so the layer is on from the start) ---------- */
.pg .atmo-layer{transition:none;will-change:auto}
.pg .atmo-layer.on{opacity:.4}
.pg-404 .atmo-layer.on{opacity:.5}
.pg-404 .atmo-layer[data-atmo=road]{background-position:50% 60%}
/* 404: the road stays visible in the middle and bottom; the text side is held down so the cream stays >= 4.5:1 */
.pg-404 .atmo-shade{background:radial-gradient(ellipse at 50% 50%,rgba(7,8,10,.7) 0%,rgba(7,8,10,.5) 55%,rgba(7,8,10,.25) 100%),linear-gradient(rgba(7,8,10,.35),rgba(7,8,10,0) 30%,rgba(7,8,10,0) 70%,rgba(7,8,10,.5))}

.pg main,.pg .foot{position:relative;z-index:6}
/* the footer shares the page's background: no darker band under a plain page (owner, 27 Nov 2026). The 404 keeps it
   over its painting */
.pg-watch .foot,.pg-about .foot,.pg-privacy .foot{background:transparent}
.pg main:focus{outline:none}

/* ---------- header (as proto-hb/h.css): on the gutter, fully transparent on the first screen; js/page.js adds .is-solid
   (the glass fades in) once the page's heading reaches the header, as road.js does on the home page ---------- */
.pg .nav,.pg .nav.is-solid{padding-left:var(--gutter);padding-right:var(--gutter);background:transparent;box-shadow:none}
.pg .nav::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:rgba(20,16,11,.44);-webkit-backdrop-filter:blur(32px) saturate(1.25);backdrop-filter:blur(32px) saturate(1.25);
  box-shadow:inset 0 -1px 0 rgba(239,231,214,.08);opacity:0;transition:opacity .55s cubic-bezier(.4,0,.2,1)}
.pg .nav.is-solid::before{opacity:1}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .pg .nav::before{background:rgba(14,16,19,.9)}
}
.pg .nav.is-solid a{color:var(--cream);text-shadow:var(--shadow-txt)}
.pg .nav-mark{width:150px}
.pg .nav-mark img{aspect-ratio:1022/184;filter:drop-shadow(0 1px 1px rgba(0,0,0,.45)) drop-shadow(0 1px 10px rgba(0,0,0,.3))}
.pg .nav a{color:var(--cream);text-shadow:var(--shadow-txt)}
.pg .nav-support,.pg .nav a.nav-watch{box-sizing:border-box;height:44px;min-height:44px;line-height:1}
.pg .nav-support{font-size:14px;border-color:rgba(239,231,214,.62);background:rgba(6,7,9,.18)}
.pg .nav a.nav-watch{font-size:14px;letter-spacing:.16em;color:var(--ink);text-shadow:none;transition:background-color .3s}
.pg .nav a.nav-watch:hover{color:var(--ink)}
.pg .nav a[aria-current=page]{color:var(--gold)}
/* the phone menu: hidden from 761px up */
.pg-menu{display:none}

/* ---------- footer (as proto-hb/h.css and h-sections.css: gold wordmark at 175px, blurb on one line from tablet up, even gaps) ---------- */
.pg .foot-mark{width:175px;aspect-ratio:1022/184;opacity:1}
/* the logo's glow margin (1118x312 file, 1022x184 letters): drawn into the letters' box and scaled out to the canvas, as proto-hb/h.css */
.pg .nav-mark img,.pg .foot-mark{transform:scale(1.09393,1.69565)}
.pg .foot-links{margin-top:calc(3vh - 15.7px)}
.pg .foot-bill{margin-top:calc(2.4vh - 12.8px)}
@media (min-width:761px){
  .pg .foot-blurb{max-width:none;white-space:nowrap}
}
@media (max-width:359.98px){
  .pg .foot-links{display:grid;grid-template-columns:repeat(2,auto);justify-content:center;justify-items:center;column-gap:1.4em}
}
.pg .foot-links a[aria-current=page]{color:var(--gold)}

/* ---------- shared heading: the home page's road heading (no ornament on these pages) ---------- */
.pg-head{text-wrap:balance}

/* ---------- Privacy: one centred column of text (no painting, ornament or rule) ---------- */
.pv{max-width:min(46em,100%);margin:0 auto;padding:calc(var(--bar) + 13vh) var(--gutter) 16vh;text-align:center}
.pv .pg-head{align-items:center}
.pv-updated{margin-top:3vh;font-family:var(--sans);text-transform:uppercase;font-size:14px;letter-spacing:.12em;line-height:1.7;color:var(--label)}
.pv-body{margin-top:6vh;color:var(--body);line-height:1.62}
.pv-body p{text-align:justify;-webkit-hyphens:auto;hyphens:auto;text-wrap:pretty}
.pv-body p+p{margin-top:1.15em}
.pv-body strong{font-weight:600;color:var(--cream)}
.pv-body a{color:var(--cream);text-decoration:underline;text-decoration-color:rgba(216,181,122,.75);text-underline-offset:.22em;text-decoration-thickness:1px;transition:text-decoration-color .3s}
.pv-body a:hover{text-decoration-color:var(--cream)}

/* ---------- 404 ---------- */
.nf{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:100vh;min-height:100svh;padding:calc(var(--bar) + 8vh) var(--gutter) 12vh}
.nf-line{margin-top:3vh;font-size:clamp(22px,2vw,30px);line-height:1.35;max-width:26em;margin-left:auto;margin-right:auto;color:var(--cream);text-wrap:pretty;text-shadow:var(--shadow-txt)}
.nf .road-head{align-items:center;text-shadow:var(--shadow-txt)}
.nf-actions{margin-top:5vh;display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.nf-actions .watch{text-decoration:none}

/* ---------- phones (road.css and h.css use the same 760px break) ---------- */
@media (max-width:760px){
  .pg .nav-mark{width:118px}
  /* Watch takes the Support chip's place; Episodes, About and Support move into the menu */
  .pg .nav nav a.nav-support{display:none}
  .pg .nav nav a.nav-watch{display:inline-flex;height:40px;min-height:40px;padding:0 14px 0 12px;gap:9px;font-size:13px;letter-spacing:.14em}
  .pg .nav-watch .pg-ep{display:none}
  .pg-menu{display:block}
  .pg-menu>summary{list-style:none}
  .pg-menu>summary::-webkit-details-marker{display:none}
  .pg .nav-menu{display:flex;cursor:pointer}
  .pg-menu[open] .nav-menu span:first-child{transform:translateY(3.75px) rotate(45deg)}
  .pg-menu[open] .nav-menu span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  .pg .nav .m-menu a{display:flex;text-shadow:none}
  .pg .foot-links{margin-top:calc(3vh - 22.3px)}
  .pg .foot-bill{margin-top:calc(2.4vh - 12.2px)}

  .pv{padding:calc(var(--bar) + 7vh) var(--gutter) 10vh}
  .pv-updated{margin-top:2vh}
  .pv-body{margin-top:4vh;font-size:18px}

  .nf{padding-bottom:calc(var(--bar) + 8vh)}
  .nf-actions{flex-direction:column;align-items:stretch;width:100%;max-width:340px}
  .pg-404 .atmo-shade{background:linear-gradient(rgba(7,8,10,.35),rgba(7,8,10,.15) 30%,rgba(7,8,10,.7) 62%,rgba(7,8,10,.85))}
  .pg-404 .atmo-layer[data-atmo=road]{background-position:50% 50%}
}

@media (prefers-reduced-motion:reduce){
  .pg .nav::before,.pg .nav-menu span,.pg .nav a.nav-watch,.pv-body a{transition:none}
}
