/* jaime.build site styles.
   The first half is the home page (round 3 tokens; layout reworked 2026-10-14): cool
   blue-black, serif headings, sans body, one accent (lake cyan), pill buttons, real images,
   and a small hand-drawn wave under inner-page section headings.
   The second half extends the same system to the inner pages. */

/* Self-hosted fonts, Latin subsets. Licenses: docs/fonts/OFL-*.txt (SIL OFL 1.1). */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/albert-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Besley';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/besley-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root, [data-theme="dark"] {
  color-scheme: dark;
  --ground: oklch(16.5% 0.022 252);
  --card: oklch(20.5% 0.025 252);
  --card-2: oklch(23.5% 0.028 250);
  --line: oklch(30% 0.028 250);
  --text: oklch(95% 0.008 250);
  --text-2: oklch(76% 0.022 250);
  --accent: oklch(80% 0.115 205);
  --accent-ink: oklch(18% 0.03 230);
  --accent-soft: oklch(30% 0.06 215);
  --lab-text-2: oklch(87% 0.045 205);
  --shadow: 0 20px 40px -24px oklch(0% 0 0 / 0.75), 0 2px 6px oklch(0% 0 0 / 0.25);
}
[data-theme="light"] {
  color-scheme: light;
  --ground: oklch(97.5% 0.005 245);
  --card: oklch(100% 0 0);
  --card-2: oklch(95.5% 0.008 245);
  --line: oklch(88% 0.012 245);
  --text: oklch(21% 0.03 250);
  --text-2: oklch(43% 0.028 250);
  --accent: oklch(52% 0.12 215);
  --accent-ink: oklch(99% 0 0);
  --accent-soft: oklch(93% 0.035 210);
  --lab-text-2: oklch(34% 0.06 215);
  --shadow: 0 18px 36px -22px oklch(25% 0.04 250 / 0.35), 0 1px 4px oklch(25% 0.04 250 / 0.08);
}
html { scrollbar-color: var(--line) var(--ground); }
body { background: var(--ground); color: var(--text); font-family: 'Albert Sans', system-ui, sans-serif; font-size: 15.5px; line-height: 1.6; caret-color: var(--accent); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Besley', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }

.shell { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--ground), transparent 8%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: 'Besley', serif; font-weight: 600; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--card); }
.toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
.toggle:hover { color: var(--text); }
.toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 20px; line-height: 1.3; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: transform .3s cubic-bezier(.16,1,.3,1), background .2s; }
.btn-fill { background: var(--accent); color: var(--accent-ink); }
.btn-fill:hover { transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn-line:hover { border-color: var(--accent); }
.btn svg { width: 14px; height: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero: the claim on the left, the place and what's new on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: center; padding: 56px 0; }
.hero h1 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.1; margin-bottom: 14px; }
.hero .intro { color: var(--text-2); font-size: 16.5px; max-width: 56ch; margin-bottom: 22px; }
.hero .intro strong { color: var(--text); font-weight: 600; }
.place { border-left: 1px solid var(--line); padding-left: 32px; }
.lake { display: block; width: 100%; max-width: 220px; height: auto; color: var(--accent); margin-bottom: 10px; }
.place-cap { font-family: 'Besley', serif; font-size: 15.5px; line-height: 1.4; margin-bottom: 16px; }
.place-cap span { display: block; color: var(--text-2); font-family: 'Albert Sans', sans-serif; font-size: 14.5px; margin-top: 2px; }
.lately { list-style: none; border-top: 1px solid var(--line); }
.lately li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.lately a { font-weight: 600; text-decoration: none; }
.lately a:hover { text-decoration: underline; }

/* Plain text links beside a button */
.tlink { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; text-decoration: none; }
.tlink:hover { text-decoration: underline; }
.tlink svg { width: 13px; height: 13px; }

/* Section heads with the wave */
.sec { padding: 24px 0 72px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-size: 26px; line-height: 1.15; }
.wave { display: block; width: 46px; height: 10px; margin-top: 8px; color: var(--accent); }
.sec-head a { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }
/* Home page section heads: larger, link beside the heading, no wave */
.home .sec { padding: 40px 0 96px; }
.home .sec-head { justify-content: flex-start; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 40px; }
.home .sec-head h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.1; }
.home .sec-head a { font-size: 15px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }

/* Featured projects: wide rows that alternate sides, the screenshot does the selling */
.feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.feat + .feat { margin-top: 88px; }
.feat.flip { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.feat.flip .feat-img { order: 2; }
.feat-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--card-2); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feat h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.feat p { color: var(--text-2); font-size: 16.5px; max-width: 52ch; }
.facts { margin: 22px 0 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; font-size: 14.5px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.facts dt { color: var(--text-2); }
.feat .btns, .lab .btns { gap: 12px 18px; align-items: center; }
.lab .btns { gap: 12px 14px; }

/* Homelab panel */
.lab { background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent), var(--line) 70%); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.lab p { color: var(--lab-text-2); }
.lab p + p { margin-top: 12px; }
.lab .lead { color: var(--text); font-size: 17px; line-height: 1.5; margin-bottom: 16px; }
.hw { margin: 22px 0 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; font-size: 14px; border-top: 1px solid color-mix(in oklab, var(--accent), var(--line) 70%); }
.hw dt, .hw dd { padding: 8px 0; border-bottom: 1px solid color-mix(in oklab, var(--accent), var(--line) 70%); }
.hw dt { font-weight: 600; }
.hw dd { color: var(--lab-text-2); }
.lab .diagram-cap { color: var(--lab-text-2); }
.diagram { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0f141c; }
.diagram-cap { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
/* Diagrams ship a dark and a light file; show the one that matches the theme. */
[data-theme="light"] .theme-dark, :root:not([data-theme="light"]) .theme-light { display: none; }
[data-theme="light"] .diagram, [data-theme="light"] .prow .thumb { background: #f7f9fc; }

/* More projects: a real image above each one */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mini { color: inherit; text-decoration: none; display: block; }
.mini .thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--card-2); margin-bottom: 18px; transition: border-color .2s; }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mini .thumb.diagram { box-shadow: none; }
.mini .thumb.diagram img { object-fit: contain; padding: 12px; }
.mini:hover .thumb { border-color: var(--accent); }
.mini h3 { font-size: 21px; line-height: 1.2; margin-bottom: 6px; }
.mini:hover h3 { color: var(--accent); }
.mini p { color: var(--text-2); max-width: 52ch; }
.mini .stack { margin-top: 8px; font-size: 14px; color: var(--accent); }

/* About: one statement, then where to read more */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; border-top: 1px solid var(--line); padding-top: 48px; }
.about .lead { font-family: 'Besley', serif; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; font-weight: 500; }
.about p { color: var(--text-2); }
.about .btns { margin-top: 22px; gap: 12px 20px; align-items: center; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { border-top: 1px solid var(--line); margin-top: 24px; }
footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0 36px; color: var(--text-2); font-size: 14px; }
.foot-links { display: flex; gap: 18px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--accent); text-decoration: underline; }

/* ------------------------------------------------------------------
   Inner pages: the same tokens and devices, extended.
   ------------------------------------------------------------------ */
html { scroll-padding-top: 80px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.btn-line svg { color: var(--accent); }

/* Page heads on inner pages share the home hero's scale */
.page-head { padding: 64px 0 48px; max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 3.7vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.page-head p { color: var(--text-2); font-size: 17px; max-width: 60ch; }
.page-head p + p { margin-top: 12px; }
.page-head .btns { margin-top: 26px; }

/* Write-up hero: intro beside a short facts panel */
.wu-hero { padding: 64px 0 56px; display: grid; grid-template-columns: minmax(0, 680px) minmax(240px, 1fr); gap: 64px; align-items: start; }
.wu-hero h1 { font-size: clamp(30px, 3.7vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.wu-hero .lead { color: var(--text); font-size: 20px; line-height: 1.5; max-width: 52ch; }

/* Write-up body: the article column beside a sticky section list, under the facts panel */
.wu-body { display: grid; grid-template-columns: minmax(0, 680px) minmax(240px, 1fr); gap: 64px; align-items: start; }
.wu-main .prose { max-width: none; }
.prose.split { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px 56px; }
.prose.split p + p { margin-top: 0; }
.wu-main .prose p, .wu-main .prose li { font-size: 19px; line-height: 1.65; }
.toc { position: sticky; top: 92px; padding-top: 24px; }
.toc h2 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }
.wu-hero .sub { color: var(--text-2); margin-top: 10px; max-width: 56ch; }
.wu-hero .stack { color: var(--accent); font-size: 14.5px; margin-top: 12px; }
.wu-hero .btns { margin-top: 24px; }
.stats { padding: 6px 22px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.stats div:last-child { border-bottom: 0; }
.stats dt { color: var(--text-2); }
.stats dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Long-form text */
.prose { max-width: 640px; }
.prose p, .prose li { color: var(--text-2); font-size: 17.5px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose pre + p, .prose figure + p, .prose .fig-pair + p { margin-top: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { font-size: 19px; line-height: 1.25; margin: 36px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.stack-item + .stack-item { margin-top: 16px; }
code, pre { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, Menlo, monospace; }
code { font-size: 0.92em; background: var(--card-2); color: var(--text); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
pre { margin: 18px 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.65; color: var(--text); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* Figures inside write-ups */
.prose figure, .fig-pair { margin: 26px 0; }
.prose figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.fig-pair { display: grid; grid-template-columns: 1fr; gap: 26px; }
.fig-pair figure { margin: 0; }

/* Inline SVG pipeline diagrams, drawn with the theme tokens */
.pipeline-diagram { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.pipeline-diagram svg { display: block; width: 100%; height: auto; }
.pipeline-stage { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }
.pipeline-stage-label { font-family: 'Albert Sans', sans-serif; font-size: 12.5px; font-weight: 500; fill: var(--text-2); }
.pipeline-node { fill: var(--card-2); stroke: var(--line); stroke-width: 1; }
.pipeline-node-title { font-family: 'Albert Sans', sans-serif; font-size: 13.5px; font-weight: 600; fill: var(--text); }
.pipeline-node-sub { font-family: 'Albert Sans', sans-serif; font-size: 12.5px; fill: var(--text-2); }
.pipeline-arrow { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.pipeline-diagram figcaption { text-align: center; }

/* Wide diagrams (homelab page) */
.wide-fig .diagram img { width: 100%; height: auto; }
.pan-hint { display: none; margin-top: 8px; font-size: 13.5px; color: var(--text-2); }

/* Label and value rows inside a card: hardware, skills, certifications */
.rows { padding: 4px 24px; }
.rows > div { display: grid; grid-template-columns: minmax(150px, 0.38fr) 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-weight: 600; }
.rows dd { color: var(--text-2); max-width: 64ch; }
.rows .when { font-variant-numeric: tabular-nums; }

/* Services table */
.svc { padding: 0; }
.svc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.svc th, .svc td { text-align: left; padding: 11px 24px; vertical-align: top; }
.svc thead th { font-weight: 600; color: var(--text-2); background: var(--card-2); border-bottom: 1px solid var(--line); }
.svc .cat th { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); background: var(--card-2); padding-top: 10px; padding-bottom: 10px; }
.svc tbody + tbody .cat th { border-top: 1px solid var(--line); }
.svc td { border-top: 1px solid color-mix(in oklab, var(--line), transparent 45%); }
.svc .cat + tr td { border-top: 0; }
.svc td:first-child { font-weight: 500; width: 38%; }
.svc td:last-child { color: var(--text-2); }

/* Projects index: one row per project, image beside the text */
.plist { display: grid; gap: 18px; }
.prow { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding: 18px; align-items: center; color: inherit; text-decoration: none; transition: border-color .2s, transform .4s cubic-bezier(.16,1,.3,1); }
.prow:hover { border-color: color-mix(in oklab, var(--accent), var(--line) 50%); transform: translateY(-2px); }
.prow .thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f141c; }
.prow .thumb img, .prow .thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.prow h2 { font-size: 20.5px; line-height: 1.2; margin-bottom: 8px; }
.prow p { color: var(--text-2); max-width: 62ch; }
.prow .stack { margin-top: 12px; font-size: 14px; color: var(--accent); }
.prow .more { margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.prow { position: relative; }
.prow-link { color: inherit; text-decoration: none; }
.prow-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.prow-link:focus-visible { outline: none; }
.prow:has(.prow-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.prow .live { position: relative; z-index: 1; margin-top: 10px; font-weight: 600; font-size: 14.5px; }
.prow .live a { display: inline-flex; align-items: center; gap: 5px; }
.prow .live svg { width: 14px; height: 14px; }

/* About page */
.me { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: start; padding: 64px 0 56px; }
.me .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.me h1 { font-size: clamp(30px, 3.7vw, 40px); line-height: 1.1; margin-bottom: 10px; }
.me .sub { color: var(--text-2); margin-bottom: 24px; }
.me .prose { max-width: none; columns: 2 300px; column-gap: 56px; }
.me .prose p { break-inside: avoid; }
.me .btns { margin-top: 26px; }
.hobbies { columns: 2 300px; column-gap: 20px; }
.hobby { break-inside: avoid; margin-bottom: 20px; padding: 24px 26px; }
.hobby h3 { font-size: 19px; line-height: 1.25; margin-bottom: 12px; }
.hobby p { color: var(--text-2); }
.hobby p + p { margin-top: 12px; }
.hobby strong { color: var(--text); font-weight: 600; }
.gitcg { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.gitcg-open { display: block; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.gitcg-open:hover { transform: scale(1.03); }
.gitcg-open img { width: 100%; }
.lightbox { margin: auto; padding: 0; border: 0; background: none; max-width: min(92vw, 480px); overflow: visible; }
.lightbox::backdrop { background: oklch(12% 0.02 252 / 0.86); }
.lightbox img { max-height: 84vh; width: auto; border-radius: 16px; box-shadow: var(--shadow); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* Closing buttons at the end of a write-up */
.end { padding: 8px 0 56px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 900px) {
  .hero, .feat, .feat.flip, .lab, .about, .minis { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 48px; gap: 28px; }
  .place { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .feat { gap: 24px; }
  .feat.flip .feat-img { order: 0; }
  .feat + .feat { margin-top: 64px; }
  .about { gap: 20px; }
  .wu-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .wu-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .wu-hero .lead { font-size: 18px; }
  .wu-main .prose p, .wu-main .prose li { font-size: 17.5px; }
  .page-head, .me { padding-top: 40px; }
  .prow { grid-template-columns: 200px 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .wide-fig .scroller { overflow-x: auto; }
  .wide-fig .diagram img { min-width: 680px; }
  .pan-hint { display: block; }
  .fig-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .toggle { margin-left: 2px; }
  .lab { padding: 22px; }
  .facts, .hw { grid-template-columns: 1fr; }
  .facts dt, .hw dt { padding-bottom: 0; border-bottom: 0; }
  .rows { padding: 4px 18px; }
  .rows > div { grid-template-columns: 1fr; gap: 2px; }
  .svc th, .svc td { padding-left: 16px; padding-right: 16px; }
  .svc td:first-child { width: 42%; }
  .prow { grid-template-columns: 92px 1fr; gap: 16px; padding: 16px; align-items: start; }
  .prow .thumb { aspect-ratio: auto; height: 72px; border-radius: 10px; }
  .prow h2 { font-size: 17px; }
  .prow p { font-size: 14.5px; }
  .me { grid-template-columns: 1fr; gap: 20px; }
  .me .avatar { width: 88px; height: 88px; }
  .hobby { padding: 20px; }
  .gitcg { grid-template-columns: 96px 1fr; }
  .pipeline-diagram { padding: 10px; overflow-x: auto; }
  .pipeline-diagram svg { min-width: 560px; }
}
