/* Take 04 — BOOTSTRA/386 5.0 palette (bootstra386.com)
 * Win 3.1 silver + bevels. Type from 01: Oswald + Barlow + Inconsolata + DOS.
 * No CRT on the walk.
 */
@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 {
  --face: #c0c0c0;
  --button: #d4d0c8;
  --ink: #000000;
  --window: #ffffff;
  --navy: #000080;
  --link: #0000ee;
  --link-visited: #551a8b;
  --shadow: #808080;
  --hilite: #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(78vh, 820px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100%;
  background: var(--face);
  color: var(--ink);
  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(--link);
}

a:visited {
  color: var(--link-visited);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mast {
  padding: 1.25rem var(--page-gutter) 1rem;
}

.mast-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mast-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.hero-plate {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0 var(--page-gutter);
  padding: 8px;
  background: var(--face);
  border: 1px outset var(--face);
}

.hero-media,
.hero-caption {
  min-width: 0;
  height: var(--hero-h);
  max-height: var(--hero-h);
  overflow: hidden;
}

.hero-media {
  background: #000;
  border: 2px inset var(--face);
}

.chat-chrome {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--face);
  border: 2px outset var(--face);
}

.chat-title {
  margin: 0;
  padding: 3px 8px;
  font-family: var(--font-dos);
  font-size: 14px;
  line-height: 14px;
  color: var(--window);
  background: var(--navy);
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  background: var(--window);
  border: 2px inset var(--face);
  margin: 6px;
  font-family: var(--font-dos);
  font-size: 14px;
  line-height: 18px;
}

.line {
  margin: 0 0 0.45rem;
}

.line.sys {
  color: var(--navy);
}

.line.you {
  font-family: var(--font-dos);
}

.line.echo {
  color: var(--ink);
}

.chat-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0.65rem 0.45rem;
}

.chat-picks button,
.chat-cta {
  font-family: var(--font-dos);
  font-size: 13px;
  line-height: 14px;
  cursor: pointer;
}

.chat-picks button {
  background: var(--button);
  border: 2px outset var(--button);
  color: var(--ink);
  padding: 4px 8px;
}

.chat-picks button:active {
  border-style: inset;
}

.chat-cta {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

.chat-cta:visited {
  color: var(--navy);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 6px 8px;
}

.chat-form .prompt,
.chat-form button {
  font-family: var(--font-dos);
  font-size: 14px;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 2px inset var(--face);
  background: var(--window);
  color: var(--ink);
  font-family: var(--font-dos);
  font-size: 14px;
  padding: 3px 5px;
}

.chat-form button {
  background: var(--button);
  border: 2px outset var(--button);
  padding: 4px 1rem;
  cursor: pointer;
}

.chat-form button:active {
  border-style: inset;
}

.deck {
  padding: 2.25rem var(--page-gutter) 3.5rem;
}

.deck-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.deck-body,
.deck-invite {
  margin: 0 0 1rem;
  max-width: 80%;
}

@media (max-width: 39.99rem) {
  :root {
    --hero-h: min(48vh, 420px);
  }
  .hero-plate {
    grid-template-columns: 1fr;
    margin: 0 0.75rem;
  }
  .hero-caption {
    height: min(52vh, 440px);
    max-height: min(52vh, 440px);
  }
}
