@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Regular.latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-SemiBold.latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-ExtraBold.latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/BigShoulders-var.latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --iron-950: #121212;
  --iron-900: #1c1d1f;
  --iron-800: #2a2b2e;
  --iron-700: #36383b;
  --iron-600: #4b4d51;
  --steel-300: #a3a6ab;
  --chalk-100: #eeebe4;
  --chalk-50: #f8f6f1;
  --ink-900: #1a1a1a;
  --ink-600: #55575b;
  --red-500: #c41e3a;
  --gold-400: #c9a84c;
  --teal-400: #2fb8a8;
  --font-ui: "Barlow", system-ui, sans-serif;
  --font-num: "Barlow Condensed", "Barlow", sans-serif;
  --font-sign: "Big Shoulders", "Barlow Condensed", sans-serif;
  --r-sheet: 10px;
  --page: min(1180px, calc(100% - 40px));
  --section-gap: clamp(5rem, 10vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--iron-950);
  color: var(--chalk-100);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--chalk-50);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--chalk-50);
  color: var(--ink-900);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--iron-600);
}

.wordmark {
  position: relative;
  display: inline-block;
  color: var(--chalk-50);
  font-family: var(--font-sign);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark::after {
  content: "";
  display: block;
  width: 30%;
  height: 6px;
  margin-top: 9px;
  background: var(--red-500);
}

.wordmark-small {
  font-size: 2rem;
}

.wordmark-small::after {
  height: 4px;
  margin-top: 6px;
}

.header-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--steel-300);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--iron-800);
  border-color: var(--chalk-100);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
  padding: clamp(52px, 6vw, 84px) 0 var(--section-gap);
}

.hero-copy {
  align-self: start;
  padding-top: 12px;
}

/* Same as the game's .eyebrow (src/ui/ui.css). Gold means Plates or PRs and nothing else. */
.kicker {
  margin: 0 0 18px;
  color: var(--steel-300);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--chalk-50);
  font-family: var(--font-num);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 7vw, 6.75rem);
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.hero-lede {
  max-width: 38rem;
  margin: 0;
  color: var(--steel-300);
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
}

.hero-actions {
  display: flex;
  gap: 18px 24px;
  align-items: center;
  margin-top: 38px;
}

.hero-actions p {
  max-width: 13rem;
  margin: 0;
  color: var(--steel-300);
  font-size: 0.9375rem;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 2px solid var(--chalk-100);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

/* Chalk-100 fill, like the game's .btn.primary. */
.button-primary {
  background: var(--chalk-100);
  color: var(--ink-900);
}

.button-primary:hover {
  background: var(--chalk-50);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  color: var(--chalk-50);
}

.button-secondary:hover {
  background: var(--iron-800);
}

.hero-shot {
  position: relative;
  max-width: 390px;
  margin: 0 0 0 auto;
  padding: 10px;
  background: var(--iron-800);
  border: 1px solid var(--iron-600);
  border-radius: 10px;
  transform: rotate(1.25deg);
}

.hero-shot img {
  width: 100%;
  border-radius: 6px;
}

.hero-shot figcaption {
  position: absolute;
  right: 28px;
  bottom: -24px;
  max-width: 280px;
  padding: 13px 16px;
  background: var(--chalk-50);
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.25;
  transform: rotate(-2.5deg);
}

.hero-shot figcaption span {
  margin-right: 8px;
  color: var(--red-500);
  font-family: var(--font-num);
}

.section-rule {
  border-top: 1px solid var(--iron-600);
  padding-top: clamp(40px, 6vw, 72px);
}

.manifesto,
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: start;
}

.manifesto > p {
  margin: 30px 0 0;
  color: var(--steel-300);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.feature-list {
  margin: clamp(52px, 8vw, 100px) 0 var(--section-gap) clamp(0px, 10vw, 140px);
  border-top: 1px solid var(--iron-600);
}

.feature-list article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--iron-600);
}

/* The next section draws its own top rule. */
.feature-list article:last-child {
  border-bottom: 0;
}

.feature-list article p {
  max-width: 42rem;
  margin: 0;
  color: var(--steel-300);
}

.feature-list .feature-number {
  color: var(--red-500);
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 700;
}

.round-two {
  padding-bottom: var(--section-gap);
}

.round-two-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  column-gap: 60px;
}

.round-two-heading .kicker,
.round-two-heading h2 {
  grid-column: 1;
}

.round-two-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  color: var(--steel-300);
  font-size: 1.2rem;
}

.round-two-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--iron-600);
  border: 1px solid var(--iron-600);
}

.round-two-grid article {
  min-height: 250px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--iron-950);
}

.round-two-grid article p:last-child {
  margin: 0;
  color: var(--steel-300);
}

.round-two-grid .feature-number {
  margin: 0 0 44px;
  color: var(--red-500);
  font-family: var(--font-num);
  font-weight: 700;
}

.screens {
  padding-bottom: var(--section-gap);
}

.screens-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  column-gap: 60px;
}

.screens-heading .kicker,
.screens-heading h2 {
  grid-column: 1;
}

.screens-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  color: var(--steel-300);
  font-size: 1.2rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  margin-top: 42px;
}

.shot {
  margin: 0;
}

.shot-a { grid-column: 1 / span 4; }
.shot-b { grid-column: 6 / span 4; margin-top: 100px; }
.shot-c { grid-column: 10 / span 3; margin-top: 28px; }
.shot-d { grid-column: 2 / span 4; margin-top: 40px; }
.shot-e { grid-column: 7 / span 4; margin-top: 140px; }

.shot img {
  width: 100%;
  background: var(--iron-900);
  border: 1px solid var(--iron-600);
  border-radius: 6px;
}

.shot figcaption {
  margin-top: 13px;
  color: var(--steel-300);
  font-size: 0.9375rem;
}

.shot figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--chalk-100);
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts {
  padding-bottom: var(--section-gap);
}

.facts dl {
  margin: 8px 0 0;
  border-top: 1px solid var(--iron-600);
}

.facts dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--iron-600);
}

.facts dt {
  color: var(--steel-300);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* A chalk "paper" surface, like the game's receipts and whiteboard. On wide screens the button sits
   bottom-right, level with the heading's last line, so the sheet isn't empty on the right. */
.final-cta {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  align-items: end;
  margin: 0 auto var(--section-gap);
  padding: clamp(44px, 7vw, 88px);
  background: var(--chalk-50);
  color: var(--ink-900);
  border-radius: var(--r-sheet);
}

.final-cta .kicker {
  grid-column: 1 / -1;
  color: var(--ink-600);
}

.final-cta h2 {
  max-width: 12ch;
  margin-bottom: 0;
  color: var(--ink-900);
}

.final-cta .button-primary {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--chalk-50);
}

.final-cta .button-primary:hover {
  background: var(--iron-800);
}

.final-cta :focus-visible {
  outline-color: var(--ink-900);
}

footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--iron-600);
  color: var(--steel-300);
}

footer p {
  margin: 0 0 4px;
}

footer > div {
  text-align: right;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  position: relative;
  flex: 1;
  padding: clamp(80px, 12vw, 160px) 0;
}

.error-main h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 9rem);
}

.error-main > p:not(.kicker, .error-code) {
  max-width: 34rem;
  color: var(--steel-300);
  font-size: 1.3rem;
}

.error-code {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: 0;
  margin: 0;
  color: var(--iron-800);
  font-family: var(--font-num);
  font-size: clamp(12rem, 34vw, 30rem);
  font-weight: 800;
  line-height: 0.8;
}

.error-page footer > div {
  text-align: left;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 32px, 680px);
    --section-gap: 5rem;
  }

  .hero,
  .manifesto,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-shot {
    width: min(86%, 390px);
    margin-right: 4%;
  }

  .manifesto > p {
    margin-top: 0;
  }

  .feature-list {
    margin-left: 0;
  }

  .final-cta {
    display: block;
  }

  .final-cta h2 {
    margin-bottom: 24px;
  }

  .screens-heading {
    display: block;
  }

  .round-two-heading {
    display: block;
  }

  .round-two-heading > p:last-child {
    max-width: 32rem;
  }

  .round-two-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screens-heading > p:last-child {
    max-width: 32rem;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-a,
  .shot-b,
  .shot-c,
  .shot-d,
  .shot-e {
    grid-column: auto;
    margin-top: 0;
  }

  .shot-b,
  .shot-d {
    margin-top: 90px;
  }
}

@media (max-width: 520px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-header {
    min-height: 82px;
  }

  .wordmark {
    font-size: 2.45rem;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 54px;
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-shot {
    width: 91%;
    margin-right: 2%;
  }

  .hero-shot figcaption {
    right: -8px;
    max-width: 240px;
  }

  .feature-list article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .round-two-grid {
    grid-template-columns: 1fr;
  }

  .round-two-grid article {
    min-height: 0;
  }

  .round-two-grid .feature-number {
    margin-bottom: 24px;
  }

  .shot-grid {
    gap: 34px 14px;
  }

  .shot-b,
  .shot-d {
    margin-top: 64px;
  }

  .shot figcaption {
    font-size: 0.82rem;
  }

  .facts dl div {
    display: block;
  }

  .facts dd {
    text-align: left;
  }

  .final-cta {
    padding: 36px 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  footer > div {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button-primary:hover {
    transform: none;
  }
}

.apps-note {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  color: var(--ink-600);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 6px;
}

.error-page footer .footer-links {
  justify-content: flex-start;
}

@media (max-width: 520px) {
  .footer-links {
    justify-content: flex-start;
  }
}

/* Legal pages (privacy.html, terms.html) */
.legal {
  max-width: 46rem;
  padding: clamp(48px, 8vw, 96px) 0;
}

.legal h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
}

.legal h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.legal h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--chalk-100);
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal .effective {
  color: var(--steel-300);
  font-size: 1.1rem;
}

.legal .updated-note {
  margin-top: 3em;
  padding-top: 1.2em;
  border-top: 1px solid var(--iron-600);
  color: var(--steel-300);
}

.legal a {
  overflow-wrap: anywhere;
}
