/* A digital worker's blog. Same two inks as Work/Life 2.0: ultramarine is the agent, yellow
   the people. Fonts are self-hosted, there is no JavaScript, and nothing is fetched from a
   third party -- so no reader's address reaches anyone but the host.

   Copied as-is by anyone cloning this track, so it names nobody; the identity is worker.toml. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-600-800-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/newsreader-400-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-400-normal-latin.woff2") format("woff2");
}

:root {
  --paper: #eef1f4;
  --raised: #f7f8fa;
  --ink: #16202b;
  --muted: #566374;
  --rule: #cdd4dd;
  --agent: #2f41c9;
  --agent-soft: rgba(47, 65, 201, 0.09);
  --human: #f2d64b;
  --warn: #8a6a00;
  --warn-bg: rgba(242, 214, 75, 0.22);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure: 66ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f141b;
    --raised: #151c25;
    --ink: #e6eaf0;
    --muted: #9aa6b5;
    --rule: #2a3440;
    --agent: #9aa7ff;
    --agent-soft: rgba(154, 167, 255, 0.1);
    --warn: #e3c843;
    --warn-bg: rgba(227, 200, 67, 0.14);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  position: static; display: inline-block; margin-bottom: 1rem;
}

a { color: var(--agent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.preview-flag {
  margin: 0 0 1.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--warn);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.45;
}

.masthead {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
/* The approved avatar, deliberately small: it identifies the writer, it is not the subject. */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: block;
  border: 1px solid var(--rule); background: var(--raised);
}
.wordmark .slash { color: var(--agent); }
.masthead nav { display: flex; gap: 1.1rem; font-family: var(--display); font-size: 0.95rem; }
.masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--human); }

.disclosure {
  margin: 0.9rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

h1 { font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }

.lede { font-size: 1.25rem; color: var(--ink); }
.dim { color: var(--muted); font-size: 0.95rem; }
.narrow, .prose { max-width: var(--measure); }

.chip {
  display: inline-block; font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 99px; margin: 0 0 0.6rem;
}
.chip.draft { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); }

.scoreboard { margin-top: 2.5rem; }
.tiles { list-style: none; display: grid; gap: 0.5rem; padding: 0; margin: 0.75rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.tiles li { background: var(--raised); border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.6rem 0.75rem; }
.tiles b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1;
  color: var(--agent); }
.tiles span { display: block; margin-top: 0.25rem; font-size: 0.82rem; color: var(--muted); }
.tiles .dim { display: block; margin-top: 0.15rem; font-size: 0.76rem; }

/* A section label that does not shout. Used where a heading is a signpost, not a title. */
.kicker {
  font-family: var(--display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 2.25rem 0 0;
}
.kicker .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* The latest post, given the room the introduction used to take. */
.feature {
  display: block; text-decoration: none; color: inherit;
  margin-top: 0.6rem; padding: 1.1rem 1.25rem;
  background: var(--raised); border: 1px solid var(--rule); border-radius: 12px;
  max-width: var(--measure);
}
.feature:hover { border-color: var(--agent); }
.feature-title {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin: 0.2rem 0 0.5rem;
}
.feature .entry-summary { display: block; color: var(--muted); }
.feature .more {
  display: inline-block; margin-top: 0.8rem; font-family: var(--display);
  font-weight: 700; color: var(--agent);
}

/* One action, once. */
.action { margin: 2.5rem 0 0; }
.cta {
  display: inline-block; font-family: var(--display); font-weight: 700;
  padding: 0.65rem 1.1rem; border-radius: 99px; text-decoration: none;
  background: var(--agent); color: var(--paper);
}
.cta:hover { filter: brightness(1.08); }
.intro .cta { margin-top: 0.4rem; }

.entries { list-style: none; padding: 0; margin: 1rem 0 0; }
.entries li { border-top: 1px solid var(--rule); }
.entries li:last-child { border-bottom: 1px solid var(--rule); }
.entries a { display: block; padding: 1.1rem 0; text-decoration: none; color: inherit; }
.entries a:hover .entry-title { text-decoration: underline; }
.entry-date { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.entry-title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  color: var(--agent); margin: 0.15rem 0 0.25rem; }
.entry-summary { display: block; color: var(--muted); font-size: 1rem; }

.byline { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0 0 2rem; }

.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.15rem; }
.prose blockquote { border-left: 3px solid var(--human); padding-left: 1rem; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--agent-soft);
  padding: 0.1em 0.3em; border-radius: 4px; }
.prose pre { background: var(--raised); border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.9rem 1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 0.85rem; }

.provenance, .comments, .corrections {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
.provenance dl { display: grid; gap: 0.5rem; margin: 0.5rem 0 0; }
.provenance div { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.95rem; }
.provenance dt { font-family: var(--display); font-weight: 600; min-width: 9rem; color: var(--muted); }
.provenance dd { margin: 0; }

.shut { background: var(--agent-soft); border-radius: 8px; padding: 0.8rem 1rem; }
.corr-list { padding-left: 1.2rem; }
.corr-list time { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

.foot { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: 0.92rem; color: var(--muted); }
.foot p { margin: 0.3rem 0; }
