/* BurnStatus site — concept A · THE BAR (S14, the operator's pick). One object at full width;
   everything else small, in one column. Names only custom properties from tokens.css. */
@font-face {
  font-family: "Press Start 2P";
  /* A Latin subset of the OFL font (fonts/OFL.txt); the Worker serves the same file. */
  src: url("fonts/PressStart2P-subset.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--night);
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-32) var(--space-16) var(--space-64);
}
.mast {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.mark {
  flex: none;
  width: var(--space-32);
  height: var(--space-32);
}
.m-flame,
.m-fill {
  fill: var(--flame);
}
.m-core,
.m-frame {
  fill: var(--ink);
}
.m-track {
  fill: var(--well);
}
h1 {
  font-family: var(--font-pixel);
  font-size: var(--text-mark);
  line-height: var(--leading-tight);
  font-weight: normal;
  margin: 0;
}
.cursor {
  color: var(--flame);
  animation: blink calc(var(--duration-flicker) * 2) var(--easing-frame) 3;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.lead {
  color: var(--mute);
  margin: var(--space-16) 0 var(--space-48);
}
/* The bar: L2 redrawn in pixels. Cream frame with stepped corners, night well, flame fill. */
.meter {
  display: grid;
  gap: var(--space-32);
}
.read {
  display: flex;
  align-items: baseline;
  gap: var(--space-16);
  margin: 0 0 var(--space-8);
  font-family: var(--font-pixel);
}
.lbl {
  font-size: var(--text-heading);
  color: var(--mute);
}
.pct {
  font-size: var(--text-numeral);
  line-height: 1;
}
.bar {
  position: relative;
  height: var(--space-48);
  background: var(--ink);
  padding: var(--space-8);
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 8px),
    0 calc(100% - 8px),
    0 8px,
    8px 8px
  );
}
.bar::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--well);
}
.fill {
  position: relative;
  display: block;
  height: 100%;
  background: var(--flame);
  animation: grow var(--duration-fill) var(--easing-fill) both;
}
.b5 .fill {
  width: 4%;
}
.bw .fill {
  width: 86%;
}
@keyframes grow {
  from {
    width: 0;
  }
}
/* The flame rides the end of the weekly fill, two frames. */
.spark {
  position: absolute;
  right: calc(-1 * var(--space-12));
  top: 0;
  height: 100%;
  width: auto;
}
.s1,
.s2 {
  fill: var(--flame);
}
.s2 {
  animation: blink var(--duration-flicker) var(--easing-frame) 6;
}
.s1 {
  animation: blink var(--duration-flicker) var(--easing-frame) 6 reverse;
}
.as-sent {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-body);
}
.as-sent code {
  font-family: var(--font-text);
  font-size: inherit;
}
.nw {
  white-space: nowrap;
}
h2 {
  font-family: var(--font-pixel);
  font-size: var(--text-heading);
  font-weight: normal;
  line-height: var(--leading-tight);
  margin: var(--space-64) 0 var(--space-16);
}
.install {
  margin: 0 0 var(--space-24);
}
.steps {
  margin: 0;
  padding: 0 0 0 var(--space-32);
  display: grid;
  gap: var(--space-16);
  color: var(--mute);
}
.steps li::marker {
  font-family: var(--font-pixel);
  font-size: var(--text-fine);
}
.cmd {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  color: var(--ink);
}
code {
  font-family: var(--font-text);
  font-size: var(--text-ui);
}
.cmd code {
  flex: 1 1 160px;
  background: var(--well);
  padding: var(--space-12) var(--space-12);
  overflow-wrap: anywhere;
}
.btn,
.copy {
  font-family: var(--font-pixel);
  font-size: var(--text-fine);
  line-height: var(--leading-tight);
  color: var(--night);
  background: var(--flame);
  border: 0;
  border-radius: 0;
  min-height: var(--space-48);
  padding: var(--space-12) var(--space-16);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.copy {
  min-width: calc(6em + var(--space-32));
  justify-content: center;
}
.copy,
.btn.alt {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--ink);
}
.btn:hover,
.copy:hover {
  background: var(--ink);
  color: var(--night);
}
.btn:active,
.copy:active {
  background: var(--ember);
  color: var(--ink);
}
:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}
footer {
  margin-top: var(--space-64);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}
.fine {
  color: var(--mute);
  font-size: var(--text-fine);
  margin-top: var(--space-24);
}
/* The privacy page: the same column, reading type, links in flame. */
.prose header p:first-child a {
  font-family: var(--font-pixel);
  font-size: var(--text-fine);
  color: var(--ink);
}
.prose h1 {
  margin-top: var(--space-24);
}
.prose p {
  margin: 0 0 var(--space-16);
}
.prose ul,
.prose ol {
  margin: 0 0 var(--space-16);
  padding-left: var(--space-24);
  display: grid;
  gap: var(--space-12);
}
.prose a:not(.btn) {
  color: var(--flame);
}
@media (prefers-reduced-motion: reduce) {
  .cursor,
  .fill,
  .s1,
  .s2 {
    animation: none !important;
  }
  .s2 {
    opacity: 0;
  }
}
/* The privacy page's home link is a 44 px target, not a 12-22 px line. */
.prose header p:first-child a {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-48);
}
