/* Black on white, with blues from the two Color Hunt palettes:
   #BDD8F1 #82A6CB #3667A6 #214177 and #D2E4F1 #8FACC0 #818D97 #484D51 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #16181a;
  --muted: #484d51;
  --faint: #e3e8ed;
  --tint: #d2e4f1;
  --card: #ffffff;
  --accent: #3667a6;
  --accent-hi: #214177;
  --accent-soft: #82a6cb;
  --track: rgba(129, 141, 151, 0.28);
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
/* Quiet links: read as plain text, with a faint blue underline until hovered */
a.q { color: inherit; text-decoration: underline; text-decoration-color: var(--tint); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.q:hover { color: var(--accent); text-decoration-color: var(--accent); }
code { font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace; }

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
}

/* Sidebar */
.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 44px 0 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
@media (max-height: 880px) {
  .side { padding-top: 28px; }
  .side #tracks { height: 96px; }
}
#tracks { width: 100%; height: 140px; display: block; margin-bottom: 10px; }
.name {
  font: 700 2.3rem/1.1 var(--sans);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.role { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0 0 18px; }
.pitch { margin: 0 0 22px; font-size: 1rem; }
.links { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.95rem; }
.toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--faint); padding-left: 14px; font-size: 0.92rem; }
.toc a { color: var(--muted); }
.toc a.active { color: var(--ink); font-weight: 700; }

/* Main column */
main { padding: 56px 0 40px; max-width: 720px; }
section { margin-bottom: 64px; }
h2 {
  font: 700 1.45rem/1.2 var(--sans);
  margin: 0 0 18px;
}
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lede { font-size: 1.08rem; margin-top: 0; }
.sub { color: var(--muted); margin-top: -8px; }



.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--faint);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
}
.card p { margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 0.86rem; }
.also { font-size: 0.93rem; color: var(--muted); }
.also strong { color: var(--ink); }

.pubs { padding-left: 1.6em; margin: 0 0 16px; }
.pubs li { margin-bottom: 14px; padding-left: 4px; }
.pubs li::marker { color: var(--muted); font-size: 0.85em; }
.pubs span { display: block; }
.pubs .t { font-weight: 700; }
.pubs .a { color: var(--muted); font-size: 0.9rem; }
.pubs .a b { color: var(--ink); }
.pubs .j { font-size: 0.9rem; }

.rows { list-style: none; padding: 0; margin: 0 0 14px; }
.rows li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--faint); font-size: 0.95rem; }
.rows li:last-child { border-bottom: 0; }
.rows .d { color: var(--muted); font-variant-numeric: tabular-nums; }

footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--faint); padding-top: 16px; }

/* Phone and small tablet: one column, sidebar becomes a header */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .side { position: static; height: auto; padding: 32px 0 8px; overflow: visible; }
  #tracks { height: 110px; }
  .name { font-size: 2rem; }
  .toc { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; border-left: 0; padding-left: 0; border-top: 1px solid var(--faint); padding-top: 12px; }
  main { padding-top: 28px; }
  section { margin-bottom: 48px; }
  .cards { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: 0; }
}
