:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #5d6470;
  --line: #e4e1da;
  --accent: #c7701b;
  --accent-soft: rgba(199, 112, 27, 0.1);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a;
    --surface: #1a1e25;
    --text: #e9ebef;
    --muted: #9aa2ae;
    --line: #2a303a;
    --accent: #f0a04b;
    --accent-soft: rgba(240, 160, 75, 0.12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; text-decoration: none; }
.nav { display: flex; gap: 24px; list-style: none; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }

main.wrap { padding-top: 64px; padding-bottom: 80px; }
@media (max-width: 560px) { main.wrap { padding-top: 40px; } }

/* type */
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
p + p { margin-top: 14px; }
.lede { font-size: 20px; color: var(--muted); margin-top: 14px; max-width: 36em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
section { margin-top: 56px; }

/* profile */
.profile { display: grid; grid-template-columns: 132px 1fr; gap: 32px; align-items: center; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 46px; font-weight: 600;
  object-fit: cover;
}
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; gap: 20px; }
  .avatar { width: 96px; height: 96px; font-size: 34px; }
}

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; }
.links a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; text-decoration: none; background: var(--surface);
}
.links a:hover { border-color: var(--accent); }

.list { list-style: none; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list .meta { color: var(--muted); font-size: 15px; }
.list .sub { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .list li { grid-template-columns: 1fr; } }

/* research cards */
.cards { display: grid; gap: 18px; margin-top: 36px; }
.card {
  display: block; padding: 24px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.card h3 { font-family: var(--serif); font-size: 24px; }
.card p { color: var(--muted); margin-top: 8px; }
.card .go { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--accent); }
.extras { margin-top: 12px; font-size: 15px; color: var(--muted); }
.extras a { margin-right: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
