:root {
  --ink: #08111e;
  --ink-soft: #101f30;
  --paper: #f7fafc;
  --paper-soft: #eef3f6;
  --text: #eaf1f5;
  --muted: #aab9c7;
  --body: #1a2a3b;
  --body-muted: #5f7182;
  --mint: #78d7bc;
  --mint-deep: #2d9e86;
  --line-dark: rgba(198, 221, 235, 0.18);
  --line-light: rgba(25, 61, 82, 0.16);
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 20rem; scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--body); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 0; left: 1rem; transform: translateY(-150%); padding: 0.6rem 0.9rem; border-radius: 0 0 0.5rem 0.5rem; background: var(--mint); color: var(--ink); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.site-header { position: absolute; z-index: 5; top: 0; right: 0; left: 0; border-bottom: 1px solid var(--line-dark); background: rgba(8, 17, 30, 0.78); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(var(--max), calc(100% - 2 * var(--gutter))); min-height: 5.25rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.025em; }
.brand-mark { position: relative; width: 1.9rem; height: 1.9rem; border: 2px solid var(--mint); }
.brand-mark::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; right: -0.45rem; bottom: -0.45rem; border: 2px solid var(--mint); background: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: color 180ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .steward { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line-dark); color: var(--mint); }
.hero { padding: 11.5rem 0 6.5rem; background: var(--ink); color: var(--text); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; }
h1, h2, h3 { margin-top: 0; font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-weight: 420; letter-spacing: -0.055em; }
h1 { max-width: 10ch; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.91; }
h1 span, .accent { color: var(--mint); }
h2 { margin-bottom: 1rem; color: var(--body); font-size: clamp(2.5rem, 5vw, 5.25rem); line-height: 0.96; }
h3 { margin-bottom: 0.65rem; color: var(--body); font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.03; }
p { margin-top: 0; }
.hero p.lede { max-width: 39rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.12rem, 1.8vw, 1.45rem); line-height: 1.5; letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 1.35rem; color: var(--mint); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.6rem; color: var(--muted); font-size: 0.78rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: rgba(170, 185, 199, 0.55); }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.hero-meta div { padding: 1rem 1rem 1rem 0; }
.hero-meta div + div { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
.hero-meta dt { margin-bottom: 0.25rem; color: var(--mint); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-meta dd { margin: 0; color: var(--text); font-size: 0.88rem; }
.hero-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-dark); background: rgba(16, 31, 48, 0.64); }
.hero-card p { color: var(--muted); font-size: 0.95rem; }
.hero-card p:last-child { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding: 0.78rem 1.05rem; border: 1px solid var(--line-dark); border-radius: 0.25rem; color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 750; }
.button::after { content: "→"; font-size: 1.1rem; }
.button:hover { border-color: var(--mint); }
.button.primary { border-color: var(--mint); background: var(--mint); color: var(--ink); }
.button.primary:hover { background: #9ae6d0; }
.section:not(.dark) .button:not(.primary) { border-color: var(--line-light); color: var(--body); }
.section:not(.dark) .button:not(.primary):hover { border-color: var(--mint-deep); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.soft { background: var(--paper-soft); }
.section.dark { background: var(--ink); color: var(--text); }
.section.dark h2, .section.dark h3 { color: var(--text); }
.section-header { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; margin-bottom: 3rem; }
.section-header p { max-width: 39rem; margin: 0; color: var(--body-muted); font-size: 1.05rem; }
.dark .section-header p { color: var(--muted); }
.section-kicker { margin-bottom: 0.7rem; color: var(--mint-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.dark .section-kicker { color: var(--mint); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-height: 15rem; padding: clamp(1.35rem, 2.5vw, 2.25rem); border: 1px solid var(--line-light); background: var(--paper); }
.dark .card { border-color: var(--line-dark); background: rgba(16, 31, 48, 0.48); }
.card .index { display: block; margin-bottom: 2.8rem; color: var(--mint-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; }
.dark .card .index { color: var(--mint); }
.card p { margin-bottom: 0; color: var(--body-muted); font-size: 0.92rem; }
.dark .card p { color: var(--muted); }
.text-link { color: var(--mint-deep); font-size: 0.88rem; font-weight: 750; text-decoration: none; }
.text-link::after { content: "  →"; font-size: 1.1rem; }
.dark .text-link { color: var(--mint); }
.loop-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.8rem; margin-top: 2rem; padding: clamp(1rem, 3vw, 2.2rem); border: 1px solid var(--line-dark); background: rgba(16, 31, 48, 0.55); }
.loop-step { position: relative; display: grid; justify-items: center; min-height: 7.5rem; padding: 0.65rem; text-align: center; }
.loop-step:nth-child(1) { grid-area: 1 / 1; }
.loop-step:nth-child(2) { grid-area: 1 / 2; }
.loop-step:nth-child(3) { grid-area: 1 / 3; }
.loop-step:nth-child(4) { grid-area: 2 / 3; }
.loop-step:nth-child(5) { grid-area: 2 / 2; }
.loop-step:nth-child(6) { grid-area: 2 / 1; }
.loop-step:nth-child(7) { grid-area: 3 / 1; }
.loop-step:nth-child(8) { grid-area: 3 / 2; }
.loop-step:nth-child(9) { grid-area: 3 / 3; }
.loop-step:not(:nth-child(3n))::after { content: "→"; position: absolute; top: 1.15rem; right: -0.6rem; color: var(--mint); font-size: 1rem; }
.loop-step:nth-child(3)::after, .loop-step:nth-child(6)::after { content: "↓"; top: calc(100% - 0.8rem); right: 50%; transform: translateX(50%); }
.loop-step:nth-child(4)::after, .loop-step:nth-child(5)::after { content: "←"; right: auto; left: -0.6rem; }
.loop-number { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.75rem; border: 1px solid rgba(120, 215, 188, 0.7); border-radius: 50%; color: var(--mint); font-weight: 800; }
.loop-step strong { max-width: 13ch; color: var(--text); font-family: ui-serif, Georgia, serif; font-size: 1rem; font-weight: 500; line-height: 1.12; }
.loop-return { grid-area: 4 / 1 / 5 / -1; display: flex; align-items: center; justify-content: center; gap: 0.65rem; padding-top: 0.5rem; color: var(--mint); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.loop-return::before, .loop-return::after { content: ""; width: 3rem; border-top: 1px dashed rgba(120, 215, 188, 0.55); }
.prose { max-width: 49rem; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body-muted); font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.55rem; }
.prose strong { color: var(--body); }
.dark .prose p, .dark .prose li { color: var(--muted); }
.dark .prose strong { color: var(--text); }
.callout { margin: 2rem 0; padding: 1.35rem 1.5rem; border-left: 3px solid var(--mint); background: var(--paper-soft); }
.dark .callout { background: rgba(16, 31, 48, 0.75); }
.callout p { margin: 0; color: var(--body); font-size: 1.05rem; }
.dark .callout p { color: var(--text); }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-light); background: var(--line-light); }
.definition { padding: 1.35rem 1.5rem; background: var(--paper); }
.definition dt { margin-bottom: 0.4rem; color: var(--mint-deep); font-family: ui-serif, Georgia, serif; font-size: 1.25rem; }
.definition dd { margin: 0; color: var(--body-muted); font-size: 0.92rem; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-dark); background: var(--line-dark); }
.principle { min-height: 8.5rem; padding: 1.3rem 1.5rem; background: var(--ink-soft); }
.principle strong { display: block; margin-bottom: 0.7rem; color: var(--mint); font-size: 0.76rem; letter-spacing: 0.12em; }
.principle h3 { color: var(--text); }
.principle p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.data-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-light); }
.data-table th, .data-table td { padding: 0.9rem 0.8rem; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.data-table th { color: var(--body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.data-table td { color: var(--body-muted); font-size: 0.92rem; }
.release-list { display: grid; gap: 1rem; }
.release-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-light); }
.release-item strong { color: var(--mint-deep); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.release-item p { margin: 0; color: var(--body-muted); }
.source-strip { padding: 1.25rem 1.5rem; border: 1px solid var(--line-light); background: var(--paper-soft); }
.source-strip p { margin: 0; color: var(--body-muted); font-size: 0.88rem; }
.source-strip a { color: var(--mint-deep); font-weight: 700; }
footer { padding: 2rem 0 2.5rem; background: var(--ink); color: var(--muted); border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
footer small { font-size: 0.78rem; }
.footer-mark { color: var(--mint); font-weight: 700; }
footer a { color: var(--muted); text-underline-offset: 0.16em; }
footer a:hover, footer a:focus-visible { color: var(--mint); }
footer .footer-mark a { color: inherit; }

@media (max-width: 920px) {
  .nav { gap: 1rem; }
  .hero-grid, .section-header { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { min-height: 4.5rem; }
  .nav a:not(.steward) { display: none; }
  .nav .steward { padding-left: 0; border-left: 0; }
  .hero { padding-top: 8.5rem; }
  h1 { max-width: 8ch; font-size: clamp(3.4rem, 16vw, 5.4rem); }
  .hero-meta, .card-grid, .definition-grid, .principles { grid-template-columns: 1fr; }
  .hero-meta div + div { padding-left: 0; border-top: 1px solid var(--line-dark); border-left: 0; }
  .loop-map { grid-template-columns: 1fr; gap: 1.1rem; }
  .loop-step:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 5.7rem; }
  .loop-step:not(:nth-child(3n))::after, .loop-step:nth-child(3)::after, .loop-step:nth-child(6)::after { content: "↓"; top: calc(100% - 0.8rem); right: 50%; left: auto; transform: translateX(50%); }
  .loop-step:nth-child(9)::after { display: none; }
  .loop-return { grid-area: auto; }
  .release-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
