/* Academic preset theme. Light/dark via [data-theme] on <html>.
   Professional blue accent, gray-to-white light background, IBM Plex type.
   Adapted from the Claude Design reference into reusable, accessible CSS. */

:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-text: #172033;
  --color-text-muted: #64748b;
  --color-border: #d8e1ee;
  --color-accent: #2563eb;
  --color-accent-soft: #dbeafe;
  --color-accent-contrast: #ffffff;

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 1080px;
  --max-width-narrow: 760px;
  --radius: 8px;
  --radius-sm: 6px;
  --pad-x: 32px;
}

[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-surface: #111827;
  --color-surface-muted: #1e293b;
  --color-text: #e5e7eb;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --color-accent: #60a5fa;
  --color-accent-soft: #1e3a5f;
  --color-accent-contrast: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@keyframes page-content-in { from { opacity: 0; transform: translateY(5px); } }
.has-js main { animation: page-content-in 260ms cubic-bezier(.2,.8,.2,1) both; }
.has-js main#main { transition: opacity 180ms ease, transform 230ms cubic-bezier(.2,.8,.2,1); }
.has-js main#main[data-transition-state="leaving"] { animation: none; opacity: 0; transform: translateY(-4px); }
.has-js main#main[data-transition-state="entering"] { animation: none; opacity: 0; transform: translateY(6px); transition: none; }
.navigation-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container-narrow { max-width: var(--max-width-narrow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav-link { position: relative; font-size: 14px; color: var(--color-text-muted); padding-bottom: 6px; transition: color .18s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; border-radius: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: center; transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--color-text); font-weight: 600; }
.controls { display: flex; align-items: center; gap: 14px; }

.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 50%; padding: 6px; color: var(--color-text-muted); transition: color .15s, border-color .15s, background .15s; }
.theme-toggle:hover { color: var(--color-accent); border-color: var(--color-border); background: var(--color-surface-muted); }
.theme-icon { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

.btn { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; }
.btn-primary { color: var(--color-accent-contrast); background: var(--color-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { color: var(--color-text); background: transparent; border-color: var(--color-border); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 34px; height: 34px; border: 1px solid var(--color-border); border-radius: 6px; background: none; align-items: center; justify-content: center; }
.mobile-toggle span { width: 16px; height: 1.5px; background: var(--color-text); transform-origin: center; transition: transform 180ms ease, opacity 140ms ease; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: 8px 20px 16px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav-link { display: block; padding: 10px 6px; font-size: 15px; color: var(--color-text); }
.mobile-nav-link.active { color: var(--color-accent); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-wide { padding: 56px 0; border-bottom: 1px solid var(--color-border); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 6px; }
.heading { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.page-intro { margin-bottom: 28px; color: var(--color-text-muted); }
.group-heading { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin: 26px 0 4px; }
.empty-note { color: var(--color-text-muted); font-style: italic; }

/* ---------- Hero ---------- */
.hero-section { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hero-grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 64px; padding: 56px var(--pad-x); align-items: start; }
.hero-photo { width: 190px; height: 190px; border-radius: 18px; overflow: hidden; background: var(--color-surface-muted); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback span { font-family: var(--font-mono); font-size: 44px; color: var(--color-text-muted); }
.hero-name { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 6px; }
.hero-title { font-size: 17px; font-weight: 500; margin: 0 0 3px; }
.hero-affil { font-size: 14.5px; color: var(--color-accent); font-family: var(--font-mono); margin: 0 0 16px; }
.hero-lead { font-size: 15.5px; line-height: 1.7; color: var(--color-text-muted); margin: 0 0 22px; }
.hero-info { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.hero-about { font-size: 16px; line-height: 1.75; }
.education-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.education-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.education-logo { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 7px; background: #fff; padding: 4px; }
.education-logo img { width: 100%; height: 100%; object-fit: contain; }
.education-logo-text { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--color-text-muted); }
.education-degree { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.education-school { margin: 1px 0 0; font-size: 13px; color: var(--color-text-muted); }
.education-meta { margin: 2px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); }

/* Permanent desktop homepage: identity stays in a viewport-sticky profile rail. */
@media (min-width: 1001px) {
  .home-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    max-width: 1440px;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    background: var(--color-surface);
  }
  .home-intro,
  .home-intro .hero-grid { display: contents; }
  .home-profile {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 28px 32px 40px;
    scrollbar-width: thin;
  }
  .hero-photo { width: min(100%, 220px); height: auto; aspect-ratio: 1; }
  .hero-name { font-size: 32px; }
  .hero-info {
    grid-column: 2;
    padding: 48px max(var(--pad-x), calc((100% - 900px) / 2)) 42px;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  .home-rest {
    grid-column: 2;
    border-left: 1px solid var(--color-border);
    min-width: 0;
  }
  .home-rest .container { max-width: 964px; }
  .home-rest .section-wide:last-child { border-bottom: 0; }
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-border); border-radius: 999px; padding: 7px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--color-text-muted); background: var(--color-bg); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--color-accent); color: var(--color-text); }
.chip-glyph { display: inline-flex; align-items: center; }
.chip:hover .chip-glyph { color: var(--color-accent); }

/* Inline social/brand icons render in the current text color. */
.social-svg { width: 15px; height: 15px; display: block; }
.social-fallback { font-weight: 600; font-size: 11px; }
.chip-glyph .social-svg { width: 14px; height: 14px; }
.footer-glyph .social-svg { width: 15px; height: 15px; }

/* Small monochrome-friendly icons inside tech pills. */
.pill-icon { width: 13px; height: 13px; object-fit: contain; margin-right: 6px; vertical-align: -2px; display: inline-block; }
.pill { display: inline-flex; align-items: center; }

/* ---------- Pills / tags ---------- */
.pill-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 12px; background: var(--color-bg); }

/* ---------- Links ---------- */
.link-row, .pub-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.link-btn { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-accent); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 5px 12px; background: var(--color-surface); transition: border-color .15s, background .15s; }
.link-btn:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.view-all { display: inline-block; margin-top: 22px; font-family: var(--font-mono); font-size: 13.5px; color: var(--color-accent); font-weight: 500; }
.view-all:hover { text-decoration: underline; }

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; margin-top: 8px; }
.pub-item { padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.pub-title { font-size: 16.5px; font-weight: 600; line-height: 1.5; margin: 0 0 6px; }
.pub-title a:hover { color: var(--color-accent); }
.pub-list .pub-item:first-child { padding-top: 8px; }
.pub-authors { font-size: 14.5px; color: var(--color-text-muted); margin: 0 0 8px; }
.pub-venue { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-accent); margin: 0 0 4px; }
.pub-summary { font-size: 14.5px; color: var(--color-text-muted); margin: 6px 0 0; }
.bibtex { margin: 14px 0 0; padding: 14px 16px; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--color-text-muted); overflow-x: auto; white-space: pre-wrap; }
.bibtex[hidden] { display: none; }
.bibtex-toggle { color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16 / 9; background: var(--color-surface-muted); display: flex; align-items: center; justify-content: center; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-fallback { font-family: var(--font-mono); font-size: 30px; color: var(--color-text-muted); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.card-title a:hover { color: var(--color-accent); }
.card-date { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); margin: 0 0 8px; }
.card-summary { font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); margin: 0 0 12px; flex: 1; }

/* Project card (Design B): no empty image box when there is no image; a slim
   accent bar gives the card presence instead of a blank thumbnail. */
.project-card-flat { border-top: 3px solid var(--color-accent); }
.project-card:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.10); }
.project-card .card-body { padding-top: 16px; }
.project-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.project-card-head .card-title { margin: 0; }
.project-card-head .card-date { margin: 0; white-space: nowrap; }

/* Project list (Design A): horizontal rows, no image, like the experience list. */
.project-list { margin-top: 8px; }
.project-row { padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.project-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-row-title { font-size: 16px; font-weight: 600; margin: 0; }
.project-row-title a:hover { color: var(--color-accent); }
.project-design + .project-design { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.design-note { font-size: 14px; color: var(--color-text-muted); margin: 0 0 18px; max-width: 60ch; }
.project-row-date { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.project-row-summary { font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); margin: 8px 0 0; }
.project-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.project-row-meta .pill-list, .project-row-meta .link-row { margin-top: 10px; }

/* ---------- Timeline / experience ---------- */
.timeline { margin-top: 4px; }
.exp-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.exp-logo { width: 46px; height: 46px; border-radius: 8px; background: var(--color-surface-muted); border: 1px solid var(--color-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.exp-logo:has(img) { background: #ffffff; padding: 5px; }
.exp-logo img { width: 100%; height: 100%; object-fit: contain; }
.exp-logo-text { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.exp-body { flex: 1; }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.exp-title { font-size: 15.5px; font-weight: 600; margin: 0; }
.exp-org { font-weight: 400; color: var(--color-text-muted); }
.exp-date { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.exp-summary { font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); margin: 8px 0 0; }
.exp-location { font-size: 12.5px; color: var(--color-text-muted); font-family: var(--font-mono); margin: 2px 0 0; }
.exp-detail { font-size: 14px; margin-top: 8px; }
.exp-detail ul { padding-left: 18px; margin: 4px 0; }
.exp-detail li { margin: 3px 0; }
.exp-detail strong { color: var(--color-text); }
.collapsible[hidden] { display: none; }
.see-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: transparent; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 18px; font-family: var(--font-mono); font-size: 13px; color: var(--color-text); }
.see-more:hover { border-color: var(--color-accent); }
.see-more .chevron { transition: transform .2s; }
.see-more[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-list { margin-top: 14px; border-top: 1px solid var(--color-border); }
.accordion-group { border-bottom: 1px solid var(--color-border); }
.accordion-summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 2px; cursor: pointer; transition: color 160ms ease, padding-left 180ms ease; }
.accordion-summary:hover { color: var(--color-accent); padding-left: 4px; }
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.accordion-logo { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; padding: 4px; }
.accordion-logo img { width: 100%; height: 100%; object-fit: contain; }
.accordion-logo-text { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--color-text-muted); }
.accordion-summary strong { display: block; font-size: 16px; }
.accordion-summary small { display: block; margin-top: 2px; color: var(--color-text-muted); font-size: 13px; font-weight: 400; }
.accordion-mark { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-accent); transition: background 180ms ease, border-color 180ms ease; }
.accordion-mark::before,
.accordion-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 210ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease; }
.accordion-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-group[open] .accordion-mark { background: var(--color-accent-soft); border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); }
.accordion-group[open] .accordion-mark::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.accordion-content { padding: 0 0 14px 18px; overflow: clip; }

/* ---------- Personal / markdown sections ---------- */
.personal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.personal-card { display: block; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; transition: border-color .15s, transform .15s; }
.personal-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.personal-card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.personal-card-cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-accent); }
.personal-card-text { font-size: 13.5px; line-height: 1.6; color: var(--color-text-muted); margin-top: 6px; }
.md-sections { display: flex; flex-direction: column; gap: 12px; }
.md-section { padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.md-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.md-section-title { font-size: 19px; font-weight: 600; margin: 0; }
.md-section-cat { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-accent); }
.md-section-summary { color: var(--color-text-muted); margin: 6px 0 0; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 12px 0 0; padding: 0; }
.news-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.news-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-accent); white-space: nowrap; min-width: 74px; }
.news-text { color: var(--color-text); }

/* ---------- Detail / prose ---------- */
.detail-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 8px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); margin-bottom: 18px; }
.detail-cat { color: var(--color-accent); }
.detail-image { margin: 18px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.back-link { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }
.back-link:hover { color: var(--color-accent); }

.prose { font-size: 16px; line-height: 1.75; color: var(--color-text); }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-surface-muted); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--color-accent); margin: 0 0 16px; padding: 4px 0 4px 16px; color: var(--color-text-muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }
.prose img { border-radius: var(--radius); margin: 12px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface-muted); border-top: 1px solid var(--color-border); margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.footer-name { font-family: var(--font-mono); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.footer-copy { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); }
.footer-social a:hover { color: var(--color-accent); }
.footer-glyph { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 20px; }
  .nav { display: none; }
  .controls .btn-primary { display: none; }
  .mobile-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px var(--pad-x); }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
