/* Deliberately minimal and unbranded.
   Jack is supplying visual direction (plan-23 §8.2); guessing at it now would
   only have to be undone. This is legible, responsive and theme-aware, and
   nothing more. Wide content scrolls inside its own box so the page body never
   scrolls sideways on a phone — error strings and code are long by nature. */

:root {
  --bg: #fbfbfa; --fg: #1a1a18; --muted: #5f5f58;
  --rule: #e0e0da; --code-bg: #f2f2ee; --accent: #7a2e12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f; --fg: #e8e8e0; --muted: #9a9a90;
    --rule: #2c2c26; --code-bg: #1e1e18; --accent: #d98f6a;
  }
}
:root[data-theme="dark"] {
  --bg: #14140f; --fg: #e8e8e0; --muted: #9a9a90;
  --rule: #2c2c26; --code-bg: #1e1e18; --accent: #d98f6a;
}
:root[data-theme="light"] {
  --bg: #fbfbfa; --fg: #1a1a18; --muted: #5f5f58;
  --rule: #e0e0da; --code-bg: #f2f2ee; --accent: #7a2e12;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
main, header.site, footer.site {
  max-width: 42rem; margin: 0 auto; padding: 0 1.25rem;
}
header.site {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding-top: 2rem; padding-bottom: 1.5rem;
}
.wordmark {
  font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--fg);
}
nav a { color: var(--muted); text-decoration: none; margin-right: .75rem; font-size: .9rem; }
nav a:hover, a:hover { color: var(--accent); }
a { color: var(--accent); }

h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -.015em; margin: 1rem 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 .4rem; }

.lede, .standfirst { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.dek { display: block; color: var(--muted); font-size: .92rem; }

ul.posts { list-style: none; padding: 0; }
ul.posts li { margin: 0 0 1.1rem; }
ul.posts a { font-weight: 600; text-decoration: none; }

/* Long by nature — must scroll inside its own box, never the page. */
pre {
  background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px;
  padding: .85rem 1rem; overflow-x: auto;
}
pre code { font-size: .86rem; white-space: pre; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--code-bg); padding: .1em .3em; border-radius: 3px;
}
pre code { background: none; padding: 0; }

.symptom h2 { margin-top: 1.5rem; }

table.facts { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .9rem; display: block; overflow-x: auto; }
table.facts th, table.facts td {
  text-align: left; padding: .4rem .75rem .4rem 0;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
table.facts th { color: var(--muted); font-weight: 500; white-space: nowrap; }
table.facts td { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.evidence-note {
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .88rem;
}
footer.site {
  margin-top: 4rem; padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem;
}
img { max-width: 100%; height: auto; }
