:root {
  color-scheme: light dark;
  --page: #f4f1e9;
  --page-edge: #ece8de;
  --ink: #16191b;
  --muted: #5d6260;
  --rule: #d5d0c4;
  --link: #0e4a4c;
  --link-focus: #0a3335;
  --field-line: #2b3a3c;
  --field-accent: #9a5b2c;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--page) 40%, var(--page-edge) 100%)
    no-repeat fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.field {
  margin: 26px 0 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(200px, 32vh, 330px);
  pointer-events: none;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 74%, transparent 100%);
}
#hero-canvas[data-state="ready"] { opacity: 1; }
#hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
h1 .word {
  display: inline-block;
  will-change: transform;
}
.page-shell {
  width: min(100% - 48px, 680px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 46px 0 34px;
  display: flex;
  flex-direction: column;
}
.wordmark, footer {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.content { margin: clamp(56px, 8vh, 96px) 0 clamp(120px, 18vh, 180px); }
.introduction { max-width: 660px; }
h1 {
  margin: 0;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 9vw, 5.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.subhead {
  margin: 34px 0 0;
  max-width: 580px;
  font-size: 1.08rem;
  line-height: 1.5;
}
.body-copy {
  margin: 44px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 0.94rem;
}
.section-heading {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.assessment {
  margin-top: 100px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.states {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
}
.states i { color: var(--rule); font-style: normal; }
.states span {
  position: relative;
  padding-top: 9px;
  transition: color 220ms ease;
}
.states span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--rule);
  transition: width 320ms ease, background 320ms ease;
}
.states:hover span { color: var(--muted); }
.states span:hover { color: var(--ink); }
.states span:hover::before { width: 100%; background: var(--field-accent); }
.principle {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}
.access { margin-top: 104px; font-size: 0.86rem; }
.access p { margin: 0 0 22px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 30px; }
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { color: var(--link-focus); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.research-link, .back-link { display: inline-block; margin-top: 42px; }
footer { margin-top: auto; color: var(--muted); }
.section-label {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.research-page .content { margin-bottom: 160px; }
.research-page .body-copy { max-width: 560px; }
.calibration { max-width: 610px; }
.calibration h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.calibration p {
  margin: 26px 0 0;
  max-width: 610px;
  font-size: 0.98rem;
  line-height: 1.62;
}
.calibration p:first-of-type { margin-top: 30px; }
.publication-links {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.9rem;
}
.calibration + .introduction { margin-top: clamp(84px, 12vh, 132px); }
@media (max-width: 640px) {
  .page-shell { width: min(100% - 36px, 680px); padding-top: 28px; }
  .content { margin-top: 52px; margin-bottom: 100px; }
  .field { height: clamp(160px, 24vh, 220px); margin-top: 18px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); line-height: 1; }
  .subhead { margin-top: 28px; }
  .body-copy { margin-top: 36px; }
  .assessment, .access { margin-top: 76px; }
  .states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); white-space: normal; gap: 14px 24px; }
  .states i { display: none; }
  .contact-links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .calibration + .introduction { margin-top: 72px; }
  .calibration p { margin-top: 22px; }
  .publication-links { margin-top: 34px; gap: 13px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #141616;
    --page-edge: #0e100f;
    --ink: #eeece6;
    --muted: #a7a9a4;
    --rule: #383a37;
    --link: #8fbcbb;
    --link-focus: #c3dbda;
    --field-line: #8ea8a8;
    --field-accent: #d08b4f;
  }
}
