/* Offbook — shared stylesheet for the indexable content pages.
   The landing (index.html) keeps its own inline CSS; these tokens mirror it. */

:root {
  --dk: #070c15;
  --dk-2: #0c1424;
  --dk-3: #111c31;
  --dkline: rgba(154, 173, 203, .16);
  --dkline-soft: rgba(154, 173, 203, .08);
  --dtx: #e9edf4;
  --dmut: #94a2b7;
  --dfaint: #5e6c83;
  --mint: #55d698;
  --mint-hi: #6fe4ac;
  --mint-dim: rgba(85, 214, 152, .13);
  --radius: 10px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dk);
  color: var(--dtx);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 520px at 82% -8%, rgba(85, 214, 152, .09), transparent 62%),
    radial-gradient(800px 560px at -6% 24%, rgba(56, 96, 168, .10), transparent 60%);
}
body > * { position: relative; z-index: 1; }
::selection { background: rgba(85, 214, 152, .25); }

/* Both widths share a left edge so the h1, the body copy and the tables all
   line up; .prose caps the measure instead of narrowing the column. */
.container { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 12, 21, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--dkline-soft);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.word {
  font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.word i { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); display: inline-block; }
.top-right { display: flex; align-items: center; gap: 22px; }
.navlink { font-size: 14px; font-weight: 500; color: var(--dmut); text-decoration: none; }
.navlink:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--mint); border: 1px solid var(--mint); color: #07130d;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--mint-hi); border-color: var(--mint-hi); }
.btn.ghost { background: transparent; color: var(--dtx); border-color: var(--dkline); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--dmut); }
.btn.big { padding: 12px 22px; font-size: 15px; }

/* ---------- page head ---------- */
.crumb {
  font-family: var(--mono); font-size: 12px; color: var(--dfaint);
  padding: 26px 0 0; display: flex; gap: 8px; flex-wrap: wrap;
}
.crumb a { color: var(--dmut); text-decoration: none; }
.crumb a:hover { color: var(--mint); }
.phead { padding: 18px 0 44px; border-bottom: 1px solid var(--dkline-soft); margin-bottom: 44px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--mint); }
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.015em;
  margin: 0 0 20px; color: #f5f7fa;
}
h1 em { font-style: italic; font-weight: 400; color: var(--mint); }
.lede { font-size: 18.5px; line-height: 1.6; color: var(--dmut); margin: 0; max-width: 62ch; }
.lede strong { color: var(--dtx); font-weight: 600; }

/* ---------- prose ---------- */
/* The column is full width; only the running text is capped to a readable
   measure, so tables and card grids can still use the whole width. */
.prose { font-size: 16.5px; color: var(--dmut); }
.prose p,
.prose ul,
.prose h2,
.prose h3,
.prose pre,
.prose blockquote,
.prose .callout,
.prose .qa { max-width: 68ch; }
.prose .tbl-wrap { max-width: 860px; }
.prose h2 {
  font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2;
  color: #f5f7fa; margin: 48px 0 16px; letter-spacing: -.01em; scroll-margin-top: 84px;
}
.prose h3 {
  font-size: 17px; font-weight: 700; color: var(--dtx);
  margin: 32px 0 10px; letter-spacing: -.005em; scroll-margin-top: 84px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--dtx); font-weight: 600; }
.prose a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(85, 214, 152, .32); }
.prose a:hover { border-bottom-color: var(--mint); }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 1px; background: var(--mint);
}
.prose code {
  font-family: var(--mono); font-size: .88em; color: var(--dtx);
  background: var(--dk-3); border: 1px solid var(--dkline-soft);
  padding: 1.5px 5px; border-radius: 4px;
}
.prose pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--dtx);
  background: var(--dk-2); border: 1px solid var(--dkline); border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; margin: 0 0 20px;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose blockquote {
  margin: 0 0 20px; padding: 2px 0 2px 20px; border-left: 2px solid var(--mint);
  color: var(--dtx); font-family: var(--serif); font-size: 18px; font-style: italic;
}

/* ---------- tables ---------- */
.tbl-wrap {
  border: 1px solid var(--dkline); border-radius: var(--radius);
  background: var(--dk-2); overflow: hidden; margin: 0 0 24px;
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  text-align: left; font-size: 11.5px; font-family: var(--mono); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dfaint);
  padding: 13px 18px; border-bottom: 1px solid var(--dkline); background: rgba(255, 255, 255, .02);
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--dkline-soft); color: var(--dmut); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td.name, th.name { color: var(--dtx); font-weight: 600; }
td.name a { color: var(--dtx); text-decoration: none; }
td.name a:hover { color: var(--mint); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--dtx); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; margin: 0 0 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--dk-2); border: 1px solid var(--dkline); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; display: block;
}
a.card:hover { border-color: rgba(85, 214, 152, .42); background: var(--dk-3); }
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--dtx); }
.card p { margin: 0; font-size: 14.5px; color: var(--dmut); line-height: 1.55; }
.card .price {
  font-family: var(--mono); font-size: 13px; color: var(--mint);
  font-variant-numeric: tabular-nums; margin-top: 12px; display: block;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip {
  font-family: var(--mono); font-size: 12px; color: var(--dmut); text-decoration: none;
  border: 1px solid var(--dkline); border-radius: 999px; padding: 5px 12px; background: var(--dk-2);
}
.chip:hover { color: var(--mint); border-color: rgba(85, 214, 152, .42); }

.callout {
  background: var(--mint-dim); border: 1px solid rgba(85, 214, 152, .28);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px;
  font-size: 15px; color: var(--dtx);
}
.callout b { color: var(--mint); }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.fact {
  border: 1px solid var(--dkline); border-radius: 8px; background: var(--dk-2);
  padding: 11px 16px; min-width: 132px;
}
.fact small {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dfaint); margin-bottom: 3px;
}
.fact b { font-size: 17px; color: var(--dtx); font-variant-numeric: tabular-nums; font-weight: 600; }
.fact b.on { color: var(--mint); }

/* ---------- faq ---------- */
.qa { border-top: 1px solid var(--dkline-soft); padding: 22px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--dkline-soft); }
.qa h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--dtx); scroll-margin-top: 84px; }
.qa p { margin: 0; color: var(--dmut); font-size: 15.5px; }
.qa p + p { margin-top: 10px; }
.qa a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(85, 214, 152, .32); }

/* ---------- cta + footer ---------- */
.endcta {
  margin: 64px 0 0; padding: 40px; text-align: center;
  background: var(--dk-2); border: 1px solid var(--dkline); border-radius: var(--radius);
}
.endcta h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 10px; color: #f5f7fa; }
.endcta p { margin: 0 0 22px; color: var(--dmut); font-size: 16px; }
.endcta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.endcta .note { font-size: 13.5px; color: var(--dfaint); }

footer.site {
  margin-top: 72px; border-top: 1px solid var(--dkline-soft);
  padding: 30px 0; font-size: 13.5px; color: var(--dfaint);
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
footer.site h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dfaint); margin: 0 0 12px; font-weight: 600;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; }
footer.site a { color: var(--dmut); text-decoration: none; }
footer.site a:hover { color: var(--mint); }
footer.site .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--dkline-soft); }
footer.site .gloss b { color: var(--dmut); }
footer.site .gloss i { font-style: italic; }

@media (max-width: 860px) {
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .top-right .navlink { display: none; }
  .endcta { padding: 28px 20px; }
}
