/* The landing page (index.html). The playtest pages keep style.css. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0d0f13;
  --panel: #14171c;
  --panel-alt: #1b1f26;
  --border: #262b33;
  --text: #e7e9ec;
  --body: #d0d4da;
  --body-2: #b9bfc8;
  --muted: #8b93a1;
  --gold: #f5c34d;
  --gold-soft: rgba(245, 195, 77, 0.3);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--gold);
}

a:hover {
  color: #ffd978;
}

::selection {
  background: var(--gold-soft);
  color: var(--text);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono {
  font-family: var(--mono);
}

.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.section {
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--panel);
}

.section .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.split > .aside {
  flex: 1 1 220px;
  min-width: 0;
}

.split > .main {
  flex: 999 1 640px;
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  margin: 0;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2.small {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Header */

.site-header {
  border-bottom: 2px solid var(--text);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.flag-mark {
  display: inline-block;
  width: 14px;
  height: 22px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%);
}

.brand-name {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-file {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.site-nav a {
  padding: 12px 0;
}

.underline {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease, color 0.2s ease;
}

.underline:hover {
  color: var(--gold);
  background-size: 100% 2px;
}

/* Ticker of check IDs */

.tape {
  overflow: hidden;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tape-track {
  display: inline-flex;
  padding: 7px 0;
  animation: tape 60s linear infinite;
}

.tape-track span {
  padding: 0 18px;
}

.tape-track span::before {
  content: "\25A0  ";
  color: var(--gold);
}

@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

/* Hero */

.hero .wrap {
  padding-top: 72px;
  padding-bottom: 80px;
}

.subject {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
}

.subject dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  border-top: 1px solid var(--text);
  padding-top: 14px;
}

.subject dt {
  color: var(--muted);
}

.subject dd {
  margin: 0;
}

.hero .main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.redact {
  position: relative;
  display: inline-block;
}

.redact::after {
  content: "";
  position: absolute;
  inset: -0.04em -0.08em;
  background: var(--text);
  transform-origin: right center;
  animation: unredact 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.25s both;
}

.redact.late::after {
  animation-delay: 0.7s;
}

@keyframes unredact {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 20px;
  color: var(--body);
}

.mark,
.reveal-mark {
  background-image: linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat;
  background-position: 0 70%;
  background-size: 100% 100%;
}

.mark {
  animation: mark 0.8s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.lede .mark {
  animation-delay: 1.9s;
}

@keyframes mark {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

.rise {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise.d1 {
  animation-delay: 1.1s;
}

.rise.d2 {
  animation-delay: 1.25s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--text);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  color: var(--bg);
  background: var(--text);
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.button.primary:hover {
  background: #ffd978;
  border-color: #ffd978;
}

.stamp {
  position: absolute;
  right: 0;
  bottom: -18px;
  padding: 10px 16px;
  border: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-9deg);
  animation: stamp 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 1.5s both;
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.9);
  }
  60% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}

/* Exhibit A */

.aside-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-text p {
  margin: 0;
  color: var(--body-2);
}

.aside-text .note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.exhibit {
  position: relative;
  padding-top: 64px;
}

.sheet {
  background: var(--panel-alt);
  border: 1px solid var(--text);
  box-shadow: 8px 8px 0 #000;
  font-family: var(--mono);
  font-size: 14px;
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--text);
}

.sheet-head span {
  color: var(--muted);
}

.sheet dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
}

.sheet dt,
.sheet dd {
  margin: 0;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}

.sheet dt {
  color: var(--muted);
}

.sheet dd {
  overflow-wrap: anywhere;
}

.sheet-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 20px;
}

.sheet-foot .prompt {
  color: var(--gold);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--text);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.margin-note {
  position: absolute;
  right: 24px;
  top: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
}

.margin-note path {
  stroke-dasharray: 240;
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.4s both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Evidence index */

.index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.index-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filters button {
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filters button:hover {
  background: var(--panel-alt);
}

.filters button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.filters button span {
  opacity: 0.7;
}

.table-box {
  overflow-x: auto;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.checks {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

.checks th {
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
}

.checks td {
  padding: 12px;
  border-top: 1px solid var(--border);
  color: var(--body);
}

.checks th:first-child,
.checks td:first-child {
  padding-left: 0;
}

.checks th:last-child,
.checks td:last-child {
  padding-right: 0;
}

.checks td:nth-child(1) {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.checks td:nth-child(2) {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body-2);
  white-space: nowrap;
}

.checks tbody tr {
  transition: background-color 0.15s ease;
}

.checks tbody tr:hover {
  background: var(--panel);
}

.checks tr[hidden] {
  display: none;
}

.state {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.state.on {
  background: var(--border);
  color: var(--text);
}

.state.exp {
  border: 1px dashed var(--gold);
  color: var(--gold);
}

.more {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

/* Standing orders */

.orders {
  list-style: none;
  margin: 0;
  padding: 0;
}

.orders li {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.orders .n {
  flex: none;
  width: 3ch;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
}

.orders strong {
  display: block;
  font-family: var(--display);
  font-stretch: 104%;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.orders span.text {
  display: block;
  margin-top: 6px;
  color: var(--body-2);
  font-size: 16px;
}

/* Footer */

.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  max-width: 40rem;
  color: var(--body-2);
}

.site-footer .end {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Sections fade in as they scroll into view, where the browser supports it. */

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  .reveal-mark {
    animation: mark linear both;
    animation-timeline: view();
    animation-range: entry 60% cover 40%;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .stamp {
    position: static;
    align-self: flex-start;
    margin-top: 8px;
  }

  .margin-note {
    position: static;
    margin-bottom: 8px;
  }

  .exhibit {
    padding-top: 0;
  }

  .sheet dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .redact::after {
    display: none;
  }
}

.rules-title {
  margin-top: 10px;
}
