/* 1Pod. The page is as dark as the app: black is a panel that is off. */
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --off: #000;
  --lcd: #e9ede1;
  --lcd-title: #cbd5d6;
  --lcd-rule: #9ca9a3;
  --ink: #25322c;
  --select: #377fb2;
  --text: #f1f0ee;
  --quiet: #a09ca6;
  --rule: #2b2a2f;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--off); color-scheme: dark; }
body {
  margin: 0;
  background: var(--off);
  color: var(--text);
  font-family: "Source Sans 3", "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #7dbef0; outline-offset: 3px; }

/* The first screen is the object: the name, one sentence, the menu, and the two players. */
.hero {
  max-width: 1320px;
  min-height: min(100svh, 940px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
h1 {
  margin: 0;
  font-size: clamp(72px, 13vw, 148px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.lede {
  margin: 22px 0 34px;
  max-width: 22em;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.45;
}
.lede span { color: var(--quiet); }

/* The links are a menu on the player's own screen. The highlight follows the pointer. */
.menu {
  max-width: 420px;
  background: var(--lcd);
  color: var(--ink);
  border: 3px solid #0d0f10;
  outline: 1px solid #4a4d52;
  border-radius: 4px;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 4px 4px;
  box-shadow: inset 0 5px 9px -4px #0008;
}
.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(#fff, var(--lcd-title) 60%);
  border-bottom: 1px solid var(--lcd-rule);
}
.menu-title i { width: 0; height: 0; border-left: 11px solid var(--select); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.menu-title b { width: 26px; height: 12px; border: 1px solid #4a5b50; border-radius: 2px; background: linear-gradient(#9fdb6b, #4d9e38); box-shadow: inset 0 0 0 1px #fff; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px 9px 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
}
.menu a small { font-size: 15px; font-weight: 600; opacity: 0.82; margin-left: auto; }
.menu a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}
.menu:not(:hover):not(:focus-within) li:first-child a,
.menu a:hover,
.menu a:focus-visible {
  color: #fff;
  /* Darker than the player's own highlight, so white type holds 4.5:1 from top to bottom. */
  background: linear-gradient(#3577ab, #2d6c9d 55%, #255c88);
  outline: none;
}
.menu:not(:hover):not(:focus-within) li:first-child a small, .menu a:hover small, .menu a:focus-visible small { opacity: 1; }

/* Two photographs on black. The pair is never taller than the window. */
.players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  width: 100%;
  max-width: min(calc(100svh - 96px), 760px);
  margin: 0 auto;
}
.players img { display: block; width: 100%; height: auto; }
.players img:last-child { margin-left: -4%; margin-top: 14%; mix-blend-mode: lighten; }

.facts {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 44px);
}
.facts div { border-top: 1px solid var(--rule); padding-top: 16px; }
.facts dt { font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--quiet); font-size: 17px; }

footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) 44px;
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.45;
}
footer p { margin: 0; max-width: 46em; }
footer a { text-underline-offset: 3px; }

/* The other pages: one column of text on the same black. */
.text { max-width: 44em; margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gutter) 64px; }
.text h1 { font-size: clamp(44px, 7vw, 68px); letter-spacing: -0.03em; line-height: 1; }
.text h2 { margin: 40px 0 8px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.text p, .text li { color: #d9d7dc; }
.text li { margin-bottom: 6px; }
.text a { text-underline-offset: 3px; }
.text table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 17px; }
.text th, .text td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--rule); color: #d9d7dc; }
.text th { color: var(--text); font-weight: 600; }
.text .menu { margin-top: 28px; }
.text .menu li { margin: 0; }
.back { display: inline-block; margin-bottom: 26px; color: var(--quiet); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 40px; }
  .players { order: -1; max-width: 520px; }
  .menu { max-width: none; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 20px; }
}
