/* Shared typography for jaewonchoi.dev — deliberately close to nat.org: one column, system serif, little decoration. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --link: #0645ad;
  --link-visited: #5a2ea6;
  --rule: #ddd;
  --width: 650px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #eee;
    --muted: #aaa;
    --link: #8ab4f8;
    --link-visited: #c4a7f5;
    --rule: #333;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
}

body {
  margin: 50px auto 80px;
  padding: 0 16px;
  max-width: var(--width);
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 0.7rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

p, ul, ol {
  margin: 0 0 1rem;
}

ul, ol {
  padding-left: 1.35rem;
}

li {
  margin: 0.25rem 0;
}

li ul, li ol {
  margin: 0.15rem 0 0.4rem;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

.lead, .links, .nav, .meta, .back, footer {
  color: var(--muted);
}

.links, .nav, .back, footer {
  font-size: 0.95rem;
}

.links {
  margin: 1.5rem 0 0;
}

.links a + a::before,
.nav a + a::before {
  content: " · ";
  color: var(--muted);
  text-decoration: none;
}

.nav {
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.back {
  margin: 0 0 1.25rem;
}

.role, .school, .award, .project {
  margin: 0 0 1.15rem;
}

.role h3, .school h3, .project h3 {
  margin: 0 0 0.15rem;
}

.when, .where {
  color: var(--muted);
  font-style: italic;
}

.pub {
  margin: 0 0 0.85rem;
  padding-left: 1.4rem;
  text-indent: -1.4rem;
}

.pub .authors { font-style: italic; }
.pub .me { font-style: italic; font-weight: 700; font-family: Georgia, Palatino, serif; }

.badge {
  font-style: normal;
  font-weight: 700;
}

footer {
  margin-top: 3rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  body { margin-top: 28px; }
  h1 { font-size: 1.25rem; }
}
