/* ==========================================================================
   Bento portfolio — design tokens
   --accent is injected per-request from the admin "Theme" setting.
   ========================================================================== */
:root {
  --accent: #C2410C;
  --on-accent: #FFFFFF;
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --chip: #F4F3EF;
  --text: #1C1917;
  --text-2: #44403C;
  --muted: #57534E;
  --border: #E7E5E4;
  --placeholder: #E7E5E4;
  --inverse: #1C1917;
  --inverse-text: #FAFAF9;
  --inverse-muted: #D6D3D1;
  --code-bg: #1C1917;
  --code-text: #E7E5E4;
  --accent-text: color-mix(in oklab, var(--accent) 88%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 13%, var(--card));
  --accent-ink: color-mix(in oklab, var(--accent) 70%, black);
  --focus: color-mix(in oklab, var(--accent) 60%, transparent);
  --radius: 28px;
  --radius-sm: 18px;
  --shadow-pop: 0 24px 60px rgba(28, 25, 23, .18);
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E0D0C;
  --card: #1A1918;
  --chip: #262422;
  --text: #F5F5F4;
  --text-2: #D6D3D1;
  --muted: #A8A29E;
  --border: #2E2B29;
  --placeholder: #262422;
  --inverse: #262422;
  --inverse-text: #FAFAF9;
  --inverse-muted: #A8A29E;
  --code-bg: #0B0A09;
  --accent-text: color-mix(in oklab, var(--accent) 55%, white);
  --accent-soft: color-mix(in oklab, var(--accent) 20%, var(--card));
  --accent-ink: color-mix(in oklab, var(--accent) 40%, white);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0E0D0C; --card: #1A1918; --chip: #262422; --text: #F5F5F4; --text-2: #D6D3D1; --muted: #A8A29E;
    --border: #2E2B29; --placeholder: #262422; --inverse: #262422; --inverse-muted: #A8A29E; --code-bg: #0B0A09;
    --accent-text: color-mix(in oklab, var(--accent) 55%, white);
    --accent-soft: color-mix(in oklab, var(--accent) 20%, var(--card));
    --accent-ink: color-mix(in oklab, var(--accent) 40%, white);
    color-scheme: dark;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--text); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.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: 12px; top: -60px; background: var(--card); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.accent-text { color: var(--accent-text); }
.mono { font-family: var(--font-mono); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.wrap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { padding: 24px 0 8px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: 0;
}
.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-pill { display: flex; gap: 4px; background: var(--card); border-radius: 999px; padding: 5px; font-size: 14px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a { padding: 0 18px; min-height: 40px; border-radius: 999px; color: var(--text-2); display: inline-flex; align-items: center; white-space: nowrap; transition: background-color .15s; }
.nav-pill a:hover { background: var(--chip); color: var(--text); }
.nav-pill a[aria-current="page"] { background: var(--text); color: var(--bg); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color .15s, transform .15s;
}
.icon-btn:hover { background: var(--chip); color: var(--text); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 19px; height: 19px; }
.kbd-btn { width: auto; padding: 0 12px; gap: 8px; font-size: 13px; color: var(--muted); }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--muted); }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }

/* ==========================================================================
   Bento grid + tiles
   ========================================================================== */
.bento { display: flex; flex-wrap: wrap; gap: 16px; }
.w-1 { flex: 1 1 260px; }
.w-15 { flex: 1 1 360px; }
.w-2 { flex: 2 1 540px; }
.w-3 { flex: 3 1 560px; }
.w-full { flex: 1 1 100%; }
.min-0 { min-width: 0; }

.tile {
  background: var(--card); border-radius: var(--radius); padding: 32px; min-width: 0;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tile-lg { padding: 40px; }
.tile-flex { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
a.tile { color: var(--text); display: block; }
a.tile.tile-flex { display: flex; }
.w-1.stack > .tile, .w-15.stack > .tile { flex: 1; }
a.tile:hover, .tile-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28, 25, 23, .08); color: var(--text); }
.tile-inverse { background: var(--inverse); color: var(--inverse-text); }
.tile-inverse h2, .tile-inverse h3 { color: var(--inverse-text); }
.tile-inverse .muted { color: var(--inverse-muted); }
.tile-inverse a { color: color-mix(in oklab, var(--accent) 45%, white); }
.tile-accent { background: var(--accent); color: var(--on-accent); }
.tile-accent h2, .tile-accent h3 { color: var(--on-accent); }
.tile-accent .muted { color: var(--on-accent); opacity: .85; }
.tile-media { border-radius: var(--radius); background: var(--placeholder); overflow: hidden; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.min-h-340 { min-height: 340px; }

.tile-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.eyebrow { font-size: 13px; color: var(--muted); }
.display { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.display-sm { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }

.section-head { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 40px 8px 4px; }
.section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.section-head a { font-weight: 600; font-size: 15px; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Buttons & chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: .88; }
.btn-soft { background: var(--chip); color: var(--text); }
.btn-soft:hover { color: var(--text); background: var(--border); }
.btn-light { background: #FFFFFF; color: #1C1917; }
.btn-light:hover { color: #1C1917; opacity: .9; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); opacity: .9; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--text-2); font-size: 14px; font-weight: 500; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-xs { padding: 4px 10px; font-size: 12px; font-weight: 600; }
a.chip:hover { background: var(--border); color: var(--text); }
a.chip-accent:hover { background: var(--accent-soft); color: var(--accent-ink); filter: brightness(.97); }
a.chip[aria-current="true"] { background: var(--text); color: var(--bg); }
.chip .count { font-size: 12px; opacity: .7; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.socials { display: flex; gap: 8px; }
.socials .icon-btn { background: var(--chip); }
.socials .icon-btn:hover { background: var(--border); }
.exp-list { display: flex; flex-direction: column; gap: 18px; }
.exp-item { display: flex; justify-content: space-between; gap: 12px; }
.exp-item p:first-child { font-weight: 600; }
.date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px; }
.skill-group h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }

.project-feature { padding: 16px; }
.project-feature .tile-media { min-height: 300px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); }
.project-feature .body { padding: 20px 16px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.project-feature h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }

.post-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.post-card .cover { margin: -12px -12px 8px; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; background: var(--placeholder); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.post-card p.excerpt { color: var(--muted); font-size: 15px; }
.post-card .meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Blog list & filters
   ========================================================================== */
.page-hero { padding: 40px; }
.filter-bar { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-input {
  flex: 1 1 240px; min-height: 48px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip) no-repeat 16px 50% / 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 6px; min-width: 76px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.view-toggle { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 4px; }
.view-toggle button { border: 0; background: transparent; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
.view-toggle button[aria-pressed="true"] { background: var(--card); color: var(--text); }
.posts-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.posts-grid > * { flex: 1 1 300px; }
.posts-grid.is-list > * { flex-basis: 100%; }
.posts-grid.is-list .post-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 22px 28px; }
.posts-grid.is-list .post-card .cover, .posts-grid.is-list .post-card p.excerpt { display: none; }
.posts-grid.is-list .post-card h3 { flex: 1 1 360px; font-size: 18px; }
.posts-grid.is-list .post-card .meta { margin: 0; padding: 0; }
.pager { display: flex; justify-content: center; gap: 8px; padding-top: 24px; flex: 1 1 100%; }
.empty { text-align: center; padding: 56px 24px; }

/* ==========================================================================
   Article
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.post-hero { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.post-hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.author-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--placeholder); object-fit: cover; flex: 0 0 auto; }
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.back-link:hover { color: var(--text); }

.article-aside { flex: 1 1 240px; align-self: flex-start; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.article-aside .tile { padding: 24px; border-radius: 24px; }
.aside-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); }
.toc a:hover { background: var(--chip); color: var(--text); }
.toc a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.toc a.lvl-3 { padding-left: 24px; font-size: 13px; }
.toc-mobile { display: none; }
.toc-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 20px; cursor: pointer; font-weight: 600; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary svg { transform: rotate(180deg); }
.toc-mobile .toc { padding: 0 12px 14px; }

.article { flex: 999 1 600px; padding: 48px clamp(22px, 5vw, 72px); }
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 30px; line-height: 1.2; margin-top: 52px; font-weight: 700; position: relative; }
.prose h3 { font-size: 22px; line-height: 1.3; margin-top: 36px; font-weight: 600; position: relative; }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose .anchor { position: absolute; left: -1em; width: 1em; color: var(--muted); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border-radius: 20px; background: var(--accent-soft); color: var(--text); font-size: 17px; }
.prose blockquote p + p { margin-top: 10px; }
.prose img { border-radius: 20px; margin-left: auto; margin-right: auto; height: auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose :not(pre) > code { font-family: var(--font-mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--text); }

.code-block { border-radius: 18px; background: var(--code-bg); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; border-bottom: 1px solid #3A3532; font-family: var(--font-mono); font-size: 12px; color: #D6D3D1; }
.copy-btn { min-height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid #44403C; background: transparent; color: #E7E5E4; cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
.copy-btn:hover { background: #292524; }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; color: var(--code-text); }
.hljs-keyword, .hljs-built_in, .hljs-selector-tag, .hljs-type { color: #FDBA74; }
.hljs-string, .hljs-attr, .hljs-template-string { color: #86EFAC; }
.hljs-number, .hljs-literal { color: #93C5FD; }
.hljs-comment, .hljs-quote { color: #A8A29E; font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #F9A8D4; }
.hljs-variable, .hljs-params, .hljs-property { color: #E7E5E4; }
.hljs-meta, .hljs-tag, .hljs-name { color: #C4B5FD; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input { flex: 1 1 180px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: #FFFFFF; color: #1C1917; }

/* ==========================================================================
   Projects & case studies
   ========================================================================== */
.project-card { display: flex; flex-direction: column; padding: 16px; }
.project-card .tile-media { min-height: 200px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); }
.project-card .body { padding: 18px 12px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card h3 { font-size: 21px; font-weight: 600; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.case-meta dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-section h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 14px; }
.case-num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-family: var(--font-mono); flex: 0 0 auto; }
.case-section .prose { margin: 0; max-width: none; font-size: 17px; }

/* ==========================================================================
   Now & learning log
   ========================================================================== */
.til-list { display: flex; flex-direction: column; }
.til-item { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.til-item:last-child { border-bottom: 0; }
.til-item .date { flex: 0 0 110px; padding-top: 3px; }
.til-item .body { flex: 1 1 400px; min-width: 0; }
.til-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.til-item .prose { margin: 0; font-size: 16px; max-width: none; }

/* ==========================================================================
   Résumé
   ========================================================================== */
.resume { max-width: 880px; margin: 0 auto; padding: 48px clamp(22px, 5vw, 56px); }
.resume header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 2px solid var(--text); }
.resume h1 { font-size: 38px; }
.resume h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); margin: 32px 0 14px; font-family: var(--font-body); font-weight: 700; }
.resume .contact-lines { font-size: 14px; color: var(--muted); text-align: right; }
.resume .job { margin-bottom: 20px; break-inside: avoid; }
.resume .job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.resume .job-head h3 { font-size: 17px; font-family: var(--font-body); font-weight: 700; }
.resume ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.resume li + li { margin-top: 4px; }
.resume .skills-line { margin-bottom: 6px; }

/* ==========================================================================
   Command palette (⌘K)
   ========================================================================== */
.cmdk { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; max-height: 72vh; color: var(--text); }
.cmdk::backdrop { background: rgba(12, 10, 9, .45); backdrop-filter: blur(4px); }
.cmdk-panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; border: 1px solid var(--border); }
.cmdk-input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 20px 22px; font-size: 17px; background: transparent; outline: none; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow-y: auto; }
.cmdk-list li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); }
.cmdk-list li a[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.cmdk-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 64px; }
.cmdk-title { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 48px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .site-header { padding-top: 12px; }
  .site-header .wrap { gap: 12px; }
  .header-right { display: contents; }
  .brand { margin-right: auto; }
  .nav-pill { order: 3; flex: 1 1 100%; justify-content: space-between; }
  .nav-pill a { padding: 0 12px; }
  .kbd-btn .kbd { display: none; }
  .bento { gap: 12px; }
  .tile { padding: 24px; border-radius: 24px; }
  .tile-lg, .page-hero { padding: 28px 24px; }
  .section-head { padding: 28px 4px 0; }
  .section-head h2 { font-size: 28px; }
  .article-aside { display: none; }
  .toc-mobile { display: block; padding: 0; flex: 1 1 100%; }
  .article { padding: 28px 22px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }
  .min-h-340 { min-height: 0; }
  .tile-media.min-h-340 { min-height: 320px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .resume .contact-lines { text-align: left; }
  .filter-label { min-width: 0; width: 100%; }
}

/* ==========================================================================
   Print (résumé → PDF)
   ========================================================================== */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --card: #fff; --text: #111; --text-2: #222; --muted: #444; --border: #ddd; --accent-text: #111; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .reading-progress, .cmdk { display: none !important; }
  .resume { padding: 0; max-width: none; }
  .tile { padding: 0; box-shadow: none; }
  a { color: inherit; }
  @page { margin: 14mm 14mm; }
}
