/* BlackBody LLC. One typeface (Newsreader, SIL OFL, self-hosted), black page.
   The only colour comes from the black-body temperature scale; --heat is animated in heat.css (generated). */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bg: #000000;
  --text: #ece5da;
  --muted: #a39b8f;
  --rule: #2a2622;
  --amber: #ffb36b;   /* a body at about 3,200 K */
  --pad: clamp(20px, 4vw, 56px);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--serif); font-optical-sizing: auto; font-size: 19px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: var(--pad); top: -60px; z-index: 10; padding: 10px 14px; background: var(--text); color: #000; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
.top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 22px var(--pad); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.top nav { display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; font-size: 16px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.top nav a:hover { color: var(--text); }

main { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: #000; font-size: 17px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--heat); border-color: var(--heat); }
.btn-quiet { background: transparent; color: var(--text); border-color: #4a443d; }
.btn-quiet:hover { background: transparent; color: var(--heat); border-color: var(--heat); }

/* ---------- hero: the mark, then the spectrum filling the rest of the first screen ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100svh - 84px); padding-top: clamp(24px, 6vh, 72px); }
.hero::before { content: ""; position: absolute; z-index: -2; left: 50%; width: 100vw; transform: translateX(-50%); top: -90px; bottom: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 24% 34%, color-mix(in srgb, var(--heat) 24%, transparent), transparent 70%); }
.hero-copy { position: relative; }
.hero .word { margin: 0; font-size: clamp(64px, 13.5vw, 196px); font-weight: 300; line-height: .9; letter-spacing: -0.04em; color: var(--heat);
  text-shadow: 0 0 34px color-mix(in srgb, var(--heat) 45%, transparent), 0 0 120px color-mix(in srgb, var(--heat) 35%, transparent); }
.hero .lead { max-width: 34ch; margin: clamp(18px, 2.6vw, 30px) 0 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; color: var(--text); }
/* the spectrum takes whatever height is left on the first screen, but never flatter than the figure's own 3:1
   (slice would cut the peaks off); on short viewports the hero simply runs past one screen */
.hero-bg { position: relative; flex: 1; min-height: calc(100vw / 3); max-height: calc(100vw / 2.6); margin-top: clamp(24px, 4vh, 48px); left: 50%; width: 100vw; transform: translateX(-50%); }
.planck { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.planck .curve { fill: none; stroke-width: 1.8; opacity: .42; stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes pulse { 0%, 22%, 100% { opacity: .42; filter: none; } 10% { opacity: 1; filter: drop-shadow(0 0 7px var(--heat)); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- product ---------- */
.eyebrow { margin: 0 0 10px; font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.product { display: grid; grid-template-columns: 1fr; gap: 36px 64px; padding: clamp(56px, 8vh, 96px) 0; border-top: 1px solid var(--rule); }
.product h2 { margin: 0 0 14px; font-size: clamp(36px, 4.6vw, 60px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.product-lead { margin: 0; max-width: 32ch; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.capabilities { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px 32px; }
.capabilities li { font-size: 18px; line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--rule); }
.capabilities b { font-weight: 500; color: var(--heat); }
.product-note { margin: 28px 0 0; color: var(--muted); font-size: 17px; }
@media (min-width: 640px) { .capabilities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .capabilities { margin-top: 42px; } }

/* ---------- company and contact ---------- */
.company { display: grid; grid-template-columns: 1fr; gap: 36px 64px; padding: clamp(48px, 7vh, 80px) 0 clamp(56px, 8vh, 96px); border-top: 1px solid var(--rule); }
.company p { margin: 0 0 14px; max-width: 58ch; }
.company p:last-child { margin-bottom: 0; }
.contacts { margin: 0; }
.contacts > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.contacts dt { color: var(--muted); font-size: 15px; }
.contacts dd { margin: 2px 0 0; }
@media (min-width: 820px) { .company { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* ---------- sections ---------- */
.block { display: grid; grid-template-columns: 1fr; gap: 12px 40px; padding: 48px 0 60px; border-top: 1px solid var(--rule); }
.block h2 { margin: 0; font-size: 20px; font-weight: 500; color: var(--muted); }
.block .content { max-width: 62ch; }
.block h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.block p { margin: 0 0 14px; }
.block p:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .block { grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); }
  .block h2 { padding-top: 4px; }
}
.sep::before { content: "/"; color: #57504a; margin: 0 .35em; }

.out { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.out:hover { color: var(--amber); }

/* company facts (About) */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 16px; }
.facts dd { margin: 2px 0 0; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 170px 1fr; gap: 20px; } .facts dd { margin: 0; } }

/* text pages */
.doc { padding-top: 56px; }
.doc h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.doc h2 { margin: 36px 0 8px; font-size: 22px; font-weight: 500; color: var(--text); }
.doc .lead { font-size: 21px; line-height: 1.5; margin-bottom: 0; }

/* footer */
.foot { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad) 48px; }
.foot-in { padding-top: 32px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; color: var(--muted); font-size: 15px; line-height: 1.6; }
.foot p { margin: 0; }
.foot a { color: var(--muted); text-underline-offset: 4px; margin-right: 20px; }
.foot a:last-child { margin-right: 0; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .planck .curve { stroke-dashoffset: 0; }
  .btn { transition: none; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { min-height: 0; }
  .hero-bg { flex: none; height: 230px; max-height: none; }
  .btn { padding: 9px 16px; font-size: 16px; }
}
.nowrap { white-space: nowrap; }
