@font-face {
  font-family: Newsreader;
  src: url('assets/fonts/newsreader-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url('assets/fonts/newsreader-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #efeeea;
  --ink: #23211d;
  --muted: #57524a;
  --accent: #4f5a37;
  --surface: #e6e4df;
  --font: Newsreader, Georgia, serif;
  --text: 18px;
  --small: 15px;
  --heading: 22px;
  --title: 30px;
  --gutter: 24px;
  --section-gap: 72px;
  --backdrop-opacity: 0.2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text)/1.55 var(--font); font-variant-numeric: oldstyle-nums; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
::selection { background: var(--surface); color: var(--accent); }
.page { width: min(680px, calc(100% - var(--gutter) * 2)); margin-inline: auto; padding-block: 94px 28px; }
.backdrop { position: fixed; right: 0; bottom: 0; z-index: -1; width: min(calc(100svh * 80 / 65), 150vw); height: auto; image-rendering: pixelated; opacity: var(--backdrop-opacity); pointer-events: none; user-select: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--title); }
h2 { font-size: var(--heading); margin-bottom: 26px; }
h3 { font-size: var(--text); line-height: 1.45; }
p + p { margin-top: 14px; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; transition: color 140ms ease; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:active { color: var(--accent); }
.byline { color: var(--muted); font-style: italic; margin-top: 4px; }
.bio { margin-top: 30px; }
.intro-links, .contact-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.intro-links { margin-top: 18px; }
.intro-links a, .contact-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; }
section { margin-top: var(--section-gap); }
.projects { display: grid; gap: 25px; }
.project summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: baseline; column-gap: 16px; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project-name { font-weight: 500; }
.project-kind { color: var(--muted); font-size: var(--small); }
.disclosure { font-size: var(--heading); line-height: 1; justify-self: end; transition: transform 140ms ease; }
.project[open] .disclosure { transform: rotate(45deg); }
.project-description { grid-column: 1 / -1; margin-top: 3px; }
.project summary:hover .project-name { color: var(--accent); }
.project-notes { padding: 16px 20px 18px; margin-top: 14px; background: var(--surface); }
.project-notes p + p { margin-top: 10px; }
.project-notes a { display: inline-block; margin-top: 12px; padding-block: 5px; }
.entries { display: grid; gap: 30px; }
.entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.date { color: var(--muted); font-size: var(--small); font-variant-numeric: lining-nums tabular-nums; flex-shrink: 0; }
.organization { color: var(--muted); }
.entry-description { margin-top: 8px; }
.secondary-note { margin-top: 2px; color: var(--muted); font-size: var(--small); }
.education-entries { gap: 26px; }
.education-entries .entry-top { justify-content: flex-start; gap: 24px; }
.tools { display: grid; gap: 13px; }
.tools > div { display: grid; grid-template-columns: 155px minmax(0, 1fr); column-gap: 18px; }
.tools dt { color: var(--muted); }
.email { display: inline-block; color: var(--accent); padding-block: 12px; overflow-wrap: anywhere; }
.contact-links { margin-top: 4px; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 86px; color: var(--muted); font-size: var(--small); align-items: baseline; }
footer a { padding-block: 12px; }
.skip-link { position: absolute; top: 12px; left: var(--gutter); padding: 8px 16px; background: var(--ink); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
/* Wide screens: the column moves left and the bust stands beside it at full strength, inside the same pair of
   margins. The image's left 18% is empty after the dissolve in tools/pixelate.py, so only that part may pass
   under the column: image width <= (space beside the column) / 0.82. */
@media (min-width: 1200px) {
  :root { --backdrop-opacity: 1; --page-left: 6vw; --column: 540px; --column-gap: 24px; }
  body { display: grid; grid-template-columns: var(--page-left) var(--column) 1fr var(--page-left); }
  .page { grid-area: 1 / 2; width: auto; margin: 0; }
  .backdrop { grid-area: 1 / 2 / 2 / 4; justify-self: end; align-self: end; position: sticky; right: auto; width: min(calc(100svh * 80 / 65), calc((100vw - 2 * var(--page-left) - var(--column) - var(--column-gap)) / 0.82)); }
}
@media (max-width: 600px) {
  :root { --gutter: 22px; --section-gap: 58px; --title: 27px; }
  .page { padding-top: 52px; }
  .bio { margin-top: 26px; }
  h2 { margin-bottom: 22px; }
  .project summary { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 10px; }
  .project-kind { grid-column: 1; grid-row: 2; }
  .disclosure { grid-column: 2; grid-row: 1; }
  .project-description { margin-top: 5px; }
  .entry-top { display: block; }
  .entry-top .date { margin-top: 1px; }
  .entry-top + .organization { margin-top: 2px; }
  .tools > div { grid-template-columns: 1fr; gap: 1px; }
  .tools { gap: 18px; }
  .project-notes { padding: 14px 16px 16px; }
  footer { flex-wrap: wrap; gap: 0 16px; margin-top: 58px; }
  .desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
