:root {
  --bg:       #fafaf9;
  --fg:       #1c1917;
  --muted:    #78716c;
  --border:   #e7e5e4;
  --max-w:    720px;

  /* Section accent colours */
  --ps-color:  #4a4a8a;   /* indigo — Pure Signal */
  --mar-color: #DC0000;   /* Ferrari red — Maranello */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Nav ─────────────────────────────── */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
nav a { color: var(--fg); text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* ── Date ────────────────────────────── */
main > time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* ── Sections ────────────────────────── */
.section {
  margin-bottom: 3rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ps-dot  { background: var(--ps-color); }
.mar-dot { background: var(--mar-color); }

.pure-signal-title { color: var(--ps-color); }
.maranello-title   { color: var(--mar-color); }

.section-sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.25rem;
}

/* ── Content typography ──────────────── */
.section-body p    { margin: 0.9rem 0; }
.section-body h1,
.section-body h2,
.section-body h3   { margin: 1.5rem 0 0.5rem; }
.section-body h2   { font-size: 1.05rem; color: var(--fg); }
.section-body h3   { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.section-body hr   { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.section-body strong { color: var(--fg); }

.quiet-day {
  color: var(--muted);
  font-style: italic;
}

/* ── Source links (Maranello) ────────── */
.source-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.source-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.source-links ul { list-style: none; padding: 0; }
.source-links li { padding: 0.2rem 0; }
.source-links a  { color: var(--mar-color); text-decoration: none; font-size: 0.9rem; }
.source-links a:hover { text-decoration: underline; }

/* ── Archive list ────────────────────── */
h1 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.archive-list { list-style: none; padding: 0; }
.archive-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.archive-list a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  flex: 1;
}
.archive-list a:hover { text-decoration: underline; }

.badges { display: flex; gap: 0.3rem; }
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: #fff;
}
.ps-badge  { background: var(--ps-color); }
.mar-badge { background: var(--mar-color); }

/* ── Responsive ──────────────────────── */
@media (max-width: 600px) {
  body { padding: 1rem; }
  .section-title { font-size: 0.95rem; }
}
