@font-face {
  font-family: "Source Serif 4";
  src: url("./source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --text: #202326;
  --secondary: #565d64;
  --rule: #d5d4ce;
  --healthy: #286143;
  --warning: #86520b;
  --failure: #9c3028;
  --neutral: #697078;
  --serif: "Source Serif 4", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--serif); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: 18px; line-height: 24px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
p + p { margin-top: 8px; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a, summary { transition: text-decoration-color 120ms linear; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }
code, time, .metadata, .service-state, .evidence-record dd, .activity-record dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code, time, .metadata { font-size: 13px; line-height: 20px; }
.secondary { font-size: 14px; line-height: 21px; color: var(--secondary); }
.metadata { color: var(--secondary); }
.document { width: min(1008px, calc(100% - 64px)); margin-inline: auto; }
p, dd, dt, h1, h3, a, code, time { overflow-wrap: anywhere; }

.page-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.page-header nav { display: flex; gap: 24px; }
.page-header a { padding-block: 12px; font-size: 14px; }
.identity { font-weight: 600; text-decoration: none; white-space: nowrap; }
.identity span { font-weight: 400; color: var(--secondary); margin-left: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
#main:focus { outline: none; }

.overall { padding-top: 32px; }
.overall h2 { position: relative; padding-left: 24px; }
.overall h2::before { content: ""; position: absolute; left: 0; top: 0.48em; width: 10px; height: 10px; background: var(--neutral); }
[data-state="operational"] { --state-color: var(--healthy); }
[data-state="degraded"], [data-state="maintenance"] { --state-color: var(--warning); }
[data-state="downtime"] { --state-color: var(--failure); }
.overall h2::before { background: var(--state-color, var(--neutral)); }
#overall-description { margin-top: 12px; max-width: 70ch; }
.retrieval { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
#retrieval { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.services { margin-top: 32px; }
.service-list { border-top: 1px solid var(--rule); }
.service-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 24px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.service-list dt { font-weight: 600; }
.scope { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; line-height: 21px; color: var(--secondary); }
.service-state { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.service-state::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--state-color, var(--neutral)); }

.section { margin-top: 32px; }
.section + .section { border-top: 1px solid var(--rule); padding-top: 32px; }
.section > p { max-width: 76ch; }
.notice { font-size: 14px; line-height: 21px; color: var(--secondary); }
.notice:not([hidden]) { margin-bottom: 12px; }
#build-evidence[data-freshness="stale"] #build-notice { font-weight: 600; color: var(--text); }
.active-incidents { margin-top: 24px; }
.active-incidents > h2 { margin-bottom: 12px; }
.incident { border-left: 2px solid var(--state-color, var(--neutral)); padding-left: 16px; }
.incident + .incident { margin-top: 24px; }
.incident .metadata { margin-top: 4px; }
.incident-message { max-width: 76ch; margin-top: 12px; white-space: pre-wrap; }
.incident-source { display: inline-block; margin-top: 8px; font-size: 14px; }
.resolved { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
#resolved-title { margin-top: 24px; margin-bottom: 12px; }
#resolved-empty { margin-top: 8px; }

.evidence-record { margin-bottom: 16px; }
.evidence-record > div { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 8px 24px; padding-block: 4px; }
.evidence-record dt { font-size: 14px; color: var(--secondary); }
.evidence-record dd { font-size: 14px; line-height: 24px; }
#commit-link { font-size: 16px; }
.coverage-values { display: flex; flex-wrap: wrap; gap: 8px 32px; }

summary { min-height: 44px; cursor: pointer; font-size: 14px; line-height: 22px; padding-block: 10px; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
summary:hover { text-decoration-thickness: 2px; }
details { margin-top: 8px; }
details > p { max-width: 76ch; font-size: 14px; line-height: 21px; color: var(--secondary); margin-block: 8px; }
.history-records > div { margin-block: 12px; }
.history-records dt { font-size: 14px; font-weight: 600; }
.history-records dd { font: 400 13px/20px var(--mono); margin-top: 4px; }

.page-footer { border-top: 1px solid var(--rule); margin-top: 32px; padding-block: 24px 32px; }
.page-footer > p { max-width: 76ch; font-size: 14px; line-height: 21px; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: 12px 4px; }
.page-footer nav a { font-size: 14px; padding-block: 10px; }
.probe-addresses { padding-left: 20px; }
.probe-addresses li { margin-block: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 959px) {
  .document { width: calc(100% - 48px); }
  .retrieval { display: block; }
  .retrieval > a { display: inline-block; margin-top: 4px; }
  .evidence-record > div { grid-template-columns: 160px minmax(0, 1fr); gap: 8px 20px; }
}
@media (max-width: 599px) {
  .document { width: calc(100% - 32px); }
  .page-header { min-height: 56px; gap: 16px; }
  .desktop-source { display: none; }
  .overall { padding-top: 24px; }
  h1 { font-size: 28px; line-height: 34px; }
  h2 { margin-bottom: 12px; }
  #overall-description { margin-top: 8px; }
  .retrieval { margin-top: 12px; }
  #retrieval { display: block; }
  #retrieval-time { display: block; }
  .services, .section, .page-footer { margin-top: 24px; }
  .section + .section { padding-top: 24px; }
  .service-list > div { gap: 8px 12px; }
  .service-list dt { font-size: 15px; }
  .service-state { gap: 6px; }
  .evidence-record > div { display: block; padding-block: 6px; }
  .evidence-record dd { margin-top: 2px; }
  .page-footer nav { column-gap: 20px; }
}
@media (max-width: 359px) {
  .service-list > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The showcase extends the existing editorial system; live evidence keeps its own states. */
figure { margin: 0; }
.introduction { padding-block: 48px 8px; max-width: 790px; }
.eyebrow { font: 400 12px/20px var(--mono); color: var(--secondary); }
.introduction h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.06; margin-top: 16px; }
.project-description { font-size: 19px; line-height: 1.65; margin-top: 24px; max-width: 65ch; }
.project-links { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.project-links a { padding-block: 12px; font-size: 16px; }
.overall { border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.overall h2 { font-size: 20px; line-height: 28px; margin-bottom: 0; }
#overall-description { font-size: 14px; margin-top: 6px; }
.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.activity-record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); gap: 24px; padding-block: 20px; }
.activity-record dt { font-size: 14px; color: var(--secondary); }
.activity-record dd { font-size: 36px; line-height: 1.2; margin-block: 8px; }
.activity-record .metric-scope { font: 400 13px/20px var(--serif); color: var(--secondary); margin: 0; }
#activity-time { display: block; margin-top: 12px; }
#activity-breakdown-notice:empty { display: none; }
#weekly-activity { margin-top: 24px; }
#weekly-summary { font-size: 14px; color: var(--secondary); }
#weekly-chart svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.chart-bar { fill: var(--healthy); }
.chart-partial { fill: var(--neutral); }
.chart-baseline { stroke: var(--rule); }
.chart-count { fill: var(--text); font: 18px var(--mono); }
.chart-date { fill: var(--secondary); font: 16px var(--serif); }
.weekly-table { border-collapse: collapse; width: 100%; max-width: 480px; font-size: 14px; }
.weekly-table caption { text-align: left; color: var(--secondary); margin-block: 12px; }
.weekly-table th, .weekly-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rule); }
.weekly-table tbody th { font-weight: 400; }
.weekly-table td { font-family: var(--mono); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.showcase-grid img { display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto; border-radius: 12px; border: 1px solid var(--rule); background: #0a0a0a; }
.showcase-grid a { display: block; }
.showcase-grid figcaption { max-width: 320px; margin: 16px auto 0; }
.showcase-grid figcaption p { font-size: 14px; line-height: 21px; color: var(--secondary); margin-top: 6px; }
.engineering-context { margin-bottom: 20px; }
.services { border-top: 1px solid var(--rule); padding-top: 32px; }
@media (max-width: 599px) {
  .introduction { padding-top: 32px; }
  .project-description { font-size: 17px; margin-top: 20px; }
  .activity-record { gap: 20px; grid-template-columns: 1fr; }
  .activity-record > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
  .activity-record dd { margin: 0; font-size: 28px; }
  .activity-record .metric-scope { grid-column: 1 / -1; margin-top: 4px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .services { padding-top: 24px; }
  #weekly-chart { overflow-x: auto; }
  #weekly-chart svg { min-width: 640px; }
}
