@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Literata;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Literata;
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin-wght-italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #14110e;
  --bg-2: #1c1814;
  --ink: #f3ecdf;
  --muted: #b3a394;
  --faint: #7c7166;
  --line: #3a322b;
  --oil: #e39a3c;
  --water: #7ec4de;
  --gas: #8eae72;
  --clay: #e7b08a;
  --serif: Literata, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 430;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--oil); color: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  background: rgba(20, 17, 14, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand i {
  width: 9px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--gas) 0 28%, var(--oil) 28% 68%, var(--water) 68% 100%);
  display: block;
}
.top nav { display: flex; gap: 1.15rem; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}
.top nav a:hover { color: var(--ink); }

.rail {
  position: fixed;
  z-index: 15;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--faint);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rail a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}
.rail a:hover, .rail a.is-on { color: var(--ink); }
.rail a.is-on::before { width: 26px; background: var(--oil); }

.wrap { width: min(var(--wrap), calc(100% - 2.6rem)); margin: 0 auto; }
section { padding: 5.2rem 0 1rem; scroll-margin-top: 76px; }
.hero { padding: 2.6rem 0 1rem; }

.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oil);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.7rem, 5.4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72, "wght" 560;
}
h1 em { font-style: italic; font-weight: 480; color: #f7e7c8; }
.lede {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
}
.shot figcaption {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.metrics b {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: "opsz" 36, "wght" 560;
}
.metrics span { display: block; margin-top: 0.28rem; color: var(--faint); font-size: 0.82rem; }

.spark {
  margin: 1.6rem 0 0;
}
.spark img { width: min(100%, 640px); display: block; }
.legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.35rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.legend i {
  display: inline-block;
  width: 1.1rem;
  height: 0;
  border-top: 2px solid var(--water);
  margin-right: 0.4rem;
  vertical-align: middle;
}
.legend .ours i { border-top: 2px dashed var(--oil); }

h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: "opsz" 48, "wght" 560;
}
.index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oil);
  margin: 0 0 0.7rem;
}
.prose { max-width: 68ch; color: #e6dccb; }
.prose p { margin: 0 0 0.95rem; }
.prose strong { color: var(--ink); font-weight: 620; }

.strata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.strata article {
  padding: 1.25rem 1.4rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.strata article:nth-child(odd) { padding-right: 1.8rem; border-right: 1px solid var(--line); }
.strata article:nth-child(even) { padding-left: 1.6rem; }
.strata h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}
.strata p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.strata .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.slip { margin-top: 1.6rem; }
.slip-head, .slip-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr 13rem 6.2rem 7rem;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}
.slip-head {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom-color: var(--ink);
}
.slip-row b { font-weight: 550; }
.slip-k { font-family: var(--mono); font-size: 0.86rem; color: var(--oil); }
.nums { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.92rem; }
.nums i { color: var(--water); font-style: normal; }
.nums b { color: var(--oil); font-weight: 500; }
.unit { color: var(--faint); font-size: 0.86rem; }
.delta { font-family: var(--mono); font-size: 0.92rem; text-align: right; }
.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 72ch;
}

figure { margin: 1.7rem 0 0; }
figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 72ch;
}
.chart { width: 100%; display: block; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #100e0c;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 550;
  min-height: 40px;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--oil); outline-offset: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0.2rem; }

.stage {
  margin-top: 0.8rem;
  background: var(--bg);
}
.stage { display: flex; justify-content: center; }
.stage img {
  width: min(100%, 560px);
  height: auto;
  display: block;
}

.bench {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.bench th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  padding: 0.45rem 0.8rem 0.45rem 0;
  border-bottom: 1px solid var(--ink);
}
.bench td {
  padding: 0.62rem 0.8rem 0.62rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.bench td.num, .bench th.num { text-align: right; font-family: var(--mono); font-size: 0.9rem; }
.bench th.num { font-size: 0.68rem; }

.limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 2.4rem;
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
}
.limits li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.limits strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }

.foot {
  margin-top: 4.5rem;
  padding: 1.4rem 0 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.86rem;
}
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 1rem; }

@media (max-width: 1360px) { .rail { display: none; } }
@media (max-width: 900px) {
  .hero-grid, .strata, .limits { grid-template-columns: 1fr; }
  .strata article:nth-child(odd) { border-right: 0; padding-right: 0; }
  .strata article:nth-child(even) { padding-left: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics b { font-size: 1.7rem; }
  .shot img { width: 86%; margin-inline: auto; }
  .slip-head { display: none; }
  .slip-row {
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
  }
  .slip-row .slip-k { grid-column: 1; grid-row: 1; }
  .slip-row > span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .slip-row .nums { grid-column: 1 / -1; grid-row: 2; }
  .slip-row .unit { display: block; grid-column: 1; grid-row: 3; }
  .slip-row .delta { grid-column: 2; grid-row: 3; text-align: right; }
  .top nav a:nth-child(n + 4) { display: none; }
  h1 { font-size: 2.7rem; }
  section { padding-top: 3.6rem; }
}

/* ---------------------------------------------------------------- release post */
.post-hero { padding-top: 4.2rem; }
.post-hero .metrics { grid-template-columns: repeat(2, 1fr); }
.post-body { font-size: 1.08rem; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.1rem;
  line-height: 0.82;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--oil);
}
.prose code, .strata code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--clay);
}
.pull {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--oil);
  max-width: 60ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  color: #f7e7c8;
}
.bench td.win { color: var(--oil); }
.table-wrap { overflow-x: auto; }
.legend .sw-faint i { border-top: 6px solid var(--faint); }
.legend .sw-oil i { border-top: 6px solid var(--oil); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}
.code {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink);
}
.code .c { color: var(--faint); }
.code .k { color: var(--water); }
.code .s { color: var(--gas); }
.cta { margin-top: 2.2rem; }
.cta a {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--oil);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .top .brand { white-space: nowrap; flex-shrink: 0; font-size: 1.05rem; }
  .top nav { gap: 0.75rem; font-size: 0.75rem; }
  .top nav a:nth-child(n + 3) { display: none; }
}
