/* Writing section: white page, black type, simple black-and-white figures. */
@font-face {
  font-family: Geist;
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #000000;
  --muted: #5d5d5d;
  --line: #e5e5e5;
  --surface: #f5f5f5;
  --bar: #b3b3b3;
  --font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 16px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; }

/* Header and footer */
.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; max-width: 1200px; margin: 0 auto; padding: 20px 24px; font-size: 15px; }
.site .name { font-weight: 600; text-decoration: none; }
.site nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site nav a { color: var(--muted); text-decoration: none; }
.site nav a:hover, .site nav a[aria-current="page"] { color: var(--text); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Article */
.head { max-width: 880px; margin: 72px auto 56px; padding: 0 24px; text-align: center; }
.meta { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
h1 { text-wrap: balance; margin: 0 0 20px; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.dek { text-wrap: balance; max-width: 640px; margin: 0 auto; font-size: 20px; line-height: 1.5; color: var(--muted); }
.prose { max-width: 680px; margin: 0 auto; padding: 0 24px 72px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2.3em 0 0.6em; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.prose .note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.pull { text-wrap: balance; margin: 1.4em 0 1.6em; padding: 28px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); font-size: clamp(26px, 4.2vw, 34px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.disclosure { margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Figures */
.fig { margin: 2em 0 2.2em; }
.panel { background: var(--surface); border-radius: 16px; padding: 28px; }
.fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.kicker { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* 1. What compaction does */
.squeeze { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-height: 124px; }
.card b { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.lines { display: grid; gap: 7px; }
.lines i { display: block; height: 6px; border-radius: 3px; background: var(--text); }
.lines.gone i { background: none; border: 1px dashed var(--bar); height: 7px; }
.arrow { font-size: 20px; color: var(--muted); }

/* 2. The team round */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.4; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; }
.rule { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 15px; line-height: 1.45; }
.rule b { font-weight: 600; }

/* 3. What the log showed */
.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; }
.hero strong { font-size: clamp(48px, 9vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.hero span { font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 320px; }
.bars { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(118px, 42%) 1fr; gap: 12px; align-items: center; font-size: 14px; line-height: 1.3; }
.bars .track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bars .bar { height: 12px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--bar); }
.bars .val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bars .hi { font-weight: 600; }
.bars .hi .bar { background: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 500; }
.stat span { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* 4. Before and now */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.side.now { border: 2px solid var(--text); }
.side h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.side ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.side li { margin: 0 0 6px; }
.side p { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Writing list */
.list-head { max-width: 880px; margin: 72px auto 40px; padding: 0 24px; }
.list-head h1 { margin-bottom: 12px; }
.list-head p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.posts { max-width: 880px; margin: 0 auto 80px; padding: 0 24px; list-style: none; }
.posts li { display: grid; grid-template-columns: 180px 1fr; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.posts time { font-size: 14px; color: var(--muted); padding-top: 6px; }
.posts h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { margin: 0; color: var(--muted); }
.posts .series { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .head { margin: 40px auto 36px; }
  .list-head { margin: 40px auto 28px; }
  .panel { padding: 18px; border-radius: 12px; }
  .squeeze { grid-template-columns: 1fr; }
  .squeeze .arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .card { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .posts li { grid-template-columns: 1fr; }
}
@media print {
  .site nav, .foot, .skip { display: none; }
  .panel { border: 1px solid #cccccc; }
}
.prose .rule { margin: 12px 0 0; }
.prose .side p { margin: 10px 0 0; }
