/* Signal & Noise — essay site (Night family). Reader-first: one column,
   book serif, generous measure. No badges, no seals. */
:root {
  --paper: #f7f4eb;
  --paper-bright: #fffdf8;
  --ink: #10283a;
  --ink-soft: #294455;
  --muted: #66757b;
  --line: rgba(16, 40, 58, 0.14);
  --navy: #0e2738;
  --sun: #f3ca79;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0 auto;
  max-width: 680px;
  padding: 0 1.25rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
a { color: var(--ink); text-decoration-color: rgba(16, 40, 58, 0.4); }
a:hover { text-decoration-color: var(--sun); }

.site-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0 1.1rem; border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
}
.masthead { font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: 0.01em; }
.site-head nav a { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); text-decoration: none; margin-left: 1.1rem; }
.site-head nav a:hover { color: var(--ink); }

h1 { font-size: 2rem; line-height: 1.2; margin: 0.2rem 0 0.9rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 0.7rem; }
.kicker {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem;
}
.dek, .dek em { color: var(--ink-soft); }
.dek { font-size: 1.15rem; margin: 0 0 1.4rem; }

article img { max-width: 100%; height: auto; }
article hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
article blockquote {
  margin: 1.4rem 0; padding: 0.1rem 1.2rem;
  border-left: 3px solid var(--sun); color: var(--ink-soft);
  background: var(--paper-bright);
}
article table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
article th, article td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
article pre { overflow-x: auto; background: var(--paper-bright); padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.85em; }

/* Companion map — top of the essay (after title/dek) plus a light foot copy.
   Grouped by who wrote it, current page pinned. Label and links share a
   baseline on wide screens; under 640px the label stacks above its own row.
   .cnav.top: bottom border, no top border (audit-snapshot reference). */
.cnav {
  font-family: var(--sans); font-size: 0.84rem; color: var(--muted);
  margin: 2.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.cnav.top {
  margin: 0 0 1.6rem; padding: 0 0 1.1rem;
  border-top: 0; border-bottom: 1px solid var(--line);
}
.cnav dl {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem; margin: 0; align-items: baseline;
}
.cnav dt {
  font-size: 0.7rem; letter-spacing: 0.075em; text-transform: uppercase;
  font-weight: 600; white-space: nowrap; opacity: 0.85;
}
.cnav dd { margin: 0; }
.cnav a { color: var(--ink-soft); text-decoration-color: var(--line); }
.cnav a:hover { text-decoration-color: var(--sun); }
/* The pin is weight and colour only. A "you are here" label beside the bolded
   entry restated what the bolding already showed. aria-current still carries it
   to a screen reader, which never saw the bolding. */
.cnav .here { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .cnav dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .cnav dt { margin-top: 0.7rem; }
  .cnav dt:first-of-type { margin-top: 0; }
}

.hero { margin-bottom: 2.4rem; }
.hero h1 { font-size: 2.4rem; }
.tagline { font-style: italic; color: var(--ink-soft); font-size: 1.2rem; margin: 0 0 1rem; }
.latest { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-bright); padding: 1.4rem 1.5rem; margin-bottom: 2rem; }
.latest h2 { margin: 0.2rem 0 0.6rem; font-size: 1.5rem; }
.latest h2 a { text-decoration: none; }
.latest h2 a:hover { text-decoration: underline; }
.latest .pair {
  font-family: var(--sans); font-size: 0.84rem; color: var(--muted);
  margin: -0.15rem 0 0.75rem;
}
.latest .pair a { color: var(--ink-soft); text-decoration-color: var(--line); }
.latest .pair a:hover { text-decoration-color: var(--sun); }
.recent h2 { font-size: 1.1rem; color: var(--muted); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; }

.row { margin: 0 0 1.05rem; }
.row a { font-weight: 600; text-decoration: none; }
.row a:hover { text-decoration: underline; }
.row .meta { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-left: 0.5rem; white-space: nowrap; }
.row .line { display: block; color: var(--ink-soft); font-size: 0.98rem; }
.intro { color: var(--ink-soft); margin-bottom: 1.8rem; }

.site-foot {
  margin-top: 3rem; padding: 1.4rem 0 3rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* Night Observatory elements (2026-08-13): masthead eclipse, homepage hero, follow page */
.masthead .mark { width: 20px; height: 20px; vertical-align: -0.28em; margin-right: 0.4rem; }
.hero-centered { text-align: center; }
.hero-centered .observatory { display: block; width: min(300px, 72vw); height: auto; margin: 0.6rem auto 0.4rem; }
.hero-centered .hero-intro { text-align: left; }
.gold-rule { width: 52px; height: 4px; background: var(--sun); border: none; margin: 1rem auto 1.1rem; }
main code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82em;
  background: var(--paper-bright); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.14rem 0.42rem; white-space: nowrap;
}
