/*
 * The Outcast Library — Front Porch Lamp
 * Dark but warm: amber lamplight at top, fire-glow at bottom.
 * Oswald (display) + Lora (body) + Caveat (handwritten accents).
 */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Oswald:wght@300;400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap");

:root {
  /* Backgrounds */
  --bg:          #120b05;
  --bg-lamp:     #1d1308;
  --bg-paper:    #1a120a;
  --bg-raised:   #221609;

  /* Text */
  --ink:         #e8dcc2;
  --ink-dim:     #b79c7a;
  --ink-faint:   #7c634a;
  --ink-ghost:   #4f3d27;

  /* Accents */
  --lamp:        #e4a341;
  --lamp-warm:   #f5ba5b;
  --lamp-dark:   #a6741f;
  --rust:        #c97a3a;
  --rust-dark:   #8a4d1c;
  --rust-light:  #e4944a;

  /* Lines */
  --rule:        #3d2a15;
  --rule-bright: #6b4820;
  --rule-lamp:   #a6741f;

  /* Legacy aliases — a few older templates still reference these */
  --paper:       var(--bg-paper);
  --cream:       var(--bg-raised);
  --sage:        var(--rust);
  --sage-dark:   var(--rust-dark);

  /* Shadow */
  --shadow:       rgba(0, 0, 0, 0.4);
  --shadow-warm:  rgba(228, 163, 65, 0.2);

  /* Layout */
  --max-wide:    1080px;
  --max-narrow:  720px;

  /* Fonts */
  --serif:       "Lora", Georgia, serif;
  --sans:        "Oswald", system-ui, sans-serif;
  --hand:        "Caveat", "Marker Felt", cursive;
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Lamplight atmosphere ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80vh;
  background: radial-gradient(
    ellipse 60% 55% at center top,
    rgba(245, 186, 91, 0.18),
    rgba(201, 122, 58, 0.07) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  background: radial-gradient(
    ellipse 80% 100% at center bottom,
    rgba(201, 122, 58, 0.1),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a {
  color: var(--lamp-warm);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(228, 163, 65, 0.4);
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--lamp);
  text-decoration-color: var(--lamp);
}

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-weight: 500;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 2rem 0 1.25rem;
  font-weight: 500;
}
h2 em, h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--lamp-warm);
}
h3 {
  font-size: 1.4rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}
h4 { font-size: 1.1rem; margin: 1rem 0 0.5rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
h5 { font-size: 0.95rem; margin: 0.75rem 0 0.4rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lamp); }

p { margin-bottom: 1rem; }
p.lede, .lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

em { font-style: italic; color: var(--lamp-warm); }
strong { font-weight: 700; color: var(--ink); }

ul, ol { padding-left: 1.5rem; }
ul li, ol li { margin-bottom: 0.4rem; }

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink);
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--lamp);
  margin: 1.5rem 0;
  max-width: 60ch;
}

.muted { color: var(--ink-faint); font-size: 0.88rem; }
.meta { color: var(--ink-faint); font-size: 0.82rem; font-family: var(--sans); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; }
.disclaimer { font-size: 0.82rem; color: var(--ink-faint); font-style: italic; line-height: 1.55; }

/* ── Top strip (dateline) ──────────────────────────────────── */
.top-strip {
  background: var(--bg-lamp);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-strip .left { color: var(--lamp); }

/* ── Header: brand with lion ──────────────────────────────── */
header.site {
  text-align: center;
  padding: 3rem 2rem 2rem;
  position: relative;
}
header.site .brand-row {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
header.site .lion-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--lamp);
  padding: 3px;
  filter: drop-shadow(0 0 20px rgba(228, 163, 65, 0.45));
  transition: filter 0.4s;
}
header.site .lion-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
header.site:hover .lion-mark { filter: drop-shadow(0 0 32px rgba(228, 163, 65, 0.7)); }

header.site .brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: block;
}
header.site .brand .amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--lamp-warm);
  font-size: 0.85em;
  padding: 0 0.1em;
}
header.site .site-tagline {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--lamp-warm);
  font-weight: 500;
  margin-top: 0.5rem;
}
header.site .site-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

/* ── Main nav — sticky on scroll ─────────────────────────── */
nav.mainnav {
  background: rgba(29, 19, 8, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  margin-bottom: 3rem;
  position: sticky;
  top: 0;
  z-index: 60;
}
nav.mainnav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--lamp-dark);
  opacity: 0.3;
}
nav.mainnav .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
nav.mainnav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.mainnav a:hover {
  color: var(--lamp-warm);
  border-bottom-color: var(--lamp);
}
nav.mainnav a.active {
  color: var(--lamp);
  border-bottom-color: var(--lamp);
}

main.container { padding-bottom: 5rem; }

/* ── Hero card ──────────────────────────────────────────── */
.hero-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule-bright);
  padding: 3rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(228, 163, 65, 0.08) inset;
}
.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid var(--lamp);
}
.hero-card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hero-card::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hero-card .dateline {
  font-family: var(--hand);
  color: var(--rust);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero-card h1 {
  margin-bottom: 1.5rem;
}
.hero-card .lede {
  max-width: 66ch;
}
.hero-card p { max-width: 66ch; }
.hero-card .hero-sign {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--lamp-warm);
  text-align: right;
  margin-top: 2rem;
  font-weight: 500;
}

/* ── Counters (pegs) ─────────────────────────────────────── */
.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.peg {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--bg-paper);
  border: 1px dashed var(--rule-bright);
  position: relative;
}
.peg::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--lamp);
  border-radius: 50%;
}
.peg .num {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--lamp-warm);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.peg .label {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-dim);
  font-weight: 500;
}

/* ── Section headers ─────────────────────────────────────── */
.sec-head {
  text-align: center;
  margin: 4rem 0 2rem;
}
.sec-head .tag {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--rust);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.sec-head h2 { margin: 0; }

/* ── Guide cards ─────────────────────────────────────────── */
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.guide-card {
  background: var(--bg-paper);
  padding: 2rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rust);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.guide-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--lamp);
  box-shadow: 0 10px 40px rgba(228, 163, 65, 0.15);
}
.guide-card .pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule-bright);
  color: var(--lamp);
  background: var(--bg-lamp);
  margin-bottom: 1rem;
}
.guide-card .pill.finance,
.guide-card .pill.law,
.guide-card .pill.life,
.guide-card .pill.home,
.guide-card .pill.land { border-color: var(--lamp); }
.guide-card h3 {
  color: var(--ink);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 500;
}
.guide-card:hover h3 { color: var(--lamp-warm); }
.guide-card .deck {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.55;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.guide-card .meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}

/* ── Card grid (themes / states / library) ──────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.card:hover {
  border-color: var(--lamp);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(228, 163, 65, 0.12);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.card:hover h3 { color: var(--lamp-warm); }
.card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Voice block ─────────────────────────────────────────── */
.voice-block {
  background: var(--bg-paper);
  border: 1px solid var(--rule-bright);
  border-left: 4px solid var(--lamp);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.voice-block .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: 1rem;
  font-weight: 400;
}
.voice-block blockquote {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.voice-block .count {
  font-family: var(--hand);
  color: var(--rust);
  font-size: 1.35rem;
  text-align: right;
  margin-top: 1rem;
}

/* ── Tactic / Law lists ──────────────────────────────────── */
.tactic-list, .law-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.tactic-list > li, .law-list > li {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rust);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.tactic-list strong, .law-list strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.tactic-list p, .law-list p {
  font-family: var(--serif);
  color: var(--ink-dim);
  margin-bottom: 0.75rem;
}

/* ── Video list ─────────────────────────────────────────── */
/* Shared style with .library-list: a clean vertical stack of videos.
   Templates render each <li> as an <a><strong>title</strong></a> + <p>meta</p>. */
.video-list,
.library-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: videoitem;
}
.video-list > li,
.library-list > li {
  position: relative;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--rule);
}
.video-list > li:last-child,
.library-list > li:last-child { border-bottom: none; }

/* Ordered-list rank counter (for <ol>) */
.video-list[class] > li,
.library-list[class] > li {
  counter-increment: videoitem;
}
ol.video-list > li::before,
ol.library-list > li::before {
  content: counter(videoitem);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lamp);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.video-list > li > a,
.library-list > li > a {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.25;
  display: block;
  transition: color 0.15s;
}
.video-list > li > a:hover,
.library-list > li > a:hover { color: var(--lamp-warm); }
.video-list > li > a strong,
.library-list > li > a strong { font-weight: 500; }

.video-list > li > p,
.library-list > li > p {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
.video-list > li > p em,
.library-list > li > p em {
  color: var(--rust-light);
  font-style: italic;
}

/* ── Sources / citations ─────────────────────────────────── */
.sources, .source-list {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule);
}
.source-list {
  list-style: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 300;
}
.source-list li { margin-bottom: 0.35rem; }
.source-link {
  color: var(--lamp);
  text-decoration: none;
  border-bottom: 1px dotted var(--lamp-dark);
}
.source-link:hover { color: var(--lamp-warm); border-bottom-color: var(--lamp-warm); }
.source-internal {
  color: var(--ink-dim);
  text-decoration: none;
}
.source-time { color: var(--ink-faint); font-weight: 300; }
.source-title { color: var(--ink-dim); text-transform: none; letter-spacing: 0; }
.source-snippet {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 1px solid var(--rule);
  margin-top: 0.25rem;
}
.citation {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--rule);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.breadcrumb a {
  color: var(--lamp);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--lamp-warm); }
.breadcrumb::before { content: '«\00a0'; color: var(--ink-faint); }

/* ── Page title block ────────────────────────────────────── */
.page-title {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--rule-bright);
}
.page-title h1 { margin-bottom: 0.75rem; }
.page-title .lede { margin-bottom: 0; }

/* ── Forms ───────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
textarea,
select {
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule-bright);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(228, 163, 65, 0.15);
}
button,
input[type="submit"] {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--lamp);
  color: var(--bg);
  border: 2px solid var(--lamp);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
button:hover {
  background: transparent;
  color: var(--lamp-warm);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: 0.5rem;
}
.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.form-status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}
.form-status.sending { color: var(--ink-faint); }
.form-status.success { color: var(--lamp-warm); }
.form-status.error { color: var(--rust-light); }

/* ── Inline signup form (footer) ─────────────────────────── */
.signup-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.signup-inline input[type="email"] { flex: 1; min-width: 200px; }
.signup-inline button { padding: 0.85rem 1.5rem; }

/* ── Pills / tags / filters ──────────────────────────────── */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule-bright);
  color: var(--ink-dim);
  background: var(--bg-lamp);
  margin: 0.15rem;
}

/* ── Guide page specifics ────────────────────────────────── */
.guide-header {
  padding: 2.5rem 0;
  border-bottom: 1px dashed var(--rule-bright);
  margin-bottom: 2.5rem;
}
.guide-header .pill { margin-bottom: 1rem; }
.guide-header h1 { margin-bottom: 1rem; }
.guide-section {
  margin: 3rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.guide-sources {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.guide-cta {
  background: var(--bg-paper);
  border: 1px solid var(--lamp);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

/* ── Recommended (gear page) ─────────────────────────────── */
.reco-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.reco-item {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.reco-head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: 0.75rem;
}
.reco-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--lamp-warm);
  margin: 0.5rem 0 1rem;
}
.reco-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--sans);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.reco-note {
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.reco-box {
  background: var(--bg-paper);
  border: 1px dashed var(--rule-bright);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ── Video embed — click-to-play thumbnail ──────────────── */
.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--bg-paper);
  border: 1px solid var(--rule-bright);
  margin: 1.5rem 0;
}
.video-embed iframe { width: 100%; height: 100%; display: block; }

.video-poster {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-paper);
  border: 1px solid var(--rule-bright);
  margin: 1.5rem 0 2rem;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.video-poster:hover {
  border-color: var(--lamp);
  box-shadow: 0 12px 40px rgba(228, 163, 65, 0.18);
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
  transition: opacity 0.3s, transform 0.5s;
}
.video-poster:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}
.video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 11, 5, 0.15) 0%,
    rgba(18, 11, 5, 0.3) 60%,
    rgba(18, 11, 5, 0.75) 100%
  );
  pointer-events: none;
}
.video-poster .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(228, 163, 65, 0.95);
  box-shadow:
    0 0 0 8px rgba(228, 163, 65, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s, background 0.25s;
  z-index: 1;
}
.video-poster .play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  border-left: 24px solid var(--bg);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.video-poster:hover .play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--lamp-warm);
}
.video-poster .watch-cta {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  z-index: 1;
  white-space: nowrap;
}

/* ── Stats page ──────────────────────────────────────────── */
.stat-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-list li {
  background: var(--bg-paper);
  padding: 1.25rem;
  border: 1px dashed var(--rule-bright);
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg-lamp);
  border-top: 3px double var(--rule-bright);
  padding: 4rem 0 3rem;
  margin-top: 4rem;
  position: relative;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 8px; left: 0; right: 0;
  height: 1px;
  background: var(--lamp-dark);
  opacity: 0.4;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}
footer.site-footer .sig {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--lamp-warm);
  margin-bottom: 1rem;
  font-weight: 500;
}
footer.site-footer h5 {
  color: var(--lamp);
  margin-bottom: 0.75rem;
}
footer.site-footer p {
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.65;
}
.footer-links {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.footer-links a { color: var(--lamp); text-decoration: none; }
.footer-links a:hover { color: var(--lamp-warm); }
.footer-signup {
  background: var(--bg-paper);
  padding: 1.75rem;
  border: 1px dashed var(--rule-bright);
}

/* ── Fixed footer ─────────────────────────────────────────
   A thin always-on strip at the bottom of the viewport with a
   running git SHA, builder credit, and 2–3 essential links.
   Matches the pledge-tracker pattern. */
.fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0.55rem 1.25rem;
  background: rgba(10, 6, 2, 0.93);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--rule-bright);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.85rem;
  flex-wrap: wrap;
}
.fixed-footer a {
  color: var(--lamp);
  text-decoration: none;
  border-bottom: 1px dashed rgba(228, 163, 65, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.fixed-footer a:hover {
  color: var(--lamp-warm);
  border-bottom-color: var(--lamp-warm);
}
.fixed-footer .git-sha {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: rgba(228, 163, 65, 0.5);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.72rem;
}
.fixed-footer .sep { color: var(--ink-ghost); }

/* Reserve space at the bottom of the page so content never hides under the fixed footer */
body { padding-bottom: 44px; }
@media (max-width: 540px) {
  body { padding-bottom: 38px; }
  .fixed-footer {
    padding: 0.45rem 0.75rem;
    font-size: 0.62rem;
    gap: 0.35rem 0.65rem;
  }
  .fixed-footer .git-sha { font-size: 0.65rem; }
}

/* ── Honeypot (hidden from humans) ───────────────────────── */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ── Misc legacy support ─────────────────────────────────── */
.more-list { list-style: none; padding: 0; }
.more-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}
.more-list li:last-child { border-bottom: none; }
.more-list a { color: var(--ink); text-decoration: none; }
.more-list a:hover { color: var(--lamp-warm); }
.library-list { list-style: none; padding: 0; }
.filters {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-paper);
  border: 1px dashed var(--rule);
}
.filters .opt {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule-bright);
  text-decoration: none;
}
.filters .opt:hover,
.filters .opt.active { color: var(--bg); background: var(--lamp); border-color: var(--lamp); }
.voice-list { list-style: none; padding: 0; }
.context-list { list-style: none; padding: 0; font-size: 0.9rem; }
.context-list li { padding: 0.5rem 0; border-bottom: 1px dotted var(--rule); }

/* ── Responsive — mobile UX pass ──────────────────────────── */
@media (max-width: 820px) {
  html { font-size: 16px; }

  .container { padding: 0 1rem; }

  /* Top strip — one compact row, hide the redundant right side */
  .top-strip {
    padding: 0.5rem 0;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }
  .top-strip .container {
    justify-content: center;
    gap: 0.5rem;
  }
  .top-strip .container > div:last-child { display: none; }

  /* Header — tighter, single-row brand on narrow screens */
  header.site {
    padding: 1.5rem 1rem 1rem;
  }
  header.site .brand-row {
    gap: 0.85rem;
    margin-bottom: 0.5rem;
  }
  header.site .lion-mark {
    width: 48px;
    height: 48px;
    padding: 2px;
  }
  header.site .brand {
    font-size: 1.55rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
  }
  header.site .brand .amp { font-size: 0.85em; }
  header.site .site-tagline {
    font-size: 1.2rem;
    margin-top: 0.35rem;
  }
  header.site .site-sub {
    display: none; /* redundant with tagline on small screens */
  }

  /* Nav — larger tap targets, tighter text, single-row flow where possible */
  nav.mainnav {
    padding: 0.35rem 0;
    margin-bottom: 1.5rem;
  }
  nav.mainnav .container {
    gap: 0.25rem 0.85rem;
    padding: 0 0.75rem;
    flex-wrap: wrap;
  }
  nav.mainnav a {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 0.35rem;  /* ≈44px tap target */
    padding-bottom: 0.6rem;
    margin-bottom: 0;
  }

  /* Main container — less vertical chrome eating the fold */
  main.container { padding-top: 0; padding-bottom: 3rem; }

  /* Breadcrumb — tighter */
  .breadcrumb { font-size: 0.68rem; margin-bottom: 1rem; }

  /* Page title + headings — scale down aggressively */
  h1 { font-size: 1.85rem; line-height: 1.1; }
  h2 { font-size: 1.55rem; margin: 1.5rem 0 1rem; }
  h3 { font-size: 1.2rem; }
  .lede, p.lede { font-size: 1.05rem; line-height: 1.55; }

  /* Hero card — tighter padding, smaller title */
  .hero-card {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }
  .hero-card::before,
  .hero-card::after { width: 24px; height: 24px; }
  .hero-card h1 { font-size: 1.75rem; margin-bottom: 1rem; }
  .hero-card .lede { font-size: 1.05rem; margin-bottom: 1rem; }
  .hero-card p { font-size: 0.95rem; }
  .hero-card .dateline { font-size: 1.15rem; margin-bottom: 0.5rem; }
  .hero-card .hero-sign { font-size: 1.2rem; margin-top: 1.25rem; }

  /* Section headers */
  .sec-head { margin: 2.5rem 0 1.5rem; }
  .sec-head .tag { font-size: 1.1rem; }

  /* Counters (pegs) */
  .counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin: 2rem 0;
  }
  .peg { padding: 1.25rem 0.5rem; }
  .peg .num { font-size: 1.9rem; }
  .peg .label { font-size: 1rem; }

  /* Guide cards */
  .guide-card { padding: 1.5rem 1.25rem; }
  .guide-card h3 { font-size: 1.2rem; line-height: 1.2; }
  .guide-card .pill { font-size: 0.65rem; padding: 0.25rem 0.55rem; }
  .guide-card .deck { font-size: 0.95rem; }

  /* Card grid — tighter */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .card { padding: 1.25rem 1rem; }

  /* Voice block */
  .voice-block { padding: 1.5rem 1.25rem; }
  .voice-block blockquote { font-size: 1.2rem; }

  /* Video list — slightly tighter on mobile */
  .video-list > li,
  .library-list > li { padding: 1rem 0; }
  .video-list > li > a,
  .library-list > li > a { font-size: 1rem; }
  .video-list > li > p,
  .library-list > li > p { font-size: 0.88rem; }

  /* Tactic/law lists — trim padding */
  .tactic-list > li, .law-list > li { padding: 1.25rem 1.25rem; }

  /* Guide-page section */
  .guide-section { margin: 2rem 0; }
  .guide-header { padding: 1.5rem 0; margin-bottom: 1.5rem; }

  /* Forms — full-width stack */
  .form-row { margin-bottom: 1rem; }
  .signup-inline { flex-direction: column; }
  .signup-inline button { width: 100%; }

  /* Video embed on video page — ensure it keeps 16:9 */
  .video-embed { margin: 1rem -1rem; }  /* full-bleed on mobile */

  /* Footer */
  footer.site-footer {
    padding: 2.5rem 0 2rem;
    margin-top: 3rem;
  }
  footer.site-footer .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  footer.site-footer .sig { font-size: 1.5rem; }
  footer.site-footer p { font-size: 0.88rem; }
  .footer-signup { padding: 1.25rem; }
  .footer-links { font-size: 0.7rem; letter-spacing: 0.08em; }
}

/* Very narrow phones — small iPhones, compact Androids */
@media (max-width: 380px) {
  header.site .brand { font-size: 1.35rem; }
  header.site .lion-mark { width: 42px; height: 42px; }
  nav.mainnav a { font-size: 0.72rem; letter-spacing: 0.05em; }
  .hero-card h1 { font-size: 1.55rem; }
  .peg .num { font-size: 1.65rem; }
}
