:root {
  color-scheme: light;
  --bg: #fcfcfc;
  --surface: #fff;
  --text: #202020;
  --muted: #686868;
  --text-muted: var(--muted);
  --text-faint: var(--muted);
  --accent: var(--text);
  --border-strong: #b8b8b8;
  --line: #e6e6e6;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: #bdbdbd transparent; }
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: #bdbdbd; border: 2px solid var(--bg); border-radius: 8px; }
html::-webkit-scrollbar-thumb:hover { background: #999; }
html::-webkit-scrollbar-button { display: none; }
@media (forced-colors: active) {
  html { scrollbar-color: auto; }
}
body { margin: 0; font-size: 16px; line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; }
p { color: var(--muted); }
a { color: inherit; text-decoration-color: #c8c8c8; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; border-radius: 2px; }
button { font: inherit; touch-action: manipulation; }
img { display: block; max-width: 100%; }
::selection { background: #e8e8e8; color: #202020; }
.page { width: min(640px, calc(100% - 48px)); margin-inline: auto; padding-block: 120px 56px; }
.identity { margin-bottom: 120px; }
.identity p { line-height: 1.5; }
main > section + section { margin-top: 104px; }
main > section > h2 { margin-bottom: 26px; }
main > section > p + p { margin-top: 16px; }
.entries { display: grid; gap: 34px; }
.entries h3, .entry h3 { margin-bottom: 2px; }
.entries h3 a, .entry h3 a { text-decoration: none; }
.entries h3 a:hover, .entry h3 a:hover { text-decoration: underline; }
footer { margin-top: 88px; color: var(--muted); font-size: 13px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 8px 12px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Music is the one visual section. Its previews stay entirely client-side. */
.music-intro { margin-top: -10px; }
.album-collection { margin-top: 28px; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.album-card { min-width: 0; }
.album-card__artist { margin-bottom: 8px; font-size: 12px; }
.album-card__cover { display: block; position: relative; width: 100%; padding: 0; aspect-ratio: 1; border: 0; border-radius: 5px; overflow: hidden; background: #efefef; color: #fff; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.album-card__cover:active { transform: scale(0.98); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card__cover-action { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / 65%); transition: opacity 150ms ease; }
.album-card__icon { width: 14px; height: 14px; fill: currentColor; }
.is-hidden { display: none; }
.album-card h3 { margin-top: 10px; font-size: 14px; font-weight: 500; }
.album-card__track { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; }
.album-card__explicit { display: inline-grid; place-items: center; width: 11px; height: 11px; border-radius: 2px; background: #777; color: white; font-size: 8px; line-height: 1; }
.album-card__store-link { display: block; width: fit-content; margin-top: 12px; }
.album-card__store-link img { width: 89px; height: auto; }
.album-card__message { margin-top: 8px; font-size: 12px; line-height: 1.5; }
.album-card__message:empty { display: none; }
.album-card audio { display: none; }
.album-collection__credit { margin-top: 24px; font-size: 12px; }
.album-card__cover:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .album-card__cover-action { opacity: 0; }
  .album-card__cover:hover .album-card__cover-action,
  .album-card__cover:focus-visible .album-card__cover-action,
  .album-card__cover[aria-pressed="true"] .album-card__cover-action { opacity: 1; }
}

/* The essay shares the homepage's measure and typography. */
.article-nav, .article-shell, .article-footer { width: min(640px, calc(100% - 48px)); margin-inline: auto; }
.article-nav { padding-top: 72px; color: var(--muted); font-size: 14px; }
.article-nav a { text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }
.article-shell { padding-top: 72px; }
.article-hero { margin-bottom: 64px; }
.article-kicker, .article-meta { font-size: 13px; color: var(--muted); }
.article-title { margin-block: 16px 24px; font-size: clamp(26px, 4vw, 34px); line-height: 1.25; letter-spacing: -0.025em; }
.article-dek { line-height: 1.75; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 24px; }
.article-body section + section { margin-top: 56px; }
.article-body h2 { margin-bottom: 20px; font-size: 21px; letter-spacing: -0.02em; }
.article-body h3 { margin-top: 28px; margin-bottom: 12px; }
.article-body p + p, .article-body ul, .article-body ol { margin-top: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; color: var(--muted); }
.article-body li + li { margin-top: 8px; }
.article-body strong { color: var(--text); font-weight: 500; }
.callout { margin-top: 24px; border-left: 2px solid var(--line); padding-left: 20px; }
.diagram-box { margin-top: 28px; }
.diagram-scroll { overflow-x: auto; }
.diagram-box svg { display: block; width: 100%; min-width: 600px; height: auto; }
.diagram-box + p { margin-top: 20px; }
.diagram-caption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.risk-table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 24px; font-size: 13px; }
.risk-table th, .risk-table td { min-width: 130px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.risk-table td { color: var(--muted); }
.risk-table th { font-weight: 500; }
.article-body pre { overflow-x: auto; padding: 16px; background: #f3f3f3; font-size: 13px; }
.article-footer { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 48px; }
@media (max-width: 600px) {
  .page { padding-top: 64px; padding-bottom: 32px; }
  .identity { margin-bottom: 80px; }
  main > section + section { margin-top: 72px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .article-nav { padding-top: 40px; }
  .article-shell { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card__cover { transition: none; }
  .album-card__cover:active { transform: none; }
}

/* An open introduction and vertically stacked sections. */
.page { width: min(560px, calc(100% - 48px)); padding-top: 96px; }
.identity { display: block; margin-bottom: 32px; }
.identity h1 { font-size: 23px; font-weight: 500; letter-spacing: -0.045em; }
.identity p { margin-top: 4px; font-size: 13px; }
#about { max-width: 540px; margin-bottom: 112px; }
#about > p:first-of-type { font-size: 20px; line-height: 1.55; letter-spacing: -0.02em; color: var(--text); }
#about > p + p { margin-top: 16px; }
.intro-links { display: flex; gap: 24px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.intro-links a { text-decoration: none; }
.intro-links a:hover { text-decoration: underline; }
main > section + section { margin-top: 96px; }
main > section:not(#about) { display: block; }
main > section:not(#about) > h2 { margin: 0 0 28px; font-size: 14px; color: var(--text); font-weight: 500; }
.entries { gap: 38px; }
.entries h3, .entry h3 { font-size: 15px; }
.entries p, .entry p, #languages > p, #contact > p { font-size: 14px; line-height: 1.65; }
#on-repeat { row-gap: 0; }
.music-intro { margin-top: 0; font-size: 14px; }
.album-collection { margin-top: 22px; }
.album-grid { gap: 28px 18px; }
.album-card h3 { font-size: 13px; line-height: 1.45; }
.album-card__artist, .album-card__track { font-size: 11px; }
.album-card__store-link img { width: 82px; }
.album-collection__credit { font-size: 11px; }
.page > footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .page { padding-top: 48px; }
  .identity { display: block; margin-bottom: 28px; }
  .identity p { margin-top: 4px; }
  #about { margin-bottom: 80px; }
  #about > p:first-of-type { font-size: 19px; }
  main > section + section { margin-top: 72px; }
  main > section:not(#about) { display: block; }
  main > section:not(#about) > h2 { margin-bottom: 22px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .page > footer { margin-top: 40px; padding-left: 0; }
}
