@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0B1F2A;
  --purple: #6D28D9;
  --purple-hover: #5B21B6;
  --purple-soft: #8B5CF6;
  --lavender: #C4B5FD;
  --bg: #F8F6F3;
  --surface: #FFFFFF;
  --border: #E5E2DC;
  --text: #0B1F2A;
  --text-sec: #5C6B73;
  --muted: #94A3A8;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

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

body.page-404 > main {
  flex: 1 0 auto;
}

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

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

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 12em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--purple);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 40;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
  top: 0.75rem;
}

.wrap {
  width: min(70rem, calc(100% - 3rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[id] {
  scroll-margin-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--purple-soft);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  /* Clear space is about 16% of the main logo height and 17% of the games logo height. */
  padding: 0.625rem;
}

.brand img,
.footer-brand img {
  display: block;
  height: auto;
  max-width: none;
  object-fit: contain;
}

/* 162×56 stays above the 120px minimum. 208×56 stays above the 100px games minimum. */
.brand img.logo-main,
.footer-brand img.logo-main {
  width: 162px;
  min-width: 120px;
}

.brand img.logo-games,
.footer-brand img.logo-games {
  width: 208px;
  min-width: 100px;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-icon {
  display: block;
}

.nav-icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-icon-close {
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--purple);
}

.hero {
  padding: 5.5rem 0 4.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--text-sec);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 1.4rem;
  height: 2px;
  background: var(--purple-soft);
  flex: none;
}

.lede {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--text-sec);
}

.trust {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: var(--text-sec);
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-hover);
  border-color: var(--purple-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.link {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.services {
  padding: 0 0 4.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--purple) 40%, transparent);
  box-shadow: 0 8px 24px rgba(11, 31, 42, 0.08);
  transform: translateY(-2px);
}

.card img {
  display: block;
  width: 52px;
  height: 52px;
}

.card h3 {
  margin: 1rem 0 0.4rem;
}

.card p {
  color: var(--text-sec);
}

.contact {
  padding: 0.5rem 0 5.5rem;
}

.contact h2 {
  max-width: 12.5em;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  padding: 0.625rem;
}

.site-footer .footer-brand:hover,
.site-footer .footer-brand:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.site-footer .footer-brand:hover img,
.site-footer .footer-brand:focus-visible img {
  opacity: 0.85;
}

.site-footer .footer-brand:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--purple-soft);
  text-underline-offset: 0.2em;
}

.site-footer a:focus-visible {
  outline-color: var(--lavender);
}

.footer-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-mail {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--white);
  text-decoration-color: var(--purple-soft);
}

.site-footer address {
  font-style: normal;
}

.prose address {
  margin: 0.85rem 0 0;
  color: var(--text-sec);
  font-style: normal;
}

.subpage {
  padding: 4.5rem 0 5.5rem;
}

.prose {
  max-width: 40rem;
}

.prose h1 {
  margin-bottom: 1rem;
}

.prose p {
  margin-top: 0.85rem;
  color: var(--text-sec);
}

.prose a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

@media (max-width: 768px) {
  .wrap {
    width: min(70rem, calc(100% - 2.5rem));
  }

  .bar {
    flex-wrap: wrap;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .brand img.logo-main,
  .footer-brand img.logo-main {
    width: 133px;
  }

  .brand img.logo-games,
  .footer-brand img.logo-games {
    width: 160px;
  }

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

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    padding-bottom: 0.85rem;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 1.25rem 0.75rem;
    box-shadow: 0 8px 24px rgba(11, 31, 42, 0.08);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
  }

  .js .site-nav a {
    display: block;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
  }

  .footer-top {
    align-items: flex-start;
  }
}

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

  .card,
  .btn,
  .game-card {
    transition: none;
  }

  .card:hover,
  .game-card:hover {
    transform: none;
  }
}

.site-nav a[aria-current="page"] {
  color: var(--purple);
}

.games-band {
  padding: 0 0 4.5rem;
}

.games-teaser h2 {
  margin-top: 0.35rem;
}

.games-teaser .actions {
  margin-top: 1.25rem;
}

.games-hero-frame {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.games-hero-frame picture {
  display: block;
}

.games-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.games-hero-copy {
  position: absolute;
  /* Headline sits in the calm sky: x 230–760, y 70–300 on the 1600×600 art. */
  left: calc(230 / 1600 * 100%);
  top: calc(70 / 600 * 100%);
  width: calc(530 / 1600 * 100%);
  z-index: 1;
  padding: 0.7rem 1rem 0.85rem;
  border-radius: 12px;
  background: rgba(11, 31, 42, 0.72);
  color: #F8F6F3;
}

.games-hero-copy h1,
.games-hero-copy .lede,
.games-hero-copy .eyebrow {
  color: #F8F6F3;
}

.games-hero-copy h1 {
  max-width: none;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}

.games-hero-copy .lede {
  max-width: none;
  margin-top: 0.55rem;
}

.game-index {
  padding: 0 0 5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-grid > li {
  display: flex;
  min-width: 0;
}

.game-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--purple) 40%, transparent);
  box-shadow: 0 8px 24px rgba(11, 31, 42, 0.08);
  transform: translateY(-2px);
}

.game-card:hover h2 {
  color: var(--purple);
}

.game-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.game-icon {
  flex: none;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.game-icon img,
.game-heading img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--ink);
}

.game-card h2 {
  margin-top: 0.35rem;
  font-size: 1.25rem;
}

.tagline,
.game-card .meta,
.shots-note,
.game-desc {
  color: var(--text-sec);
}

.game-card .meta,
.wip {
  margin: 0;
  font-size: 0.8125rem;
}

.wip {
  color: var(--text-sec);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-row {
  margin-top: auto;
  padding-top: 0.85rem;
}

.status-pill,
a.game-card:hover .status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
}

.crumb {
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.crumb a,
.backlinks a,
.game-support a,
.game-privacy a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.feature {
  margin: 0 0 1.75rem;
  max-width: 1024px;
}

.feature img {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: auto;
  border-radius: 14px;
  background: var(--surface);
}

.game-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.game-desc {
  max-width: 40rem;
  margin-top: 1rem;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.5rem 0 0;
}

.game-facts div {
  margin: 0;
}

.game-facts dt {
  color: var(--text-sec);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 650;
}

.store-soon {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.screenshots,
.game-support {
  margin-top: 2.75rem;
}

.section-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.shots {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.shots.is-portrait {
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}

.shot {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.shots-note {
  margin-top: 0.75rem;
}

.policy h1 {
  max-width: none;
}

.policy h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.policy p,
.policy li {
  color: var(--text-sec);
}

.policy strong {
  color: var(--ink);
  font-weight: 650;
}

.policy ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.policy li {
  margin-top: 0.35rem;
}

.policy a {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

.policy hr {
  margin: 2rem 0 1rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.todo {
  padding: 0.02em 0.35em;
  border: 1px dashed var(--purple);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.policy-date {
  display: inline-block;
  padding: 0.02em 0.4em;
  border: 1px dashed var(--purple);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.backlinks {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .shots.is-landscape {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-heading {
    align-items: flex-start;
  }

  .games-hero-frame {
    min-height: 22rem;
  }

  .games-hero-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .games-hero-copy {
    left: 1rem;
    right: 1rem;
    top: 1rem;
    width: auto;
    max-width: 22rem;
    background: rgba(11, 31, 42, 0.78);
  }
}
