@font-face {
  font-family: "Inter Tight";
  src: url("../../fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../../fonts/of-jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151513;
  --band: #414141;
  --ink: #ecece6;
  --dim: #92928a;
  --lime: #faff69;
  --pad: clamp(18px, 4.2vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3.4vh, 38px) var(--pad) 52px;
}

#stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.lab {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.7px;
  fill: var(--dim);
}

.num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.01em;
  fill: var(--ink);
  transition: fill 120ms linear;
}

.num.is-hot {
  fill: var(--lime);
  transition: fill 30ms linear;
}

.head {
  position: relative;
  z-index: 1;
}

.head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lockup {
  min-width: 0;
}

.mark {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* the blade gate, sized to the wordmark's cap height and locked to its left */
.mark-img {
  display: block;
  flex: none;
  width: clamp(34px, 4.4vw, 62px);
  height: auto;
}

.mark .slash {
  color: var(--band);
}

.sub {
  margin: 12px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
}

/* the switch sits at the page's top-right on a wide screen; on a phone it
   drops to the meter's row above the belt, so the control lands beside the
   reading it changes */
.ctl {
  position: absolute;
  top: clamp(20px, 3.4vh, 38px);
  right: var(--pad);
  z-index: 2;
  display: flex;
  align-items: center;
}

@media (max-width: 700px) {
  .ctl {
    top: var(--ctl-y, 40px);
  }
}

/* the switch: the only interactive thing on the page, so it is drawn plainly */
.sw {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: inherit;
}
.sw .track {
  position: relative; display: block; width: 34px; height: 16px;
  border: 1px solid var(--band, #414141); border-radius: 9px;
  transition: border-color 140ms linear, background 140ms linear;
}
.sw .knob {
  position: absolute; top: 2px; left: 2px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--dim);
  transition: transform 160ms cubic-bezier(.3,.9,.3,1), background 140ms linear;
}
.sw[aria-checked="true"] .track { border-color: var(--lime); }
.sw[aria-checked="true"] .knob { transform: translateX(18px); background: var(--lime); }
.sw .swlab {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  transition: color 140ms linear;
}
.sw[aria-checked="true"] .swlab { color: var(--ink); }
.sw:focus-visible .track { outline: 1px solid var(--lime); outline-offset: 2px; }

.brand {
  margin: 6px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.17em;
  color: var(--dim);
  white-space: nowrap;
}

/* the two claims: what the mechanism buys, stated above the mechanism */
.claims {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 5.5vh, 58px);
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}

.claim {
  min-width: 0;
}

.claim-num {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 120ms linear;
}

.claim-num .suf {
  font-size: 0.55em;
  letter-spacing: 0.02em;
  margin-left: 0.12em;
  color: var(--dim);
}

.claim-num.is-hot {
  color: var(--lime);
  transition: color 30ms linear;
}

.claim-lab {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.claim-note {
  margin: 6px 0 0;
  max-width: 34ch;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--dim);
}

/* a short viewport keeps the claims' numbers and labels and drops the prose:
   the mechanism needs the band more than the notes do */
@media (max-height: 700px) {
  .claims {
    margin-top: clamp(14px, 3vh, 26px);
    gap: clamp(18px, 3vw, 36px);
  }

  .claim-note {
    display: none;
  }

  .claim-lab {
    margin-top: 5px;
  }
}

@media (max-width: 560px) {
  .claims {
    gap: 18px;
  }

  .claim-note {
    font-size: 9px;
  }
}

/* the two doors: the volume that carries the argument, and the way in */
.doors {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.vol {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding: 1px;
}

.vol-cover {
  display: block;
  width: 42px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--band);
  transition: border-color 140ms linear;
}

.vol-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1.25;
}

.vol-title {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 140ms linear;
}

.vol-go {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 140ms linear;
}

.vol:hover .vol-title,
.vol:hover .vol-go,
.vol:focus-visible .vol-title,
.vol:focus-visible .vol-go {
  color: var(--lime);
}

.vol:hover .vol-cover,
.vol:focus-visible .vol-cover {
  border-color: var(--lime);
}

.door {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--lime);
  color: #151513;
  text-decoration: none;
  padding: 13px 22px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 140ms linear;
}

.door::after {
  content: "\2192";
  font-size: 13px;
  line-height: 1;
}

.door:hover,
.door:focus-visible {
  background: #fffda0;
}

.vol:focus-visible,
.door:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .doors {
    gap: 14px;
  }

  .door {
    flex: 1 1 100%;
    justify-content: center;
    padding: 14px 18px;
  }
}


@media (max-width: 560px) {
  .page {
    padding-bottom: 50px;
  }

  .sub {
    font-size: 12px;
  }

  /* the second line of the mechanism name: same face, one step quieter */
  .sub2 {
    margin: 3px 0 0;
    color: var(--dim);
    opacity: 0.82;
  }

  .brand {
    font-size: 9px;
    letter-spacing: 0.13em;
  }
}
