:root {
  color-scheme: light;
  --ink: #111116;
  --muted: #66635c;
  --paper: #f7f4ea;
  --paper-deep: #e2ded2;
  --panel: #fffdf6;
  --green: #9eed25;
  --green-dark: #70b80c;
  --orange: #ff9f2c;
  --yellow: #ffd13d;
  --red: #f65053;
  --pink: #ff4b96;
  --line: #111116;
  --shadow: 8px 8px 0 var(--ink);
  --soft-shadow: 0 18px 40px rgba(17, 17, 22, 0.14);
  --radius: 8px;
  --max: 1180px;
}

@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("img/fonts/anybody.woff2") format("woff2");
}

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

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("img/fonts/jetbrains-mono.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 22, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(17, 17, 22, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family: "Anybody", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(17, 17, 22, 0.08) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.45;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(247, 244, 234, 0.88);
  border-bottom: 3px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(16px, 3vw, 34px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  width: 94px;
}

.mini-tile,
.floating-letter,
.card-glyph {
  align-items: center;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-flex;
  font-family: "Bungee", Impact, sans-serif;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
}

.mini-tile {
  border-radius: 8px;
  height: 30px;
  width: 30px;
}

.mini-tile:nth-child(1) {
  rotate: -8deg;
}

.mini-tile:nth-child(2) {
  margin-top: 4px;
  rotate: 4deg;
}

.mini-tile:nth-child(3) {
  margin-top: 10px;
  rotate: -3deg;
}

.tile-orange {
  background: var(--orange);
}

.tile-green {
  background: var(--green);
}

.tile-yellow {
  background: var(--yellow);
}

.header-cta,
.button {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
}

.header-cta,
.button {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  text-align: center;
  text-transform: uppercase;
}

.header-cta {
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 70px);
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  margin: 0 auto;
  max-width: var(--max);
  min-height: calc(100svh - 74px);
  padding: clamp(42px, 7vw, 92px) clamp(16px, 4vw, 28px) clamp(38px, 6vw, 70px);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  color: var(--pink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Bungee", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  display: grid;
  font-size: clamp(3.1rem, 8.2vw, 6.7rem);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.title-eat {
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--orange);
}

.title-words {
  color: var(--green);
  text-shadow: 6px 6px 0 var(--ink);
}

.title-pill {
  background: var(--ink);
  border-radius: 999px;
  color: var(--panel);
  display: inline-flex;
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(0.88rem, 1.65vw, 1.35rem);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 10px;
  padding: 8px 18px 9px;
  text-transform: uppercase;
}

.title-tagline {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.hero-lede,
.section-heading p,
.cover-copy p,
.native-copy p,
.playdate-copy p,
.notify-section p {
  color: #3d3a34;
  font-size: clamp(1.03rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 22px;
}

.button-primary {
  background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-secondary {
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:hover,
.header-cta:hover {
  translate: -1px -1px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-strip span {
  background: var(--ink);
  border-radius: 999px;
  color: var(--panel);
  font-size: 0.76rem;
  font-weight: 950;
  padding: 7px 11px;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
}

.app-icon {
  border: 4px solid var(--line);
  border-radius: 22%;
  box-shadow: var(--shadow);
  height: clamp(74px, 10vw, 118px);
  left: -22px;
  position: absolute;
  top: -32px;
  width: clamp(74px, 10vw, 118px);
  z-index: 3;
}

.screenshot-frame {
  background: var(--panel);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-frame {
  rotate: 1deg;
}

.hero-frame img {
  aspect-ratio: 1.4 / 1;
  height: 100%;
  object-fit: cover;
  object-position: 38% 52%;
  width: 100%;
}

.media-label {
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  bottom: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  left: 14px;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
}

.floating-letter {
  border-radius: 8px;
  font-size: 1.7rem;
  height: 58px;
  position: absolute;
  width: 58px;
}

.letter-a {
  background: var(--orange);
  right: -18px;
  rotate: 9deg;
  top: -22px;
}

.letter-s {
  background: var(--green);
  bottom: 28%;
  left: -26px;
  rotate: -11deg;
}

.letter-t {
  background: var(--yellow);
  bottom: -20px;
  right: 14%;
  rotate: 5deg;
}

.platform-band,
.feature-grid,
.cover-section,
.native-section,
.screens-section,
.playdate-section,
.notify-section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(42px, 7vw, 82px) clamp(16px, 4vw, 28px);
}

.platform-band {
  align-items: end;
  border-bottom: 4px solid var(--line);
  border-top: 4px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 0.8fr 1.2fr;
}

.platform-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-list li {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 950;
  padding: 16px 12px;
  text-align: center;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 820px;
}

.alpha-note {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 14px;
  text-transform: uppercase;
}

.feature-card {
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 245px;
  padding: 24px;
}

.feature-card p {
  margin-bottom: 0;
}

.feature-card-green {
  background: var(--green);
}

.feature-card-orange {
  background: var(--orange);
}

.feature-card-red {
  background: var(--red);
  color: var(--panel);
}

.card-glyph {
  background: var(--panel);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.6rem;
  height: 54px;
  margin-bottom: 24px;
  rotate: -4deg;
  width: 54px;
}

.cover-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(280px, 0.82fr) 1fr;
}

.cover-art {
  rotate: -1deg;
}

.cover-art img {
  aspect-ratio: 1.26 / 1;
  object-fit: cover;
  width: 100%;
}

.cover-copy {
  max-width: 680px;
}

.native-section {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: 0.88fr 1.12fr;
}

.native-list {
  display: grid;
  gap: 14px;
}

.native-list div {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.native-list strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.native-list span {
  color: var(--muted);
}

.gameplay-shot {
  max-width: 980px;
}

.gameplay-shot img {
  aspect-ratio: 16 / 10;
  background: var(--panel);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.playdate-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: 330px 1fr;
}

.playdate-device {
  aspect-ratio: 0.74;
  background: #ffd82f;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}

.playdate-screen {
  background:
    linear-gradient(rgba(32, 37, 21, 0.11) 1px, transparent 1px) 0 0 / 12px 12px,
    #8b9858;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  color: #202515;
  display: flex;
  flex-direction: column;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  height: 190px;
  max-height: 42%;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.pd-brand-screen {
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: center;
}

.pd-tile-lockup {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 36px);
  justify-content: center;
}

.pd-tile-lockup span {
  align-items: center;
  background: transparent;
  border: 3px solid #202515;
  display: grid;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0;
  height: 36px;
  line-height: 1;
  text-transform: uppercase;
  width: 36px;
}

.pd-tile-lockup span:nth-child(1) {
  rotate: -5deg;
}

.pd-tile-lockup span:nth-child(2) {
  rotate: 4deg;
}

.pd-tile-lockup span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  rotate: -2deg;
}

.pd-wordmark {
  display: grid;
  gap: 5px;
}

.pd-wordmark strong,
.pd-wordmark span {
  line-height: 1;
  text-transform: uppercase;
}

.pd-wordmark strong {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.pd-wordmark span {
  border: 2px solid #202515;
  border-radius: 999px;
  display: inline-flex;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  justify-self: center;
  padding: 4px 10px;
}

.playdate-pad {
  background: var(--ink);
  border-radius: 8px;
  bottom: 72px;
  height: 84px;
  left: 44px;
  position: absolute;
  width: 84px;
}

.playdate-pad::before,
.playdate-pad::after {
  background: #ffd82f;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  translate: -50% -50%;
}

.playdate-pad::before {
  height: 16px;
  width: 68px;
}

.playdate-pad::after {
  height: 68px;
  width: 16px;
}

.playdate-buttons {
  bottom: 86px;
  display: flex;
  gap: 18px;
  position: absolute;
  right: 44px;
}

.playdate-buttons span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 34px;
  width: 34px;
}

.playdate-crank {
  background: var(--ink);
  border-radius: 0 8px 8px 0;
  height: 78px;
  position: absolute;
  right: -28px;
  top: 128px;
  width: 28px;
}

.playdate-copy {
  max-width: 650px;
}

.notify-section {
  align-items: start;
  background: var(--ink);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  color: var(--panel);
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(360px, 0.86fr) minmax(360px, 1.14fr);
  margin-bottom: 44px;
}

.notify-section p {
  color: #e7e1d2;
  margin-bottom: 0;
}

.launch-stack {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.store-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge,
.testflight-card {
  display: inline-flex;
}

.store-badge {
  background: #000;
  border-radius: 8px;
  height: 48px;
  overflow: hidden;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.testflight-card {
  align-items: center;
  background: var(--panel);
  border: 3px solid var(--panel);
  border-radius: 10px;
  color: var(--ink);
  gap: 10px;
  min-height: 48px;
  padding: 7px 12px 7px 8px;
}

.testflight-card img {
  border-radius: 8px;
  height: 34px;
  width: 34px;
}

.testflight-card span {
  display: grid;
  gap: 1px;
}

.testflight-card strong,
.testflight-card small {
  line-height: 1.1;
}

.testflight-card strong {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.testflight-card small,
.launch-note,
.badge-note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-note {
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.testflight-card small {
  color: var(--muted);
}

.notify-section .launch-note {
  color: #e7e1d2;
}

.power-cycle {
  display: inline-flex;
}

.power-cycle span {
  animation: powerCycle 1.9s steps(1, end) infinite;
  animation-delay: calc(var(--i) * -0.13s);
  color: var(--green);
}

.notify-section .badge-note {
  color: #8f897d;
  font-size: 0.58rem;
  line-height: 1.35;
  margin-top: -10px;
  max-width: 480px;
}

@keyframes powerCycle {
  0%,
  100% {
    color: #ff5252;
  }
  16% {
    color: #ff9f2c;
  }
  32% {
    color: #ffd23f;
  }
  48% {
    color: #a3e635;
  }
  64% {
    color: #38bdf8;
  }
  80% {
    color: #a78bfa;
  }
}

@media (prefers-reduced-motion: reduce) {
  .power-cycle span {
    animation: none;
  }
}

.is-disabled {
  cursor: default;
  opacity: 0.74;
}

.site-footer {
  align-items: center;
  border-top: 3px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 14px;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 34px);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    align-items: start;
    flex-wrap: wrap;
  }

  .hero,
  .platform-band,
  .cover-section,
  .native-section,
  .playdate-section,
  .notify-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .app-icon {
    left: 14px;
    top: -26px;
  }

  .platform-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .playdate-device {
    max-width: 330px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .header-cta {
    min-height: 40px;
    padding: 10px 12px;
  }

  h1 {
    text-shadow: 4px 4px 0 var(--orange), 8px 8px 0 var(--ink);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    align-items: center;
  }

  .platform-list {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .floating-letter {
    display: none;
  }

  .media-label {
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
