/* ==========================================================================
   Abinav Ramesh — portfolio
   Palette "Saffron & Ink": cool ink neutrals with one saffron accent.
   Light tokens live on :root; dark tokens apply via the OS setting
   (unless the visitor picked light) or via the explicit toggle.
   ========================================================================== */

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ec;
  --surface: #ffffff;
  --ink: #1a1d24;
  --ink-soft: #3a3f4a;
  --muted: #5b6170;
  --line: #e4e2dc;
  --line-strong: #cfccc4;
  --accent: #f2a516;
  --on-accent: #1a1d24;
  --link: #9a5800;
  --accent-soft: #fdf1d8;
  --accent-ink: #7a4500;
  --code-bg: #f3f1eb;
  --header-bg: rgba(250, 250, 248, 0.86);
  --shadow: 0 1px 2px rgba(26, 29, 36, 0.04), 0 8px 24px -12px rgba(26, 29, 36, 0.18);
  --tile-bg: #ffffff;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 6px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12141a;
    --bg-alt: #171a21;
    --surface: #1b1e26;
    --ink: #eceae4;
    --ink-soft: #c8cad0;
    --muted: #9aa0ac;
    --line: #2a2e38;
    --line-strong: #3a3f4b;
    --accent: #f5b83d;
    --on-accent: #12141a;
    --link: #f5b83d;
    --accent-soft: #2e2818;
    --accent-ink: #f5c868;
    --code-bg: #20242d;
    --header-bg: rgba(18, 20, 26, 0.82);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --tile-bg: #f4f3ef;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141a;
  --bg-alt: #171a21;
  --surface: #1b1e26;
  --ink: #eceae4;
  --ink-soft: #c8cad0;
  --muted: #9aa0ac;
  --line: #2a2e38;
  --line-strong: #3a3f4b;
  --accent: #f5b83d;
  --on-accent: #12141a;
  --link: #f5b83d;
  --accent-soft: #2e2818;
  --accent-ink: #f5c868;
  --code-bg: #20242d;
  --header-bg: rgba(18, 20, 26, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --tile-bg: #f4f3ef;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--accent); color: var(--on-accent); }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--link); }

/* ---------- Buttons & tags ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn i { font-size: 0.9em; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tags li.tags__more,
.tags--quiet li { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand__dot { color: var(--accent); }

.site-nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.site-nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__links a:hover { color: var(--ink); background: var(--bg-alt); }

.nav-toggle, .theme-toggle {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { order: 3; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { padding: 12px 8px; font-size: 17px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 96px) 0; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero__text { display: grid; gap: 20px; justify-items: start; }
.hero__name {
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__pitch {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__text .actions { margin-top: 8px; }

.hero__portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(14px, 14px);
}
.hero__portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.metrics {
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.metric {
  padding: 24px 24px 28px 0;
  display: grid; gap: 6px; align-content: start;
}
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__label { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 28ch; }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; justify-self: start; width: 168px; }
  .hero__portrait::before { transform: translate(8px, 8px); }
  .metrics { grid-auto-flow: row; grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 18px 0; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .hero__portrait {
    animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__text > :nth-child(2) { animation-delay: .05s; }
  .hero__text > :nth-child(3) { animation-delay: .1s; }
  .hero__text > :nth-child(4) { animation-delay: .15s; }
  .hero__portrait { animation-delay: .1s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 70ch; }
.section__head h2 { font-size: clamp(30px, 4vw, 42px); }
.section__head--sub { margin-top: clamp(56px, 7vw, 88px); }
.section__head--sub h2 { font-size: clamp(24px, 3vw, 30px); }
.section__intro { color: var(--ink-soft); font-size: 17px; }

/* ---------- Project cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:focus-within { border-color: var(--accent); }
.card__media { aspect-ratio: 16 / 10; background: #1b1e26; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 21px; }
.card__summary { color: var(--muted); font-size: 15px; }
.card .tags { margin-top: auto; padding-top: 6px; }

/* the title link covers the whole card */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card__link:hover { text-decoration: none; }

.card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.card--lead .card__media { aspect-ratio: auto; min-height: 100%; }
.card--lead .card__body { padding: clamp(24px, 3.5vw, 40px); justify-content: center; gap: 14px; }
.card--lead .card__title { font-size: clamp(26px, 3vw, 34px); }
.card--lead .card__summary { font-size: 17px; color: var(--ink-soft); }
.card--lead .tags { margin-top: 6px; }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* side-by-side would crop the lead image at this width, so stack it */
  .card--lead { grid-template-columns: 1fr; }
  .card--lead .card__media { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover, .badge__arrow, .badge:hover .badge__arrow { transition: none; transform: none; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.mini-card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.mini-card__title { font-size: 18px; }
.mini-card__summary { color: var(--muted); font-size: 14.5px; }
.mini-card .tags { margin-top: auto; padding-top: 4px; }
.mini-card:hover .mini-card__title { color: var(--link); }
.mini-card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- Experience timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 160px 24px minmax(0, 1fr);
  gap: 0 20px;
}
.timeline__date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.timeline__marker { position: relative; }
.timeline__marker::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.timeline__item:first-child .timeline__marker::before { top: 20px; }
.timeline__item:last-child .timeline__marker::before { bottom: auto; height: 20px; }
.timeline__marker::after {
  content: "";
  position: absolute; left: 50%; top: 14px;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--line-strong);
}
.timeline__item:first-child .timeline__marker::after { background: var(--accent); border-color: var(--accent); }
.timeline__body { padding-bottom: 40px; max-width: 70ch; }
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.timeline__head h3 { font-size: 20px; }
.timeline__role { color: var(--link); font-weight: 600; font-size: 15px; }
.timeline__desc { color: var(--ink-soft); }
.timeline__desc p + p { margin-top: 8px; }

.logo-tile {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--tile-bg);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}
.logo-tile--lg { width: 72px; height: 72px; padding: 6px; border-radius: 14px; }

@media (max-width: 680px) {
  .timeline__item { grid-template-columns: 16px minmax(0, 1fr); gap: 0 14px; }
  .timeline__date { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; margin-bottom: 8px; }
  .timeline__marker { grid-column: 1; grid-row: 1 / span 2; }
  .timeline__marker::after { top: 4px; }
  .timeline__item:first-child .timeline__marker::before { top: 8px; }
  .timeline__body { grid-column: 2; }
}

/* ---------- Skills ---------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.skill-group { display: grid; gap: 12px; align-content: start; }
.skill-group h3 { font-size: 17px; letter-spacing: -0.005em; }
@media (max-width: 900px) { .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skill-grid { grid-template-columns: 1fr; } }

/* ---------- Certifications ---------- */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.badge {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease;
}
.badge:hover { border-color: var(--line-strong); }
.badge__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.badge__name { font-weight: 600; font-size: 16px; }
.badge__role { color: var(--muted); font-size: 14px; }
.badge__arrow { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.badge:hover .badge__arrow { color: var(--link); transform: translateX(3px); }
@media (max-width: 680px) { .badge-grid { grid-template-columns: 1fr; } }

.subhead { font-size: 20px; margin: 48px 0 8px; }
.course-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.course-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.course-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.course-list a:hover { color: var(--link); text-decoration: underline; }
.course-list span { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .course-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact { padding-block: clamp(64px, 9vw, 104px); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px 56px;
  align-items: end;
}
.contact h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 10px 0 14px; }
.contact__text { color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
.contact .actions { flex-direction: column; align-items: stretch; }
@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact .actions { flex-direction: row; align-items: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-footer__copy { margin-right: auto; }
.site-footer__legal { color: var(--muted); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  text-decoration: none;
}
.social a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- Project page ---------- */

.project { padding-block: 32px clamp(64px, 8vw, 96px); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.back-link:hover { color: var(--ink); }

.project__header { display: grid; gap: 16px; justify-items: start; margin: 32px 0 40px; max-width: 820px; }
.project__header h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -0.03em; line-height: 1.02; }
.project__lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 58ch; }
.project__header .actions { margin-top: 6px; }

.project__figure {
  max-width: 880px;
  margin: 0 0 clamp(40px, 6vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1b1e26;
}
.project__figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }

.project__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
}
.project__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid; gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.aside-block { display: grid; gap: 10px; }
.aside-block__title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-block p { font-size: 15px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .project__layout { grid-template-columns: 1fr; gap: 40px; }
  .project__aside { position: static; }
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pager__link {
  display: grid; gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s ease;
}
.pager__link:hover { border-color: var(--accent); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pager__title { font-family: var(--display); font-weight: 700; font-size: 18px; }
@media (max-width: 600px) {
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: auto; }
}

/* ---------- Long-form text (project pages, privacy page) ---------- */

.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.72; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: 28px;
  color: var(--ink);
  margin-top: 2em;
  padding-top: 0.2em;
}
.prose h3 { font-size: 20px; color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose ol > li::marker { font-family: var(--mono); font-size: 0.85em; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}
.prose img { border-radius: var(--radius-sm); }
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}
.prose th, .prose td {
  text-align: left;
  padding: 9px 16px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}
.prose td { font-variant-numeric: tabular-nums; }

.page { padding-block: clamp(48px, 7vw, 88px); }
.page__header { margin-bottom: 32px; }
.page__header h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
