/* Perfectly Good PC — design system v2 ("workshop paper")
   ----------------------------------------------------------
   Direction: the site is about beige-tower-era machines that still work,
   so the palette is grounded there — warm paper and greige surfaces, ink
   text, and LED semantics for status (power-light green = fine, HDD amber
   = caution, red = problem). Literata carries the reading voice; IBM Plex
   Mono carries anything that is a date, a label, or a fact-of-record.

   Fonts are self-hosted in ../fonts/ (latin subsets, ~156KB once, cached
   site-wide). Literata roman is a variable font covering 400–700.

   Theme model: bare :root defines the full light palette; the
   prefers-color-scheme block (guarded with :not([data-theme="light"]))
   and the [data-theme="dark"] block redefine tokens only. Components
   never reference a colour that isn't a token. */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1EDE2;        /* page ground — warm workshop paper */
  --paper-deep: #E8E2D2;   /* recessed areas, alt rows */
  --card: #FAF7EF;         /* raised cards */
  --ink: #262218;          /* text */
  --text-soft: #5D5748;
  --text-faint: #8B8371;
  --line: #D9D1BC;         /* hairlines */
  --line-strong: #B9AE93;  /* card borders */
  --green: #2E7D46;        /* power LED — ok, primary accent */
  --green-deep: #1F5A33;
  --green-wash: #E3EDDF;
  --amber: #9A6508;        /* HDD LED — caution */
  --amber-wash: #F3E8CE;
  --red: #A03A2C;          /* problem */
  --red-wash: #F0DFD6;
  --mark: #EDE2A8;         /* marker-pen highlight */
  --shadow: 0 1px 2px rgba(38, 34, 24, 0.07), 0 3px 10px rgba(38, 34, 24, 0.05);

  --serif: "Literata", "Charter", "Georgia", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191712;
    --paper-deep: #131109;
    --card: #211E16;
    --ink: #E9E3D3;
    --text-soft: #B2AA96;
    --text-faint: #857D69;
    --line: #37321F;
    --line-strong: #4E4732;
    --green: #6CBB80;
    --green-deep: #8FD1A0;
    --green-wash: #22301F;
    --amber: #D7A045;
    --amber-wash: #322A16;
    --red: #D07361;
    --red-wash: #37211B;
    --mark: #4A421C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme="dark"] {
  --paper: #191712;
  --paper-deep: #131109;
  --card: #211E16;
  --ink: #E9E3D3;
  --text-soft: #B2AA96;
  --text-faint: #857D69;
  --line: #37321F;
  --line-strong: #4E4732;
  --green: #6CBB80;
  --green-deep: #8FD1A0;
  --green-wash: #22301F;
  --amber: #D7A045;
  --amber-wash: #322A16;
  --red: #D07361;
  --red-wash: #37211B;
  --mark: #4A421C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  border-top: 3px solid var(--green); /* the power light is on */
}

::selection { background: var(--green); color: var(--paper); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); margin: 0.75rem 0 1rem; }
h2 {
  font-size: 1.45rem;
  margin: 3rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
h3 { font-size: 1.13rem; margin: 1.8rem 0 0.6rem; }

p, ul, ol { margin: 0 0 1.05rem; }
main ul, main ol { padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

em { font-style: italic; }
strong { font-weight: 700; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--green-deep); text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Marker-pen highlight — used once or twice per page, not everywhere. */
mark, .highlight {
  background: linear-gradient(104deg, transparent 0.5%, var(--mark) 3%, var(--mark) 97%, transparent 99%);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: inherit; }
.brand .dot { color: var(--green); font-weight: 400; padding: 0 0.06em; }
.site-nav {
  display: flex;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

#theme-toggle {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: none;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  cursor: pointer;
}
#theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Hero ---------- */

.hero { padding: 1.75rem 0 0.5rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow.is-warn { color: var(--amber); }
.blip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .blip { animation: none; } }

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  margin: 0.9rem 0 1.1rem;
}

/* ---------- Date bar (LED status row) ---------- */

.datebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.datebar .cell {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.15rem;
}
.datebar .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.datebar .v {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.datebar .v::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}
.datebar .is-ok .v::before { background: var(--green); }
.datebar .is-hot .v::before { background: var(--red); }
.datebar .is-warn .v::before { background: var(--amber); }

/* ---------- Boxes (index cards) ---------- */

.box {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}
.box p:last-child, .box ul:last-child, .box ol:last-child { margin-bottom: 0; }
.box-title {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}
.box-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}
.box.ok { background: var(--green-wash); border-color: color-mix(in srgb, var(--green) 45%, var(--line-strong)); }
.box.ok .box-title { color: var(--green); }
.box.ok .box-title::before { background: var(--green); }
.box.warn { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 45%, var(--line-strong)); }
.box.warn .box-title { color: var(--amber); }
.box.warn .box-title::before { background: var(--amber); }
.box.bad { background: var(--red-wash); border-color: color-mix(in srgb, var(--red) 45%, var(--line-strong)); }
.box.bad .box-title { color: var(--red); }
.box.bad .box-title::before { background: var(--red); }
.box.headline { font-size: 1.02em; }

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  background: var(--green);
  color: var(--paper);
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.secondary:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: none;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--paper-deep);
}
td strong { font-weight: 700; }

/* verdict words inside tables */
.yes, .no, .maybe {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.yes { color: var(--green); }
.no { color: var(--red); }
.maybe { color: var(--amber); }

/* ---------- Pills ---------- */

.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.12em 0.6em;
  vertical-align: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.works { color: var(--green); background: var(--green-wash); }
.pill.partial { color: var(--amber); background: var(--amber-wash); }
.pill.gone { color: var(--red); background: var(--red-wash); }
.pill.info { color: var(--text-soft); background: var(--paper-deep); }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-left: 2px solid var(--line-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.5rem;
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  border: 2.5px solid var(--paper);
}
.timeline li.is-past::before { background: var(--line-strong); }
.timeline li.is-now::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.timeline li.is-next::before { background: var(--amber); }
.timeline li.is-last::before { background: var(--red); }
.timeline .when {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}
.timeline .what { display: block; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
}
.stat .n {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 0.88rem; color: var(--text-soft); line-height: 1.45; display: block; margin-top: 0.2rem; }

/* ---------- Path cards ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.path {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.path h3 { margin: 0 0 0.1rem; font-size: 1.12rem; }
.path .cost {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.path .why { color: var(--text-soft); font-size: 0.95rem; }
.path ul { font-size: 0.92rem; margin-bottom: 0.8rem; }
.path .verdict {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.92rem;
  border-top: 1px dashed var(--line-strong);
  padding-top: 0.7rem;
}
.path.is-recommended { border-color: var(--green); border-width: 1.5px; }
.path.is-recommended::before {
  content: "our pick for most people";
  position: absolute;
  top: -0.72em;
  left: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green);
  border-radius: 999px;
  padding: 0.1em 0.7em;
}

/* ---------- FAQ ---------- */

details.faq {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin: 0.7rem 0;
  padding: 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--green);
}
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 1.15rem 1rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
details.faq .a > :last-child { margin-bottom: 0; }

/* ---------- Steps (ordered guides) ---------- */

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.2rem 0;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1rem 2.7rem;
  margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1.5px solid var(--line-strong);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Tools (path finder + ESU checker) ---------- */

.tool {
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.tool-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 1.2rem;
}
.tool-progress .seg {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
}
.tool-progress .seg.done { background: var(--green); }
.tool-q {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  text-wrap: balance;
}
.tool-hint { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.1rem; }
.tool-choices {
  display: grid;
  gap: 0.6rem;
}
.tool-choices button {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.tool-choices button:hover { border-color: var(--green); background: var(--green-wash); }
.tool-choices button .sub {
  display: block;
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
}
.tool-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
}
.tool-nav button {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  padding: 0.3rem 0.9rem;
  cursor: pointer;
}
.tool-nav button:hover { color: var(--ink); border-color: var(--line-strong); }
.tool-result .rec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green);
  border-radius: 999px;
  padding: 0.15em 0.8em;
  margin-bottom: 0.7rem;
}
.tool-result .headline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.tool-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15em 0.7em;
}

/* ---------- Newsletter ---------- */

.signup {
  background: var(--card);
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  margin: 2.2rem 0 1rem;
}
.signup .box-title { color: var(--green); }
.signup .box-title::before { background: var(--green); }
.signup p { font-size: 0.96rem; }
.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.signup input[type="email"] {
  flex: 1 1 14rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
}
.signup input[type="email"]:focus { border-color: var(--green); outline: none; }
.signup button {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--green);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
}
.signup button:hover { background: var(--green-deep); }
.signup .fine {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin: 0.6rem 0 0;
}

/* ---------- Misc content blocks ---------- */

.affiliate-slot {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-deep);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.affiliate-slot p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.verdict { font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  margin-top: 3rem;
}
.site-footer .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 2.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.site-footer .tagline {
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  margin-top: 1rem;
}
.footer-nav a { text-decoration: none; color: var(--text-soft); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); }

/* ---------- Small screens ---------- */

@media (max-width: 540px) {
  body { font-size: 1rem; }
  .site-header .inner { gap: 0.4rem 1rem; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .site-nav::-webkit-scrollbar { display: none; }
  .tool { padding: 1.1rem; }
}
