/* ═══════════════════════════════════════════════════════════════════════════
   Letterboxd Toolkit — shared chrome
   Tokens, reset, nav, buttons, footer, grain, scroll furniture. Everything a
   second page needs; page-specific layout stays inline in the page itself.

   Standing constraint: this site makes ZERO external requests. No webfonts, no
   CDN, no analytics, no hotlinked images. A product whose whole pitch is "we
   send almost nothing" cannot have a marketing site that phones home to three
   other companies before the headline paints.
   ═══════════════════════════════════════════════════════════════════════════ */

:root{
  /* Letterboxd's own palette — taken from the site the extension lives inside. */
  --bg:        #14181c;
  --bg-deep:   #0c1013;
  --panel:     #1b2229;
  --field:     #2c3440;
  --text:      #ffffff;
  --muted:     #99aabb;
  --dim:       #6b7c8c;
  --green:     #00e054;
  --blue:      #40bcf4;
  --orange:    #ff8000;
  --line:      rgba(255,255,255,.075);
  --line-soft: rgba(255,255,255,.045);

  --shell: 1180px;
  --gut: clamp(20px, 5vw, 64px);

  /* One grotesque stack, no download. Tracking does the work a licensed display
     face would otherwise do. */
  --sans: "Segoe UI Variable Display","Segoe UI",-apple-system,BlinkMacSystemFont,
          "Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono: "Cascadia Code",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);font-size:17px;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p,figure,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

/* Film grain. One inline SVG turbulence, tiled — the cheapest way to stop a flat
   dark page reading as a PDF. */
.grain{
  position:fixed;inset:-50%;z-index:60;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 7s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)}    20%{transform:translate(-4%,-3%)}
  40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,4%)}
  80%{transform:translate(4%,3%)}  100%{transform:translate(0,0)}
}

/* Reading progress: the three brand colours, in order. */
.progress{
  position:fixed;top:0;left:0;height:2px;z-index:70;width:0;
  background:linear-gradient(90deg,var(--green),var(--blue) 60%,var(--orange));
}

.shell{max-width:var(--shell);margin:0 auto;padding-inline:var(--gut)}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease;
  border-bottom:1px solid transparent;
}
.nav.stuck{background:rgba(12,16,19,.82);backdrop-filter:blur(14px);border-bottom-color:var(--line)}
.nav-in{display:flex;align-items:center;gap:28px;height:68px}
.brand{display:flex;align-items:center;gap:9px;font-weight:600;letter-spacing:-.01em}
/* The product's own icon, not a stand-in: its dark rounded square is the same
   colour as the page, so on this background only the three glyphs read. */
.brand-mark{width:34px;height:34px;flex:none;margin:-3px 0}
/* 34px, not 28: the artwork carries ~24% padding of its own, so at 28 the
   glyphs render ~15px and read light beside the wordmark. */
.nav-links{display:flex;align-items:center;gap:26px;margin-left:auto;font-size:14px;
  letter-spacing:.02em;color:var(--muted)}
.nav-links a{transition:color .2s ease}
.nav-links a:hover{color:var(--text)}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:9px;padding:12px 22px;border-radius:999px;
  font-size:15px;font-weight:600;letter-spacing:.01em;line-height:1;white-space:nowrap;
  transition:transform .18s cubic-bezier(.2,.7,.3,1),box-shadow .18s ease,background .18s ease;
}
.btn-primary{background:var(--green);color:#0b1114;box-shadow:0 6px 26px rgba(0,224,84,.24)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(0,224,84,.34)}
.btn-ghost{border:1px solid rgba(255,255,255,.16);color:var(--text)}
.btn-ghost:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.04)}
.btn-sm{padding:9px 17px;font-size:14px}

/* ── Section furniture ────────────────────────────────────────────────────── */
.eyebrow{
  display:flex;align-items:center;gap:11px;
  font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);
}
.eyebrow .num{color:var(--green);font-variant-numeric:tabular-nums}
.eyebrow .tick{width:26px;height:1px;background:var(--line);flex:none}

.lede{margin-top:18px;color:var(--muted);font-size:clamp(16px,1.6vw,18px);max-width:46ch}

/* Reveal-on-scroll. One class, staggered by index in JS. */
.rise{opacity:0;transform:translateY(26px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1)}
.rise.in{opacity:1;transform:none}

/* Real source logos, lifted from the extension's own brand-marks.ts. A <use> of a
   <symbol> scales to the host <svg>'s box, so each needs an explicit width —
   derived from its own viewBox ratio, not guessed. */
.mark{display:block;flex:none}
.mark.-imdb{height:15px;width:29.8px}                    /* 575 / 289.83   */
.mark.-rotten{height:15px;width:52.6px;color:#fa320a}    /* 158.75 / 45.25 */
.mark.-metacritic{height:16px;width:70.4px;color:#fff}   /* 176 / 40       */
.defs{position:absolute;width:0;height:0;overflow:hidden}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line);padding:56px 0 64px;font-size:14px;color:var(--dim)}
.foot-top{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:flex-start}
.foot-links{display:flex;flex-wrap:wrap;gap:26px}
.foot-links a{color:var(--muted);transition:color .2s ease}
.foot-links a:hover{color:var(--text)}
.legal{margin-top:34px;padding-top:26px;border-top:1px solid var(--line-soft);
  font-size:12.5px;line-height:1.7;max-width:82ch;color:#5f6f7e}

@media (max-width:900px){
  .nav-links a:not(.btn){display:none}
}

/* Motion off: everything lands in its final state, instantly. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .rise{opacity:1;transform:none}
}
