/* -------------------------------------------------------------------------
   style.css — single-file stylesheet.

   Aesthetic: academic ink on warm paper. Reads like a well-set page,
   not a webapp. The small-caps section headings echo the LaTeX CV
   so the site and the PDF feel like one document.
   ------------------------------------------------------------------------- */

:root {
  --paper:     #f5f2e9;
  --ink:       #2a2826;
  --ink-soft:  #6b6864;
  --rule:      #ddd9d0;
  --link:      #1f4870;
  --link-hov:  #a06b4a;
  --measure:   40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria,
               "Source Serif Pro", Georgia, serif;
  font-feature-settings: "kern", "liga", "onum";
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

main {
  max-width: var(--measure);
  margin: 4rem auto 2rem;
  padding: 0 1.5rem;
}

p { margin: 0.7em 0; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link) 45%, transparent);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover {
  color: var(--link-hov);
  border-bottom-color: currentColor;
}

code, kbd, samp, pre {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo,
               Consolas, monospace;
  font-size: 0.92em;
}

.masthead {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.masthead h1 {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  line-height: 1.15;
}

.masthead .alias {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.2rem 0 0.6rem;
  font-size: 0.95rem;
}

.contact {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.contact a { color: var(--ink); }

h2 {
  font-size: 0.95rem;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 2.6rem 0 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.3rem 0 0.3rem;
}

.papers > p {
  margin: 0.4rem 0 1rem;
}

.entry {
  margin: 1rem 0 1.3rem;
}

.entry > p:first-of-type {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0.3rem 0 0.15rem;
}

.entry > p:first-of-type .meta {
  flex-shrink: 0;
}

.entry > p + p {
  margin-top: 0.15rem;
}

.entry ul {
  margin-top: 0.25rem;
}

.meta {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-feature-settings: "tnum", "lnum";
  white-space: nowrap;
}

ul {
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.8rem;
}
ul li { margin: 0.18rem 0; }

strong { font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0 1.2rem;
}

footer {
  max-width: var(--measure);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.colophon {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.colophon a {
  color: var(--ink-soft);
  border-bottom-color: var(--rule);
}

@media (max-width: 480px) {
  html { font-size: 17px; }
  main { margin-top: 2.5rem; }
  .masthead h1 { font-size: 1.7rem; }
  h2 { margin-top: 2rem; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --rule: #999; }
  body { font-size: 11pt; }
  footer { display: none; }
  a { color: inherit; border: 0; }
}
