/* Paper, ink, and one quiet olive accent. No runtime or external assets. */
:root {
  color-scheme: light dark;
  --paper: #f6f5f1;
  --ink: #282a26;
  --secondary: #64665e;
  --accent: #52613c;
  --line: #dedfd6;
  --highlight: #e5e8dc;
  --selection: #d7deca;
  --selection-ink: #252d1b;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #20211f;
    --ink: #e2e3dc;
    --secondary: #a5a89d;
    --accent: #becaa6;
    --line: #3b3e35;
    --highlight: #343a2b;
    --selection: #4a563c;
    --selection-ink: #f0f3e9;
  }
}
@supports (color: oklch(50% .01 100)) {
  :root { --paper: oklch(97% .006 100); --ink: oklch(28% .008 125); }
  @media (prefers-color-scheme: dark) {
    :root { --paper: oklch(25% .005 125); --ink: oklch(91% .009 110); }
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.75; }
::selection { background: var(--selection); color: var(--selection-ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.page { width: min(100% - 3rem, 38rem); margin-inline: auto; padding-block: clamp(2rem, 8vh, 5.5rem) 2rem; }
.site-header { margin-bottom: .625rem; }
.wordmark { display: inline-block; font-size: 1.125rem; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .625rem; font-size: .875rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .45em; }
p, h1, h2 { margin: 0; }
p { text-wrap: pretty; }
main:focus { outline: none; }
.about-copy { max-width: 62ch; }
.about-copy p + p { margin-top: 1.25rem; }
.about-copy a, .other-projects a { text-decoration-color: var(--secondary); border-radius: 2px; transition: color 160ms var(--ease), background-color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem 1.5rem; border-top: 1px solid var(--line); margin-top: 2.75rem; padding-top: 1rem; }
.socials { display: flex; gap: .25rem; }
.social-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--secondary); border-radius: 4px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.social-link svg { width: 19px; height: 19px; fill: currentColor; }
.page-heading { margin-bottom: 2.5rem; }
h1 { font-size: 1.5rem; font-weight: 550; line-height: 1.35; letter-spacing: -.035em; text-wrap: balance; }
.page-heading p { color: var(--secondary); margin-top: .625rem; font-size: .9375rem; }
.project-list, .other-projects ul { list-style: none; padding: 0; margin: 0; }
.project-list { display: grid; gap: 2.25rem; }
.project-list h2 { font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.project-list h2 a { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; text-decoration: none; }
.outbound { color: var(--secondary); font-size: .875rem; transition: color 160ms var(--ease); }
.project-list p { color: var(--secondary); color: color-mix(in srgb, var(--ink) 80%, var(--paper)); font-size: .9375rem; margin-top: .125rem; }
.key-term { color: var(--ink); font-weight: inherit; }
.project-list p + p { margin-top: .75rem; }
.project-detail { display: block; color: var(--secondary); font-size: .75rem; margin-top: .625rem; }
.other-projects { border-top: 1px solid var(--line); margin-top: 2.75rem; padding-top: 1.75rem; }
.other-projects h2 { color: var(--secondary); font-size: .8125rem; font-weight: 500; margin-bottom: 1rem; }
.other-projects li + li { margin-top: 1.25rem; }
.other-projects a { display: inline-block; font-size: .9375rem; }
.other-projects p { color: var(--secondary); font-size: .875rem; margin-top: .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 1; background: var(--paper); padding: .5rem 1rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (hover: hover) {
  .about-copy a:hover, .other-projects a:hover { color: var(--accent); background: var(--highlight); text-decoration-color: var(--accent); }
  nav a:hover, .project-list h2 a:hover, .project-list h2 a:hover .outbound { color: var(--accent); }
  .social-link:hover { color: var(--accent); background: var(--highlight); }
}
@media (max-width: 359px) { .page { width: calc(100% - 2rem); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  :root { --paper: white; --ink: black; --secondary: #444; --line: #ccc; }
  .page { width: 100%; padding: 0; }
  nav, .socials, .skip-link { display: none; }
  a { text-decoration: underline; }
  .project-list li { break-inside: avoid; }
}
