:root {
  color-scheme: light dark;
  --paper: #f7f6f2;
  --ink: #222b29;
  --muted: #54615b;
  --rule: #c9cfc8;
  --accent: #285f49;
  --wash: #e5ebe3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 5vw 4rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 70rem; margin: auto; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.brand { color: var(--ink); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
nav { display: flex; gap: 1.5rem; }
a { color: var(--accent); text-underline-offset: .25em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
nav a[aria-current] { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }
#status { max-width: 70rem; margin: .75rem auto; color: var(--muted); min-height: 1.6em; }
main { max-width: 70rem; margin: 1.5rem auto; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.025em; }
h2 { margin: 2.75rem 0 1rem; font-size: 1.45rem; }
h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
h4, h5, h6 { margin: 1.5rem 0 .5rem; }
p { margin: .5rem 0 1rem; max-width: 72ch; }
.intro, .summary, .metrics, .outcome { color: var(--muted); }
.summary, .metrics { font-variant-numeric: tabular-nums; }
.outcome-legend { color: var(--muted); font-size: .85rem; }
.lately-table { display: table; width: 100%; font-size: .95rem; }
.lately-table th { white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.lately-table td { vertical-align: top; padding: .5rem .75rem; }
.lately-table th:first-child, .lately-table td:first-child { padding-left: 0; }
.project-repo { font-weight: 650; white-space: nowrap; }
.project-sessions, .project-minutes { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.project-outcomes { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.outcome-count + .outcome-count { margin-left: .6rem; }
.outcome-count.zero { opacity: .45; }
.cell-label { display: none; }
.project-goal summary { cursor: pointer; }
.project-goal summary::marker { color: var(--muted); }
.thread-link { display: block; font-size: .85rem; }
.sessions { list-style: none; padding: 0; margin: .4rem 0 0; }
.sessions li { display: grid; grid-template-columns: 1.2rem 1fr; column-gap: .4rem; padding: .35rem 0; border-top: 1px solid var(--rule); }
.sessions .metrics { grid-column: 2; font-size: .8rem; }
.goal { font-weight: 500; }
.metrics { font-size: .9rem; }
.notice { background: var(--wash); padding: .75rem 1rem; }
.dreams { list-style: none; padding: 0; }
.dreams li { padding: .75rem 0; border-bottom: 1px solid var(--rule); max-width: 40rem; }
article { max-width: 74ch; margin-top: 2rem; }
article h1 { font-size: 2rem; }
article pre { overflow-x: auto; background: var(--wash); padding: 1rem; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
blockquote { border-left: 1px solid var(--accent); margin-left: 0; padding-left: 1.25rem; color: var(--muted); }
table { border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--rule); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #19201d; --ink: #e2e9e0; --muted: #b0beb2; --rule: #435248; --accent: #9cd9b5; --wash: #28382e; }
}
@media (max-width: 40rem) {
  body { padding-inline: 1rem; }
  .lately-table, .lately-table tbody { display: block; }
  .lately-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cell-label { display: inline; color: var(--muted); }
  .lately-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 0 .75rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .lately-table td { border: 0; padding: 0; }
  .project-outcomes, .project-goal { grid-column: 1 / -1; }
  header { gap: 1rem; }
  nav { gap: 1rem; }
  .metrics { max-width: 35ch; }
}

.run-row { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.run-row h2 { margin: 0 0 .75rem; }
.last-log-line { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); padding: 1rem; }
header { flex-wrap: wrap; }
header nav { flex-wrap: wrap; }

.stats-series { padding: .75rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.stats-series h3 { margin: 0 0 .75rem; }
.stats-series svg { display: block; width: 100%; max-width: 50rem; height: auto; }
.stats-series svg text { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.stats-series svg circle { fill: var(--accent); }
.chart-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.chart-axis { stroke: var(--rule); stroke-width: 1; fill: none; }
.stats-series summary { color: var(--muted); cursor: pointer; width: fit-content; }

@media (max-width: 40rem) {
  .stats-series svg text { font-size: 20px; }
}
