:root {
  --paper: #f4efe6;
  --paper-2: #fffdf8;
  --ink: #1b2430;
  --ink-soft: #3d4754;
  --muted: #5f6b78;
  --rule: #d7cbb8;
  --rule-strong: #c4b49a;
  --teal: #0c5c61;
  --teal-deep: #084247;
  --terracotta: #9a3d1e;
  --gold: #b8892d;
  --focus: #0c5c61;
  --shadow: 0 10px 30px rgba(27, 36, 48, 0.06);
  --max: 68rem;
  --measure: 42rem;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--terracotta); }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip-link:focus { top: 0.75rem; }

.masthead {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

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

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

.brand {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.1rem;
}

.brand-mark {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f4efe6 100%);
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--terracotta);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}

h1, h2, h3, .lede {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 650;
}

h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section { padding: 2.4rem 0; }

.grid {
  display: grid;
  gap: 1rem;
}

.cards { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }

.card,
.panel {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.2rem 1.25rem 1.3rem;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--rule-strong); }

.card h2,
.card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card p { margin: 0; color: var(--ink-soft); }

.panel { padding: 1.25rem 1.35rem; }

.article {
  padding: 2.2rem 0 3rem;
}

.article .prose {
  max-width: var(--measure);
}

.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.note {
  border-left: 3px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--ink-soft);
}

.sources {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.cluster,
.network {
  display: grid;
  gap: 0.55rem 1rem;
}

.cluster a,
.network a { font-weight: 600; }

.split {
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 2rem 0 2.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer h2 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li { margin: 0.28rem 0; }

.hey-ai {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
}

.legal {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}

th { color: var(--muted); font-weight: 650; }

code, .yaml {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

pre.yaml {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
