/* PrimeKamp website. Colours, type and radii come from the brand kit
   (09_Website_Theme/primekamp-theme.css and the brand guidelines):
   Night first; light sections and documents use data-theme="light";
   one filled Ember button per screen; Ember for highlights only.
   Inter is served from this site (fonts/, SIL OFL 1.1), not Google Fonts,
   so visitors' addresses are not sent to a third party. Inter's variable
   font has an optical-size axis: headlines use its Display cut (opsz 32). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  --pk-bg: #150F1F;
  --pk-surface: #1F1829;
  --pk-surface-raised: #291F35;
  --pk-border: #3A2E48;
  --pk-border-strong: #5C4A6E;
  --pk-text: #FBF3EE;
  --pk-text-secondary: #B3A4BE;
  --pk-text-muted: #9A88A6;
  --pk-accent: #FF4E5B;
  --pk-accent-hover: #FF6B76;
  --pk-on-accent: #150F1F;
  --pk-link: #FF7A84;
  --pk-highlight: #FFC83D;
  --pk-focus: #FFC83D;
  --pk-font: "Inter", Arial, Helvetica, sans-serif;
  --pk-font-display: "Inter Display", "Inter", Arial, Helvetica, sans-serif;
}

[data-theme="light"] {
  --pk-bg: #FBF3EE;
  --pk-surface: #FFFFFF;
  --pk-surface-raised: #FFFFFF;
  --pk-border: #E8DCD5;
  --pk-border-strong: #CDBDB3;
  --pk-text: #150F1F;
  --pk-text-secondary: #5C4A6E;
  --pk-text-muted: #6E5E7D;
  --pk-accent: #C92A3E;
  --pk-accent-hover: #B02234;
  --pk-on-accent: #FFFFFF;
  --pk-link: #C92A3E;
  --pk-highlight: #FF8A2D;
  /* Blaze is too pale for a focus ring on Marshmallow (2.2:1); Cinder is 4.9:1. */
  --pk-focus: #C92A3E;
}

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

html {
  background: var(--pk-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pk-bg);
  color: var(--pk-text);
  font: 400 1rem/1.625 var(--pk-font);
  font-optical-sizing: auto;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; padding-bottom: 48px; }
/* A page that ends on a full-width band meets the footer directly. */
main:has(> .section--band:last-child),
main:has(> .doc-page:last-child),
main:has(> .page-head--center:last-child) { padding-bottom: 0; }

[data-theme] { background: var(--pk-bg); color: var(--pk-text); }

h1, h2, h3 {
  font-family: var(--pk-font-display);
  font-variation-settings: "opsz" 32;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 900; letter-spacing: -0.02em; font-size: 2.5rem; line-height: 1.1; }
h2 { font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--pk-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--pk-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--pk-surface-raised);
  color: var(--pk-text);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.small { font-size: 0.875rem; color: var(--pk-text-secondary); }

/* Caption style from the guidelines (SemiBold 13/20, Smoke), spaced out. */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pk-text-muted);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--pk-link); }

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--pk-text-secondary);
  max-width: 40rem;
}

/* ---------------------------------------------------------------- buttons */

/* The one filled button on a page: Ember on dark, Cinder on light. */
.pk-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--pk-accent);
  color: var(--pk-on-accent);
  font: 600 1rem/1.2 var(--pk-font);
  text-decoration: none;
}
.pk-button:hover { background: var(--pk-accent-hover); }

.text-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.text-link::after { content: "\2192"; margin-left: 0.4em; transition: transform 0.15s; }
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(2px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 28px;
}

/* ---------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--pk-border); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 12px;
  padding-bottom: 8px;
}

/* The logo file carries a little of its own margin; the padding here makes
   up the rest of the clear space (x, the height of the P: 17px at 168px). */
.brand { display: block; padding: 6px 0; margin-left: -4px; line-height: 0; border-radius: 6px; }
.brand img { width: 168px; height: auto; display: block; }

.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.site-nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--pk-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--pk-link); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--pk-accent); }

@media (max-width: 639px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 2px; }
  .brand img { width: 148px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 22px; }
}

/* ---------------------------------------------------------------- hero */

.hero { overflow: hidden; }

.hero__inner {
  display: grid;
  gap: 8px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  line-height: 1.04;
  max-width: 11ch;
  margin-bottom: 20px;
}
.hero .lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 30ch; }

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    padding-top: 72px;
    padding-bottom: 64px;
  }
}

/* The campfire is the logo's symbol file, unchanged. Embers are a few small
   squares low at its sides, clear of the flame and of the text. */
.campfire {
  position: relative;
  justify-self: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
}
@media (min-width: 860px) { .campfire { width: min(100%, 380px); --k: 1.4; } }

.campfire img { position: absolute; inset: 0; width: 100%; height: 100%; }

.ember {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: calc(var(--s) * var(--k, 1));
  height: calc(var(--s) * var(--k, 1));
  border-radius: 2px;
  background: var(--c);
  opacity: var(--o, 0.9);
  animation: ember-rise var(--d, 8s) ease-in-out var(--t, 0s) infinite;
}

@keyframes ember-rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: var(--o, 0.9); }
  75% { opacity: calc(var(--o, 0.9) * 0.7); }
  100% { transform: translateY(-40px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ember { animation: none; }
  .text-link::after { transition: none; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: 48px 0; }
.section h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
.section h2 + .cards,
.section h2 + .principles { margin-top: 28px; }

@media (min-width: 860px) { .section { padding: 72px 0; } }
.section.section--tight { padding: 16px 0 24px; }

.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.06; margin-bottom: 16px; }
@media (min-width: 860px) { .page-head { padding: 72px 0 32px; } }

.page-head--center { text-align: center; padding-bottom: 96px; }
.page-head--center .lead { margin-left: auto; margin-right: auto; }
.page-head--center .actions { justify-content: center; }

/* ---------------------------------------------------------------- cards */

.pk-card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 16px;
}

.panel { padding: 24px; }
.panel h2 { font-size: 1.375rem; margin-bottom: 12px; }
@media (min-width: 720px) { .panel { padding: 32px; } }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 16px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--pk-border-strong); }

.card__media {
  display: grid;
  place-items: center;
  height: 152px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--pk-surface-raised);
}
.card__media img { width: 88px; height: 88px; border-radius: 20px; }

.card__title { margin: 0 8px 6px; font-size: 1.25rem; }
.card__link { color: var(--pk-text); text-decoration: none; }
/* The whole card is the link's click target. */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--pk-focus); outline-offset: 3px; }

.card__pitch { margin: 0 8px; color: var(--pk-text-secondary); }

.card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.8125rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--pk-text-muted);
}
.card > .card__meta { margin: auto 8px 0; padding-top: 14px; }

/* A pixel before each status: Spark when out, Blaze when close, Smoke when coming.
   An update (products.json "update"): Blaze while it is next, Spark once new. */
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pk-text-muted);
}
.status--live::before,
.status--new::before { background: #FFC83D; }
.status--review::before,
.status--testing::before,
.status--next::before { background: #FF8A2D; }

.card--more { border-style: dashed; background: transparent; }

/* Phones: each card is a compact row, icon on the left. */
@media (max-width: 559px) {
  .cards { gap: 12px; }
  .card {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 16px;
  }
  .card__media { grid-row: 1 / span 3; width: 72px; height: 72px; margin: 0; background: none; }
  .card__media img { width: 72px; height: 72px; border-radius: 16px; }
  .card__title { margin: 0 0 2px; }
  .card__pitch { margin: 0; }
  .card > .card__meta { margin: 0; padding-top: 10px; }
  .card--more .card__media { border-radius: 16px; }
}
.card--more .card__media { background: transparent; border: 1px dashed var(--pk-border); }

/* "One spark flies up: the next idea." */
.spark { position: relative; display: block; width: 48px; height: 48px; }
.spark i { position: absolute; display: block; border-radius: 2px; background: #FF4E5B; }
.spark i:nth-child(1) { width: 12px; height: 12px; left: 18px; bottom: 0; }
.spark i:nth-child(2) { width: 9px; height: 9px; left: 32px; bottom: 20px; background: #FF8A2D; }
.spark i:nth-child(3) { width: 7px; height: 7px; left: 22px; bottom: 38px; background: #FFC83D; }

/* ---------------------------------------------------------------- about band */

.section--band { background: var(--pk-surface); border-top: 1px solid var(--pk-border); border-bottom: 1px solid var(--pk-border); }

.band { display: grid; gap: 32px; align-items: center; }
.band__text h2 { margin-bottom: 16px; }
.band__text > p:not(.eyebrow) { color: var(--pk-text-secondary); max-width: 40rem; }
.band__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 860px) {
  .band { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .band__action { justify-content: flex-end; }
}

.name-parts { margin: 0; display: grid; gap: 12px; }
.name-parts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--pk-surface-raised);
  border: 1px solid var(--pk-border);
}
.name-parts dt {
  font-family: var(--pk-font-display);
  font-variation-settings: "opsz" 32;
  font-weight: 800;
  font-size: 1.25rem;
}
.name-parts dd { margin: 0; color: var(--pk-text-secondary); }

.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; } }

.prose { max-width: 40rem; }

/* About: the symbol and what each part of it stands for. */
.logo-parts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
}
.logo-parts img { width: 168px; height: 168px; }
.logo-parts dl { margin: 0; display: grid; gap: 16px; }
.logo-parts dt { font-weight: 700; }
.logo-parts dd { margin: 0; color: var(--pk-text-secondary); }
@media (max-width: 479px) {
  .logo-parts { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .logo-parts img { width: 136px; height: 136px; }
}
.prose h2 { font-size: 1.5rem; margin: 0 0 8px; }
.prose p + h2 { margin-top: 32px; }
.prose p { color: var(--pk-text-secondary); }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.principles li { padding: 24px; }
.principles h3 { margin-bottom: 8px; }
.principles p { color: var(--pk-text-secondary); }

.duo { display: grid; gap: 20px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }

.company { font-style: normal; }
.company p { margin-bottom: 0.75em; }

/* ---------------------------------------------------------------- games */

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

.game-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px; }
.game-row h2 { font-size: 1.5rem; margin-bottom: 2px; }
.game-row h2 a { color: var(--pk-text); text-decoration: none; }
.game-row h2 a:hover { text-decoration: underline; }
.game-row__pitch { font-weight: 600; color: var(--pk-text); margin-bottom: 8px; }
.game-row__body > p { color: var(--pk-text-secondary); }
.game-row__body > p.game-row__pitch { color: var(--pk-text); }
.game-row .card__meta { margin-bottom: 4px; }
.link-row { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; }
.game-row--more { border-style: dashed; background: transparent; align-items: center; }
.spark--icon { margin: 0 24px; }

@media (max-width: 559px) {
  .game-row { grid-template-columns: 1fr; gap: 16px; }
  .game-row .app-icon { width: 72px; height: 72px; border-radius: 16px; }
  .spark--icon { margin: 0; }
}
@media (min-width: 720px) { .game-row { padding: 28px; gap: 28px; } }

.app-icon { width: 96px; height: 96px; border-radius: 22px; display: block; }
.app-icon--large { width: 104px; height: 104px; border-radius: 24px; }

/* ---------------------------------------------------------------- product page */

.product-head__title { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.product-head__title h1 { margin-bottom: 4px; }
.product-head__title .lead { margin: 0; }
.product-head__about { max-width: 44rem; }
.product-head__about > p:first-child { font-size: 1.0625rem; }
.product-head__about .card__meta { margin-top: 8px; }
.product-head__about .small { margin-top: 12px; }

@media (max-width: 479px) {
  .product-head__title { flex-direction: column; align-items: flex-start; gap: 16px; }
}

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shots img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--pk-border); }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* Wide screens: every picture on one row (five or six). */
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
/* Under a picture of an update: what the alt text says, for sighted visitors. */
.shot-note { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.4; font-weight: 600; color: var(--pk-text-muted); }

.update .card__meta { margin-bottom: 8px; }
.update p:last-child { margin-bottom: 0; color: var(--pk-text-secondary); max-width: 44rem; }

.pixel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pixel-list li { position: relative; padding-left: 24px; color: var(--pk-text-secondary); }
.pixel-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #FF8A2D;
}

.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.legal-links a { display: inline-block; padding: 8px 0; font-weight: 600; }

/* ---------------------------------------------------------------- legal hub */

.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.legal-item { padding: 20px 24px; }
.legal-item .legal-item__name { display: flex; align-items: center; gap: 14px; font-size: 1.25rem; margin-bottom: 8px; }
.legal-item__name img { width: 40px; height: 40px; border-radius: 10px; }
.legal-item .small { margin: 8px 0 0; }

/* ---------------------------------------------------------------- documents */

.doc-page { padding-top: 32px; padding-bottom: 56px; max-width: 880px; }

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.doc-nav__product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--pk-text);
  font-weight: 700;
  text-decoration: none;
}
.doc-nav__product img { width: 32px; height: 32px; border-radius: 8px; }
.doc-nav__product:hover { text-decoration: underline; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.doc-nav ul a { display: inline-block; padding: 8px 0; font-size: 0.9375rem; font-weight: 600; }
.doc-nav ul a[aria-current="page"] { color: var(--pk-text); text-decoration: none; box-shadow: inset 0 -2px 0 var(--pk-accent); }

.doc {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 16px;
  padding: 28px 20px 32px;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
@media (min-width: 720px) { .doc { padding: 48px 56px 56px; } }

.doc h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem); line-height: 1.1; margin: 0 0 16px; }
.doc h2 { font-size: 1.3125rem; line-height: 1.3; margin: 2em 0 0.5em; }
.doc .meta { color: var(--pk-text-secondary); font-size: 0.9375rem; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin: 0.25em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0.5em 0 1em; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--pk-border); }
.doc th { font-weight: 700; }
@media (max-width: 559px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--pk-border); }
  .doc tr:first-child { display: none; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 700; }
}

/* ---------------------------------------------------------------- footer */

/* A Marshmallow strip with the Made by logo, as in the guidelines. */
.site-footer { border-top: 1px solid var(--pk-border); }

.site-footer__inner {
  display: grid;
  gap: 8px 32px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 28px;
}
.made-by { display: block; width: max-content; line-height: 0; padding: 4px 0; border-radius: 6px; }
.made-by img { width: 160px; height: auto; display: block; }

.footer-nav ul { gap: 0 24px; }
.footer-nav a { display: inline-block; padding: 10px 0; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav a[aria-current] { color: var(--pk-text); }

.site-footer__legal { margin: 0; font-size: 0.875rem; color: var(--pk-text-secondary); }

@media (min-width: 860px) {
  .site-footer__inner { grid-template-columns: auto 1fr; }
  .footer-nav { justify-self: end; }
  .site-footer__legal { grid-column: 1 / -1; }
}
