/* Amar Bhakta's portfolio: one page, five chapters. Tokens first; every colour the page uses is a token here or a
   chapter's inline --accent/--accent-text (scripts/contrast.mjs reads both and checks the pairs). */

@font-face { font-family: "Unbounded"; src: url(fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(fonts/martian-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #07070c;
  --ink-2: #0e0e16;
  --ink-3: #16161f;
  --line: #24242f;
  --fg: #f4f2ec;
  --fg-2: #b5b3ad;
  --fg-3: #a8a6af;
  --spot: #5cc4ff;
  --accent: #5cc4ff;
  --accent-text: #5cc4ff;
  --accent-2: #e12aff;
  --accent-ink: var(--ink);
  --draft: #ffd23f;
  --tint: 30%;
  --tint-2: 18%;
  --bg: var(--ink);
  --display: "Unbounded", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mx: 50vw;
  --my: 40vh;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

/* A cursor spotlight the whole page shares: JavaScript moves --mx/--my and tints --spot with the chapter in view. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(640px circle at var(--mx) var(--my), color-mix(in oklab, var(--spot) 13%, transparent), transparent 62%);
  transition: background-color .6s;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 999px;
  background: var(--fg); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

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

.eyebrow {
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.sep { opacity: .5; padding: 0 .35em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--fg-2); max-width: 44ch; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--ink) 62%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.monogram {
  font: 800 1.25rem/1 var(--display);
  letter-spacing: -.04em;
  text-decoration: none;
  display: inline-flex;
}
.monogram__b { color: var(--spot); transition: color .6s; }
.top__nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-weight: 500; }
.top__nav a { text-decoration: none; color: var(--fg-2); }
.top__nav a:hover { color: var(--fg); }
.pill {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg) !important;
  white-space: nowrap;
  transition: border-color .3s, background-color .3s;
}
/* A phone has room for the monogram, two links and the pill, not the arrow or a third link. With a Notes link, Notes stays
   and Experience goes. */
@media (max-width: 480px) {
  .top { gap: 12px; }
  .top__nav { gap: 14px; font-size: .95rem; }
  .top__nav a[href="#about"], .pill span { display: none; }
  .top__nav:has(a[href="notes/"]) a[href="#experience"] { display: none; }
  .pill { padding: 7px 12px; }
}
.pill:hover { border-color: var(--spot); background: color-mix(in oklab, var(--spot) 12%, transparent); }
/* Over the light chapter (set by app.js from the chapter in view) the bar turns light too. */
html[data-theme="light"] .top { background: color-mix(in oklab, #cbf3f0 70%, transparent); color: #123331; transition: background-color .4s; }
html[data-theme="light"] .top__nav a { color: #2f4a46; }
html[data-theme="light"] .top__nav a:hover, html[data-theme="light"] .pill { color: #123331 !important; }
html[data-theme="light"] .pill { border-color: #8fbab4; }
html[data-theme="light"] .monogram { color: #123331; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .3em;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600; text-decoration: none; color: var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--fg-3); }
.btn--primary { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn--primary:hover { box-shadow: 0 12px 40px -10px color-mix(in oklab, var(--spot) 70%, transparent); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { box-shadow: 0 12px 40px -8px var(--accent); }
.btn--big { font-size: clamp(1.1rem, 2.4vw, 1.5rem); padding: 18px 30px; max-width: 100%; overflow-wrap: anywhere; }
/* The LinkedIn URL has no space to wrap at: on the narrowest phones the button gets smaller before it may break the URL. */
@media (max-width: 360px) { .btn--big { font-size: 1rem; padding: 16px 20px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 20% 20%, color-mix(in oklab, #2bb3ff 26%, transparent), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, color-mix(in oklab, #be00ff 24%, transparent), transparent 70%),
    radial-gradient(60% 40% at 60% 90%, color-mix(in oklab, #ff9f1c 16%, transparent), transparent 70%),
    var(--ink);
}
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner {
  position: relative;
  padding: calc(72px + 6vh) var(--gutter) 48px;
  max-width: 1280px; width: 100%; margin: 0 auto;
  display: grid; gap: clamp(20px, 3vh, 36px); align-content: center;
}
.hero__eyebrow { animation: fade .8s var(--ease) both .2s; }
.name {
  font: 800 clamp(3.1rem, 14.2vw, 12.5rem)/.92 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
  display: grid;
}
.name__line { display: block; white-space: nowrap; }
.name i {
  display: inline-block; font-style: normal;
  animation: rise 1s var(--ease) both;
  animation-delay: calc(.15s + var(--i) * 55ms);
}
/* The second line is one animated piece, not letters: Chrome drops background-clip:text when the element's
   descendants are composited (animated transforms), so a per-letter stagger under a gradient paints nothing. */
.name__line--grad {
  background: linear-gradient(100deg, #5cc4ff 0%, #cfa8ff 32%, #e39bff 58%, #ff9f1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) both .42s;
}
.hero__lede { animation: fade .8s var(--ease) both .75s; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; animation: fade .8s var(--ease) both .95s; }

@keyframes rise { from { opacity: 0; transform: translateY(.4em) rotate(3deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

.marquee {
  position: relative;
  overflow: hidden; white-space: nowrap;
  padding: 18px 0 22px;
  border-top: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: inline-flex; animation: slide 64s linear infinite; }
.marquee span {
  font: 700 clamp(1.4rem, 3.2vw, 2.4rem)/1 var(--display);
  letter-spacing: -.02em;
  padding-right: clamp(32px, 5vw, 72px);
}
/* both halves of the track are identical (the loop needs that to be seamless): the products in their colours, then the
   employers in their logo's key colour, read from each brand's own files on 23 Sep 2026 (docs/SOURCES.md). Apple's, Disney's
   and AOL's logos are single-colour marks, which each brand shows in white on a dark ground. */
.tk--adres { color: #5cc4ff; }
.tk--cosmetica { color: #cfa8ff; }
.tk--maybe { color: #bcb9ff; }
.tk--jetset { color: #e39bff; }
.tk--naseeb { color: #ff9f1c; }
.tk--apple, .tk--disney, .tk--aol { color: #ffffff; }
.tk--merkle { color: #f23a1d; }
.tk--starcom { color: #dcbf4c; }
.tk--razorfish { color: #9743ff; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- chapters ---------- */
.work { position: relative; z-index: 1; }
.chapter {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(64px + 4vh) var(--gutter) 10vh;
  color: var(--fg);
  background:
    radial-gradient(100% 80% at 85% 10%, color-mix(in oklab, var(--accent) var(--tint), var(--bg)), transparent 72%),
    radial-gradient(70% 70% at 5% 100%, color-mix(in oklab, var(--accent-2) var(--tint-2), var(--bg)), transparent 72%),
    var(--bg);
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .6);
  border-top: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
}
.chapter__inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.chapter__text { display: grid; gap: 18px; align-content: center; }
.chapter__index { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--accent-text); }
.chapter__index span { color: var(--fg-3); }
.chapter__mark { min-height: 64px; display: flex; align-items: center; }
.wordmark { font: 800 1.9rem/1 var(--display); letter-spacing: -.03em; }
.wordmark--adres {
  background: linear-gradient(90deg, #5cc4ff, #e12aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark--maybe b {
  font-weight: 800;
  background: linear-gradient(135deg, #8f8cff, #e37bd0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mark { display: block; width: auto; }
.mark--cosmetica { height: 64px; margin-left: -7px; }
.mark--jetset { height: 64px; }
.mark--naseeb { height: 48px; }
.chapter__title {
  font: 600 clamp(1.55rem, 3.1vw, 2.5rem)/1.12 var(--display);
  letter-spacing: -.025em;
  max-width: 18ch;
  text-wrap: balance;
}
.chapter__body { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--fg-2); max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px;
  color: var(--accent-text);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 9%, transparent);
}

/* the visual: a live capture in a frame that tilts under the pointer */
.chapter__visual { perspective: 1400px; }
.frame {
  --rx: 4deg; --ry: -8deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .35s var(--ease);
  border-radius: 16px; overflow: hidden;
  background: var(--ink-2);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .75),
    0 0 0 1px color-mix(in oklab, var(--fg) 12%, transparent),
    0 0 120px -30px color-mix(in oklab, var(--accent) 55%, transparent);
}
.chapter:nth-child(even) .frame { --ry: 8deg; }
.chapter:nth-child(even) .chapter__visual { order: -1; }
.frame__bar {
  height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: var(--ink-3);
  border-bottom: 1px solid color-mix(in oklab, #ffffff 6%, transparent);
}
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 55%, var(--ink-3)); }
.frame__bar em {
  margin: 0 auto; padding: 4px 12px; border-radius: 6px;
  font: 500 .75rem/1 var(--mono); font-style: normal; letter-spacing: .02em;
  color: var(--fg-2); background: var(--ink-2);
}
.frame__screen { aspect-ratio: 16 / 10; background: var(--ink-2); }
.frame__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.chapter--light { --line: #8FBAB4; --ink-2: #ffffff; --ink-3: #e6f7f5; color-scheme: light; }
.chapter--light .frame__bar em { color: #3E5A55; }
.chapter--light .frame { box-shadow: 0 50px 90px -30px rgba(18, 51, 49, .45), 0 0 0 1px rgba(18, 51, 49, .12), 0 0 120px -30px color-mix(in oklab, var(--accent) 55%, transparent); }

@media (min-width: 820px) {
  .chapter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
/* Stacking cards: on a screen tall enough for a chapter to fit, each chapter sticks and the next slides over it. */
@media (min-width: 820px) and (min-height: 720px) {
  .chapter { position: sticky; top: 0; }
}
@media (max-width: 819px) {
  .chapter { padding-top: 88px; padding-bottom: 64px; }
  .chapter__visual { display: flex; justify-content: center; }
  .frame { --rx: 0deg; --ry: 0deg; width: 62vw; max-width: 320px; border-radius: 28px; }
  .frame__bar { height: 30px; justify-content: center; padding: 0; }
  .frame__bar span { display: none; }
  .frame__bar em { margin: 0; padding: 3px 10px; font-size: .68rem; }
  .frame__screen { aspect-ratio: 9 / 16; }
  .chapter:nth-child(even) .chapter__visual { order: 0; }
}

/* ---------- about, contact, footer ---------- */
.about, .contact, .foot { position: relative; z-index: 2; background: var(--ink); }
.about { padding: clamp(80px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--line); }
.about__inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 40px; }
.statement {
  font: 500 clamp(1.5rem, 3.6vw, 3rem)/1.25 var(--body);
  letter-spacing: -.015em;
  max-width: 26ch;
  text-wrap: balance;
}
.statement__accent { color: var(--accent-text); font-family: var(--display); font-weight: 700; font-size: .85em; }
.about__facts { display: grid; gap: 24px; }
/* align-content: start keeps the label and text together at the top when a neighbouring column is taller (a stretched grid
   would share the spare height between the two rows and push the text down) */
.about__facts div { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.about__facts dt { font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.about__facts dd { margin: 0; color: var(--fg-2); }
@media (min-width: 820px) { .about__facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.contact { padding: clamp(80px, 16vh, 180px) var(--gutter); text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 100%, color-mix(in oklab, var(--spot) 18%, transparent), transparent 70%), var(--ink); }
.contact__inner { display: grid; gap: 24px; justify-items: center; grid-template-columns: minmax(0, 1fr); }
.contact__title { font: 800 clamp(3rem, 11vw, 9rem)/.95 var(--display); letter-spacing: -.045em; }
.contact .lede { text-align: center; }

.foot { padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .95rem; }
.foot__inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a, .foot__copy a { color: var(--fg-2); }
.foot__links a:hover, .foot__copy a:hover { color: var(--fg); }
.foot__note { font: 500 .75rem/1.6 var(--mono); letter-spacing: .04em; color: var(--fg-3); }

/* ---------- reveal on scroll: only when JavaScript is running, so the page never hides content without it ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .chapter__text .reveal:nth-child(2).in { transition-delay: .05s; }
html.js .chapter__text .reveal:nth-child(3).in { transition-delay: .12s; }
html.js .chapter__text .reveal:nth-child(4).in { transition-delay: .19s; }
html.js .chapter__text .reveal:nth-child(5).in { transition-delay: .26s; }
html.js .chapter__text .reveal:nth-child(6).in { transition-delay: .33s; }

@media (max-width: 480px) {
  .hero__eyebrow { font-size: .68rem; letter-spacing: .09em; }
  .hero__eyebrow .sep { padding: 0 .2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name i, .name__line--grad, .hero__eyebrow, .hero__lede, .hero__cta { animation: none; }
  .marquee__track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .frame { transition: none; }
  /* the top bar, the monogram, the spotlight and the timeline dots change colour with the chapter in view: at once, not as a fade */
  .top, .monogram__b, .timeline__item::before, body::before { transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- experience ---------- */
.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; }
.xp { position: relative; z-index: 2; background: var(--ink); padding: clamp(80px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--line); }
.xp__inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 40px; }
.timeline { display: grid; gap: 0; position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 40px; display: grid; gap: 6px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--spot); box-shadow: 0 0 0 4px var(--ink), 0 0 18px var(--spot); transition: background-color .6s, box-shadow .6s;
}
.timeline__item--edu::before { background: var(--fg-3); box-shadow: 0 0 0 4px var(--ink); }
.timeline__when { font: 500 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
.timeline__org { font: 600 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.timeline__org a { text-decoration: none; }
.timeline__org a:hover { text-decoration: underline; text-underline-offset: .12em; }
.timeline__role { color: var(--fg); font-weight: 500; }
.timeline__note { color: var(--fg-2); max-width: 64ch; }
@media (min-width: 820px) {
  .timeline__item { grid-template-columns: 200px 1fr; column-gap: 32px; align-items: baseline; }
  .timeline__when { grid-row: 1 / span 3; padding-top: .35em; }
  .timeline__org, .timeline__role, .timeline__note { grid-column: 2; }
}

/* ---------- at a glance (About) ---------- */
.about__plain { color: var(--fg-2); font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; max-width: 70ch; }
.glance { display: grid; gap: 0; border-top: 1px solid var(--line); }
.glance div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.glance dt { font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.glance dd { margin: 0; color: var(--fg); }
.glance dd a { color: var(--accent-text); text-decoration: none; }
.glance dd a:hover { text-decoration: underline; text-underline-offset: .12em; }
@media (min-width: 820px) { .glance div { grid-template-columns: 180px 1fr; column-gap: 32px; } }

/* ---------- notes (/portfolio/notes/ and each note under it; scripts/lib/notes.mjs writes the markup) ---------- */
.note {
  position: relative; z-index: 1;
  min-height: 70svh;
  padding: calc(88px + 4vh) var(--gutter) clamp(72px, 12vh, 140px);
  background:
    radial-gradient(70% 420px at 85% 0%, color-mix(in oklab, #2bb3ff 14%, transparent), transparent 70%),
    radial-gradient(50% 360px at 0% 0%, color-mix(in oklab, #be00ff 10%, transparent), transparent 70%),
    var(--ink);
}
.note__inner { max-width: 46rem; margin: 0 auto; display: grid; gap: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; padding-right: 8px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.note__head { display: grid; gap: 16px; }
.note__title { font: 700 clamp(1.9rem, 5vw, 3.1rem)/1.1 var(--display); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; }
.note__byline { color: var(--fg-2); }
.note__byline a, .note__foot a { color: var(--fg); text-underline-offset: .15em; }
.prose { display: grid; gap: 20px; font-size: 1.125rem; line-height: 1.7; color: var(--fg-2); overflow-wrap: break-word; }
.prose > * { margin: 0; }
.prose h2 { margin-top: 20px; font: 600 clamp(1.3rem, 2.6vw, 1.65rem)/1.25 var(--display); letter-spacing: -.02em; color: var(--fg); text-wrap: balance; scroll-margin-top: 96px; }
.prose h3 { margin-top: 6px; font: 600 1.2rem/1.35 var(--body); color: var(--fg); scroll-margin-top: 96px; }
.prose a { color: var(--accent-text); text-underline-offset: .15em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 10px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent-text); }
.prose code { font: 500 .88em/1 var(--mono); color: var(--fg); }
.prose .note__answer { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.55; color: var(--fg); }
.quote { margin: 4px 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--accent); display: grid; gap: 10px; }
.quote blockquote { margin: 0; display: grid; gap: 10px; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; color: var(--fg); }
.quote blockquote p { margin: 0; }
.quote figcaption { font: 500 .78rem/1.5 var(--mono); letter-spacing: .03em; color: var(--fg-3); }
.quote figcaption a { color: var(--fg-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.table-wrap table { width: 100%; min-width: 19rem; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.table-wrap caption { padding: 14px 16px 4px; text-align: left; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; }
.table-wrap tr + tr th, .table-wrap tr + tr td, .table-wrap tbody tr:first-child > * { border-top: 1px solid var(--line); }
.table-wrap th { color: var(--fg); font-weight: 600; }
/* On a phone a three-column table fits the width (it scrolls inside its own region only below 19rem). */
@media (max-width: 480px) {
  .table-wrap table { font-size: .92rem; }
  .table-wrap th, .table-wrap td { padding: 10px 10px; }
  .table-wrap caption { padding: 12px 10px 2px; }
}
.note__foot { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-2); }
mark.draft { padding: 0 .25em; border-radius: 4px; background: color-mix(in oklab, var(--draft) 16%, var(--ink)); color: var(--draft); }
.draft-banner { padding: 14px 18px; border: 1px dashed var(--draft); border-radius: 12px; color: var(--draft); font-size: .95rem; }
.draft-banner strong { font-weight: 700; }

.notes-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.notes-list__item a { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.notes-list__title { margin: 0; font: 600 clamp(1.15rem, 2.3vw, 1.45rem)/1.3 var(--display); letter-spacing: -.02em; color: var(--fg); text-wrap: balance; }
.notes-list__item a:hover .notes-list__title { color: var(--accent-text); }
.notes-list__desc { color: var(--fg-2); }
.notes-list__meta { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.notes-list__item--draft .notes-list__meta { color: var(--draft); }
