/* ================================================================
   Maregu Assefa — personal site
   Palette: warm paper + muted ink blue. Edit the variables below.
   ================================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --text: #1e232b;
  --text-2: #4a5260;
  --muted: #6b7280;
  --border: #e6e2da;
  --accent: #2f5d8a;          /* ink blue */
  --accent-strong: #234a70;
  --accent-soft: #e9eff6;
  --warm: #a6542b;            /* terracotta, used sparingly */
  --warm-soft: #f7ece5;
  --shadow: 0 1px 2px rgba(30, 35, 43, .04), 0 4px 16px rgba(30, 35, 43, .05);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --header-h: 64px;
  --maxw: 1140px;
  --sidebar-w: 260px;
}

[data-theme="dark"] {
  --bg: #13161b;
  --surface: #1a1e25;
  --surface-2: #20252d;
  --text: #e7e9ec;
  --text-2: #c2c7cf;
  --muted: #9aa2ad;
  --border: #2b313a;
  --accent: #8db3dc;
  --accent-strong: #a9c7e7;
  --accent-soft: #1f2a37;
  --warm: #e0a07c;
  --warm-soft: #2e231d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 16px rgba(0, 0, 0, .2);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; color: var(--text); letter-spacing: -.005em; }
strong { font-weight: 600; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.brand { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: var(--text); letter-spacing: .005em; }
.brand:hover { color: var(--accent); text-decoration: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text-2); font-size: .94rem; font-weight: 500; padding: 7px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--accent); background: var(--accent-soft); }
.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: 1.05rem; transition: color .15s, border-color .15s;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: inline; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: inline; }
.nav-open .nav-toggle .when-closed { display: none; }

/* ---------- two-column layout ---------- */
.layout {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 56px;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 56px;
}

/* ---------- sidebar (sticky profile) ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.avatar {
  display: block; width: 168px; height: 168px; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.profile-name { font-size: 1.55rem; margin: 18px 0 2px; }
.pronouns { font-family: var(--font-sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
.profile-title { margin: 0 0 14px; color: var(--text-2); font-size: .98rem; }
.profile-meta, .profile-links { list-style: none; margin: 0; padding: 0; }
.profile-meta li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .93rem; margin: 6px 0; }
.profile-meta li a { color: var(--text-2); word-break: break-all; }
.profile-meta li a:hover { color: var(--accent); }
.profile-meta .icon { color: var(--muted); }
.profile-links { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-links li a {
  display: flex; align-items: center; gap: 10px; padding: 5px 8px; margin: 0 -8px;
  border-radius: 8px; color: var(--text-2); font-size: .93rem; transition: background .15s, color .15s;
}
.profile-links li a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.profile-links .icon { width: 1.05em; height: 1.05em; color: var(--muted); transition: color .15s; }
.profile-links li a:hover .icon { color: var(--accent); }
.sidebar-cv { margin-top: 18px; }

/* ---------- content ---------- */
.content { min-width: 0; }
.section { margin: 0 0 48px; }
.section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title {
  font-size: 1.4rem; margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border); position: relative;
}
.section-head .section-title { margin: 0; padding: 0; border: 0; }
.section-head .section-title::after { display: none; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title.with-icon { display: flex; align-items: center; gap: 10px; }
.section-title.with-icon .icon { color: var(--accent); font-size: .9em; }
.more { font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.more .icon { transition: transform .15s; }
.more:hover .icon { transform: translateX(2px); }
.page-header { margin-bottom: 28px; }
.page-title { font-size: 2.1rem; margin: 0; }
.page-subtitle, .page-intro { color: var(--text-2); margin: 6px 0 24px; }
.prose { color: var(--text); }
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose .pub p, .prose .news-item p, .prose .event p, .prose .card p, .prose .timeline p, .prose .repo-list p { margin-bottom: 0; }

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
[data-theme="dark"] .tags li { color: var(--accent); }
.tags.small { margin-top: 10px; }
.tags.small li { font-size: .76rem; padding: 2px 9px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: .93rem; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-strong); color: #fff; text-decoration: none; }
[data-theme="dark"] .btn { color: #10161d; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item time { font-size: .86rem; font-weight: 600; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-body { color: var(--text); }
.news-body p { margin: 0; }
.year-label { font-size: 1.05rem; color: var(--muted); margin: 26px 0 8px; font-family: var(--font-sans); font-weight: 600; letter-spacing: .02em; }
.year-label.small { font-size: .95rem; }

/* ---------- events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.event-date { display: grid; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.event-month { background: var(--warm); color: #fff; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 0; }
[data-theme="dark"] .event-month { color: #1a1e25; }
.event-day { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; padding-top: 4px; }
.event-year { font-size: .72rem; color: var(--muted); padding-bottom: 4px; }
.event-title { font-size: 1.08rem; margin: 0 0 4px; }
.event-title a { color: var(--text); }
.event-title a:hover { color: var(--accent); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.event-meta .dot { margin: 0 2px; }
.event-text p { margin: 0; color: var(--text-2); font-size: .95rem; }
.events.past .event { box-shadow: none; background: transparent; }
.events.past .event-month { background: var(--muted); }

/* ---------- publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pub {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 16px 14px; margin: 0 -14px; border-radius: var(--radius); transition: background .2s, box-shadow .2s;
}
.pub:hover { background: var(--surface); box-shadow: var(--shadow); }
.pub:target { background: var(--accent-soft); }
.pub-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
}
.thumb-btn { display: block; width: 100%; height: 100%; padding: 22px 6px 6px; margin: 0; border: 0; background: #fff; cursor: zoom-in; }
.thumb-btn img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.pub:hover .thumb-btn img { transform: scale(1.04); }
.pub-thumb.no-img { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; }
.thumb-placeholder { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--accent); opacity: .55; letter-spacing: .02em; }
.pub-badge {
  position: absolute; top: 0; left: 0; padding: 3px 9px; border-bottom-right-radius: 8px;
  font: 600 .72rem/1.5 var(--font-sans); letter-spacing: .02em; color: #fff; background: var(--accent);
}
.pub-badge.type-journal { background: var(--warm); }
[data-theme="dark"] .pub-badge { color: #13161b; }
.pub-thumb.no-img .pub-badge { display: none; }
.pub-title { font-size: 1.06rem; margin: 0 0 5px; line-height: 1.38; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { margin: 0; font-size: .92rem; color: var(--text-2); }
.me { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.pub-venue { margin: 3px 0 0; font-size: .92rem; color: var(--muted); }
.pub-venue em { font-family: var(--font-serif); font-size: 1.02em; color: var(--text-2); }
.pub-note { display: inline-block; margin-left: 8px; font-size: .76rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--warm-soft); color: var(--warm); vertical-align: 1px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  font: 500 .8rem/1.5 var(--font-sans); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover, .chip[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.chip .icon { font-size: .95em; }
.pub-bib { position: relative; margin-top: 10px; }
.pub-bib pre {
  margin: 0; padding: 14px 16px; max-height: 260px; overflow: auto; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); white-space: pre;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; font: 500 .76rem/1.5 var(--font-sans); border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.done { color: var(--warm); border-color: var(--warm); }

/* publication filter */
.pub-controls { margin: 0 0 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; cursor: pointer;
  font: 500 .83rem/1.5 var(--font-sans); color: var(--text-2);
  background: transparent; border: 1px solid var(--border); border-radius: 999px; transition: all .15s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active, .filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .filter.active, [data-theme="dark"] .filter[aria-pressed="true"] { color: #10161d; }
.empty-state { color: var(--muted); font-style: italic; padding: 12px 0; }

/* figure lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 4vh 4vw;
  background: rgba(15, 18, 23, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: zoom-out;
}
.lightbox.open { display: grid; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 92vh; background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); cursor: default; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- projects ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card-title { font-size: 1.12rem; margin: 0 0 6px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-text { margin: 0; font-size: .92rem; color: var(--text-2); flex: 1; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.repo-stats { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); }
.repo-list { list-style: none; margin: 0; padding: 0; }
.repo-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.repo-list li:last-child { border-bottom: 0; }
.repo-name { font-weight: 600; }
.repo-desc { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--text-2); }
.repo-meta { display: inline-flex; gap: 12px; font-size: .8rem; color: var(--muted); align-items: center; }
.repo-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- CV timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 10px 0; position: relative; }
.tl-when { font-size: .88rem; color: var(--muted); font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl-body { border-left: 2px solid var(--border); padding-left: 18px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-what { margin: 0; font-weight: 600; }
.tl-where { margin: 0; color: var(--text-2); font-size: .94rem; }
.tl-detail p { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 30px; font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- gentle entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .content > * { animation: rise .5s ease both; }
  .content > *:nth-child(2) { animation-delay: .05s; }
  .content > *:nth-child(3) { animation-delay: .1s; }
  .content > *:nth-child(4) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  :root { --sidebar-w: 220px; }
  .layout { gap: 36px; }
  .avatar { width: 140px; height: 140px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .theme-toggle { margin: 6px 0 0; width: 100%; }
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .sidebar { position: static; }
  .profile { display: flex; gap: 18px; align-items: center; }
  .avatar { width: 96px; height: 96px; border-width: 3px; }
  .profile-name { margin-top: 0; font-size: 1.35rem; }
  .profile-title { margin-bottom: 6px; }
  .profile-meta li { margin: 2px 0; font-size: .88rem; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; padding-top: 12px; }
  .profile-links li a { margin: 0; padding: 7px 9px; border: 1px solid var(--border); border-radius: 999px; }
  .profile-links li a span { display: none; }
  .pub { grid-template-columns: 1fr; gap: 12px; }
  .pub-thumb { aspect-ratio: 16 / 8; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
  .page-title { font-size: 1.75rem; }
}
@media print {
  .site-header, .pub-controls, .theme-toggle, .pub-links, .site-footer, .lightbox { display: none !important; }
  .layout { display: block; }
  .sidebar { position: static; margin-bottom: 24px; }
}
.cards + .section, .cards ~ .section { margin-top: 48px; }
.card-foot { margin-top: auto; }

/* ---------- CV extras ---------- */
.cv-intro { margin-bottom: 28px; }
.cv-intro .page-intro { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-value { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: .84rem; color: var(--text-2); }
.stat-label a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border); }
.stat-label a:hover { color: var(--accent); }
.stat-note { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.tl-detail ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: .92rem; }
.tl-detail li { margin: 2px 0; }
.cv-subhead { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 24px 0 8px; }
.cv-pubs { margin: 0; padding-left: 22px; }
.cv-pub { margin: 0 0 9px; font-size: .92rem; color: var(--text-2); line-height: 1.55; }
.cv-pub::marker { color: var(--muted); font-size: .85em; }
.cv-title { color: var(--text); }
.cv-title a { color: var(--text); }
.cv-title a:hover { color: var(--accent); }
.cv-venue { font-family: var(--font-serif); }
.cv-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); vertical-align: 1px; }
.cv-badge.accepted { background: var(--warm-soft); color: var(--warm); }
.cv-badge.soft { background: var(--surface-2); color: var(--muted); }
[data-theme="dark"] .cv-badge { color: var(--accent); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
