body.night {
  --bg: #101213;
  --paper: #191c1e;
  --ink: #edf0ed;
  --muted: #a9b2b4;
  --accent: #ffc064;
  --rule: #343a3e;
  color-scheme: dark;
}
body:not(.night) {
  --bg: #e9edec;
  --paper: #f8faf9;
  --ink: #171a1c;
  --muted: #4d595c;
  --accent: #894708;
  --rule: #bec6c7;
  color-scheme: light;
}
body {
  font-family: Inter, "Apple SD Gothic Neo", system-ui, sans-serif;
}
header.mast {
  border-bottom: 1px solid var(--rule);
  height: 56px;
}
.mast .brand {
  font:
    800 21px/1 Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.045em;
}
.mark {
  width: 23px;
  height: 22px;
  display: inline-block;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 3px,
    transparent 3px 5px
  );
  clip-path: polygon(0 0, 100% 0, 100% 62%, 63% 100%, 0 100%);
}
#menu {
  background: var(--bg);
}
#search,
.sheet,
.overviewCard,
.photo,
button,
.start {
  border-radius: 2px;
}
#menu a[aria-current] {
  background: var(--paper);
}
.labhero {
  display: grid;
  grid-template-columns: 0.92fr 1.15fr;
  align-items: center;
  gap: clamp(14px, 3vw, 52px);
  padding: 2px 0 14px;
}
.heroCopy h1 {
  font:
    800 clamp(34px, 4vw, 70px)/1.02 Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.09em;
  margin: 0;
}
.heroCopy h1 span {
  color: var(--accent);
}
.heroCopy p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px 0;
}
.launch,
.start {
  background: var(--accent);
  color: var(--bg);
  border: 0;
  font-weight: 700;
}
.launch {
  display: inline-block;
  font-size: 13px;
  padding: 9px 13px;
}
.plate {
  margin: 0;
  background: #161a1b;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.plate canvas {
  display: block;
  width: 100%;
  height: auto;
}
.plate figcaption {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
#plateTabs {
  display: flex;
  gap: 3px;
}
#plateTabs button {
  font-size: 11px;
  padding: 3px 7px;
}
#plateTabs button[aria-pressed="true"],
.choices button[aria-pressed="true"],
.headtools button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.sectionhead {
  margin: 12px 0;
}
.overviewCard {
  padding: 0 12px 10px;
  overflow: hidden;
}
.overviewCard .sample {
  background: #14171a;
  margin: 0 -12px 4px;
  height: 36px;
  overflow: hidden;
}
.sample canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.cardhead h3,
.station h1,
.sheet h2 {
  font-family: Inter, system-ui, sans-serif;
}
.cardhead small,
#surface,
#condition,
.signalHead span,
#result,
#interval {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.signalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.signalHead span {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.display .photo,
.night .display .photo {
  background: #000;
  aspect-ratio: 16/9;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.display .glass {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.display .glass:focus-visible {
  outline-offset: -3px;
}
.strip span {
  color: var(--muted);
}
.station .rail {
  border-color: var(--accent);
}
#result:not(:empty) {
  color: var(--ink);
}
.station .sheet {
  background: var(--paper);
}
.station .rail details {
  margin-top: 10px;
}
a:hover,
.examples a:hover {
  color: var(--accent);
}
a.launch:hover {
  color: var(--bg);
  text-decoration: underline;
}
@media (min-width: 901px) {
  .display .photo {
    max-height: calc(100dvh - 225px);
  }
}
@media (max-width: 650px) {
  .labhero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .heroCopy h1 {
    font-size: 34px;
  }
  .heroCopy h1 br {
    display: none;
  }
  .heroCopy p {
    margin: 8px 0;
  }
  .plate {
    width: 100%;
  }
  .headtools {
    gap: 2px;
  }
  .mast .brand {
    font-size: 17px;
  }
  .mark {
    width: 17px;
    height: 17px;
  }
  .headtools button {
    font-size: 11px;
  }
}
body.night {
  --accent: #ffb000;
}
.mark,
.plate,
.sheet,
.overviewCard,
.sample,
.display .photo,
.start,
#search,
.launch {
  border-radius: 0;
}
@media (min-width: 901px) {
  .display .photo,
  .signalHead {
    width: min(100%, calc((100dvh - 225px) * 16 / 9));
    max-height: none;
    align-self: center;
  }
}
@media (min-width: 901px) and (max-height: 800px) {
  .labhero {
    padding-bottom: 0;
  }
  .plate {
    width: min(100%, 420px);
    justify-self: end;
  }
  .overviewCard .sample {
    height: 22px;
  }
  .overviewCard {
    padding-bottom: 6px;
  }
  .sectionhead {
    margin: 8px 0;
  }
  .examples a {
    padding: 1px 0;
  }
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
}
.skip:focus {
  top: 8px;
}
.entry,
.reportActions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.entry .secondary {
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mast .brand {
  font-size: 26px;
  letter-spacing: -0.06em;
}
.reportActions {
  margin-top: 12px;
}
.reportActions button {
  font-size: 13px;
}
.station .reportActions button {
  border-color: var(--rule);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hud button:focus-visible {
  outline-color: #ffb000;
}
@media (max-width: 650px) {
  .mast .brand {
    font-size: 20px;
  }
  .entry {
    gap: 12px;
  }
}
.serviceFoot {
  display: block;
  padding: 16px 0 0;
}
.serviceFoot details {
  max-width: 720px;
  font-size: 13px;
  color: var(--muted);
}
.serviceFoot summary {
  cursor: pointer;
}
.serviceFoot p {
  margin: 8px 0;
}
#linkStatus {
  display: block;
  font-size: 12px;
  margin: 4px 0;
}
.hdrPlate {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;pointer-events:none;dynamic-range-limit:no-limit}
#live {z-index:1}
