/* =========================================================
   bestpasswordgenerator.net — dark editorial stylesheet
   Palette : deep teal-green / jade accent — no red anywhere
   Headings : DM Serif Display (serif)
   Body     : Source Sans 3 (humanist sans)
   Code     : JetBrains Mono
   Layout   : sticky left rail nav + editorial content body
   ========================================================= */

:root {
  --bg:            #0b1a16;
  --surface:       #0f201a;
  --card:          #162c22;
  --field:         #1c3329;
  --border:        rgba(180,220,200,.09);
  --border-strong: rgba(180,220,200,.18);
  --ink:           #e6f0ea;
  --body:          #a4bfb0;
  --soft:          #6b9980;
  --muted:         #4a7060;
  --accent:        #2dd4a7;
  --accent-dim:    rgba(45,212,167,.10);
  --accent-border: rgba(45,212,167,.25);
  --warn:          #e8a838;
  --ok:            #2dd4a7;
  --radius:        7px;
  --radius-lg:     12px;
  --maxw:          920px;
  --rail-w:        248px;
  --font-heading:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', ui-monospace, Consolas, monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1 }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-top: 0 }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); margin-top: .8em }
h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--soft);
  margin-top: 0;
}

p { margin: 0 0 1em }
strong { color: var(--ink); font-weight: 600 }
em { color: var(--body) }
small, .soft { color: var(--soft); font-size: .88em }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 400;
}
a:hover { text-decoration-thickness: 2px }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--card);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}
pre code { background: none; padding: 0; border: 0 }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--accent); color: #04150f;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 1000;
  font-family: var(--font-body); text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px }

/* ====================================================
   LAYOUT: sticky rail + content body
   ==================================================== */
.site-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
}

/* ---- Rail navigation ---- */
.site-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.site-rail::-webkit-scrollbar { display: none }

.rail-brand {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: block;
}
.rail-wordmark {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
  display: block;
}
.rail-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--soft);
  margin-top: 3px;
}

.rail-nav {
  list-style: none;
  margin: 0;
  padding: 14px 10px;
  flex: 1;
}
.rail-nav li { margin-bottom: 1px }
.rail-group-label {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 14px 10px 5px;
  display: block;
}
.rail-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--body);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.3;
  transition: background .12s, color .12s;
}
.rail-nav a:hover { background: var(--card); color: var(--ink); text-decoration: none }
.rail-nav a[aria-current="page"],
.rail-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

.rail-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.6;
}
.rail-foot a { color: var(--muted); text-decoration: none; font-size: inherit }
.rail-foot a:hover { color: var(--soft) }
.rail-foot ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.rail-foot li { margin: 0 }

/* ---- Site body ---- */
.site-body { min-width: 0 }

/* ---- Mobile topbar ---- */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.topbar-brand {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.topbar-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.topbar-toggle svg { width: 18px; height: 18px }

/* Mobile drawer overlay */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 88;
}
.nav-overlay.open { display: block }

@media (max-width: 900px) {
  .site-shell { grid-template-columns: 1fr }
  .site-rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 89;
    width: var(--rail-w);
    max-width: 90vw;
    height: 100%;
  }
  .site-rail.open { transform: translateX(0) }
  .topbar { display: flex }
}

/* ====================================================
   PAGE CONTENT
   ==================================================== */
.page-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 36px 80px;
}
@media (max-width: 640px) { .page-content { padding: 28px 18px 60px } }

/* ---- Section ---- */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section:first-child { border-top: 0; padding-top: 0 }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.1rem;
  color: var(--body);
  max-width: 66ch;
  line-height: 1.7;
  margin-bottom: 0;
}

.intro-lead {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--body);
  max-width: 64ch;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0 0;
  line-height: 1.72;
}

/* ---- Callout ---- */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 22px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0 }

/* ---- Threat grid ---- */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.threat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.threat-item h4 {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 5px;
}
.threat-item p { font-size: .85rem; margin: 0; color: var(--body) }
.sev-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 9px;
}
.sev-high { background: rgba(230,100,80,.14); color: #e06450; border: 1px solid rgba(230,100,80,.3) }
.sev-med  { background: rgba(232,168,56,.12); color: var(--warn); border: 1px solid rgba(232,168,56,.25) }
.sev-low  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border) }

/* ====================================================
   ENTROPY INSTRUMENT
   ==================================================== */
.instrument {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}

.instrument-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.instr-tab {
  flex: 1;
  padding: 13px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--soft);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: color .14s;
}
.instr-tab:hover { color: var(--ink) }
.instr-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--card);
}

.instr-panel { padding: 26px 26px 22px; display: none }
.instr-panel.active { display: block }
@media (max-width: 480px) { .instr-panel { padding: 18px } }

/* Entropy readout */
.entropy-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.entropy-bits {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.entropy-unit { font-size: .85rem; color: var(--soft) }
.entropy-verdict {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: 4px;
}
.ev-weak    { background: rgba(230,100,80,.14);  color: #e06450 }
.ev-mod     { background: rgba(232,168,56,.12);  color: var(--warn) }
.ev-strong  { background: var(--accent-dim);      color: var(--accent) }
.ev-vstrong { background: var(--accent-dim); color: var(--accent); outline: 1px solid var(--accent-border) }

/* Password output */
.pw-output {
  font-family: var(--font-mono);
  font-size: clamp(.95rem, 2.8vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-height: 56px;
  display: flex;
  align-items: center;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
  margin-bottom: 20px;
  line-height: 1.45;
}
.pw-output[data-empty] { color: var(--soft); font-weight: 400; font-family: var(--font-body); font-style: italic }

/* Controls */
.instr-controls { display: grid; gap: 18px }

.ctrl-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin-bottom: 8px;
}
.ctrl-val {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer; border: none;
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.charset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.charset-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  cursor: pointer;
  font-size: .87rem;
  transition: border-color .12s;
  min-height: 42px;
}
.charset-toggle:hover { border-color: var(--border-strong) }
.charset-toggle input {
  accent-color: var(--accent);
  width: 15px; height: 15px;
  cursor: pointer; flex: none;
}
.charset-toggle span { color: var(--body) }
.charset-toggle code {
  color: var(--soft); font-size: .8em;
  background: none; padding: 0; border: 0;
}

.pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.sep-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sep-btn {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 13px;
  color: var(--body);
  font-family: var(--font-mono);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.sep-btn:hover { border-color: var(--border-strong); color: var(--ink) }
.sep-btn.active { border-color: var(--accent); color: var(--accent) }

.instr-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 11px 15px;
  background: rgba(45,212,167,.05);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  font-size: .82rem;
  color: var(--soft);
  line-height: 1.55;
}
.instr-note svg { flex: none; margin-top: 1px }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  padding: 9px 18px; min-height: 40px; border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .07s ease, filter .14s ease, background .14s ease;
}
.btn:hover { text-decoration: none }
.btn:active { transform: translateY(1px) }
.btn-primary { background: var(--accent); color: #04150f; border-color: var(--accent) }
.btn-primary:hover { filter: brightness(1.07) }
.btn-ghost {
  background: transparent; color: var(--body);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--card); color: var(--ink) }

/* ====================================================
   COMPARISON TABLE & METHODS
   ==================================================== */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.method-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.method-card h3 { margin-top: 0; font-size: 1.05rem }
.method-card ul { padding-left: 1.2em; margin: 8px 0 0 }
.method-card li { font-size: .88rem; margin-bottom: 5px; color: var(--body) }
.method-badge {
  display: inline-block;
  font-size: .66rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: .9rem;
}
.cmp-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  border-bottom: 1px solid var(--border-strong);
}
.cmp-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}
.cmp-table tbody tr:last-child td { border-bottom: 0 }
.cmp-table tbody td:first-child { font-weight: 600; color: var(--ink) }
.cmp-check { color: var(--accent) }
.cmp-cross { color: var(--muted) }

/* ====================================================
   HARDWARE PICKS (affiliate)
   ==================================================== */
.picks-disclosure {
  font-size: .8rem;
  color: var(--soft);
  padding: 11px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  line-height: 1.55;
}
.picks-disclosure a { font-size: inherit; color: var(--soft) }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: .66rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin-bottom: 8px;
}
.product-card h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.product-desc {
  font-size: .85rem;
  color: var(--body);
  flex: 1;
  margin-bottom: 16px;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--body);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s, color .12s;
  align-self: flex-start;
}
.product-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.picks-placeholder {
  padding: 36px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--soft);
  font-size: .92rem;
  font-style: italic;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-list { margin-top: 26px }
.faq-item { border-bottom: 1px solid var(--border) }
.faq-item:last-child { border-bottom: 0 }
details.faq-item > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  min-height: 52px;
}
details.faq-item > summary::-webkit-details-marker { display: none }
details.faq-item > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 300;
  flex: none;
  line-height: 1;
}
details.faq-item[open] > summary::after { content: "\2212" }
details.faq-item[open] > summary { color: var(--accent) }
.faq-answer {
  padding: 2px 0 18px;
  color: var(--body);
  max-width: 66ch;
  font-size: .96rem;
}
.faq-answer p:last-child { margin-bottom: 0 }
.faq-answer a { font-weight: 400 }

/* ====================================================
   GUIDES / BLOG CARDS
   ==================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.guide-card-tag {
  font-size: .66rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin-bottom: 8px;
}
.guide-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.guide-card h3 a { color: var(--ink); text-decoration: none }
.guide-card h3 a:hover { color: var(--accent) }
.guide-card .guide-excerpt {
  font-size: .87rem;
  color: var(--body);
  flex: 1;
  margin: 0 0 14px;
}
.guide-card .guide-date { font-size: .76rem; color: var(--muted) }
.read-more { font-size: .84rem; font-weight: 600; color: var(--accent); text-decoration: none }
.read-more:hover { text-decoration: underline }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 36px 28px;
}
@media (max-width: 640px) { .site-footer { padding: 32px 18px 24px } }
.footer-inner { max-width: var(--maxw); margin: 0 auto }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr } }

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: .84rem;
  color: var(--soft);
  max-width: 32ch;
  margin: 0;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .68rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 10px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0 }
.footer-col li { margin-bottom: 7px }
.footer-col a {
  color: var(--soft);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 400;
}
.footer-col a:hover { color: var(--accent) }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .76rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted) }

/* ====================================================
   ARTICLE / BLOG POST
   ==================================================== */
.article-wrap { max-width: 700px }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: .78rem;
  color: var(--soft);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--soft); text-decoration: none }
.breadcrumbs a:hover { color: var(--accent) }
.breadcrumbs .crumb-sep { color: var(--muted) }

.article-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  padding: 3px 8px;
  text-decoration: none;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--soft);
  font-size: .82rem;
  margin-bottom: 10px;
}
.article-lede {
  font-size: 1.12rem;
  color: var(--body);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 18px 0 32px;
  max-width: 60ch;
  line-height: 1.68;
}
.article-body p, .article-body li { color: var(--body) }
.article-body h2 {
  margin-top: 2em;
  padding-top: .7em;
  border-top: 1px solid var(--border);
}
.article-body h3 { margin-top: 1.6em }
.article-body ul, .article-body ol { padding-left: 1.3em }
.article-body li { margin-bottom: .4em }
.article-body a { font-weight: 400 }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--body);
  font-style: italic;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 20px 0;
}
.article-body th {
  text-align: left;
  padding: 9px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--soft);
  border-bottom: 1px solid var(--border-strong);
}
.article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}
.article-body tr:last-child td { border-bottom: 0 }

/* ====================================================
   BLOG INDEX
   ==================================================== */
.post-list { display: grid; gap: 2px; margin-top: 24px }
.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.post-row:last-child { border-bottom: 0 }
.post-row:hover .post-row-title { color: var(--accent) }
.post-row-meta {
  font-size: .72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
  margin-bottom: 5px;
}
.post-row-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 5px;
}
.post-row-excerpt {
  font-size: .87rem;
  color: var(--body);
  margin: 0;
}
.post-row-date {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--font-mono);
  padding-top: 3px;
}

/* ====================================================
   UTILITIES
   ==================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.text-accent { color: var(--accent) }
.text-soft   { color: var(--soft) }
.text-ink    { color: var(--ink) }
.mt-0 { margin-top: 0 }
.mb-0 { margin-bottom: 0 }

/* ====================================================
   REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
