/* The header that every page of filmish.app shares: the home page, the manual, the
   sign-up pages. One markup, this one stylesheet. The page marks its own link with
   aria-current="page".

   <header class="nav">
     <div class="nav-wrap">
       <a href="…/index.html" class="brand"><img src="…/assets/logo.png" alt="" class="brand-logo"><span class="brand-name">Film<span class="ish">(ish)</span></span></a>
       <nav class="nav-links" aria-label="Site"><a href="…">Manual</a><a href="…">Articles</a><a href="…">Updates</a></nav>
       <a href="https://apps.apple.com/app/id6761363553" class="appstore">…</a>
     </div>
   </header>
*/
/* The pages that load this file name their colours differently (the updates page says --muted-dim,
   the article --hairline), so the chrome reads its own names, each falling back to the site's value.
   The type is the chrome's own: Geist, on every page, whatever the page is set in (Catalin, Oct 13
   2026: the header and footer take the home page's type). Every page links Geist from Google Fonts. */
:root {
  --nav-h: 64px;
  --chrome-font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --chrome-muted: var(--muted, rgba(255,255,255,0.6));
  --chrome-dim: var(--dim, rgba(255,255,255,0.4));
  --chrome-line: var(--line, rgba(255,255,255,0.08));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(18,18,18,0.84);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-wrap { width: min(1160px, calc(100% - 40px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-wrap > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; border-bottom: 0; color: inherit; flex-shrink: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; display: block; }
/* .nav in front: an old page's own .brand-name rule (updates) must not win over the shared header */
.nav .brand-name { font-family: var(--chrome-font); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.nav .brand-name .ish { font-weight: 400; color: rgba(255,255,255,0.55); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--chrome-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--chrome-muted);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  transition: color 120ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
/* A narrow screen keeps the brand and the button; the links wait for a wider one. */
@media (max-width: 600px) { .nav-links { display: none; } }

/* The App Store button, in the header and on the pages. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  text-decoration: none;
  border-bottom: 0;
  font-family: var(--chrome-font);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.appstore:hover { border-color: rgba(255,255,255,0.4); background: #0a0a0a; }
.appstore svg { display: block; width: 18px; height: 22px; }
.appstore-text { display: flex; flex-direction: column; line-height: 1; align-items: flex-start; }
.appstore-small { font-size: 9px; color: rgba(255,255,255,0.75); letter-spacing: 0.01em; }
.appstore-big { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; }
.appstore--lg { padding: 9px 20px 9px 16px; gap: 11px; border-radius: 11px; }
.appstore--lg svg { width: 24px; height: 30px; }
.appstore--lg .appstore-small { font-size: 11px; }
.appstore--lg .appstore-big { font-size: 20px; margin-top: 3px; }

/* The footer that every page shares, under the same contract as the header:

   <footer class="foot">
     <div class="foot-wrap">
       <nav class="foot-links" aria-label="Site"><a href="…">Manual</a><a href="…">Articles</a><a href="…">Updates</a><a href="…">Threads</a><a href="…">Instagram</a><a href="…">Privacy</a></nav>
       <p>Copyright © 2026 Catalin Bridinel</p>
       <p>Film names are trademarks of their owners. Film(ish) is not affiliated with them.</p>
     </div>
   </footer>
*/
.foot {
  display: block;
  width: auto;
  max-width: none;
  margin: 72px 0 0;
  padding: 30px 0 44px;
  border-top: 1px solid var(--chrome-line);
  font-family: var(--chrome-font);
  font-size: 12px;
  line-height: 1.6;
  color: var(--chrome-dim);
  text-align: center;
}
.foot-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin: 0 0 16px; }
.foot-links a { color: var(--chrome-muted); text-decoration: none; border-bottom: 0; white-space: nowrap; transition: color 120ms ease; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: #fff; }
.foot p { margin: 0; max-width: none; }     /* a host page may cap its paragraphs' measure */
.foot p + p { margin-top: 6px; }
