/* Utkarsh Dixit portfolio
   Palette: paper, indigo ink, find-in-page yellow, flag red.
   One family (Archivo, width axis used for display), IBM Plex Mono only for usernames and keys. */

/* Self-hosted fonts (SIL Open Font License). Archivo is variable: weight 100-900, width 62-125%. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #15213b;
  --ink-2: #4c5670;
  --ink-3: #6f7890;
  --rule: #d9dde5;
  --hover: #eceff4;
  --mark: #ffdf3d;
  --mark-ink: #15213b;
  --flag: #c9343a;
  --on-flag: #ffffff;
  --ok: #1d7a4f;
  --shadow: 0 1px 0 rgba(21, 33, 59, .04), 0 18px 40px -24px rgba(21, 33, 59, .35);

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101828;
    --surface: #162036;
    --ink: #e8ecf4;
    --ink-2: #a7b0c4;
    --ink-3: #8690a8;
    --rule: #28344d;
    --hover: #1f2b45;
    --mark: #ffdf3d;
    --mark-ink: #101828;
    --flag: #ff7378;
    --on-flag: #101828;
    --ok: #52c993;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 48px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101828;
  --surface: #162036;
  --ink: #e8ecf4;
  --ink-2: #a7b0c4;
  --ink-3: #8690a8;
  --rule: #28344d;
  --hover: #1f2b45;
  --mark: #ffdf3d;
  --mark-ink: #101828;
  --flag: #ff7378;
  --on-flag: #101828;
  --ok: #52c993;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 48px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
::selection { background: var(--mark); color: var(--mark-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
kbd {
  font-family: var(--mono); font-size: .75em; line-height: 1;
  padding: .3em .45em; border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 5px; color: var(--ink-2); background: var(--surface); white-space: nowrap;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--mark); color: var(--mark-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bar.is-scrolled { border-bottom-color: var(--rule); }
.bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.mark {
  display: inline-flex; align-items: baseline; text-decoration: none;
  font-size: 1.375rem; font-weight: 820; font-variation-settings: "wdth" 125; letter-spacing: -.04em; line-height: 1;
}
.mark-d { background: var(--mark); color: var(--mark-ink); padding: 0 .12em .04em; margin-left: .04em; border-radius: 3px; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--mark); }
.bar-tools { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .bar-tools { margin-left: 12px; }
}
.find-btn, .theme-btn {
  font: inherit; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 10px; height: 38px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.find-btn { padding: 0 8px 0 10px; font-size: .875rem; }
.find-btn:hover, .theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.find-kbd { font-size: .6875rem; }
.find-label { display: none; }
@media (min-width: 420px) { .find-label { display: inline; } }
@media (hover: none) { .find-kbd { display: none; } .find-label { display: inline; } .find-btn { padding: 0 12px; } }
.theme-btn { width: 38px; justify-content: center; }
.theme-btn .i-sun { display: none; }
:root[data-resolved-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-resolved-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- shared ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1;
  height: 46px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule);
  transition: transform .15s ease, border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.btn-quiet { background: transparent; border-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: 0 2px; }
.btn-quiet:hover { border-color: transparent; text-decoration-thickness: 2px; }
.btn-small { height: 38px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .8125rem; line-height: 1; color: var(--ink-2);
  padding: 6px 9px; border: 1px solid var(--rule); border-radius: 7px; background: var(--surface);
}

.section { padding: clamp(72px, 11vw, 136px) 0 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 64ch; }
.section-head h2 {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 760; font-variation-settings: "wdth" 115; letter-spacing: -.025em;
}
.section-head p { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero-copy { container-type: inline-size; }
.hero {
  display: grid; gap: clamp(40px, 6vw, 72px);
  padding: clamp(36px, 7vw, 88px) 0 0;
  align-items: start;
}
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.name {
  font-size: clamp(3.25rem, 20.5cqi, 9rem);
  font-weight: 830; font-variation-settings: "wdth" 125;
  letter-spacing: -.045em; line-height: .84;
  margin-left: -.04em;
}
.name span { display: block; }
.lede { margin-top: clamp(24px, 3.5vw, 36px); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.now { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: .9375rem; }
.now dt { color: var(--ink-3); font-size: .8125rem; }
.now dd { margin: 2px 0 0; }
.now time { font-variant-numeric: tabular-nums; }

/* look-alike finder */
.finder {
  margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 26px);
}
@media (min-width: 980px) { .finder { margin-top: 10px; } }
.finder-head { display: grid; gap: 6px; }
.finder-title { font-size: 1.1875rem; font-weight: 700; font-variation-settings: "wdth" 108; }
.finder-note { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.finder-form { margin-top: 18px; display: grid; gap: 6px; }
.finder-form label { font-size: .8125rem; color: var(--ink-3); }
.finder-field {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--rule); border-radius: 12px; padding: 0 14px; height: 50px; background: var(--paper);
  font-family: var(--mono); font-size: 1.0625rem;
}
.finder-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 70%, transparent); }
.finder-field span { color: var(--ink-3); }
.finder-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; padding: 0; height: 100%;
}
.finder-sub { margin-top: 18px; font-size: .8125rem; color: var(--ink-3); }
.finder-list { list-style: none; margin-top: 8px; border-top: 1px solid var(--rule); min-height: 24rem; }
.finder-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.finder-list li.is-new { animation: row-in .32s ease-out both; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } }
.f-user { font-family: var(--mono); font-size: .9375rem; overflow-wrap: anywhere; }
.f-user mark { background: var(--mark); color: var(--mark-ink); border-radius: 2px; padding: 0 1px; }
.f-flags { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-2); line-height: 1.4; }
.f-risk {
  font-size: .75rem; font-weight: 650; line-height: 1; padding: 5px 9px; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
.f-risk[data-level="High"] { background: var(--flag); border-color: var(--flag); color: var(--on-flag); }
.f-risk[data-level="Medium"] { color: var(--flag); }
.f-risk[data-level="Low"] { color: var(--ink-3); }
.f-risk[data-level="Official"] { color: var(--ok); }
.finder-empty { padding: 14px 0; color: var(--ink-2); font-size: .9375rem; }

/* ---------- projects ---------- */
.projects { list-style: none; border-top: 1px solid var(--rule); }
.project { border-bottom: 1px solid var(--rule); }
.project summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 28px; gap: 6px 16px; align-items: start;
  grid-template-areas: "year title toggle" "year what toggle";
  padding: 22px 0;
}
.p-year { grid-area: year; }
.p-title { grid-area: title; }
.p-what { grid-area: what; }
.p-toggle { grid-area: toggle; }
.project summary::-webkit-details-marker { display: none; }
@media (min-width: 720px) { .project summary { grid-template-columns: 6rem minmax(0, 1fr) 28px; padding: 28px 0; } }
.p-year { font-size: .9375rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: .3em; }
.p-title { font-size: clamp(1.3125rem, 2.4vw, 1.75rem); font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -.015em; overflow-wrap: anywhere; }
.p-title span {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 42%;
  transition: background-size .35s cubic-bezier(.2, .7, .2, 1);
  padding: 0 .06em; margin: 0 -.06em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.project summary:hover .p-title span,
.project summary:focus-visible .p-title span,
.project details[open] .p-title span { background-size: 100% 42%; }
:root[data-resolved-theme="dark"] .p-title span { color: var(--ink); }
.p-what { color: var(--ink-2); max-width: 60ch; }
.p-toggle { position: relative; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%; margin-top: .25em; }
.p-toggle::before, .p-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink-2);
  transform: translate(-50%, -50%); transition: transform .25s ease;
}
.p-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .p-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.project summary:hover .p-toggle { border-color: var(--ink-3); }

.p-more { padding: 0 0 28px calc(3.5rem + 16px); display: grid; gap: 18px; max-width: calc(68ch + 6rem); }
@media (min-width: 720px) { .p-more { padding-left: calc(6rem + 16px); padding-bottom: 34px; } }
@media (max-width: 479px) { .p-more { padding-left: 0; } }
details[open] .p-more { animation: open-in .3s ease-out; }
@keyframes open-in { from { opacity: 0; transform: translateY(-4px); } }
.p-points { list-style: none; display: grid; gap: 10px; }
.p-points li { position: relative; padding-left: 20px; }
.p-points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); }
.p-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: .9375rem; }
.p-private { color: var(--ink-3); font-weight: 400; }

.archive { margin-top: clamp(44px, 6vw, 72px); }
.archive-title { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 108; margin-bottom: 14px; }
.archive table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.archive th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: .8125rem; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); }
.archive td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.archive td:first-child { color: var(--ink-3); width: 4.5rem; font-variant-numeric: tabular-nums; }
.archive td:last-child { text-align: right; padding-right: 0; font-weight: 600; }
.archive .col-stack { color: var(--ink-2); }
@media (max-width: 640px) { .archive .col-stack { display: none; } }
.archive-more { margin-top: 16px; font-weight: 600; font-size: .9375rem; }

/* ---------- experience ---------- */
.timeline { list-style: none; position: relative; }
.job { display: grid; gap: 6px 32px; padding-bottom: 44px; position: relative; }
.job:last-child { padding-bottom: 0; }
@media (min-width: 760px) {
  .job { grid-template-columns: 12rem minmax(0, 1fr); }
  .job-body { position: relative; padding-left: 32px; }
  .job-body::before { content: ""; position: absolute; left: 0; top: .55em; bottom: -44px; width: 1px; background: var(--rule); }
  .job:last-child .job-body::before { bottom: 0; }
  .job-body::after { content: ""; position: absolute; left: -5px; top: .38em; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
  .job:first-child .job-body::after { background: var(--mark); border-color: var(--ink); }
}
.job-when { color: var(--ink-3); font-size: .9375rem; padding-top: .2em; font-variant-numeric: tabular-nums; }
.job-role { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; font-variation-settings: "wdth" 108; }
.job-org { color: var(--ink-2); margin-top: 4px; }
.job-points { list-style: none; display: grid; gap: 8px; margin: 16px 0 16px; max-width: 68ch; }
.job-points li { position: relative; padding-left: 20px; }
.job-points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; } }
.portrait { width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--rule); }
@media (min-width: 760px) { .portrait { width: 240px; } }
.about-text { display: grid; gap: 18px; max-width: 62ch; font-size: 1.125rem; }
.facts { display: grid; gap: 40px; margin-top: clamp(44px, 6vw, 64px); }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; gap: 56px; } }
.fact-block h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 108; margin-bottom: 14px; }
.stack-list { margin: 0; border-top: 1px solid var(--rule); }
.stack-list div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.stack-list dt { color: var(--ink-3); }
.stack-list dd { margin: 0; }
.awards { list-style: none; border-top: 1px solid var(--rule); }
.awards li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-2); }
.awards strong { color: var(--ink); font-weight: 650; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(72px, 10vw, 120px); }
.contact h2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 830; font-variation-settings: "wdth" 125;
  letter-spacing: -.04em; line-height: .9;
}
.contact-lede { margin-top: 20px; color: var(--ink-2); max-width: 46ch; font-size: 1.125rem; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.mail-link {
  font-size: clamp(1.1875rem, 4.6vw, 2.25rem); font-weight: 650; font-variation-settings: "wdth" 106;
  letter-spacing: -.015em; overflow-wrap: anywhere;
  text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--mark);
}
.mail-link:hover { text-decoration-thickness: 4px; text-decoration-color: var(--mark); }
.elsewhere { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: .875rem; color: var(--ink-3);
}

/* ---------- find palette ---------- */
.palette {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(640px, calc(100vw - 24px)); max-width: none; max-height: none;
  margin: 12vh auto auto;
}
.palette::backdrop { background: rgba(10, 16, 30, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.palette[open] .palette-box { animation: pal-in .16s ease-out; }
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.palette-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; }
.palette-list { list-style: none; max-height: min(56vh, 420px); overflow-y: auto; padding: 8px; }
.palette-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: .9688rem;
}
.palette-list li[aria-selected="true"] { background: var(--hover); }
.palette-list li[aria-selected="true"] .pal-label mark,
.palette-list li .pal-label mark { background: var(--mark); color: var(--mark-ink); border-radius: 2px; }
.pal-kind { font-size: .75rem; color: var(--ink-3); flex: none; }
.palette-empty { padding: 18px 20px 22px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 10px; font-size: .9375rem; font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- theme switch reveal ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .bar, .finder, .palette, .toast, .actions, .p-toggle { display: none !important; }
  details > .p-more { display: grid !important; }
}

/* ---------- project write-up pages ---------- */
.case { max-width: calc(760px + 2 * var(--gutter)); padding-bottom: clamp(64px, 9vw, 112px); }
.crumbs { padding-top: clamp(28px, 5vw, 48px); font-size: .875rem; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.case-head { padding: 22px 0 32px; border-bottom: 1px solid var(--rule); }
.case-head h1 {
  font-size: clamp(2.125rem, 6vw, 3.5rem); font-weight: 800; font-variation-settings: "wdth" 115;
  letter-spacing: -.03em; line-height: 1.02;
}
.case-head .lede { margin-top: 18px; }
.case-facts { margin: 26px 0 20px; display: grid; gap: 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.case-facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.case-facts dt { color: var(--ink-3); }
.case-facts dd { margin: 0; }
.case-body { padding-top: 8px; font-size: 1.0938rem; }
.case-body h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 720; font-variation-settings: "wdth" 110; letter-spacing: -.015em; margin: 44px 0 14px; }
.case-body p { margin: 0 0 16px; max-width: 68ch; }
.case-body ul { list-style: none; display: grid; gap: 12px; margin: 0 0 16px; max-width: 68ch; }
.case-body ul li { position: relative; padding-left: 20px; }
.case-body ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); }
.case-body table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .9688rem; }
.case-body th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: .8125rem; padding: 0 14px 8px 0; border-bottom: 1px solid var(--rule); }
.case-body td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.case-body td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 520px) { .case-body td:first-child { white-space: normal; } }
.case-body code, .case-body pre { font-family: var(--mono); font-size: .875em; }
.case-body :not(pre) > code { background: var(--hover); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.case-body pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 16px; }
.case-more { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.case-more h2 { font-size: 1.375rem; font-weight: 720; font-variation-settings: "wdth" 110; margin-bottom: 14px; }
.case-more ul { list-style: none; border-top: 1px solid var(--rule); }
.case-more li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.case-more li a { font-weight: 650; }
.case-more li span { color: var(--ink-2); font-size: .9375rem; }
.case-cta { margin-top: 26px; font-size: 1.0625rem; }
.case-cta a { font-weight: 650; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; gap: 18px; padding: 64px 0; }
.lost h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 830; font-variation-settings: "wdth" 125; letter-spacing: -.04em; line-height: .95; }
.lost p { color: var(--ink-2); max-width: 46ch; font-size: 1.125rem; }
