/* Financial-paper palette: salmon paper, near-black ink, oxford-blue links, claret marks */
:root {
  --bg: #fff1e5;
  --fg: #33302e;
  --muted: #66605c;
  --accent: #0f5499;
  --rule: #e6d9ce;
  --card: #f2dfce;
  --header-bg: #fff1e5;
  --header-fg: #33302e;
  --header-rule: #33302e;
  --mark: #990f3d;
  --maxw: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b1a;
    --fg: #f2e6dc;
    --muted: #b3a89f;
    --accent: #7fb2ec;
    --rule: #3a3531;
    --card: #282422;
    --header-bg: #1d1b1a;
    --header-fg: #f2e6dc;
    --header-rule: #f2e6dc;
    --mark: #e2517f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Source Serif 4", Georgia, "Times New Roman", serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  border-bottom: 2px solid var(--header-rule, var(--rule));
  background: var(--header-bg, var(--bg));
  color: var(--header-fg, var(--fg));
}
@media (min-width: 700px) {
  header.site { position: sticky; top: 0; z-index: 1; }
}
header.site .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
header.site .name { font-weight: 600; color: inherit; margin-right: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
header.site nav a { color: inherit; opacity: .72; }
header.site nav a[aria-current="page"] { opacity: 1; font-weight: 600; box-shadow: inset 0 -2px 0 var(--mark, transparent); }

main { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 4px; }
h2 {
  font-size: 20px; margin: 36px 0 12px; padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px;
  background: var(--mark, transparent); vertical-align: 1px;
}
.muted { color: var(--muted); }

.profile { display: flex; gap: 24px; align-items: flex-start; }
.profile img { width: 150px; height: auto; border-radius: 6px; flex: none; }
.profile p { margin: 2px 0; }
.links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: system-ui, sans-serif; font-size: 15px; }
@media (max-width: 560px) {
  .profile { flex-direction: column; gap: 12px; }
  .profile img { width: 120px; }
}

.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 4px 0; }
.news time { color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; padding-top: 2px; }

.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.pubs li:last-child { border-bottom: 0; }
.pubs .title { font-weight: 600; }
.pubs .authors, .pubs .venue { font-size: 15px; }
.pubs .venue { color: var(--muted); font-style: italic; }
.pubs .me { text-decoration: underline; text-underline-offset: 2px; }
.pubs .tag { font-family: system-ui, sans-serif; font-size: 13px; margin-left: 6px; }

.books { display: grid; gap: 16px; }
.book { display: flex; align-items: flex-start; gap: 16px; background: var(--card); padding: 14px; border-radius: 8px; }
.book img { width: 80px; height: auto; flex: none; }
@media (max-width: 560px) {
  .book img { width: 64px; }
}

.callout { background: var(--card); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; }
.draft { background: #fff4ce; color: #5c4700; padding: 8px 14px; border-radius: 4px; font-family: system-ui, sans-serif; font-size: 14px; }
@media (prefers-color-scheme: dark) { .draft { background: #3d3410; color: #f3e3a3; } }

footer { max-width: var(--maxw); margin: 0 auto; padding: 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
