@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,650;8..60,700&display=swap");

:root {
  --bg: #f3efe6;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #c9c0b0;
  --panel: #fffdf8;
  --planned: #9a7b12;
  --running: #1d4f91;
  --completed: #1f6b3a;
  --rejected: #a33b2b;
  --archived: #6a655c;
  --evidence-a: #1f6b3a;
  --evidence-b: #1d4f91;
  --evidence-c: #9a7b12;
  --evidence-d: #6a655c;
  --focus: #0b3d2e;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ddd4c4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #d5dde0 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--focus);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.hero,
.page-header {
  padding: 3rem 0 1.5rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8rem));
  gap: 1rem;
  margin: 2rem 0 0;
}

.status-grid div {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.status-grid dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.status-grid dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
}

.mandate {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 2.5rem;
}

.mandate ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
}

.exp-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.exp-list li {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.exp-list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.exp-list a:hover .exp-title {
  text-decoration: underline;
}

.exp-id {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.exp-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 650;
}

.exp-list p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 52rem;
  font-size: 0.98rem;
}

.status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.15rem 0.45rem 0.15rem 0.35rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.status-planned {
  color: var(--planned);
}

.status-running {
  color: var(--running);
}

.status-completed {
  color: var(--completed);
}

.status-rejected {
  color: var(--rejected);
}

.status-archived {
  color: var(--archived);
}

.evidence {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
}

.evidence-a {
  color: var(--evidence-a);
}

.evidence-b {
  color: var(--evidence-b);
}

.evidence-c {
  color: var(--evidence-c);
}

.evidence-d {
  color: var(--evidence-d);
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.legend-intro {
  margin: 0.35rem 0 1.35rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.25rem 3.5rem;
  margin: 0 0 3rem;
}

.legend-grid h3 {
  margin: 0 0 1rem;
}

.badge-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.badge-legend--status li {
  display: flex;
  align-items: center;
  min-height: 1.75rem;
}

.badge-legend--evidence li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  column-gap: 1.15rem;
  row-gap: 0.25rem;
  align-items: center;
}

.legend-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.publishing-rule {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.author-meta {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.author-block,
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.source-list {
  list-style: none;
  margin: 1.25rem 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.source-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.source-list code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .source-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.trust-group {
  margin: 1.25rem 0 1.75rem;
}

.trust-group h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.trust-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.trust-links a {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.trust-strip {
  border-top: 1px solid var(--line);
  margin: 0 0 2.5rem;
  padding-top: 1.25rem;
}

.trust-strip .kicker {
  margin-bottom: 0.65rem;
}

.schedule-hint {
  display: inline-block;
  margin-left: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.meta-note {
  color: var(--muted);
  font-size: 0.9em;
}

.exp-table td .schedule-hint {
  margin-left: 0;
}

.exp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 3rem;
  font-size: 0.98rem;
}

.exp-table th,
.exp-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.exp-table th {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.meta-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}

.meta-panel dl {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.meta-panel dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-panel dd {
  margin: 0.15rem 0 0;
}

.entity-links a {
  font-weight: 500;
}

.entity-sep {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-list span {
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 0.1rem 0.35rem;
}

.summary {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
}

.research-q .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.prose {
  max-width: 46rem;
  padding-bottom: 3rem;
}

.prose :is(h2, h3) {
  margin-top: 2.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  display: block;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: color-mix(in srgb, var(--panel) 70%, #ddd);
  font-weight: 600;
}

.prose pre,
.prose code {
  font-family: var(--mono);
}

.prose pre {
  background: #1c1914;
  color: #f3efe6;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.45;
}

.prose code {
  font-size: 0.9em;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

@media (max-width: 720px) {
  .exp-list a {
    grid-template-columns: 1fr auto;
  }

  .exp-id {
    grid-column: 1 / -1;
  }

  .status-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .exp-table {
    display: block;
    overflow-x: auto;
  }
}
