/* The book's site. Built from zero, 2026-07-19.
   Warm black pages, Literata for the writing, IBM Plex Mono for the data.
   The cover photo bleeds into the page. No logos, no marks — the brand
   slot stays empty until the driver names it. */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/literata-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/literata-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/plex-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/plex-mono-500-latin.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  --bg: #0e0d0c;          /* warm black — matches the cover photo's shadows */
  --plate: #151312;       /* raised: figures, tables */
  --ink: #e8e2d6;         /* warm cream */
  --ink-soft: #beb7aa;
  --muted: #7d776c;
  --hairline: #262420;
  --gilt: #c9a25f;        /* the one accent: small labels, hovers */

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 40rem;
  --gutter: 1.4rem;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--gilt); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}

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

/* ---------- the cover ---------- */

.cover {
  position: relative;
  background: #000;
  margin-bottom: 3.2rem;
}

.cover-img {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  object-position: center;
}

/* the photo dissolves into the page */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14, 13, 12, 0.30) 0%,
    rgba(14, 13, 12, 0.00) 26%,
    rgba(14, 13, 12, 0.00) 58%,
    var(--bg) 100%);
  pointer-events: none;
}
/* ---------- shared ---------- */

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gilt);
  margin: 0 0 1.3rem;
}

.entry-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.draft-flag { color: var(--gilt); text-transform: uppercase; letter-spacing: 0.14em; }

.back {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--gilt); }

/* ---------- the contents drawer: hover, tap, or focus to open ----------
   A slim tab on the left edge that reveals the book's contents in reading
   order. Hidden at rest so the page stays clean; opens on :hover and on
   :focus-within, so a keyboard tab or a touch tap works with no script. */

.toc {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 100;
}

.toc-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--plate);
  color: var(--ink-soft);
  border: 1px solid var(--gilt);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  padding: 0.85rem 0.62rem 1rem;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.toc-tab-mark {
  font-family: var(--mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gilt);
}
.toc-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.toc.open .toc-tab {
  background: var(--gilt);
  color: var(--bg);
  border-color: var(--gilt);
}
.toc.open .toc-tab .toc-tab-mark { color: var(--bg); }
@media (hover: hover) {
  .toc-tab:hover,
  .toc:focus-within .toc-tab {
    background: var(--gilt);
    color: var(--bg);
    border-color: var(--gilt);
  }
  .toc-tab:hover .toc-tab-mark,
  .toc:focus-within .toc-tab .toc-tab-mark { color: var(--bg); }
}

.toc-drawer {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  width: 17rem;
  max-width: 82vw;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(18, 16, 15, 0.985);
  border: 1px solid var(--hairline);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.55);
  padding: 1.5rem 1.5rem 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s ease, opacity 0.24s ease, visibility 0s linear 0.24s;
}
.toc.open .toc-drawer {
  transform: translate(0, -50%);
  opacity: 1;
  visibility: visible;
  transition: transform 0.24s ease, opacity 0.24s ease;
}
/* Pointer devices get hover and keyboard-focus reveal too. Touch relies on
   the tap toggle alone, so a tap never fights a lingering :focus that iOS
   would not even set on a button. */
@media (hover: hover) {
  .toc:hover .toc-drawer,
  .toc:focus-within .toc-drawer {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }
}

.toc-close {
  display: none;   /* only the full-screen mobile menu needs a close control */
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.toc-close:hover { color: var(--gilt); border-color: var(--gilt); }

.toc-head {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gilt);
  margin: 0 0 1rem;
}

.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a {
  display: block;
  padding: 0.42rem 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
}
.toc-list a:hover { color: var(--gilt); }
.toc-list li.here > a { color: var(--ink); }
.toc-list li.here > a::before {
  content: "\203A\00a0\00a0";
  color: var(--gilt);
}

.toc-all { margin-top: 0.5rem; padding-top: 0.7rem; border-top: 1px solid var(--hairline); }
.toc-all a {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc-all a:hover { color: var(--gilt); }

.toc-draft {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gilt);
}

@media (prefers-reduced-motion: reduce) {
  .toc-drawer,
  .toc:hover .toc-drawer,
  .toc:focus-within .toc-drawer,
  .toc.open .toc-drawer { transition: opacity 0.01s linear, visibility 0s; }
}

/* ---------- index: the full list ---------- */

.more {
  margin: 1.6rem 0 0;
  text-align: right;
}
.more a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.more a:hover { color: var(--gilt); }

/* /posts — chronological grid of cards (driver direction 2026-07-19) */

.index-grid-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--hairline);
  background: var(--plate);
}
.card:hover { border-color: var(--gilt); }

.card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 0.9rem 1rem 1.1rem; }

.card-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  gap: 0.9rem;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 0.45rem 0 0;
  color: var(--ink);
}
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--gilt); }

.card-lesson {
  display: block;
  padding: 0 1rem 0.95rem;
  margin-top: -0.3rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.card-lesson:hover { color: var(--gilt); }

/* ---------- home: the writing ---------- */

.entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}
.entry:first-child { padding-top: 0; }
.entry:last-of-type { border-bottom: 0; }

.entry h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.3;
  margin: 0.6rem 0 0.55rem;
}
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--gilt); }

.entry p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.68;
}

/* the latest post's opening, shown to hook the reader */
.entry-lede {
  color: var(--ink);
  font-size: 1.07rem;
  line-height: 1.78;
}
.entry-lede p { margin: 0 0 1.1rem; }
.entry-lede p:last-child { margin-bottom: 0; }

.entry-more { margin-top: 1.3rem; }
.entry-more a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gilt);
  text-decoration: none;
}
.entry-more a:hover { color: var(--ink); }

.no-results {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1.5rem 0;
}

/* ---------- the post ---------- */

.post { padding-top: 3rem; }

.post-head {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.8rem;
  margin: 1.6rem 0 2.4rem;
}

.post-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin: 0.9rem 0 0;
}

.post-body {
  color: var(--ink);
  font-size: 1.07rem;
  line-height: 1.8;
}

.post-body p { margin: 0 0 1.25rem; }
.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.008em;
  margin: 2.6rem 0 0.9rem;
}

.post-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
}

.post-body ul { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.post-body li { margin: 0.45rem 0; }
.post-body li::marker { color: var(--gilt); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }

.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gilt);
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--gilt); }

.post-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--plate);
  border: 1px solid var(--hairline);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  color: var(--ink);
}

.post-body blockquote {
  border-left: 1px solid var(--gilt);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.post-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4rem 0; }

/* figures — printed plates */

.post-figure {
  margin: 2.2rem 0;
  border: 1px solid var(--hairline);
  background: var(--plate);
  padding: 0.9rem;
}
.post-figure img { width: 100%; }
.post-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* tables — data in mono rhythm */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  background: var(--plate);
  margin: 2rem 0;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.post-table th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.post-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.post-table tr:last-child td { border-bottom: 0; }
.post-table td:first-child { color: var(--ink); }
.post-table th.col-right, .post-table td.col-right { text-align: right; }
.post-table th.col-center, .post-table td.col-center { text-align: center; }

/* math */

.post-body .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.25rem 0; }

/* data downloads */

.post-body a[href$=".gz"], .post-body a[href$=".csv"], .post-body a[href$=".json"] {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--plate);
  border: 1px solid var(--hairline);
  padding: 0.5rem 0.85rem;
  margin: 0.15rem 0;
  text-decoration: none;
}
.post-body a[href$=".gz"]::before,
.post-body a[href$=".csv"]::before,
.post-body a[href$=".json"]::before {
  content: "\2193\00a0\00a0";
  color: var(--gilt);
}
.post-body a[href$=".gz"]:hover,
.post-body a[href$=".csv"]:hover,
.post-body a[href$=".json"]:hover { border-color: var(--gilt); }

/* sources */

.post-sources-head {
  font-family: var(--mono) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted) !important;
  border-top: 1px solid var(--hairline);
  padding-top: 1.7rem;
  margin-top: 3rem !important;
}

.post-sources-head ~ ul {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--muted);
}
.post-sources-head ~ ul li::marker { color: var(--hairline); }

.post-end { margin-top: 3rem; }

/* ---------- lessons: the course layer ---------- */

.lesson-flag,
.lesson .lesson-flag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gilt);
}

.lesson-link {
  margin-top: 2.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--plate);
  border-left: 2px solid var(--gilt);
}
.lesson-link p { margin: 0; }
.lesson-link a { color: var(--gilt); }

.quiz { margin-top: 3rem; }
.quiz-intro {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.quiz-q {
  background: var(--plate);
  border: 1px solid var(--hairline);
  border-left-width: 2px;
  padding: 1.1rem 1.2rem 0.9rem;
  margin: 1rem 0;
}
.quiz-q-text {
  margin: 0 0 0.7rem;
  font-weight: 600;
  line-height: 1.5;
}
.quiz-q-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gilt);
  margin-right: 0.6rem;
}
.quiz-choices { display: flex; flex-direction: column; gap: 0.3rem; }
.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.55;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.quiz-choice:hover {
  border-color: var(--hairline);
  background: rgba(232, 226, 214, 0.03);
  color: var(--ink);
}
.quiz-choice.picked {
  border-color: var(--gilt);
  background: rgba(201, 162, 95, 0.06);
  color: var(--ink);
}
.quiz-choice input {
  flex: none;
  margin: 0.32rem 0 0;
  accent-color: var(--gilt);
}
.quiz-choice-text { flex: 1; }
.quiz-right { border-left-color: #6f9868; }
.quiz-wrong { border-left-color: #b0655a; }
.quiz-grade {
  margin-top: 0.6rem;
  padding: 0.55rem 1.4rem;
  background: var(--gilt);
  color: var(--bg);
  border: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.quiz-grade:hover { filter: brightness(1.08); }
.quiz-status,
.quiz-result p {
  font-family: var(--mono);
  font-size: 0.85rem;
}
.quiz-pass { color: #8fae86; }
.quiz-fail { color: var(--gilt); }

/* ---------- lap viewer ---------- */

.lv {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 4rem;
}

.lv-top { margin-bottom: 1.2rem; }

.lv-status {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2rem 0 1rem;
}
.lv-error { color: var(--ink-soft); }

.lv-index { display: flex; flex-direction: column; gap: 0.5rem; }
.lv-index a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--plate);
  border: 1px solid var(--hairline);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  width: fit-content;
}
.lv-index a:hover { border-color: var(--gilt); color: var(--ink); }

.lv-head {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}
.lv-head b { color: var(--muted); font-weight: 400; }

.lv-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.lv-controls button, .lv-chip button {
  background: var(--plate);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.lv-controls button:hover { border-color: var(--gilt); color: var(--ink); }

.lv-picker {
  background: var(--plate);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.4rem;
  max-width: 26rem;
}

.lv-hint { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-left: auto; }

.lv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }

.lv-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  background: var(--plate);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.lv-chip button { border: 0; padding: 0 0.3rem; background: transparent; }
.lv-chip button:hover { color: var(--gilt); }

.lv-main { display: flex; gap: 1rem; align-items: flex-start; }
.lv-strips { flex: 1; cursor: crosshair; }

.lv-side { width: 224px; flex: none; }
.lv-map {
  border: 1px solid var(--hairline);
  background: var(--plate);
  margin-bottom: 0.8rem;
}

.lv-readout {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.lv-readout-head { color: var(--muted); margin-bottom: 0.3rem; }
.lv-readout-row { display: flex; align-items: center; gap: 0.45rem; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }

@media (max-width: 760px) {
  .lv-main { flex-direction: column; }
  .lv-side { width: 100%; display: flex; gap: 1rem; align-items: flex-start; }
}

/* ---------- 404 ---------- */

.nf {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
}
.nf-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gilt);
  margin: 0;
}
.nf-head { font-size: 2rem; font-weight: 600; margin: 0 0 0.8rem; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .cover { margin-bottom: 2.4rem; }
  .cover-img { max-height: 44vh; }

  /* No side margin to hide in on a phone: the tab is a floating pill in the
     bottom-left corner, and tapping it opens a full-screen, fully opaque
     menu with a close button. Solid and obvious, impossible to tap through,
     driven only by the tap toggle (no hover, no :focus dependency). */
  .toc { top: auto; bottom: 1.1rem; left: 1.1rem; transform: none; }
  .toc-tab {
    flex-direction: row;
    gap: 0.5rem;
    border: 1px solid var(--gilt);
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
  }
  .toc-tab-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.8rem;
  }
  .toc-tab-mark { font-size: 1.15rem; }
  .toc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
    padding: 4.6rem 1.7rem 2rem;
    transform: translateX(-100%);
  }
  .toc.open .toc-drawer { transform: translateX(0); }
  .toc-close { display: flex; }
  .toc-head { font-size: 0.72rem; margin-bottom: 1.3rem; }
  .toc-list a { padding: 0.75rem 0; font-size: 1.05rem; }
  .toc-all { margin-top: 0.8rem; padding-top: 1rem; }
  .toc-all a { font-size: 0.74rem; }
  .post { padding-top: 2rem; }
  .post-body { font-size: 1.06rem; }
  .entry-lede { font-size: 1.06rem; }
  body { font-size: 1.09rem; }
  .table-wrap, .post-figure {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-left: 0;
    border-right: 0;
  }
}
