:root {
  color-scheme: light dark;
  --paper: #f5f1e6;
  --sheet: #fdfbf4;
  --ink: #1b2233;
  --ink-2: #555a66;
  --rule: #c9d6e2;
  --margin: #d9534f;
  --gain: #0a6b37;
  --loss: #b3261e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161c;
    --sheet: #1c1f27;
    --ink: #eeeadf;
    --ink-2: #b4b1a8;
    --rule: #30384a;
    --margin: #e0736f;
    --gain: #5fd096;
    --loss: #ff9389;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

.top, main, footer {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.mark {
  color: inherit;
  text-decoration: none;
  font: 600 20px/1 var(--serif);
}

.status, .tag {
  font: 12px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.status {
  border: 1px solid var(--ink-2);
  padding: 6px 9px;
  border-radius: 3px;
  white-space: nowrap;
}

.hero { padding: 56px 0 44px; }

h1 {
  margin: 0;
  font: 500 clamp(46px, 9vw, 88px)/1.03 var(--serif);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}

.sheet {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 14px 34px -22px rgb(0 0 0 / 0.5);
  overflow: hidden;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px 12px 52px;
  font: 600 18px/1.2 var(--serif);
}

.sheet-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font: 15px/1.3 var(--mono);
}

th, td {
  padding: 11px 20px 11px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
}

th:first-child, td:first-child {
  padding-left: 52px;
  /* The red margin line of a ruled ledger page. */
  background: linear-gradient(90deg, transparent 36px, var(--margin) 36px, var(--margin) 37px, transparent 37px);
}

th {
  font: 600 12px/1.3 var(--sans);
  color: var(--ink-2);
}

.num { text-align: right; font-variant-numeric: tabular-nums; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }

figcaption {
  padding: 12px 20px 14px 52px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 68px 0 56px;
}

h2 {
  margin: 0 0 8px;
  font: 500 28px/1.2 var(--serif);
}

ul { margin: 0; padding: 0; list-style: none; }
li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
li strong { color: var(--ink); font-weight: 600; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--ink-2);
}

footer p { margin: 0; max-width: 42em; }
footer p:last-child { white-space: nowrap; }

.notfound { padding: 90px 0 120px; }
.notfound a { color: inherit; }

@media (max-width: 680px) {
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 28px 0 32px; }
  .lede { font-size: 18px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0 40px; }
  .strategy { display: none; }
  table { font-size: 13px; }
  th, td { padding-right: 12px; }
  th:first-child, td:first-child { padding-left: 34px; background: linear-gradient(90deg, transparent 22px, var(--margin) 22px, var(--margin) 23px, transparent 23px); }
  .sheet-head, figcaption { padding-left: 34px; padding-right: 12px; }
  footer { flex-direction: column; gap: 10px; }
}
