@font-face {
  font-family: "MYB Display";
  src: url("./Bangers-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #071d38;
  --ink-soft: #314156;
  --paper: #f3ead7;
  --paper-light: #fbf7ed;
  --teal: #006b73;
  --teal-dark: #00525a;
  --amber: #e6a02a;
  --amber-dark: #9f6410;
  --red: #812f2d;
  --line: #31516a;
  --line-soft: rgba(49, 81, 106, 0.36);
  --shadow: rgba(7, 29, 56, 0.22);
  --display: "MYB Display", Impact, "Arial Narrow", sans-serif;
  --body: Georgia, "Times New Roman", serif;
  --max-width: 1480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 12px 18px;
  color: var(--paper-light);
  background: var(--ink);
  border: 2px solid var(--amber);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

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

.site-header,
main,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  border-bottom: 2px solid var(--line);
}

.brand {
  width: max-content;
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none;
  transform: rotate(-1deg);
}

.site-navigation {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 4vw, 62px);
  height: 88px;
}

.site-navigation a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 92px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 15px;
  left: 10px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(540px, 1.22fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
  min-height: 600px;
  padding-block: clamp(34px, 5vw, 76px) 32px;
}

.hero-copy {
  padding-left: clamp(16px, 3vw, 52px);
}

.hero h1,
.progress-section h2,
.about-section h2,
.playtesting-section h2,
.principles h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.025em;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(60px, 5.7vw, 94px);
  line-height: 0.93;
  text-wrap: balance;
}

.hero h1::after,
.progress-section h2::after,
.about-section h2::after,
.playtesting-section h2::after {
  content: "";
  display: block;
  width: min(100%, 340px);
  height: 3px;
  margin-top: 16px;
  background: var(--teal);
}

.hero-intro {
  max-width: 610px;
  margin: 28px 0 24px;
  font-size: clamp(21px, 1.7vw, 29px);
  line-height: 1.32;
}

.primary-action {
  width: min(100%, 350px);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 28px 13px;
  color: var(--ink);
  background: var(--amber);
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--shadow);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-action svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #f1b642;
  box-shadow: 2px 3px 0 var(--shadow);
  transform: translate(3px, 3px);
}

.playtest-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  font-style: italic;
}

.hero-art {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--paper-light);
  border: 2px solid var(--line);
  box-shadow: 10px 12px 0 rgba(7, 29, 56, 0.12);
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.progress-section {
  padding: clamp(30px, 4vw, 54px);
  background: rgba(251, 247, 237, 0.78);
  border: 2px solid var(--line);
}

.progress-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(620px, 1.55fr);
  gap: 42px;
  align-items: center;
}

.progress-section h2,
.about-section h2,
.playtesting-section h2 {
  font-size: clamp(40px, 3.6vw, 58px);
  line-height: 1;
}

.progress-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.progress-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding-inline: clamp(18px, 2.5vw, 40px);
  border-left: 1px solid var(--line-soft);
}

.progress-facts dt {
  color: var(--teal-dark);
  font-size: clamp(44px, 4.5vw, 70px);
  line-height: 1;
}

.progress-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.act-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 28px;
  padding: 0;
  list-style: none;
}

.act-progress::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 16.5%;
  left: 16.5%;
  height: 2px;
  background: var(--line);
}

.act-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-top: 28px;
  text-align: center;
}

.act-progress li::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--paper-light);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper-light);
}

.act-progress .is-active::before {
  background: var(--teal);
}

.act-progress span {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.act-progress strong {
  color: var(--ink-soft);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
}

.progress-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.progress-tabs button {
  min-height: 54px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}

.progress-tabs button[aria-selected="true"] {
  color: var(--paper-light);
  background: var(--teal);
}

.progress-tabs button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.progress-detail {
  min-height: 86px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px 28px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-top: 0;
  font-size: clamp(19px, 1.5vw, 24px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(700px, 1.38fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: start;
  padding: clamp(60px, 7vw, 100px) clamp(16px, 3vw, 52px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.principles article {
  min-height: 174px;
  padding: 28px clamp(18px, 2vw, 34px);
}

.principles article + article {
  border-left: 1px solid var(--line-soft);
}

.principles h3 {
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.principles p {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.playtesting-section {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(500px, 1fr) 300px;
  gap: 48px;
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(30px, 4vw, 52px);
  background: rgba(251, 247, 237, 0.7);
  border: 2px solid var(--line);
}

.playtesting-section p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(19px, 1.6vw, 25px);
}

.device-lines {
  position: relative;
  height: 110px;
}

.device-lines__desktop,
.device-lines__mobile {
  position: absolute;
  bottom: 8px;
  display: block;
  border: 3px solid var(--teal-dark);
  box-shadow: 5px 5px 0 rgba(7, 29, 56, 0.1);
}

.device-lines__desktop {
  right: 88px;
  width: 150px;
  height: 92px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 88%, 76% 88%, 84% 100%, 16% 100%, 24% 88%, 0 88%, 0 8px);
}

.device-lines__mobile {
  right: 14px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
}

.site-footer {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 18px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--teal-dark);
}

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

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 800px;
    padding-left: 0;
  }

  .hero-art {
    width: 100%;
  }

  .progress-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

  .progress-heading {
    gap: 28px;
  }

  .playtesting-section {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 16px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    position: relative;
    z-index: 20;
    min-height: 74px;
  }

  .brand {
    font-size: clamp(30px, 9vw, 40px);
  }

  .menu-button {
    min-width: 92px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 0 8px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-button svg {
    width: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    height: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    background: var(--paper-light);
    border: 2px solid var(--line);
    box-shadow: 8px 10px 0 var(--shadow);
  }

  .site-navigation.is-open {
    display: grid;
  }

  .site-navigation a {
    min-height: 48px;
    display: flex;
    justify-content: flex-start;
    padding-inline: 16px;
  }

  .site-navigation a::after {
    right: 16px;
    bottom: 6px;
    left: 16px;
  }

  .hero {
    gap: 24px;
    padding-block: 34px 24px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 72px);
    line-height: 0.94;
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 20px;
  }

  .primary-action {
    min-height: 60px;
    font-size: 24px;
  }

  .playtest-note {
    font-size: 17px;
  }

  .hero-art {
    padding: 7px;
    box-shadow: 6px 7px 0 rgba(7, 29, 56, 0.12);
  }

  .progress-section {
    padding: 28px 18px;
  }

  .progress-section h2,
  .about-section h2,
  .playtesting-section h2 {
    font-size: 42px;
  }

  .progress-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-facts div {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-align: center;
  }

  .progress-facts dt {
    font-size: 48px;
  }

  .progress-facts dd {
    font-size: 12px;
  }

  .act-progress {
    gap: 8px;
  }

  .act-progress span {
    font-size: 14px;
  }

  .act-progress strong {
    font-size: 12px;
  }

  .progress-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .progress-tabs button {
    min-height: 48px;
    text-align: left;
  }

  .progress-detail {
    min-height: 108px;
    border-top: 1px solid var(--line);
    font-size: 18px;
  }

  .about-section {
    gap: 28px;
    padding: 64px 4px;
  }

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

  .principles article {
    min-height: auto;
    padding: 24px 8px;
  }

  .principles article + article {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .principles h3 {
    font-size: 30px;
  }

  .playtesting-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 20px;
  }

  .device-lines {
    width: 210px;
    justify-self: end;
  }

  .site-footer {
    min-height: 66px;
  }

  .site-footer p {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 49px;
  }

  .progress-facts dd {
    font-size: 10px;
  }

  .act-progress strong {
    font-size: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  html,
  body {
    background: white;
  }

  .site-header,
  .primary-action,
  .menu-button {
    display: none !important;
  }

  main,
  .site-footer {
    width: 100%;
  }

  .hero,
  .about-section,
  .playtesting-section {
    break-inside: avoid;
  }
}
