/* Manrope is self-hosted. The weight range matches the variable file. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #17243b;
  --cobalt: #4267ee;
  --warm: #f8f7f3;
  --pale: #e7edff;
  --mint: #d9efdf;
  --fail: #c44e43;
  --line: #e3e0d8;
  --soft: #3e4e68;
  --pad: clamp(20px, 4vw, 40px);
  --measure: 62ch;
  --header-h: 77px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--cobalt); }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 12px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -0.034em; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 1.05rem + 3.5vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.25; font-weight: 750; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}
::selection { background: var(--pale); color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 6;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--warm);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.brand img { width: 168px; height: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover { background: var(--pale); }

/* First frame stays visible. Do not fade the scene out for motion. */

 

.specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  margin: 28px 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
}
.specimen-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 56px;
  padding: 8px 16px;
}
.specimen-label {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.specimen-code { color: var(--warm); min-width: 0; }
.specimen-out {
  background: var(--warm);
  color: var(--ink);
  border-left: 4px solid var(--mint);
  min-width: 0;
}
.specimen pre {
  margin: 0;
  padding: 4px 18px 20px;
  overflow-x: auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}
.specimen code { font: inherit; }
.copy {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(248, 247, 243, 0.45);
  background: transparent;
  color: var(--warm);
  font-size: 16px;
  font-weight: 700;
}
.copy[hidden] { display: none; }
.copy:hover { border-color: #fff; }

.close { padding: 12px 0 48px; }
.close-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.close p { max-width: 62ch; margin: 0; font-size: 17px; color: var(--ink); }
.close a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px 48px;
  padding-top: 36px;
  padding-bottom: 72px;
  align-items: start;
}
.contents { position: sticky; top: 92px; }
.contents-label {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 12px;
  border-left: 2px solid #d5d8e4;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.contents a:hover { border-left-color: var(--cobalt); color: var(--cobalt); }
.guide-intro { margin-bottom: 12px; }
.guide-main { min-width: 0; }
.guide .specimen { grid-template-columns: minmax(0, 1fr); }
.guide .specimen-out { border-left: 0; border-top: 1px solid var(--line); }
.guide-intro h1 { max-width: 15em; font-size: clamp(2.2rem, 3.5vw, 3.2rem); }
.guide-intro h1 span { display: block; }
.guide-intro .lead { max-width: 38rem; margin-top: 16px; font-size: 18px; }
.boundary {
  max-width: 46rem;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.block { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.block h2 { max-width: 18em; }
.block .deck { max-width: var(--measure); margin: 12px 0 0; font-size: 18px; }
.block h3 { margin: 28px 0 8px; }
.block p { max-width: var(--measure); }
.block ul, .block ol.plain { margin: 8px 0 0; padding: 0 0 0 1.2em; max-width: var(--measure); }
.block li { margin: 6px 0; }
.block code, p code, li code, dd code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0;
}
.lanes { margin: 18px 0 8px; }
.lane { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; }
.lane-name { font-size: 16px; font-weight: 750; }
.track {
  display: flex;
  height: 40px;
  background: var(--pale);
  border-radius: 8px;
  overflow: hidden;
}
.track b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  font-style: normal;
  letter-spacing: 0;
}
.span3 { width: 42.857%; }
.span2 { width: 28.5715%; }
.track b + b { border-left: 2px solid var(--pale); }
.command { max-width:100%; padding:16px 18px; overflow-x:auto; background:var(--ink); color:var(--warm); border-radius:10px; font:15px/1.55 ui-monospace, monospace; }
.command code { font:inherit; }
.copy:focus-visible { outline-color: var(--warm); }
.track .w0 { background: var(--cobalt); }
.track .w1 { background: var(--ink); }
.axis {
  display: flex;
  justify-content: space-between;
  margin-left: 102px;
  color: var(--soft);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.table-wrap { margin: 16px 0; overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption {
  caption-side: top;
  text-align: left;
  font-weight: 800;
  font-size: 16px;
  padding-bottom: 8px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
th { font-weight: 800; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.license-details summary { cursor: pointer; min-height:44px; display:flex; align-items:center; font-weight:700; }
.license-details summary:focus-visible { outline:3px solid var(--cobalt); outline-offset:3px; }
.license {
  margin: 16px 0 0;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  font-family: "Manrope", system-ui, sans-serif;
}

@media (max-width: 960px) {
  
  .hero-grid, .specimen, .metaphor-grid, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  
  .specimen-out { border-left: 0; border-top: 4px solid var(--mint); }
  .contents { position: static; }
  .contents ol { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .contents a { border-left: 0; padding: 0 10px; background: #fff; border-radius: 8px; }
}
@media (max-width: 600px) {
  :root { --header-h: 65px; }
  .bar { flex-wrap: nowrap; min-height: 64px; gap: 8px; }
  .brand img { width: 136px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { font-size: 14px; padding: 0 8px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (max-width: 720px) {
  
  
  
  
  h1 { font-size: clamp(2.25rem, 8vw, 2.75rem); }
  
  
  
  .axis { margin-left: 0; }
  .lane { grid-template-columns: 1fr; }
  .track b { font-size: 12px; }
  
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  
  
  
  
  
  
  
  
  
  
  
  
}

