@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #f8f5ee;
  --ink: #192b2c;
  --muted: #535e59;
  --rule: #c5c3b7;
  --accent: #983c23;
  --serif: "Instrument Serif", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.55 "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 100rem; padding: 0 clamp(1.25rem, 4.7vw, 5rem); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #b54a2c; outline-offset: 4px; }
nav, footer, nav div, footer div, .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; }
nav { align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--ink); }
nav div, footer div { gap: clamp(.9rem, 2.5vw, 2.8rem); }
nav a { text-decoration: none; }
.wordmark { font: italic 2.9rem/1 var(--serif); letter-spacing: -.09em; }
.wordmark span { color: var(--accent); }
header { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 3%; padding: clamp(2rem,4.2vw,4.5rem) 0; }
h1, h2, h3 { font: 400 1rem/1 var(--serif); margin: 0; }
h1 { font-size: clamp(4.3rem,8.7vw,9rem); line-height: .89; letter-spacing: -.052em; }
h1 em { color: #40534f; }
.label, time, small { font-size: .875rem; color: var(--muted); }
.label { display: flex; align-items: center; gap: .8rem; margin: 0 0 2rem; }
.label::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }
.intro { max-width: 32ch; margin: 1.6rem 0; font-size: clamp(1rem,1.35vw,1.28rem); }
.browse { font-size: .94rem; text-decoration-thickness: 1px; text-underline-offset: .45em; }
.print { overflow: hidden; background: #03252c; }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 1.36; object-fit: cover; }
section { border-top: 1px solid var(--ink); padding: clamp(1.8rem,3.6vw,3.5rem) 0 clamp(3.5rem,6vw,6rem); }
h2 { font-size: clamp(3rem,5vw,5.6rem); letter-spacing: -.045em; margin-bottom: 1.75rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.2vw,2.5rem); }
.project-art { display:block; overflow:hidden; }
.project-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; }
h3 { font-size: clamp(1.8rem,2.9vw,3rem); margin-top: 1rem; }
h3 a { text-decoration: none; }
article:hover h3 a, h3 a:focus-visible { text-decoration: underline; }
article p { max-width: 36ch; color: var(--muted); margin: .7rem 0 0; }
#writing { display: grid; grid-template-columns: minmax(12rem,1fr) minmax(0,2fr); gap: 3%; }
.section-head { align-self: start; display: block; position: sticky; top: 2rem; }
.essays, .notes { list-style: none; margin: 0; padding: 0; }
.essays li, .notes li { border-bottom: 1px solid var(--rule); }
.essays a { display: grid; grid-template-columns: 6rem 1fr; align-items: baseline; padding: 1rem .35rem; text-decoration: none; gap: .8rem; }
.essays li:first-child a { padding-top: 0; }
.essays span, .notes li>a { font: 400 clamp(1.5rem,2.35vw,2.55rem)/1.13 var(--serif); }
.essays a:hover span { text-decoration: underline; }
.notes li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; }
.notes li>a { text-decoration-thickness: 1px; }
.notes small { flex-shrink: 0; }
footer { border-top: 1px solid var(--ink); padding: 1.5rem 0 3rem; }
@media (prefers-reduced-motion: no-preference) {
  .project-art img { transition: transform .45s ease; }
  .project-art:hover img, .project-art:focus-visible img { transform: scale(1.035); }
}
@media (max-width: 700px) {
  header, #writing { grid-template-columns: 1fr; }
  header { gap: 1.75rem; }
  .print img { aspect-ratio: 1.6; }
  .cards { grid-template-columns: 1fr; gap: 2rem; }
  .project-art img { aspect-ratio: 1.65; }
  .section-head { position: static; display: flex; margin-bottom: 1.25rem; }
  .section-head h2 { margin: 0; }
  .essays a { grid-template-columns: 4.9rem 1fr; }
  .notes li, footer { align-items: flex-start; flex-direction: column; }
}
header > *, article, .cards, .project-art { min-width: 0; }
@media (min-width: 701px) {
  h1 { font-size: clamp(4rem, 7.65vw, 8rem); }
}
#safety { background: #143438; color: #fff9ea; padding: clamp(1.5rem,4.5vw,4.7rem); margin-bottom: 3rem; }
#safety h2 { font-size: clamp(3.8rem,7vw,8rem); }
.research-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(2rem,6vw,6rem); }
.research-grid article { border-top: 1px solid #849b95; }
.research-grid h3 { font-size: clamp(2rem,3vw,3.15rem); line-height: 1.06; }
.research-grid article p { color: #e0e7de; max-width: 46ch; }
.research-grid .research-label { color: #e9bd84; margin-top: 1rem; font-size: .9rem; }
.research-link { display: inline-block; margin-top: 1.2rem; }
#safety a:hover { color: #efc88c; }
#safety a:focus-visible { outline-color: #efc88c; }
.essay-shelves h3 { font: 550 1rem/1.5 "DM Sans", Arial, sans-serif; margin: .4rem 0 1.3rem; }
.essay-shelves ul + h3 { margin-top: 2rem; }
@media(max-width:700px) { .research-grid { grid-template-columns: 1fr; } nav { flex-wrap: wrap; } nav div { flex-wrap: wrap; } }
nav .contact { border-left: 1px solid var(--rule); padding-left: 1.2rem; }
@media(min-width:701px) { nav > div:first-of-type { margin-left:auto; } }
@media(max-width:700px) { nav .contact { order:1; border:0; padding:0; } nav > div:first-of-type { order:2; width:100%; } }
