:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #202720;
  --muted: #4f5b52;
  --accent: #265346;
  --rule: #b6c0b2;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { line-height: 1.55; }
.wrap { width: min(74rem, 100% - 5rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--paper); }
.skip:focus { transform: none; }
.masthead { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); }
.masthead nav, .links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; }
.signature { color: var(--ink); font-family: var(--serif); font-weight: 700; text-decoration: none; }
.masthead nav a, .links a, .source { font-size: .92rem; font-weight: 650; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(2rem, 7vw, 7rem); padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.8rem, 6vw, 5.5rem); }
.role { color: var(--accent); margin: 0 0 1rem; font-weight: 700; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.7rem, 8vw, 8.75rem); line-height: .9; letter-spacing: -.065em; }
.intro { border-left: 2px solid var(--accent); padding: .1rem 0 .25rem 1.6rem; }
.intro p:first-child { font-size: clamp(1.16rem, 2vw, 1.55rem); line-height: 1.38; margin: 0; }
.availability { color: var(--muted); font-size: 1rem; margin: 1rem 0; max-width: 37ch; }
.section { border-top: 1px solid var(--ink); padding: 1.45rem 0 3rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.025em; margin-bottom: 1.15rem; }
.project-list { border-bottom: 1px solid var(--rule); }
.project { display: grid; grid-template-columns: minmax(13rem, .85fr) 1.45fr auto; align-items: baseline; gap: .6rem 1.6rem; padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.project h3 { font-size: clamp(1.12rem, 1.7vw, 1.55rem); font-weight: 700; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project h3 span { font-size: .83em; margin-left: .2em; }
.project p, .credits p { margin: 0; color: var(--muted); }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.credits article { padding-top: 1rem; border-top: 1px solid var(--rule); }
.credits p { margin: .55rem 0 .8rem; }
.repository-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.repository-columns ul { margin: .5rem 0 1.25rem; padding-left: 1.2rem; line-height: 1.75; }
.footer { padding: 1.45rem 0 2.8rem; border-top: 1px solid var(--ink); }
.footer h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.project-page { max-width: 60rem; }
.project-intro { padding: clamp(3rem, 8vw, 6rem) 0 2.5rem; }
.project-intro h1 { font-size: clamp(2.5rem, 7vw, 6.8rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.project-intro p { max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.project-page .section p, .project-page .section ul { max-width: 66ch; }
.project-page li { margin: .65rem 0; line-height: 1.5; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.2rem); }
  .hero { grid-template-columns: 1fr; gap: 1.95rem; }
  .intro { padding-left: 1rem; }
  .project { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .project p { grid-row: 2; grid-column: 1 / -1; }
  .project .source { grid-column: 2; grid-row: 1; }
  .credits { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 450px) {
  .masthead { flex-wrap: wrap; padding: .85rem 0; gap: .45rem 1rem; }
  .masthead nav { width: 100%; gap: .5rem 1rem; }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 3.75rem); }
}
