:root {
  --bg: #FAF8F3;
  --ink: #26241F;
  --muted: #6F6A60;
  --line: #DCD6C8;
  --accent: #7A5C2E;
  --hover: #F1EDE3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 16px;
}
main { width: 100%; max-width: 640px; margin: 0 auto; }
.name {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.rule { width: 48px; height: 1px; background: var(--line); margin: 32px 0; }
.bio { font-size: 1.05rem; max-width: 58ch; }
.school { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
nav a, .back {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav a:hover, nav a:focus-visible, .back:hover, .back:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}
.buttons { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.button {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.button span { display: block; font-size: 0.85rem; color: var(--muted); }
.button:hover, .button:focus-visible { background: var(--hover); border-color: var(--ink); outline: none; }
.back { display: inline-block; margin-top: 40px; font-size: 0.95rem; }

/* CV page */
body.cv { align-items: flex-start; }
body.cv main { max-width: 720px; }
.contact-line { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.contact-line a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-line a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cv section { margin-top: 44px; }
.cv h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.entry + .entry { margin-top: 24px; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.entry-head h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
}
.entry-head .meta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.role { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.entry ul { margin: 8px 0 0 18px; }
.entry li { font-size: 0.97rem; margin-top: 6px; }
.entry li::marker { color: var(--line); }
.tags { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.skills p { font-size: 0.97rem; }
.skills p + p { margin-top: 8px; }
.skills strong { font-weight: 600; }
.pdf-cta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pdf-cta .button { display: inline-block; }
.pdf-cta .back { margin-top: 0; }
