:root {
  --paper: #f4eee2;
  --tile: #fffdf8;
  --ink: #1e2430;
  --muted: #5b6472;
  --line: #ddd4c4;
  --orange: #e36a1c;
  --orange-deep: #c45312;
  --teal: #1a7a72;
  --teal-deep: #125e58;
  --shadow: 0 16px 40px rgba(30, 36, 48, 0.08);
  --radius: 22px;
  --max: 1120px;
  --header: 4.5rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(227, 106, 28, 0.16), transparent 32rem),
    radial-gradient(circle at 0% 18%, rgba(26, 122, 114, 0.12), transparent 28rem),
    var(--paper);
  font-family: Figtree, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(30, 36, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 36, 48, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

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

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-deep);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244, 238, 226, 0.88);
  border-bottom: 1px solid rgba(221, 212, 196, 0.8);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--tile);
  box-shadow: 3px 3px 0 rgba(26, 122, 114, 0.22);
}

.logo-mark span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark small {
  position: absolute;
  top: 0.12rem;
  right: 0.28rem;
  color: var(--orange);
  font-family: Fraunces, Georgia, serif;
  font-size: 0.62rem;
  font-weight: 700;
}

.logo-word {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.logo-word em {
  color: var(--teal);
  font-style: normal;
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--tile);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button {
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 0 var(--orange-deep);
}

.button:hover {
  color: white;
  transform: translateY(-1px);
}

.button.is-disabled {
  box-shadow: none;
  cursor: default;
}

.button-secondary {
  color: var(--ink);
  background: var(--tile);
  border: 1px solid var(--line);
}

.hero,
.section {
  padding: 5rem 0;
}

.hero-grid,
.split,
.cards,
.gallery {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.logo-word {
  letter-spacing: -0.03em;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.lead,
.muted {
  color: var(--muted);
}

.lead {
  max-width: 38rem;
  font-size: 1.15rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-board {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--tile);
  box-shadow: var(--shadow);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.tile {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fffaf1;
  box-shadow: 0 6px 0 rgba(30, 36, 48, 0.05);
}

.tile b {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.tile small {
  color: var(--orange);
  font-weight: 800;
}

.hero-caption {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-frame {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: #efe6d4;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

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

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

.card,
.legal,
.notice {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: var(--shadow);
}

.split {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

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

.shot {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: #efe6d4;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.game-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.game-media {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.game-logo {
  width: min(100%, 14rem);
  height: auto;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: #0b0714;
}

.game-media .shot {
  max-width: 14rem;
}

.shot-dark {
  background: #140c22;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #fff7ec;
  border-color: #efd2b4;
}

.status-pill {
  align-self: start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f3d7b5;
  color: #7a3d0d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.legal-page {
  padding: 5.5rem 0 4rem;
}

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

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header) - 0.3rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--tile);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .split,
  .cards,
  .cards.pair,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .legal-page {
    padding: 3.4rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
