/* ============================================================
   Pirate Linux — "Rogue Broadsheet" Aesthetic
   Fonts: Playfair Display (display) + JetBrains Mono (code/nav) + Lora (body)
   Palette: Near-black ink, dirty white paper, blood red accent, gold highlight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=JetBrains+Mono:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink:       #0f0e0d;
  --ink-soft:  #1e1c1a;
  --ink-light: #2e2c29;
  --paper:     #f4f0e8;
  --paper-mid: #e8e2d6;
  --paper-dark:#d8d0c2;
  --red:       #b91c1c;
  --red-bright:#dc2626;
  --red-dim:   #7f1d1d;
  --gold:      #c49a3c;
  --gold-dim:  #8a6b26;
  --text:      #1a1816;
  --text-mid:  #4a4540;
  --text-dim:  #7a736a;
  --border:    #c8c0b0;
  --border-dark: #a09080;
  --max-w:     1060px;
  --max-w-narrow: 780px;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red-bright); text-decoration: underline; }
strong { font-weight: 600; }
em { font-style: italic; }
code, pre, .mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .875em;
}
pre {
  background: var(--ink);
  color: #a8e6a0;
  border-left: 4px solid var(--red);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.4em;
  border-radius: 2px;
  line-height: 1.6;
}
code {
  background: rgba(15,14,13,.06);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .15em .35em;
}
pre code { background: none; border: none; padding: 0; color: inherit; }
blockquote {
  border-left: 4px solid var(--red);
  padding: .8rem 1.5rem;
  margin: 1.4em 0;
  font-style: italic;
  color: var(--text-mid);
  background: rgba(185,28,28,.04);
}
ul, ol { padding-left: 1.5rem; margin-bottom: 1.1em; }
li { margin-bottom: .3em; }
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── SITE HEADER ─────────────────────────────────────────────── */
#site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 3px solid var(--red);
}

/* Masthead banner — shown on homepage only */
.masthead {
  background: var(--ink);
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--ink-light);
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.015) 0,
      rgba(255,255,255,.015) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.015) 0,
      rgba(255,255,255,.015) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}
.masthead-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }
.masthead-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.masthead-title span { color: var(--red-bright); }
.masthead-rule {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  margin: .8rem 0 .6rem;
}
.masthead-rule::before,
.masthead-rule::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark));
}
.masthead-rule::after { background: linear-gradient(90deg, var(--border-dark), transparent); }
.masthead-rule-icon {
  color: var(--red);
  font-size: 1.2rem;
}
.masthead-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
#navbar {
  background: var(--ink);
  max-width: 100%;
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  padding: .6rem 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.navbar-brand span { color: var(--red-bright); }
.navbar-brand:hover { text-decoration: none; color: var(--paper); }
.navbar-skull { font-size: 1rem; }

nav.main-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
nav.main-nav > li {
  list-style: none;
  position: relative;
}
nav.main-nav > li > a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(244,240,232,.7);
  padding: .9rem .7rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
  border-left: 1px solid rgba(255,255,255,.05);
}
nav.main-nav > li:first-child > a { border-left: none; }
nav.main-nav > li > a:hover,
nav.main-nav > li.active > a {
  color: var(--paper);
  background: rgba(185,28,28,.25);
  text-decoration: none;
}
/* Dropdown */
nav.main-nav > li > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ink-soft);
  border: 1px solid var(--ink-light);
  border-top: 2px solid var(--red);
  min-width: 160px;
  z-index: 400;
  box-shadow: 4px 4px 20px rgba(0,0,0,.5);
}
nav.main-nav > li:hover > .dropdown { display: block; }
nav.main-nav > li > .dropdown li { list-style: none; }
nav.main-nav > li > .dropdown li a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(244,240,232,.75);
  padding: .55rem .9rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-light);
  transition: background .15s, color .15s;
}
nav.main-nav > li > .dropdown li a:hover {
  background: rgba(185,28,28,.2);
  color: var(--paper);
  text-decoration: none;
}
/* Search in navbar */
.navbar-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.navbar-search input[type="text"] {
  background: var(--ink-light);
  border: 1px solid rgba(255,255,255,.1);
  border-right: none;
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  padding: .35rem .7rem;
  outline: none;
  width: 140px;
  transition: border-color .2s, width .2s;
}
.navbar-search input[type="text"]::placeholder { color: rgba(244,240,232,.3); }
.navbar-search input[type="text"]:focus {
  border-color: var(--red);
  width: 180px;
}
.navbar-search button {
  background: var(--red);
  border: 1px solid var(--red-dim);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .35rem .7rem;
  cursor: pointer;
  transition: background .15s;
  text-transform: uppercase;
}
.navbar-search button:hover { background: var(--red-bright); }

/* ── PAGE WRAPPER ────────────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.page-wrap.narrow { max-width: var(--max-w-narrow); }

/* ── HOMEPAGE HERO ───────────────────────────────────────────── */
.hero-section {
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.hero-text {}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--red-dim);
  max-width: 60px;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: .8rem;
}
.hero-text h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .9rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
  font-style: normal;
}
.hero-text p {
  color: rgba(244,240,232,.65);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ink-light);
  border: 1px solid var(--ink-light);
}
.hero-feat-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  opacity: .85;
}
.hero-img-caption {
  background: var(--ink-soft);
  padding: .5rem .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── HOMEPAGE THREE PILLARS ──────────────────────────────────── */
.pillars-section {
  background: var(--paper-mid);
  border-bottom: 1px solid var(--border);
}
.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
@media (max-width: 620px) {
  .pillars-inner { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--paper);
  padding: 1.8rem 1.6rem;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: .7rem;
  display: block;
}
.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
}
.pillar p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .65rem 1.3rem;
  border: 2px solid;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.btn-red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--paper);
}
.btn-outline {
  background: transparent;
  border-color: rgba(244,240,232,.3);
  color: var(--paper);
}
.btn-outline:hover {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(244,240,232,.07);
}
.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--ink-soft);
  border-color: var(--red);
  color: var(--paper);
}

/* ── PAGE HEADER (inner pages) ───────────────────────────────── */
.page-header {
  background: var(--ink);
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 3px solid var(--red);
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .5rem;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--gold); }
.breadcrumb span { color: var(--text-dim); margin: 0 .4rem; }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  line-height: 1.05;
}
.page-header .page-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: .5rem;
  letter-spacing: .04em;
}

/* ── ARTICLE LAYOUT ──────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 .7rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.5rem 0 .5rem;
}
.article-body h4 {
  font-size: 1rem;
  color: var(--red-dim);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 1.2rem 0 .4rem;
  text-transform: uppercase;
  font-size: .82rem;
}
.article-body p { line-height: 1.8; }
.article-body ul li { line-height: 1.7; }
.article-body ol li { line-height: 1.7; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {}
.sidebar-box {
  background: var(--paper-mid);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.3rem;
}
.sidebar-box h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li {
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  color: var(--text-mid);
  padding: .45rem 0;
  text-decoration: none;
  transition: color .15s;
  letter-spacing: .02em;
}
.sidebar-box ul li a:hover { color: var(--red); text-decoration: none; }
.sidebar-box p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: .6rem;
}
.sidebar-box p:last-child { margin: 0; }

/* ── SECTION DIVIDER ─────────────────────────────────────────── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}
.section-rule h2 {
  font-size: 1.1rem;
  white-space: nowrap;
  font-style: italic;
}
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── NEWS / BLOG LISTING ─────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1.4rem 1.4rem 1.2rem;
  transition: border-top-color .2s, box-shadow .2s;
}
.news-card:hover {
  box-shadow: 3px 3px 0 var(--red-dim);
}
.news-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  color: var(--text-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.25;
}
.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.news-card h3 a:hover { color: var(--red); }
.news-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.65; margin: 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.faq-q::before {
  content: 'Q.';
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.faq-a {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding-left: 1.8rem;
}

/* ── DONATE / CONTRIBUTE ─────────────────────────────────────── */
.donate-box {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--red);
}
.donate-box h3 {
  color: var(--paper);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.donate-box p { color: rgba(244,240,232,.7); font-size: .92rem; margin-bottom: 1rem; }

/* ── LINKS PAGE ──────────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.link-card {
  background: var(--paper-mid);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  transition: border-color .15s;
}
.link-card:hover { border-color: var(--red); }
.link-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.link-card h4 a { color: var(--ink); }
.link-card h4 a:hover { color: var(--red); text-decoration: none; }
.link-card p { font-size: .83rem; color: var(--text-mid); margin: 0; line-height: 1.55; }

/* ── VIDEO TUTORIALS (TubePress style) ───────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.video-thumb {
  background: var(--ink);
  border: 1px solid var(--ink-light);
  overflow: hidden;
  transition: border-color .2s;
}
.video-thumb:hover { border-color: var(--red); }
.video-thumb-img {
  aspect-ratio: 16/9;
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--red);
  border-bottom: 1px solid var(--ink-light);
  text-decoration: none;
}
.video-thumb-body { padding: .7rem .8rem; }
.video-thumb-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  color: var(--paper);
  line-height: 1.45;
  font-weight: 500;
}

/* ── TERMINAL CODE BLOCK ─────────────────────────────────────── */
.terminal {
  background: var(--ink);
  border: 1px solid var(--ink-light);
  border-top: 2px solid var(--red);
  margin: 1.4em 0;
}
.terminal-titlebar {
  background: var(--ink-light);
  padding: .35rem .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.terminal-titlebar::before {
  content: '● ● ●';
  color: var(--red-dim);
  letter-spacing: .1em;
  font-size: .55rem;
}
.terminal-body {
  padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #a8e6a0;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-body .prompt { color: var(--text-dim); user-select: none; }

/* ── FOOTER ──────────────────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  color: rgba(244,240,232,.5);
  border-top: 3px solid var(--red);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand {}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  margin-bottom: .4rem;
}
.footer-brand .brand-name span { color: var(--red-bright); }
.footer-brand p {
  font-size: .83rem;
  line-height: 1.65;
  margin-bottom: .8rem;
}
.footer-brand a { color: var(--gold); }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--ink-light);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .3rem; }
.footer-col ul li a {
  font-size: .83rem;
  color: rgba(244,240,232,.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--paper); text-decoration: none; }
.footer-bottom {
  background: rgba(0,0,0,.2);
  border-top: 1px solid var(--ink-light);
  padding: .9rem 1.5rem;
  max-width: 100%;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin: 0;
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.footer-copy-link a {
  color: var(--gold);
  font-weight: 600;
}

/* ── 404 PAGE ────────────────────────────────────────────────── */
.page-404 {
  text-align: center;
  padding: 5rem 1.5rem;
}
.page-404 .nf-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  opacity: .2;
  line-height: 1;
  margin-bottom: -1rem;
}
.page-404 h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.page-404 p { color: var(--text-mid); max-width: 400px; margin: 0 auto 1.5rem; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.mt-0 { margin-top: 0 !important; }
.mb-2 { margin-bottom: 2rem; }
.notice {
  background: var(--ink);
  color: var(--paper);
  border-left: 4px solid var(--gold);
  padding: .8rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  margin-bottom: 1.4em;
  line-height: 1.6;
}
.notice a { color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar-brand { display: none; }
}
@media (max-width: 700px) {
  .navbar-inner { flex-wrap: wrap; padding: 0 .5rem; }
  nav.main-nav { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  nav.main-nav > li > a { font-size: .65rem; padding: .75rem .5rem; }
  .navbar-search { display: none; }
  .hero-inner { padding: 2rem 1rem 2.5rem; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
