/* Résumé page at valueof.info/daniel-klein-resume/.
   Same two-face idea as the book page (grotesque chrome, humanist
   text), same restraint: no external requests, one accent, prints
   cleanly to one or two Letter pages. System stacks only. */

:root {
  --ink: #111;
  --paper: #fffdf8;
  --muted: #5a5348;
  --rule: #2a2a2a;
  --accent: #1f4f7a;
  --chrome: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "TeX Gyre Pagella", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e1d6;
    --paper: #14130f;
    --muted: #a9a294;
    --rule: #cfc8ba;
    --accent: #8db7dd;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.02rem;
  line-height: 1.5;
}

.masthead {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 0.5rem;
  text-align: center;
  font-family: var(--chrome);
}
.masthead h1 {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.masthead .cjk { font-weight: normal; letter-spacing: 0.1em; }
.masthead .contact, .masthead .formats {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}
.masthead .formats { color: var(--muted); font-size: 0.8rem; }
.sep { margin: 0 0.5em; color: var(--muted); }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
}

h2 {
  font-family: var(--chrome);
  font-size: 0.95rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 2.2rem 0 0.8rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
}
h3.entry {
  font-family: var(--chrome);
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.1rem;
}
h3.entry .date { font-weight: normal; color: var(--muted); white-space: nowrap; }
h3.entry + p { margin-top: 0; }
h3.entry + p em { color: var(--muted); }

p { margin: 0.3rem 0 0.6rem; }
ul { padding-left: 1.3rem; margin: 0.2rem 0 0.6rem; }
li { margin-bottom: 0.35rem; }
li ul { margin-top: 0.25rem; }
strong { font-weight: bold; }
a { color: inherit; text-decoration-color: var(--muted); }
a:hover { color: var(--accent); }
code {
  font-family: "TeX Gyre Cursor", "Courier New", monospace;
  font-size: 0.9em;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  font-family: var(--chrome);
  font-size: 0.75rem;
  color: var(--muted);
}

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #000; }
  body { font-size: 10.5pt; line-height: 1.3; }
  .masthead { padding-top: 0; }
  .masthead .formats, footer { display: none; }
  h2 { margin-top: 1rem; }
  a { text-decoration: none; }
}
