/* Self-hosted fonts (SIL Open Font License 1.1). No external requests. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #eef1ec;      /* morning mist over moss */
  --surface: #e2e8e0;
  --ink: #17271f;         /* pine needle, near black */
  --ink-soft: #4a5a51;
  --line: #c3cdc4;
  --resin: #a8661c;       /* pine resin, the one warm note */
  --needle: #2f5a45;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: 0.8125rem; --s0: 1.0625rem; --s1: 1.3rem; --s2: 1.75rem; --s3: clamp(2.6rem, 7vw, 4.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #101914; --surface: #17231c; --ink: #e3ebe4; --ink-soft: #9fb0a5;
    --line: #2b3a31; --resin: #d9944a; --needle: #7fb197; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #101914; --surface: #17231c; --ink: #e3ebe4; --ink-soft: #9fb0a5;
  --line: #2b3a31; --resin: #d9944a; --needle: #7fb197; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: var(--s0); line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin: 0 auto; padding-block: clamp(2.5rem, 8vw, 5.5rem) 3rem; display: grid; gap: clamp(3rem, 8vw, 5rem); }

header { display: grid; gap: 1.5rem; }
.eyebrow { font-family: var(--mono); font-size: var(--s-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.75rem; }
h1 { font-family: var(--display); font-weight: 400; font-size: var(--s3); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--resin); }
.lede { grid-column: 1 / -1; font-size: var(--s1); line-height: 1.5; max-width: 34em; margin: 0; color: var(--ink); }

h2 { font-family: var(--display); font-weight: 400; font-size: var(--s2); line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; }
section p { margin: 0 0 1rem; max-width: 36em; }
section p:last-child { margin-bottom: 0; }

.route { margin: 1.75rem 0; padding: 0; list-style: none; display: grid; gap: 0; border-left: 2px solid var(--line); }
.route li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: -7px; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); border: 2px solid var(--needle); }
.route li.private::before { background: var(--resin); border-color: var(--resin); }
.route strong { display: block; font-weight: 600; }
.route span { color: var(--ink-soft); }

.trace { background: var(--surface); border-radius: 6px; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: var(--s-1); line-height: 1.7; color: var(--ink-soft); margin: 1.5rem 0 0; }
.trace b { color: var(--ink); font-weight: 500; }
.trace .r { color: var(--resin); }
.caption { font-size: var(--s-1); color: var(--ink-soft); margin-top: 0.5rem; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.points h3 { font-family: var(--body); font-size: var(--s0); font-weight: 600; margin: 0 0 0.35rem; }
.points p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

blockquote { margin: 0; padding: 0; font-family: var(--display); font-size: var(--s2); line-height: 1.25; text-wrap: balance; color: var(--needle); }

footer { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-family: var(--mono); font-size: var(--s-1); color: var(--ink-soft); }

