:root {
  color-scheme: light;
  --ink: #152e2e;
  --muted: #525e72;
  --blue: #245c54;
  --rule: #d7dce4;
  font: 100%/1.55 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fcfaf5;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #607fe0; outline-offset: 4px; }
.wrap { width: min(76rem, 89%); margin-inline: auto; }
.skip { position: absolute; z-index: 2; background: white; padding: .6rem; transform: translateY(-120%); }
.skip:focus { transform: none; }
.mast, nav, .brand, footer, footer div { display: flex; align-items: center; }
.mast { min-height: 4.9rem; gap: 2.3rem; }
.brand { margin-right: auto; gap: .75rem; font-weight: 650; letter-spacing: -.035em; font-size: 1.13rem; }
.brand b { display: grid; place-items: center; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: white; font: italic bold 1.52rem Georgia, serif; }
nav, footer div { gap: 1.6rem; flex-wrap: wrap; }
nav, .contact, footer { font-size: .94rem; }
.contact { border: 1px solid #a9b3c4; padding: .38rem .9rem; border-radius: .3rem; }
.intro-panel { position: relative; isolation: isolate; overflow: hidden; color: #fffaf0; background: #041d23; }
.intro-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  background: linear-gradient(90deg, #041d23, transparent 34%), url("./art/paper-circuit.jpg") center / cover;
}
.introduction { padding-block: clamp(3rem, 6vw, 6rem); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1.04; letter-spacing: -.062em; }
h1 em { color: #f1cf98; }
.bio { max-width: min(37ch, 44%); margin: 1.35rem 0 1.8rem; font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.5; color: #e2eae7; }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.intro-links a { color: #fffaf0; text-decoration: underline; text-underline-offset: .3em; }
.intro-links a:first-child { padding: .7rem 1.12rem; border-radius: .25rem; background: #f7e7ca; color: #162d30; text-decoration: none; font-weight: 600; }
.intro-links a:hover { text-decoration: underline; }
.label, .project-grid small, .reading small { font: 600 .78rem/1.45 "Courier New", monospace; text-transform: uppercase; letter-spacing: .07em; color: #536a65; }
.picks { padding-block: clamp(2.4rem, 4vw, 4rem); }
.reading { display: grid; grid-template-columns: 1.5fr 1fr 1fr; margin-top: 1.55rem; gap: 2rem; }
.reading a { border-top: 1px solid #8c9a91; padding-top: .85rem; }
.reading h3 { margin-top: .5rem; text-wrap: balance; }
.reading a:hover { text-decoration: none; }
.reading a:hover h3 { text-decoration: underline; }
#ai { border-top: 1px solid var(--rule); }
#ai .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block, .shelf { padding-block: clamp(2.8rem, 4.8vw, 4.6rem); }
h2 { font-size: clamp(2.15rem, 3.4vw, 3.3rem); letter-spacing: -.05em; line-height: 1.1; }
h3 { font-size: clamp(1.55rem, 2.05vw, 2.15rem); letter-spacing: -.045em; line-height: 1.15; }
.features, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); margin-top: 1.8rem; }
.features article { border-top: 2px solid var(--ink); padding-top: 1rem; display: flex; align-items: start; flex-direction: column; }
.features article:nth-child(2) { border-color: #976340; }
.features article:nth-child(3) { border-color: #487970; }
.features .label, .project-grid small { color: var(--muted); }
.features h3 { margin: .85rem 0 .55rem; }
.features article > p:not(.label), .project-grid p, .sub { color: var(--muted); }
.features article > div { margin-top: auto; padding-top: 1rem; }
.features div a, .under { color: var(--blue); text-decoration: underline; text-underline-offset: .24em; }
.shelf, .projects, footer { border-top: 1px solid var(--rule); }
.shelf { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.sub { max-width: 18rem; margin: .9rem 0; }
.essays li a, .notes li { display: flex; align-items: baseline; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--rule); }
time, .notes small { color: var(--muted); font-size: .84rem; }
time { flex: 0 0 5rem; }
.notes small { margin-left: auto; text-align: right; }
.project-grid img { width: 100%; aspect-ratio: 2.4; object-fit: cover; border-radius: .25rem; display: block; margin-bottom: 1rem; }
.project-grid h3 { margin: .4rem 0; }
.project-grid a:hover { text-decoration: none; }
.project-grid a:hover h3 { text-decoration: underline; }
footer { padding-block: 2rem; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 50rem) {
  .mast { gap: 1rem; }
  .features, .project-grid { grid-template-columns: 1fr; }
  .project-grid a { display: flow-root; }
  .project-grid img { float: left; width: 30%; aspect-ratio: 1.5; margin: 0 1.25rem 0 0; }
  .shelf { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 39rem) {
  .wrap { width: calc(100% - 2.4rem); }
  .mast { flex-wrap: wrap; padding-block: .85rem .55rem; gap: .65rem; }
  nav { order: 1; width: 100%; gap: 1.5rem; }
  nav a { padding-block: .25rem; }
  .contact { font-size: .84rem; }
  .brand { font-size: 1rem; gap: .45rem; }
  .notes li { align-items: start; flex-direction: column; gap: .2rem; }
  .notes small { margin-left: 0; }
  .project-grid img { width: 28%; aspect-ratio: .9; margin-right: .85rem; }
  footer div { gap: 1rem; }
}

@media (max-width: 50rem) {
  .reading, #ai .features { grid-template-columns: 1fr; gap: 1.45rem; }
  .intro-art { inset-inline-start: 42%; }
  .bio { max-width: 49%; }
}
@media (max-width: 39rem) {
  .introduction { padding-block: 2rem 2.1rem; }
  .intro-art { inset: 0; background-position: center; opacity: .16; }
  .bio { max-width: 35ch; font-size: 1.08rem; }
  .intro-links { gap: 1rem; font-size: .94rem; }
}
