:root {
  color-scheme: light;
  --ink: #3a3530;
  --muted: #7d7470;
  --paper: #faf8f5;
  --card: #ffffff;
  --accent: #c4887a;
  --accent-hover: #b37568;
  --peach: #f5ddd3;
  --peach-light: #fdf0eb;
  --line: #ede6df;
  --paw: #e8d9d0;
  font-family: "Nunito", "Rounded Mplus 1c", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ── Paw print background decoration ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23e8d9d0' opacity='0.45'%3E%3Cellipse cx='12' cy='16' rx='5' ry='6'/%3E%3Ccircle cx='6' cy='8' r='3'/%3E%3Ccircle cx='18' cy='8' r='3'/%3E%3Ccircle cx='4' cy='14' r='2.5'/%3E%3Ccircle cx='20' cy='14' r='2.5'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  background-position:
    80px 120px,
    320px 280px,
    600px 60px,
    900px 200px,
    150px 450px,
    700px 400px;
  background-repeat: no-repeat;
  opacity: 0.35;
}

/* ── Layout containers ── */
.site-header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

/* ── Header ── */
.header-bar {
  background: var(--peach);
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
  opacity: 1;
}

nav a::before {
  content: "· ";
  color: var(--accent);
  font-weight: 800;
}

/* ── Hero / Intro ── */
main {
  flex: 1;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.intro {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 .sub {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
}

/* ── Section headings ── */
.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ── Game card ── */
.games-section {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.game-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.game-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 430;
  object-fit: cover;
  object-position: left center;
  display: block;
  background: var(--peach-light);
}

.game-card-body {
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.game-card-body h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}

.game-card-body .tagline {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.game-card-body .meta {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover {
  background: var(--accent-hover);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Latest from Studio ── */
.latest-section {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.latest-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Prose (privacy, support, press) ── */
.prose {
  max-width: 42rem;
}

.prose h1 {
  margin-bottom: 2rem;
  text-align: left;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose a {
  color: var(--accent);
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.prose ul {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  padding-left: 1.5rem;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: top;
}

.prose td {
  color: var(--muted);
}

.prose td a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ── Footer ── */
.footer-bar {
  background: var(--peach-light);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer a {
  text-underline-offset: 0.2em;
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 40rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 1rem;
  }

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

  main {
    padding-block: 2.5rem;
  }
}
