/* Nomad Creative: one stylesheet for the studio home, game pages and policies. */

:root {
  --bg: #fbf5ea;
  --surface: #fffcf6;
  --ink: #1b2620;
  --muted: #5d6259;
  --line: #eadfca;
  --accent: #175d48;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe7;
  --sun: #f7bd5f;
  --radius: 22px;
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 8px 28px rgb(40 30 10 / 8%);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pup-grid {
  --accent: #175d48;
  --accent-soft: #e3efe7;
  --sun: #f7bd5f;
}

.pet-kart {
  --accent: #e2611c;
  --accent-soft: #fde8d6;
  --sun: #1e2c55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131815;
    --surface: #1b221e;
    --ink: #eef0e8;
    --muted: #b3b8ad;
    --line: #2b3630;
    --accent: #7fd1b0;
    --accent-ink: #0f1a15;
    --accent-soft: #1f3129;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 28px rgb(0 0 0 / 25%);
  }

  .pup-grid {
    --accent: #7fd1b0;
    --accent-soft: #1f3129;
  }

  .pet-kart {
    --accent: #ff9a5c;
    --accent-soft: #34241a;
    --sun: #9fb4f0;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.top nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Headings and text */

h1 {
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

h3 {
  font-size: 19px;
  margin: 28px 0 6px;
}

.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 24px;
}

.meta {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Studio hero */

.hero {
  padding: 40px 0 24px;
}

.hero .lead {
  margin-bottom: 8px;
}

/* Game cards on the home page */

.games {
  display: grid;
  gap: 20px;
  margin: 32px 0 16px;
}

@media (min-width: 820px) {
  .games {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgb(40 30 10 / 8%), 0 16px 40px rgb(40 30 10 / 12%);
}

.game-card .shot {
  background: var(--accent-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card.pup-grid .shot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 24px 0;
}

.game-card.pup-grid .shot img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
}

.game-card .body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
}

.game-card .body img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
}

.game-card h3 {
  margin: 0 0 2px;
  font-size: 22px;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Pills and buttons */

.pill {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 9px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.2;
}

.store small {
  font-size: 12px;
  opacity: 0.75;
}

.store strong {
  font-size: 17px;
}

.store.soon {
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed var(--line);
}

/* Game page hero */

.game-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 24px 0 8px;
}

@media (min-width: 820px) {
  .game-hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}

.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.title-row img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  flex: none;
}

.title-row h1 {
  margin: 0;
}

.title-row .pill {
  margin-top: 6px;
}

.hero-art {
  background: var(--accent-soft);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px;
}

.hero-art img {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.pup-grid .hero-art {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
}

.pup-grid .hero-art img {
  width: calc(50% - 7px);
  max-width: 260px;
  object-fit: cover;
  object-position: top;
}

.pup-grid .hero-art img:last-child {
  margin-top: 36px;
}

/* Feature grid */

.features {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

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

@media (min-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.features strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
}

.features span {
  color: var(--muted);
  font-size: 15.5px;
}

.features .emoji {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

/* Wide gallery (landscape shots) */

.gallery {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

@media (min-width: 820px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Cards and policy text */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 16px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.callout {
  background: var(--accent-soft);
  border: none;
}

.policy h2 {
  margin-top: 40px;
}

.policy li {
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

/* Footer */

footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }

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