/* The Face-Off look, shared by the home page and the guides. */

@font-face { font-family: "Jersey 10"; src: url("/fonts/jersey-10.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jersey 20"; src: url("/fonts/jersey-20.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url("/fonts/barlow-condensed-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-display: swap; }

:root {
  --fo-ground: #0b0c10;
  --fo-panel: #14161d;
  --fo-panel-2: #191c26;
  --fo-line: #2a2e39;
  --fo-red: #e3162e;
  --fo-cyan: #16b8ee;
  --fo-gold: #ffcf1f;
  --fo-white: #f6f7fa;
  --fo-mute: #b4bac7;
  --fo-pixel: "Jersey 10", "Courier New", monospace;
  --fo-pixel-text: "Jersey 20", "Courier New", monospace;
  --fo-text: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* A picture in the page content never grows past its column. */
main img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- Buttons and links ---- */

.cta {
  display: inline-block;
  padding: 7px 30px 9px;
  background: var(--fo-gold);
  color: #000;
  font: 400 32px/1 var(--fo-pixel);
  text-decoration: none;
  box-shadow: 0 6px 0 #a67d00;
}
.cta:hover { background: #ffe066; }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #a67d00; }
.cta.small { padding: 4px 18px 6px; font-size: 26px; box-shadow: 0 4px 0 #a67d00; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Header and footer ---- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  font-family: var(--fo-pixel-text);
}
.site-logo {
  color: var(--fo-white);
  font: 400 36px/1 var(--fo-pixel);
  text-decoration: none;
}
.site-logo span { color: var(--fo-red); }
.site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 22px; }
.site-links a:not(.cta) { padding: 8px 2px; color: var(--fo-white); text-decoration: none; }
.site-links a:not(.cta):hover { color: var(--fo-gold); }

.site-footer {
  padding: 22px 16px 28px;
  background: var(--fo-ground);
  font: 400 22px var(--fo-pixel-text);
  text-align: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.site-footer a { padding: 6px 2px; color: var(--fo-mute); text-decoration: none; }
.site-footer a:hover { color: var(--fo-white); }

/* ---- Guide pages ---- */

.guide-body {
  margin: 0;
  min-height: 100vh;
  background: var(--fo-ground);
  color: var(--fo-white);
  font: 500 20px/1.45 var(--fo-text);
}
/* The red and cyan split from the home page, as a band across the top. */
.guide-body::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(103deg, var(--fo-cyan) 0 49.9%, #000 49.9% 50.1%, var(--fo-red) 50.1% 100%);
}

.page {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 24px 0;
  color: var(--fo-white);
  font: 500 20px/1.45 var(--fo-text);
}

.panel {
  min-width: 0;
  padding: 22px 24px 26px;
  background: var(--fo-panel);
  border-bottom: 6px solid var(--fo-line);
}
.panel h1 { margin: 0 0 12px; font: 400 clamp(48px, 8vw, 76px)/.92 var(--fo-pixel); text-wrap: balance; }
.panel h2 { margin: 0 0 10px; font: 400 44px/1 var(--fo-pixel); }
.panel h3 { margin: 18px 0 2px; color: var(--fo-gold); font: 400 28px/1.05 var(--fo-pixel-text); }
.panel p { margin: 8px 0 0; color: var(--fo-mute); }
.panel p strong, .panel li strong { color: var(--fo-white); }
.panel ul, .panel ol { margin: 8px 0 0; padding-left: 22px; color: var(--fo-mute); }
.panel li { margin-top: 5px; }
.panel a:not(.cta) { color: var(--fo-cyan); }
.panel a:not(.cta):hover { color: var(--fo-white); }
.panel .cta { margin-top: 18px; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  background: #000;
}

.table-wrap { margin-top: 12px; overflow-x: auto; }
.page table { width: 100%; border-collapse: collapse; font-size: 18px; }
.page th, .page td { padding: 8px 10px; border-bottom: 2px solid var(--fo-line); text-align: left; white-space: nowrap; }
.page th { color: var(--fo-gold); font: 400 18px var(--fo-pixel-text); }
.page td { color: var(--fo-mute); }
.page td:first-child { color: var(--fo-white); font-weight: 700; }

.page kbd {
  display: inline-block;
  padding: 0 7px;
  border: 2px solid var(--fo-line);
  background: #000;
  color: var(--fo-white);
  font: 400 18px var(--fo-pixel-text);
}

.crumbs { margin: 0 0 10px; color: var(--fo-mute); font-size: 17px; }
.crumbs a { color: var(--fo-mute); }

@media (max-width: 560px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 18px 16px 22px; }
}
