/* ============================================================
   Card Theme — Design Tokens & Styles
   Derived from Classic v5 HiFi prototype
   ============================================================ */

/* ---------- Concourse (sans) ---------- */
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 200; src: url('../fonts/concourse_t2_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 200; src: url('../fonts/concourse_t2_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 300; src: url('../fonts/concourse_t3_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 300; src: url('../fonts/concourse_t3_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 400; src: url('../fonts/concourse_t4_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 400; src: url('../fonts/concourse_t4_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 500; src: url('../fonts/concourse_t6_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 500; src: url('../fonts/concourse_t6_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 600; src: url('../fonts/concourse_t7_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 600; src: url('../fonts/concourse_t7_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: normal; font-weight: 700; src: url('../fonts/concourse_t8_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse'; font-style: italic; font-weight: 700; src: url('../fonts/concourse_t8_italic.woff') format('woff'); font-display: swap; }

/* Legacy face names — aliases for backward compat */
@font-face { font-family: 'Concourse-Thin';    src: url('../fonts/concourse_t2_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse-Regular'; src: url('../fonts/concourse_t3_tab_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse-Bold';    src: url('../fonts/concourse_t4_tab_regular.woff') format('woff'); font-display: swap; }

/* Concourse Tab — tabular-figure variants */
@font-face { font-family: 'Concourse Tab'; font-weight: 200; src: url('../fonts/concourse_t2_tab_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Tab'; font-weight: 300; src: url('../fonts/concourse_t3_tab_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Tab'; font-weight: 400; src: url('../fonts/concourse_t4_tab_regular.woff') format('woff'); font-display: swap; }

/* Concourse Caps */
@font-face { font-family: 'Concourse Caps'; font-weight: 300; src: url('../fonts/concourse_c3_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Caps'; font-weight: 400; src: url('../fonts/concourse_c4_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Caps'; font-weight: 500; src: url('../fonts/concourse_c6_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Caps'; font-weight: 600; src: url('../fonts/concourse_c7_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Concourse Caps'; font-weight: 700; src: url('../fonts/concourse_c8_regular.woff') format('woff'); font-display: swap; }

/* ---------- Equity (serif) ---------- */
@font-face { font-family: 'Equity';  font-style: normal; font-weight: 400; src: url('../fonts/equity_text_b_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity';  font-style: italic; font-weight: 400; src: url('../fonts/equity_text_b_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity';  font-style: normal; font-weight: 700; src: url('../fonts/equity_text_b_bold.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity';  font-style: italic; font-weight: 700; src: url('../fonts/equity_text_b_bold_italic.woff') format('woff'); font-display: swap; }

@font-face { font-family: 'Equity A'; font-style: normal; font-weight: 400; src: url('../fonts/equity_text_a_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity A'; font-style: italic; font-weight: 400; src: url('../fonts/equity_text_a_italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity A'; font-style: normal; font-weight: 700; src: url('../fonts/equity_text_a_bold.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity A'; font-style: italic; font-weight: 700; src: url('../fonts/equity_text_a_bold_italic.woff') format('woff'); font-display: swap; }

@font-face { font-family: 'Equity Caps'; font-weight: 400; src: url('../fonts/equity_caps_b_regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Equity Caps'; font-weight: 700; src: url('../fonts/equity_caps_b_bold.woff') format('woff'); font-display: swap; }

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* ---------- Type families ---------- */
  --font-sans:      'Concourse', system-ui, -apple-system, sans-serif;
  --font-sans-tab:  'Concourse Tab', 'Concourse', system-ui, sans-serif;
  --font-sans-caps: 'Concourse Caps', 'Concourse', system-ui, sans-serif;
  --font-serif:     'Equity', Georgia, 'Times New Roman', serif;
  --font-serif-caps:'Equity Caps', 'Equity', Georgia, serif;
  --font-mono:      'Monaco', 'Consolas', 'Menlo', ui-monospace, monospace;

  /* ---------- Base type scale ---------- */
  --text-xs:   0.7rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-body: 1.2rem;
  --text-md:   1.25rem;
  --text-h2:   1.44rem;
  --text-lg:   1.5rem;
  --text-h1:   2rem;
  --text-hero: 2.4rem;

  /* ---------- Weights ---------- */
  --weight-thin:    200;
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* ---------- Line-heights ---------- */
  --leading-tight: 1.2;
  --leading-snug:  1.4;
  --leading-body:  1.6;
  --leading-loose: 1.75;

  /* ---------- Colors — Brand ---------- */
  --ink:             #1a1a1a;
  --muted:           #6a6a6a;
  --subtle:          #8a8a8a;
  --rule:            #e6e3d9;
  --paper:           #ffffff;
  --bg:              #ffffff;
  --accent:          #1a6b3a;
  --accent-deep:     #145229;
  --link:            #0055B7;
  --link-hover:      #002145;
  --card-bg:         #ffffff;

  /* ---------- Spacing ---------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 3rem;

  /* ---------- Radii ---------- */
  --radius-chip:   3px;
  --radius-card:   4px;
  --radius-pill:   9999px;

  /* ---------- Shadows ---------- */
  --shadow-soft:  0 2px 8px rgba(10,10,10,0.06);
  --shadow-card:  0 4px 16px rgba(10,10,10,0.08);

  /* ---------- Layout ---------- */
  --container-max: 960px;
  --nav-height:    5rem;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}

/* ============================================================
   Paper Shell
   ============================================================ */
.paper {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--paper);
  padding: 56px 72px 88px;
  position: relative;
  min-height: 640px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--ink);
}

h1 { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0 0 18px; }
h2 { font-size: var(--text-md); font-weight: 500; line-height: var(--leading-snug); margin: var(--space-5) 0 var(--space-3); }
h3 { font-size: var(--text-body); font-weight: 600; margin: var(--space-4) 0 var(--space-2); }

p { margin: 0 0 var(--space-4); line-height: var(--leading-body); text-wrap: pretty; }

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--link-hover); }

strong, b { font-weight: 600; color: var(--ink); }
em, i { font-style: italic; }

hr {
  margin: var(--space-4) 0;
  border: none;
  border-top: 1px solid var(--rule);
  background: transparent;
  height: 1px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-chip);
}

/* ============================================================
   Section Headers (monospace uppercase)
   ============================================================ */
h2.section {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
h2.section:first-child { margin-top: 0; }

/* ============================================================
   Navigation
   ============================================================ */
.wu-navbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0 18px;
  margin: 0 0 28px;
}
.wu-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wu-brand:hover { color: #0a0a0a; }
.wu-navbar-end { display: flex; gap: 24px; }
.wu-nav-item {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: #363636;
  padding: 4px 0;
  text-decoration: none;
}
.wu-nav-item:hover { color: var(--link); }
.wu-nav-item.is-active { color: var(--link); }

/* Mobile hamburger */
.navbar-burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.navbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 72px 56px;
  text-align: center;
  background: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: #4a4a4a;
}
.site-footer .rule {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 28px;
  border: none;
  border-top: 1px solid #e4e2db;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { color: var(--link-hover); }

/* ============================================================
   Home Page
   ============================================================ */
.home { text-align: center; max-width: 620px; margin: 0 auto; }

.avatar {
  width: 168px; height: 168px; border-radius: 50%;
  margin: 18px auto 30px;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform 0.3s ease;
  object-fit: cover;
  object-position: center top;
}
.avatar:hover { transform: scale(1.02); }

.masthead {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #111;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #777;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.role {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
}
.role .muted { color: #777; }

.rule-link {
  position: relative;
  text-align: center;
  margin: 30px 0 26px;
}
.rule-link hr {
  position: absolute;
  width: 80%;
  top: 50%;
  margin: 0;
  left: 10%;
  border: none;
  border-top: 1px solid #bbb;
}
.rule-link .center-pill {
  position: relative;
  background: var(--paper);
  padding: 0 18px;
}
.rule-link a {
  color: var(--link);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.rule-link a:hover { color: var(--link-hover); }

.mission {
  font-size: 15.5px;
  line-height: 1.95;
  color: #2b2b2b;
}
.mission .inline-link { color: var(--link); text-decoration: none; }
.mission .inline-link:hover { color: var(--link-hover); }

.journey {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #888;
}
.journey .city {
  cursor: default;
  padding: 2px 2px;
  transition: color 120ms;
}
.journey .city:hover { color: #111; }

/* ============================================================
   Tag / Chip Styles
   ============================================================ */
.tag-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.tag-strip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #777;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.research-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 300;
  background-color: var(--bg);
  color: var(--muted);
  padding: 0.25em 0.5em;
  margin: 0.2em;
  border-radius: var(--radius-chip);
  text-decoration: none;
}
.research-tag:hover { background-color: #dbdbdb; color: var(--ink); }

/* ============================================================
   Two-Column Layout (for list/single pages)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

/* ============================================================
   Citations
   ============================================================ */
.cite {
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a2a2a;
}
.cite:last-child { border-bottom: none; }
.cite .yr {
  display: inline-block;
  width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #999;
}
.cite .tt { color: var(--link); text-decoration: none; }
.cite .tt:hover { color: var(--link-hover); }
.cite .jn { font-style: italic; color: #555; }
.cite .st { color: #888; font-size: 13px; }

/* ============================================================
   Publication Cards (pcards)
   ============================================================ */
.pcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 36px;
  row-gap: 40px;
}
.pcard {
  cursor: pointer;
  transition: opacity 0.15s;
}
.pcard:hover { opacity: 0.75; }
.pcard .thumb {
  width: 100%;
  aspect-ratio: 3/2;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pcard .thumb .cover-word {
  white-space: pre-line;
  z-index: 1;
  position: relative;
}
.pcard .thumb .journal-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.pcard .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.pcard .body { padding-top: 12px; }
.pcard .pmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.pcard .pjournal { font-style: italic; }
.pcard .ptitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--link);
  margin: 5px 0 8px;
}
.pcard:hover .ptitle { color: var(--link-hover); }
.pcard .pauth { font-size: 13.5px; color: #666; line-height: 1.45; }
.pcard .pstatus {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Image-based card thumbnails */
.thumb.has-img {
  background-size: cover;
  background-position: center;
}
.thumb.has-img .journal-stripe {
  background: rgba(0,0,0,0.45);
}

/* Card color themes */
.thumb.t-blue { background: linear-gradient(135deg, #1e4a7a 0%, #0f2c4c 100%); }
.thumb.t-sage { background: linear-gradient(135deg, #4a6b5a 0%, #2c4537 100%); }
.thumb.t-clay { background: linear-gradient(135deg, #8a5a42 0%, #5c3a26 100%); }
.thumb.t-plum { background: linear-gradient(135deg, #5a4a6a 0%, #3a2e47 100%); }
.thumb.t-umber { background: linear-gradient(135deg, #6a5a38 0%, #3e3420 100%); }
.thumb.t-stone { background: linear-gradient(135deg, #5a5a54 0%, #3a3a34 100%); }
.thumb.t-teal { background: linear-gradient(135deg, #3a6868 0%, #234040 100%); }
.thumb.t-rust { background: linear-gradient(135deg, #8a4030 0%, #5a261c 100%); }

/* ============================================================
   Featured Papers Strip
   ============================================================ */
.featured-strip {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 28px;
  margin-bottom: 56px;
}
.feat {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e8e6de;
}
.feat:last-child { border-bottom: none; padding-bottom: 0; }
.feat:hover { opacity: 0.8; }
.feat .thumb {
  width: 180px;
  aspect-ratio: 1/1;
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.feat .thumb .cover-word {
  position: relative;
  z-index: 1;
  opacity: 0.95;
  white-space: pre-line;
}
.feat .thumb::before {
  content: "FEATURED";
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.feat .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.feat .body { padding-top: 4px; }
.feat .pmeta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.feat .pstatus { color: var(--accent); letter-spacing: 0.04em; }
.feat .pmeta .dot { margin: 0 8px; color: #ccc; }
.feat .ptitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.28;
  color: var(--link);
  margin: 0 0 10px;
}
.feat:hover .ptitle { color: var(--link-hover); }
.feat .psummary {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 10px;
}
.feat .pauth { font-size: 13px; color: #666; line-height: 1.45; }

/* ============================================================
   Course Cards
   ============================================================ */
.ccards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 36px;
  row-gap: 40px;
}
.ccard { transition: opacity 0.15s; }
.ccard:hover { opacity: 0.75; }
.ccard .thumb {
  width: 100%;
  aspect-ratio: 3/2;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.ccard .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.ccard .thumb .code-sub {
  position: absolute;
  bottom: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}
.ccard .body { padding-top: 12px; }
.ccard .cmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.ccard .clevel { color: var(--accent); letter-spacing: 0.04em; }
.ccard .cname {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--link);
  margin: 5px 0 8px;
}
.ccard:hover .cname { color: var(--link-hover); }
.ccard .cdesc { font-size: 13.5px; color: #666; line-height: 1.45; }

/* ============================================================
   Paper Detail (single page)
   ============================================================ */
.paper-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.paper-detail h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #111;
}
.paper-detail .pdflink {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--link);
}
.paper-detail p { margin: 10px 0; }
.paper-detail p b { font-weight: 600; color: #111; }
.abstract {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.75;
  color: #222;
  margin-top: 10px;
}

/* ============================================================
   CV Layout
   ============================================================ */
.cv { max-width: 640px; margin: 0 auto; }
.cv h1 { font-size: 22px; font-weight: 500; margin: 0 0 4px; color: #111; }
.cv .cv-sub { color: #777; font-size: 14px; }
.cv .cv-download {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--link);
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cv .content h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.cv .content p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a2a2a;
}
.cv .content hr {
  margin: var(--space-5) 0;
  border-top-color: #eee;
}
.cv .content em { font-style: italic; color: #555; }
.cv .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 5px 0;
  font-size: 14.5px;
}
.cv .row .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
}

/* ============================================================
   Teaching Layout
   ============================================================ */
.teaching .teaching-content h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.teaching .teaching-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.teaching .teaching-content li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a2a2a;
}
.teaching .teaching-content li:last-child { border-bottom: none; }
.teaching .teaching-content li a { color: var(--link); }
.teaching .teaching-content li a:hover { color: var(--link-hover); }
.teaching .teaching-content > p:first-child {
  font-size: 15.5px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 24px;
}

/* ============================================================
   Content area (Hugo .Content output)
   ============================================================ */
.content h1 {
  font-size: 22px;
  font-weight: 500;
}
.content h2 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
}
.content a { color: var(--link); text-decoration: none; }
.content a:hover { color: var(--link-hover); }

.post-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 18px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 768px) {
  .paper {
    padding: 32px 24px 48px;
  }
  .site-footer {
    padding: 32px 24px 40px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .paper-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pcards {
    grid-template-columns: 1fr;
  }
  .ccards {
    grid-template-columns: 1fr;
  }
  .feat {
    grid-template-columns: 1fr;
  }
  .feat .thumb {
    width: 100%;
    aspect-ratio: 3/2;
  }
  .cv .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .wu-navbar-end {
    display: none;
  }
  .navbar-burger {
    display: flex;
  }
  .wu-navbar-end.is-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    padding: 16px 24px;
    box-shadow: var(--shadow-card);
    z-index: 10;
  }
  .wu-navbar {
    position: relative;
  }
}

@media screen and (max-width: 480px) {
  .paper {
    padding: 24px 16px 40px;
  }
  .site-footer {
    padding: 24px 16px 32px;
  }
  .home { padding: 0 8px; }
  .avatar { width: 120px; height: 120px; }
  .masthead { font-size: 20px; }
}
