﻿:root {
  color-scheme: light;
  --ink: #162f34;
  --muted: #4d6267;
  --accent: #096458;
  --paper: #f7faf9;
  --white: #fff;
  --rule: #d4e2df;
  --mono: "Courier New", Courier, monospace;
  --alive-color: rgba(9, 100, 88, .09);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--mono); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #087c70; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead-inner, .section-heading, .footer { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.masthead-inner { padding-block: 1rem; }
.wordmark { color: var(--ink); font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
nav a, .footer { font-size: .9375rem; }
.intro { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.75rem, 5vw, 4.5rem); }
h1, h2, h3 { margin: 0; font-family: var(--mono); font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6.5rem); letter-spacing: -.055em; }
.intro p { max-width: 52ch; margin: 1rem 0 0; color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.45; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.85rem, 3.65vw, 3.25rem); letter-spacing: -.045em; }
.section-heading { border-bottom: 1px solid var(--rule); padding-bottom: .9rem; }
.project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; gap: 1.25rem clamp(1.75rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.project-copy p { max-width: 62ch; margin: .9rem 0 0; }
.project-copy .discipline { margin: 0 0 .6rem; color: var(--accent); font-size: .875rem; font-weight: 650; }
.secondary { color: var(--muted); }
figure { margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--rule); border-radius: .75rem; overflow: hidden; }
.media img { display: block; width: 100%; height: auto; }
.media figcaption, .chart figcaption { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; padding: .75rem 1rem; font-size: .875rem; color: var(--muted); }
.media figcaption { border-top: 1px solid var(--rule); }
.media figcaption span { flex: 1 1 100%; }
button, .link-list a { background: var(--white); border: 1px solid var(--rule); border-radius: .35rem; padding: .35rem .65rem; color: var(--accent); font: 600 .875rem/1.5 var(--mono); text-decoration: none; cursor: pointer; }
button:hover, .link-list a:hover { background: #e8f3ef; }
.link-list { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.link-list a { display: block; }
details { margin-top: 1rem; }
details.full { grid-column: 1 / -1; margin-top: 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.chart { --chart-bg: #0b1012; background: var(--chart-bg); color: #e4edeb; border-color: #252d30; }
.chart figcaption { align-items: start; flex-direction: column; gap: .2rem; color: #b8c9c7; border-bottom: 1px solid #252d30; }
.chart strong { color: #e4edeb; font-size: 1rem; }
.plot { width: 100%; min-height: 24rem; }
.chart-status, noscript p { padding: .5rem 1rem; margin: 0; }
.plot[data-failed] { min-height: auto; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { margin: 1rem 0; border-collapse: collapse; background: var(--white); font-size: .875rem; color: var(--ink); }
caption { text-align: left; font-weight: 650; padding-block: .5rem; }
th, td { white-space: nowrap; text-align: left; border: 1px solid var(--rule); padding: .35rem .65rem; }
.additional { padding-block: clamp(2rem, 5vw, 4rem); }
.additional article { margin-block-start: 1.4rem; }
.additional h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.footer { border-top: 1px solid var(--rule); padding-block: 1rem 2rem; color: var(--muted); }
[id] { scroll-margin-top: 1rem; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .project { grid-template-columns: minmax(0, 1fr); }
  .masthead-inner { column-gap: .75rem; }
}
body { isolation: isolate; }
#life-bg { position: fixed; inset: 0; display: block; width: 100%; height: 100%; z-index: -1; pointer-events: none; image-rendering: pixelated; }
.media:has([data-animation]) { background: #0b1012; border-color: #252d30; }
.media:has([data-animation]) figcaption { color: #e4edeb; border-top-color: #252d30; }
.media:has([data-animation]) figcaption a, .media:has([data-animation]) button { color: #9be5d6; }
.media:has([data-animation]) button { background: #172124; border-color: #536166; }
.media:has([data-animation]) button:hover { background: #223235; }
.media:has([data-animation]) :focus-visible { outline-color: #9be5d6; }

.sogie-project { padding-block: 0; border-bottom: 0; }
.sogie-preview { max-width: 28rem; background: #0b1012; border-color: #252d30; }
.sogie-preview a { display: block; isolation: isolate; background: #0b1012; }
.sogie-preview img { filter: grayscale(1) invert(1) brightness(1.6); mix-blend-mode: screen; }
.sogie-preview figcaption { color: #e4edeb; border-top-color: #252d30; }
.sogie-preview a:focus-visible { outline-color: #9be5d6; outline-offset: -5px; }
.graph-page { padding-block: 2rem; }
.graph-page h1 { font-size: clamp(2rem, 5vw, 4rem); }
.graph-page p { max-width: 75ch; }
.graph-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
#mynetwork { width: 100%; height: max(24rem, 65vh); border: 1px solid var(--rule); border-radius: .75rem; overflow: hidden; background: var(--white); }
#mynetwork:focus-within { outline: 3px solid #087c70; outline-offset: 4px; }
