:root {
  --bg: #f0ece4;
  --ink: #121514;
  --muted: #5f665c;
  --line: rgba(18, 21, 20, 0.1);
  --accent: #2f5d50;
  --accent-hover: #244a40;
  --clay: #c45c26;
  --mark-pine: #2f5d50;
  --mark-clay: #c45c26;
  --store-badge-bg: #121514;
  --store-badge-fg: #faf9f7;
  --store-badge-border: rgba(18, 21, 20, 0.12);
  --surface: #f7f4ee;
  --surface-raised: #faf8f3;
  --header-bg: rgba(240, 236, 228, 0.86);
  --nav-hover: rgba(18, 21, 20, 0.04);
  --ghost-border-hover: rgba(18, 21, 20, 0.14);
  --btn-text: #f7faf8;
  --gradient-a: rgba(47, 93, 80, 0.07);
  --gradient-b: rgba(196, 92, 38, 0.06);
  --max: 40rem;
  --radius: 0.875rem;
  --radius-pill: 999px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(18, 21, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(18, 21, 20, 0.07);
  --ease: 160ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131614;
    --ink: #e6eae7;
    --muted: #96a098;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #7aad98;
    --accent-hover: #92c0ad;
    --clay: #d9784a;
    --mark-pine: #8bb8a8;
    --mark-clay: #e08a5a;
    --store-badge-bg: #f7f4ee;
    --store-badge-fg: #121514;
    --store-badge-border: rgba(255, 255, 255, 0.14);
    --surface: #1a1f1c;
    --surface-raised: #212722;
    --header-bg: rgba(19, 22, 20, 0.88);
    --nav-hover: rgba(255, 255, 255, 0.06);
    --ghost-border-hover: rgba(255, 255, 255, 0.16);
    --btn-text: #f0f5f2;
    --gradient-a: rgba(122, 173, 152, 0.1);
    --gradient-b: rgba(217, 120, 74, 0.07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
  }
}

:root[data-theme="dark"] {
  --bg: #131614;
  --ink: #e6eae7;
  --muted: #96a098;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7aad98;
  --accent-hover: #92c0ad;
  --clay: #d9784a;
  --mark-pine: #8bb8a8;
  --mark-clay: #e08a5a;
  --store-badge-bg: #f7f4ee;
  --store-badge-fg: #121514;
  --store-badge-border: rgba(255, 255, 255, 0.14);
  --surface: #1a1f1c;
  --surface-raised: #212722;
  --header-bg: rgba(19, 22, 20, 0.88);
  --nav-hover: rgba(255, 255, 255, 0.06);
  --ghost-border-hover: rgba(255, 255, 255, 0.16);
  --btn-text: #f0f5f2;
  --gradient-a: rgba(122, 173, 152, 0.1);
  --gradient-b: rgba(217, 120, 74, 0.07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
}

:root[data-theme="light"] {
  --bg: #f0ece4;
  --ink: #121514;
  --muted: #5f665c;
  --line: rgba(18, 21, 20, 0.1);
  --accent: #2f5d50;
  --accent-hover: #244a40;
  --clay: #c45c26;
  --mark-pine: #2f5d50;
  --mark-clay: #c45c26;
  --store-badge-bg: #121514;
  --store-badge-fg: #faf9f7;
  --store-badge-border: rgba(18, 21, 20, 0.12);
  --surface: #f7f4ee;
  --surface-raised: #faf8f3;
  --header-bg: rgba(240, 236, 228, 0.86);
  --nav-hover: rgba(18, 21, 20, 0.04);
  --ghost-border-hover: rgba(18, 21, 20, 0.14);
  --btn-text: #f7faf8;
  --gradient-a: rgba(47, 93, 80, 0.07);
  --gradient-b: rgba(196, 92, 38, 0.06);
  --shadow-sm: 0 1px 2px rgba(18, 21, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(18, 21, 20, 0.07);
}

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 75% 55% at 100% -5%, var(--gradient-a) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at -5% 105%, var(--gradient-b) 0%, transparent 52%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

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

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

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

.wrap-game {
  width: min(100% - 2rem, 48rem);
}

.game-hero {
  padding: 0.5rem 0 2rem;
}

.product-card-top,
.game-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-hero-top {
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-card .app-icon-sm,
.game-hero .app-icon {
  display: block;
  flex-shrink: 0;
  margin: 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card .app-icon-sm {
  width: 6rem;
  height: 6rem;
}

.game-hero .app-icon {
  width: 7rem;
  height: 7rem;
}

.product-card-copy,
.game-hero-copy {
  flex: 1;
  min-width: 0;
}

.game-hero-copy h1 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.game-hero-copy .lede {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.game-meta {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.3;
}

.game-page-links {
  padding: 0.5rem 0 2rem;
}

.card-screenshots {
  padding: 1rem 1.1rem;
}

.screenshot-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-placeholder {
  flex: 0 0 auto;
  width: 10rem;
  aspect-ratio: 9 / 19.5;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(47, 93, 80, 0.1) 0%, transparent 42%),
    linear-gradient(15deg, rgba(196, 92, 38, 0.08) 0%, transparent 38%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.9rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
}

.brand-mark-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand-type:hover {
  color: var(--ink);
}

.mark {
  display: block;
  overflow: visible;
}

.brand-mark-btn .mark {
  width: 2.5rem;
  height: 2.5rem;
}

.hero-mark-btn .mark {
  width: clamp(4rem, 11vw, 5.5rem);
  height: clamp(4rem, 11vw, 5.5rem);
}

.mark-stroke-pine,
.mark-stroke-clay {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-stroke-pine {
  stroke: var(--mark-pine);
}

.mark-stroke-clay {
  stroke: var(--mark-clay);
}

.mark-motion {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.mark-interactive:hover .mark-motion-a,
.mark-interactive:focus-visible .mark-motion-a {
  transform: rotate(14deg) scale(0.94);
}

.mark-interactive:hover .mark-motion-b,
.mark-interactive:focus-visible .mark-motion-b {
  transform: rotate(-14deg) scale(0.94);
}

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

.brand-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-labs {
  margin-top: 0.1rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: var(--nav-hover);
}

main {
  padding: 3rem 0 5rem;
}

.hero {
  max-width: 34rem;
  padding: 1.5rem 0 3rem;
}

.app-icon {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 0 1.25rem;
  border-radius: 22.5%;
  box-shadow: var(--shadow-md);
}

.app-icon-sm {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border-radius: 22.5%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.hero-showcase {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.hero-showcase .hero-brand {
  justify-content: center;
}

.hero-showcase .hero-title {
  align-items: flex-start;
  text-align: left;
}

.hero-showcase .lede {
  margin-inline: auto;
}

.hero-showcase .cta-row {
  justify-content: center;
}

.hero-mark-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.hero-mark-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero h1,
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.hero-labs {
  font-size: 0.82em;
  color: var(--accent);
}

.hero .lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 26rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--btn-text);
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--ghost-border-hover);
}

.section {
  padding: 0;
}

.section + .section,
.hero + .section {
  margin-top: 0.5rem;
}

.card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.125rem);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
}

.product-card-top {
  gap: 0.9rem;
}

.product-card-copy h2 {
  margin: 0 0 0.1rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--accent);
}

.product-subtitle {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.product-get {
  flex-shrink: 0;
  align-self: center;
  min-width: 4.25rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}

.product-get:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.product-card-body h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.product-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.meta {
  color: var(--muted);
  font-size: 0.925rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badges + .cta-row {
  margin-top: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border: 1px solid var(--store-badge-border);
  border-radius: 0.6rem;
  background: var(--store-badge-bg);
  color: var(--store-badge-fg);
  line-height: 1.1;
  user-select: none;
}

.store-badge-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.store-badge-google .store-badge-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
}

.store-badge-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.01em;
}

.store-badge-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badges--sm .store-badge {
  min-height: 2.35rem;
  padding: 0.42rem 0.85rem 0.42rem 0.68rem;
  gap: 0.55rem;
}

.product-card .store-badges {
  margin-top: 0;
}

.product-card-body .store-badges {
  margin-top: 0;
}

.product-card-body .store-badges + .product-link {
  margin-top: 1rem;
}

.store-badges--sm .store-badge-kicker {
  font-size: 0.52rem;
}

.store-badges--sm .store-badge-title {
  font-size: 0.82rem;
}

.store-badges--sm .store-badge-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.store-badges--sm .store-badge-google .store-badge-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.prose {
  max-width: var(--max);
}

.prose h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.prose p,
.prose ul {
  color: var(--ink);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (max-width: 540px) {
  .hero-showcase {
    padding-top: 1.5rem;
  }

  .game-hero-top {
    gap: 1rem;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }
}
