/* Old press meets early web: Centaur for the printed voice, Verdana and plain underlined links for the stripped-down page, one block of bright orange. */
:root {
  --paper: #fbfaf6;
  --ink: #111110;
  --ink-soft: #5b5a54;
  --rule: #111110;
  --hair: #d9d7ce;
  --orange: #ff7a00;
  --on-orange: #111110;
  --link: #e85d00;
  --link-visited: #b34800;
  --display: "Centaur", "Centaur MT", "Cormorant Garamond", Georgia, serif;
  --body: Verdana, Geneva, Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0e0c; --ink: #efeee8; --ink-soft: #a19f96; --rule: #efeee8; --hair: #2c2b27;
    --link: #ff7a00; --link-visited: #ff9a40; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0e0c; --ink: #efeee8; --ink-soft: #a19f96; --rule: #efeee8; --hair: #2c2b27;
  --link: #ff7a00; --link-visited: #ff9a40; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 0.9375rem; line-height: 1.7;
}
::selection { background: var(--orange); color: var(--on-orange); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
p { margin: 0; }
em { font-style: italic; }

.page {
  max-width: 680px; margin: 0 auto;
  padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 4rem max(16px, env(safe-area-inset-left, 0px));
}
@media (min-width: 720px) { .page { padding-top: 4.5rem; } }

/* Masthead: an orange square with the name set in Centaur, the photo beside it */
.masthead { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .masthead { grid-template-columns: minmax(0, 1fr) 210px; } }
.block {
  background: var(--orange); color: var(--on-orange);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: 16px 18px 18px; min-height: 200px;
}
.block .tag { font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.02em; }
.name { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 0.95; margin: 0; letter-spacing: 0.005em; }
.portrait { width: 100%; height: 100%; min-height: 200px; max-height: 262px; object-fit: cover; display: block; border: 1px solid var(--rule); }
@media (max-width: 559px) { .portrait { max-width: 210px; height: auto; aspect-ratio: 4 / 5; max-height: none; } }

.nav { margin: 18px 0 0; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nav a { white-space: nowrap; }

/* Sections */
main { display: flex; flex-direction: column; gap: 3.25rem; margin-top: 3rem; }
section { scroll-margin-top: 1.5rem; }
h2 {
  font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.1;
  margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem;
}
h2::after { content: ""; flex: 1; border-bottom: 1px solid var(--rule); transform: translateY(-0.3rem); }
h3 { font-size: inherit; font-weight: 700; margin: 0; line-height: 1.5; }
.meta { color: var(--ink-soft); font-size: 0.8125rem; }

.prose + .highlights { margin-top: 1.25rem; }
.prose { display: flex; flex-direction: column; gap: 0.9rem; }
.prose .lede { font-family: var(--display); font-size: 1.45rem; line-height: 1.3; }

.highlights { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.highlights li { padding: 0.6rem 0; border-top: 1px dotted var(--ink-soft); display: grid; grid-template-columns: 1fr; gap: 0.1rem; }
.highlights li:last-child { border-bottom: 1px dotted var(--ink-soft); }
@media (min-width: 560px) { .highlights li { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; } }
.highlights .meta { padding-top: 0.1rem; }

/* Writing */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 0.9rem 0; border-bottom: 1px dotted var(--ink-soft); }
.list > li:first-child { padding-top: 0; }
.list h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.list h3 + .meta { display: block; margin-top: 0.15rem; }
.list p { margin-top: 0.3rem; }
.aside { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.subhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin: 2.25rem 0 0.5rem; }
.subhead h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.subhead a { font-size: 0.8125rem; }

.archive { list-style: none; margin: 0; padding: 0; }
.archive li a {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: baseline;
  padding: 0.35rem 0; border-bottom: 1px dotted var(--hair); font-size: 0.875rem;
}
.archive .y, .archive .o { color: var(--ink-soft); font-size: 0.75rem; text-decoration: none; display: inline-block; font-variant-numeric: tabular-nums; }
.archive .o { text-transform: lowercase; }
@media (max-width: 520px) { .archive li a { grid-template-columns: 2.5rem minmax(0, 1fr); } .archive .o { display: none; } }
.archive details summary { cursor: pointer; padding: 0.6rem 0; font-size: 0.8125rem; color: var(--link); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.archive details summary::-webkit-details-marker { display: none; }
.archive details summary::before { content: "[+] "; text-decoration: none; display: inline-block; white-space: pre; }
.archive details[open] summary::before { content: "[–] "; }

/* Projects */
.projects h3 { font-family: var(--display); }

/* Work */
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.9rem 0; border-bottom: 1px dotted var(--ink-soft); }
.roles li:first-child { padding-top: 0; }
@media (min-width: 560px) { .roles li { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; } }
.roles .meta { padding-top: 0.1rem; font-variant-numeric: tabular-nums; }
.roles h3 + .meta { display: block; }
.roles p { margin-top: 0.3rem; }
.edu { margin-top: 1rem; color: var(--ink-soft); font-size: 0.8125rem; }

footer { margin-top: 3.5rem; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }

/* Drawers: the small lists that hold everything beyond the main page */
.drawer { border-top: 1px dotted var(--ink-soft); scroll-margin-top: 1.5rem; }
.drawer:last-of-type { border-bottom: 1px dotted var(--ink-soft); }
.drawer > summary { cursor: pointer; list-style: none; padding: 0.6rem 0; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::before { content: "[+] "; display: inline-block; white-space: pre; text-decoration: none; }
.drawer[open] > summary::before { content: "[–] "; }
.drawer > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.drawer > .archive, .drawer > .roles { margin-bottom: 1rem; }
.drawer .roles li:first-child { padding-top: 0.4rem; }
.drawer-foot { font-size: 0.8125rem; margin: -0.25rem 0 1rem; }
.archive li a:hover .t { text-decoration-thickness: 2px; }
.archive .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.archive li a { text-decoration: none; }
.archive .o { text-transform: none; }

.name a { color: inherit; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: bold; }
.page-title { font-family: var(--display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem; }
.page-title::after { content: ""; flex: 1; border-bottom: 1px solid var(--rule); transform: translateY(-0.3rem); }
.archive li a { text-decoration: none; }
.archive .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.archive li a:hover .t { text-decoration-thickness: 2px; }
.archive .o { text-transform: none; }
.more { font-size: 0.8125rem; margin-top: 0.75rem; }
