/* Take 01 — light BOOTSTRA.386 CGA */
@font-face {
  font-family: "DOS";
  src: url("https://cdn.jsdelivr.net/gh/kristopolous/BOOTSTRA.386@master/v4.4.1/dist/fonts/Px437_IBM_EGA8.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cga-blue: #000084;
  --cga-black: #000000;
  --cga-grey: #aaaaaa;
  --cga-green: #00aa00;
  --cga-cyan: #00aaaa;
  --cga-yellow: #fefe54;
  --cga-white: #ffffff;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
  --font-mono: "Inconsolata", ui-monospace, monospace;
  --font-dos: "DOS", "Inconsolata", ui-monospace, monospace;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --hero-h: min(62vh, 640px);
  --rule: 1px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100%;
  background: var(--cga-blue);
  color: var(--cga-grey);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: clip;
}

iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

a {
  color: var(--cga-cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cga-yellow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
}

.mast {
  padding: 1.5rem var(--page-gutter) 1rem;
  border-bottom: var(--rule) solid var(--cga-grey);
}

.mast-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wip {
  color: var(--cga-yellow);
}

.mast-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--cga-white);
}

.mast-status {
  margin: 0.65rem 0 0;
  font-family: var(--font-dos);
  font-size: 14px;
  line-height: 14px;
  color: var(--cga-green);
}

.hero-plate {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--cga-grey);
}

.hero-media,
.hero-caption {
  min-width: 0;
  background: var(--cga-black);
  overflow: hidden;
  height: var(--hero-h);
  max-height: var(--hero-h);
}

.chat-chrome {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cga-blue);
}

.chat-title {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-dos);
  font-size: 14px;
  line-height: 14px;
  color: var(--cga-black);
  background: var(--cga-grey);
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  font-family: var(--font-dos);
  font-size: 14px;
  line-height: 18px;
}

.line {
  margin: 0 0 0.55rem;
}
.line.sys {
  color: var(--cga-cyan);
}
.line.you {
  color: var(--cga-yellow);
}
.line.echo {
  color: var(--cga-green);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: var(--rule) solid var(--cga-grey);
  background: var(--cga-black);
}

.chat-form .prompt,
.chat-form button {
  font-family: var(--font-dos);
  font-size: 14px;
  color: var(--cga-green);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cga-grey);
  font-family: var(--font-dos);
  font-size: 14px;
  caret-color: var(--cga-green);
}

.chat-form button {
  border: var(--rule) solid var(--cga-grey);
  background: var(--cga-blue);
  color: var(--cga-yellow);
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.deck {
  min-height: min(42vh, 22rem);
  padding: 2.5rem var(--page-gutter) 4rem;
  border-bottom: var(--rule) solid var(--cga-grey);
}

.deck-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cga-cyan);
}

.deck-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--cga-white);
}

.deck-body,
.deck-invite {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.foot {
  padding: 1.5rem var(--page-gutter) 2.5rem;
  font-size: 0.75rem;
  max-width: 72ch;
}

.foot-meta {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 39.99rem) {
  :root {
    --hero-h: min(48vh, 420px);
  }
  .hero-plate {
    grid-template-columns: 1fr;
  }
  .hero-caption {
    height: min(52vh, 440px);
    max-height: min(52vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan {
    display: none;
  }
}
