@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
}
:root {
  --ground: #07090d;
  --ink: #f0eee8;
  --ink-dim: #a6a8ac;
  --line: #25282d;
  --spike: #d6bcb0;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(24px, 4vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); scrollbar-color: var(--line) var(--ground); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .9375rem; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--spike); color: var(--ground); }
a {
  color: inherit; text-decoration-color: #62646a; text-decoration-thickness: 1px;
  text-underline-offset: .28em; transition: color 180ms, text-decoration-color 180ms;
}
a:hover { color: #fff; text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.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: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: var(--ground); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* The artwork is the interface. Text stays quiet, with no instructional line. */
.sky { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: var(--ground) url("assets/eagle-nebula.jpg") center 30% / cover; }
.sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(7 9 13 / .72) 0%, transparent 33%, transparent 64%, var(--ground) 100%);
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.mast { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px) var(--gutter) 0; pointer-events: none; }
.fullscreen-button {
  position: absolute; z-index: 3; top: clamp(24px, 4vw, 52px); right: var(--gutter);
  display: grid; place-items: center; width: 40px; height: 40px; padding: 10px;
  border: 0; border-radius: 50%; background: transparent; color: rgb(255 255 255 / .42);
  cursor: pointer; transition: color 180ms, background 180ms;
}
.fullscreen-button:hover { color: rgb(255 255 255 / .88); background: rgb(255 255 255 / .06); }
.fullscreen-button svg { display: block; width: 19px; height: 19px; }
.sky:fullscreen { width: 100vw; height: 100svh; min-height: 100svh; }
h1, #content h2 {
  color: #fff; font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -.025em; text-transform: none;
}
#field:focus-visible { outline: 1px solid var(--ink); outline-offset: -8px; }

.links {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 36px;
  display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: .8125rem; font-weight: 500;
}
.links a { display: flex; align-items: center; min-height: 44px; text-decoration-color: transparent; }
.links a:hover { text-decoration-color: var(--ink); }
.sky-tools { position: absolute; z-index: 2; left: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 20px; max-width: 54%; }
.caption { color: #c5c5c5; font-family: var(--mono); font-size: .6875rem; line-height: 1.6; text-decoration: none; }
.caption:hover { text-decoration: underline; }

/* A quieter, more compact reading surface beneath the field. */
#content { font-family: Arial, Helvetica, sans-serif; }
#content .when { font-family: inherit; }

main { max-width: 1120px; padding: 0 var(--gutter) 88px; margin: 0 auto; }
.intro { max-width: 720px; padding: clamp(64px, 8vw, 112px) 0 24px; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.7; letter-spacing: -.025em; text-wrap: pretty; }
.aside { margin-top: 22px; font-size: .8125rem; color: var(--ink-dim); }
.block { padding-top: clamp(64px, 8vw, 112px); scroll-margin-top: 24px; }
#content h2 { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.group { margin-top: 48px; padding-bottom: 12px; font-size: .9375rem; font-weight: 600; text-transform: none; letter-spacing: -.025em; color: var(--ink); border-bottom: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.when { color: #91959b; font-family: var(--mono); font-size: .6875rem; line-height: 2.2; white-space: nowrap; }
.rows h3, .rows h4 { font-size: .9375rem; font-weight: 600; line-height: 1.6; letter-spacing: -.015em; }
.rows p { margin-top: 7px; color: var(--ink-dim); max-width: 72ch; text-wrap: pretty; }
.rows > li:target p { color: var(--ink); }
.plain { max-width: 72ch; padding-top: 20px; color: var(--ink-dim); }
.certs { max-width: 72ch; padding-top: 16px; color: var(--ink-dim); }
.certs li { padding: 4px 0; }
.reach { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-top: 28px; font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.credit { padding-top: 56px; font-size: .6875rem; color: #96999f; }
.credits-page { padding-top: 64px; }
.credits-page h1 { font-size: 3rem; }
.credits-list { margin-top: 36px; }
.credits-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.credits-list p { color: var(--ink-dim); font-size: .8125rem; margin-top: 6px; }
@media (max-width: 700px) {
  .sky { height: clamp(540px, 68svh, 620px); min-height: 0; }
  .mast { padding-top: max(32px, env(safe-area-inset-top)); }
  .fullscreen-button { top: max(24px, env(safe-area-inset-top)); right: max(var(--gutter), env(safe-area-inset-right)); }
  .sky-tools { bottom: 96px; max-width: calc(100% - var(--gutter) * 2); gap: 8px; }
  .caption { font-size: .625rem; }
  .links { left: var(--gutter); right: var(--gutter); bottom: 25px; justify-content: space-between; gap: 12px; }
  .rows > li { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 24px 0; }
  .group { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
