/* tentzhen.com. Desktop first; the rail and the skyline assume a column of about 1440 px. */

/* The fonts, served from fonts/ (fonts/README.md says where each came from). */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/chakra-petch-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/chakra-petch-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(fonts/IBMPlexSans-Light.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/IBMPlexSans-Medium.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexMono-Regular.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/IBMPlexMono-Medium.woff2) format('woff2'); }

:root {
  --bg: #111111;
  --ink: #e9e5dc;
  --cream: #f6efe0;
  --soft: #c9cdd2;
  --muted: #a3a7ad;
  --copper: #e0aa45;      /* the network only: traces, vias, pads */
  --teal: #5fb7b0;        /* UI accents: links, buttons, labels */
  --teal-bright: #9fe0d8;
  --caution: #ff8a3a;     /* unknown, draft, rules for agents */
  --trace: #6f5424;
  --line: #26292d;
  --card: #151619;
  --silk: #eeeeea;
  --display: 'Chakra Petch', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --column: 1440px;
  --gutter: 72px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
a { color: var(--teal); }
a:hover { color: var(--teal-bright); }
h1, h2, h3, p { margin: 0; }

.column { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { height: 88px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.24em; color: var(--cream); }
.site-nav { display: flex; gap: 36px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; }
.site-nav a { color: var(--silk); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }

/* ---------- hero: the mural ---------- */
.hero { position: relative; }
.mural { display: block; width: 100%; height: auto; }
.hero-text {
  position: absolute; top: 5.5%;
  left: max(var(--gutter), calc((100% - var(--column)) / 2 + var(--gutter)));
  max-width: 540px; display: flex; flex-direction: column; gap: 16px;
  text-shadow: 0 0 18px var(--bg), 0 0 36px var(--bg);
}
.hero h1 { font-family: var(--display); font-size: 60px; line-height: 1.02; font-weight: 600; color: var(--cream); }
.hero-text p { font-size: 20px; line-height: 1.5; font-weight: 300; color: var(--ink); }

/* The mural's path ends at the bottom centre; a via there hands it to the rail. */
.junction { position: relative; height: 104px; max-width: var(--column); margin: 0 auto; }
.junction span { position: absolute; background: var(--trace); border-radius: 3px; }
.junction .via {
  left: 50%; top: -22px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%;
  background: var(--copper); display: flex; align-items: center; justify-content: center;
}
.junction .via::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.junction .down { left: 50%; margin-left: -3px; top: 20px; height: 42px; width: 6px; }
.junction .across { top: 56px; left: 117px; width: calc(50% - 114px); height: 6px; }
.junction .drop { left: 117px; top: 56px; bottom: 0; width: 6px; }

/* ---------- the board: sections hang off the rail ---------- */
.stop { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.rail { position: relative; }
.rail::before { content: ''; position: absolute; left: 45px; top: 0; bottom: 0; width: 6px; background: var(--trace); }
.rail::after {
  content: ''; position: absolute; left: 33px; top: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 5.5px, var(--copper) 6px);
}
.stop-body { padding-bottom: 112px; display: flex; flex-direction: column; gap: 32px; }
.stop-head { display: flex; align-items: baseline; gap: 20px; }
.ref { font-family: var(--mono); font-size: 15px; color: var(--teal); }
.stop h2 { font-family: var(--display); font-size: 36px; font-weight: 600; color: var(--cream); }
.lede { font-size: 26px; line-height: 1.45; font-weight: 300; color: var(--ink); }

.intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.intro img { width: 100%; height: auto; }
.intro-text { display: flex; flex-direction: column; gap: 24px; }
.intro-text h2 { font-family: var(--display); font-size: 42px; line-height: 1.12; font-weight: 600; color: var(--cream); }
.intro-text p { font-size: 19px; line-height: 1.6; color: var(--soft); }
.buttons { display: flex; gap: 16px; }
.button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 4px;
  border: 1.5px solid var(--teal); color: var(--teal); text-decoration: none; font-size: 16px; font-weight: 500;
}
.button.solid { background: var(--teal); color: var(--bg); }
.button:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.button.solid:hover { background: var(--teal-bright); color: var(--bg); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.parts { display: flex; flex-direction: column; }
.parts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.parts div:last-child { border-bottom: 1px solid var(--line); }
.parts dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--teal); }
.parts dd { margin: 0; font-size: 17px; color: var(--ink); }
.compare { width: 100%; border-collapse: collapse; }
.compare th { padding-bottom: 12px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; color: var(--muted); text-align: left; }
.compare th.ours { color: var(--teal); }
.compare td { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.compare tr:last-child td { border-bottom: 1px solid var(--line); }
.compare td:first-child { color: var(--muted); width: 150px; }
.compare td.ours { color: var(--cream); }
.graded { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.grade {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--caution); font-family: var(--mono); font-size: 13px; color: var(--caution);
}
.grade::before { content: ''; width: 10px; height: 10px; border: 2px solid var(--caution); border-radius: 50%; box-sizing: border-box; }

/* the rail's last run: across the plaza and up into the tallest tower's door (brand/skyline-daybreak.svg) */
.skyline { max-width: var(--column); margin: 0 auto; overflow: hidden; }
.skyline svg { display: block; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 96px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted);
}
.site-footer .column { height: 88px; display: flex; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

/* ---------- build pages (generated by crates/site) ---------- */
.spec { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.spec-title { font-family: var(--display); font-size: 56px; line-height: 1.05; font-weight: 600; color: var(--cream); }
.spec-meta { display: flex; align-items: center; gap: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.state { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream); }
.state.draft { border-color: var(--caution); color: var(--caution); }
.versions a, .versions .here { margin-left: 8px; }
.versions .here { color: var(--cream); }
.banner { padding: 16px 20px; border: 1px solid var(--teal); border-radius: 6px; color: var(--ink); }
.spec-changes { font-size: 15px; color: var(--muted); }
.spec-does { max-width: 820px; font-size: 22px; line-height: 1.5; font-weight: 300; color: var(--ink); }
.drawing { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.drawing svg { display: block; width: 100%; height: auto; }
.spec h2 { margin-top: 44px; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--cream); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { padding-bottom: 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; color: var(--muted); text-align: left; }
.spec-table td { padding: 14px 24px 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 14px; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--teal); }
.facts dd { margin: 0; font-size: 16px; color: var(--ink); }
.hash { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.steps { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 20px; }
.steps li { padding-left: 8px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.steps li::marker { font-family: var(--mono); color: var(--teal); }
.steps li > * + * { margin-top: 10px; }
.steps pre { margin: 10px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid #2a2d31; border-radius: 6px; overflow-x: auto; }
.steps code { font-family: var(--mono); font-size: 14px; color: var(--soft); }
.expect, .agent { font-size: 15px; color: var(--muted); }
.expect span, .agent span { margin-right: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.expect span { color: var(--teal); }
.agent span { color: var(--caution); }
.refs { margin: 0; padding-left: 20px; font-size: 17px; }
.grade.measured { border-color: var(--cream); color: var(--cream); }
.grade.measured::before { background: var(--cream); border-color: var(--cream); }
.grade.trusted { border-color: var(--cream); color: var(--cream); }
.grade.trusted::before { border-color: var(--cream); }
.grade.tested, .grade.checked, .grade.proven { border-color: var(--teal); color: var(--teal); }
.grade.tested::before, .grade.checked::before, .grade.proven::before { border-color: var(--teal); }
.grade.proven::before { background: var(--teal); }
.claims .grade { margin-right: 8px; }

/* ---------- legal ---------- */
.notice { font-size: 14px; color: var(--muted); }
.notice a, .site-footer span a { color: var(--muted); }
.notice a:hover, .site-footer span a:hover { color: var(--teal); }
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-family: var(--display); font-size: 56px; line-height: 1.05; font-weight: 600; color: var(--cream); }
.prose p { font-size: 17px; line-height: 1.7; color: var(--soft); }
.prose strong { color: var(--cream); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: 15px; color: var(--caution); }
