/* Kim Bobby Productions · website
   Built from Design's kb.css (tokens and components, 15.10.2026). Changes from kb.css:
   - .kb--lys / .kb--mork became prefers-color-scheme on :root
   - container queries became @media rules (the page is the container)
   - fonts are self-hosted, so the site makes no third-party requests
   - inline styles from the canvas became classes (the CSP allows no inline styles) */

/* ------------------------------------------------------------------ fonts (OFL, see /licenses in the repo) */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-var.woff2) format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/quicksand-var.woff2) format('woff2'); }

/* ------------------------------------------------------------------ colors */
:root {
  color-scheme: light dark;
  --bg: #FBFAF7;          /* background */
  --surface: #FFFFFF;     /* cards, fields */
  --surface-2: #F2F1EC;   /* inset surface */
  --ink: #18191D;         /* text and primary button */
  --muted: #5A5E66;       /* secondary text, 6.4:1 on --bg */
  --line: #E4E2DB;        /* dividers, borders */
  --accent: #3346D3;      /* links, focus, selected. 6.9:1 on white */
  --accent-ink: #FFFFFF;
  --accent-soft: #E9ECFF;
  --ok-soft: #E3F4EA;
  --ok-ink: #1E5B38;
  --err-soft: #FBE9E7;
  --err-ink: #8A2B1F;

  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-text: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  --f-bubl: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  /* spacing: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* radii */
  --r-field: 12px; --r-card: 20px; --r-icon: 22.5%; --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --surface: #1A1C20;
    --surface-2: #23262B;
    --ink: #EDEDE8;
    --muted: #A3A7AF;
    --line: #30333A;
    --accent: #93A3FF;
    --accent-ink: #0E1230;
    --accent-soft: #252A4D;
    --ok-soft: #173325;
    --ok-ink: #9FE0B8;
    --err-soft: #3A1D19;
    --err-ink: #F5B5AB;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;               /* body 18/1.6 */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;     /* a long email address must not widen a phone screen */
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { margin: 0 0 var(--s4); }
.kb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .kb-wrap { padding: 0 40px; } }

/* ------------------------------------------------------------------ type */
.kb-h1 { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 var(--s4); text-wrap: balance; }
.kb-h2 { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s4); }
.kb-h3 { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 var(--s2); }
.kb-lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 42ch; margin: 0; }
.kb-small { font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 760px) {
  .kb-h1 { font-size: 64px; }
  .kb-h2 { font-size: 34px; }
  .kb-lead { font-size: 22px; }
}
.kb-h1.kb-h1--doc { font-size: clamp(36px, 6vw, 56px); }

/* ------------------------------------------------------------------ header and footer */
.kb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding: 20px 0; border-bottom: 1px solid var(--line); }
.kb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.kb-logo span { font-weight: 400; color: var(--muted); }
.kb-logo svg { flex: none; }
.kb-logo__a { fill: var(--accent); }
.kb-logo__b { fill: none; stroke: currentColor; stroke-width: 2.5; }
.kb-logo__c { fill: currentColor; }
.kb-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; font-weight: 700; }
.kb-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.kb-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.kb-foot { border-top: 1px solid var(--line); margin-top: var(--s8); padding: var(--s6) 0 var(--s7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4) var(--s6); font-size: 15px; color: var(--muted); }
.kb-foot__info { display: flex; flex-direction: column; gap: 4px; }
.kb-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 700; }
.kb-foot nav a { color: var(--ink); text-decoration: none; }
.kb-crumb { margin: 20px 0 0; }

/* ------------------------------------------------------------------ buttons and chips */
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: var(--bg); font: 700 16px/1 var(--f-text); text-decoration: none; cursor: pointer; }
.kb-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.kb-btn--accent { background: var(--accent); color: var(--accent-ink); }
.kb-btn:disabled { opacity: .6; cursor: default; }
/* Apple's "Download on the App Store" badge, unchanged. Apple's rules: at least 40 px high, and a
   clear space of a quarter of the height (12 px here) on every side. */
.kb-store { display: inline-block; flex: none; border-radius: 8px; line-height: 0; }
.kb-store img { display: block; height: 48px; width: auto; }
.kb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1.4; }

/* ------------------------------------------------------------------ app cards */
.kb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 760px) { .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); display: flex; gap: var(--s4); align-items: flex-start; }
.kb-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.kb-card__body p { margin: 0; }
.kb-card .kb-h3 { margin: 0; }
.kb-card .kb-h3 a { color: var(--ink); text-decoration: none; }
.kb-card__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kb-card__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); align-items: center; }
.kb-icon { width: 72px; height: 72px; flex: none; border-radius: var(--r-icon); object-fit: cover; display: block; }

/* ------------------------------------------------------------------ text pages (privacy, guide) */
.kb-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
@media (min-width: 1000px) { .kb-doc { grid-template-columns: 250px minmax(0, 1fr); gap: var(--s8); } }
.kb-toc { font-size: 15px; line-height: 1.5; background: var(--surface-2); border-radius: var(--r-card); padding: var(--s5); align-self: start; }
.kb-toc ol { margin: var(--s2) 0 0; padding: 0; list-style: none; }
.kb-toc li { margin: 6px 0; }
.kb-toc a { color: var(--ink); text-decoration: none; }
.kb-prose { max-width: 68ch; }
.kb-prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.2; margin: var(--s7) 0 var(--s3); }
.kb-prose h2.kb-prose__first { margin-top: 0; }
.kb-prose h3 { font-size: 19px; font-weight: 700; margin: var(--s5) 0 var(--s2); }
.kb-prose ul { padding-left: 1.2em; margin: 0 0 var(--s4); }
.kb-prose li { margin: 6px 0; }
.kb-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5) var(--s5) var(--s3); }
.kb-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; margin: 0 0 var(--s5); }
.kb-table th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--line); }
.kb-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 759px) {
  .kb-table thead { display: none; }
  .kb-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .kb-table td { display: block; border: 0; padding: 2px 0; }
  .kb-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
}

/* ------------------------------------------------------------------ form (support) */
.kb-form { display: flex; flex-direction: column; gap: var(--s5); max-width: 640px; }
.kb-field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.kb-label { font-weight: 700; font-size: 17px; padding: 0; }
.kb-label__opt { font-weight: 400; color: var(--muted); }
.kb-help { font-size: 15px; color: var(--muted); }
.kb-input { font: 400 18px/1.4 var(--f-text); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; width: 100%; }
.kb-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.kb-input { min-height: 180px; resize: vertical; }
.kb-pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.kb-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.kb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* hidden honeypot field against spam */
.kb-done { background: var(--ok-soft); color: var(--ok-ink); border-radius: var(--r-card); padding: var(--s5); }
.kb-done .kb-h3 { margin: 0 0 6px; color: inherit; }
.kb-done p { margin: 0 0 16px; }

/* ================================================================== pages */

/* ------------------------------------------------------------------ page heads */
.pg-head { padding: 48px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.pg-head--doc { padding-top: 40px; }
.pg-head--tight { gap: 14px; }
.pg-head .kb-h1, .pg-head .kb-lead, .pg-head .kb-small { margin: 0; }

/* ------------------------------------------------------------------ home */
.hm-hero { padding: 56px 0 48px; display: flex; flex-direction: column; gap: 20px; }
.hm-hero .kb-h1 { max-width: 14ch; margin: 0; }
.hm-games { display: flex; flex-direction: column; gap: 20px; }
.hm-games .kb-h2 { margin: 0; }
.hm-help { margin-top: 48px; padding: 32px; background: var(--surface-2); border-radius: 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.hm-help__text { flex: 1 1 320px; min-width: 0; }
.hm-help .kb-h3 { margin: 0 0 6px; }
.hm-help .kb-small { margin: 0; }

/* ------------------------------------------------------------------ app pages: the band is the only place with the game's own colors */
.ap-band { margin-top: 20px; }
.ap-band > .kb-wrap { padding-top: 48px; padding-bottom: 48px; }
.ap-band--bubl { background: #F6F1E9; color: #4A4440; font-family: var(--f-bubl); }
.ap-band--mags { background: #15171B; color: #F4F4F2; }
.ap-band--mags :focus-visible { outline-color: #F4F4F2; }
.ap-band--candy { background: #E4EFF8; color: #22374A; }
.ap-band--bubl :focus-visible, .ap-band--candy :focus-visible { outline-color: #3346D3; }

.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.ap-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 900px) {
  .ap-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .ap-band--bubl .ap-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .ap-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
.ap-hero__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ap-hero__icon { width: 96px; height: 96px; border-radius: 22.5%; display: block; }
.ap-band--bubl .ap-hero__icon { background: #FFFDF9; }
.ap-band--candy .ap-hero__icon { background: #fff; box-shadow: 0 0 0 1px rgba(34,55,74,.1); }
.ap-hero__shot { display: flex; justify-content: center; }
.ap-hero__shot img { width: 100%; max-width: 280px; height: auto; border-radius: 28px; }
.ap-band--bubl .ap-hero__shot img { max-width: 300px; box-shadow: 0 0 0 1px rgba(74,68,64,.12); }
.ap-band--mags .ap-hero__shot img { box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.ap-band--candy .ap-hero__shot img { box-shadow: 0 0 0 1px rgba(34,55,74,.12); }

.ap-h1 { margin: 0; font: 800 64px/1 var(--f-display); letter-spacing: -.02em; }
.ap-h1__candy { color: #D94B7E; }
.ap-lead { margin: 0; font: 400 21px/1.5 var(--f-text); max-width: 34ch; }
.ap-band--mags .ap-lead { color: #C9CBD0; }
.ap-band--candy .ap-lead { color: #3E5568; }
.ap-note { font-size: 15px; }
.ap-band--mags .ap-note { color: #A9ADB5; }
.ap-band--candy .ap-note { color: #4F6577; }
.ap-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ap-ver { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 520px; list-style: none; margin: 0; padding: 0; }
.ap-ver li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 18px; border-radius: 20px; background: #22252B; }
.ap-ver__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.ap-ver__text strong { font-size: 17px; }
.ap-ver__text span { font-size: 15px; color: #A9ADB5; }

.bu-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #E4EFE8; color: #3C6E51; font: 700 15px var(--f-bubl); }
.bu-h1 { margin: 0; font: 700 72px/1 var(--f-bubl); letter-spacing: -.01em; }
.bu-h1 span { color: #C96A76; }
.bu-lead { margin: 0; font: 500 22px/1.5 var(--f-bubl); max-width: 30ch; }
.bu-soon { font: 500 16px var(--f-bubl); color: #6B625A; }

.ap-about { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.ap-section { padding-top: 56px; }
.ap-section--stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ap-section--stack .kb-h2 { margin: 0; }
.ap-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ap-feats--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ap-feats .kb-box { padding: 20px; }
.ap-shot { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); display: block; }
.ap-links { padding-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ap-links--two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ap-link { text-decoration: none; color: var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ap-link > strong { font-size: 19px; }

/* links out to the privacy policies the old apps use today */
.ap-ext { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-ext li { display: flex; flex-direction: column; gap: 2px; }
.ap-ext a { font-weight: 700; }

.ap-video { position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: #2C5E7A; max-width: 720px; aspect-ratio: 16 / 9; }
.ap-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .45; }
.ap-video__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(180deg, rgba(20,40,60,.35), rgba(20,40,60,.72)); }
.ap-video__play { width: 84px; height: 84px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; }
.ap-video__play path { fill: #22374A; }
.ap-video__cover strong { font-size: 19px; color: #FFFFFF; }
.ap-video__cover small { font-size: 15px; color: #FFFFFF; opacity: .9; }

/* ------------------------------------------------------------------ guide */
.gd-apps { display: flex; gap: 12px 28px; align-items: center; flex-wrap: wrap; }
.gd-app { display: inline-flex; gap: 12px; align-items: center; }
.gd-app .kb-icon { width: 44px; height: 44px; }
.gd-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 13px/1.4 var(--f-text); vertical-align: 2px; margin-left: 8px; white-space: nowrap; }
.gd-both { background: var(--accent-soft); color: var(--ink); }
.gd-bm { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.gd-tips { counter-reset: tip; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gd-tips li { counter-increment: tip; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; background: var(--surface-2); }
.gd-tips li::before { content: counter(tip); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 16px/32px var(--f-text); text-align: center; }
.gd-faq dl { margin: 0; }
.gd-faq dt { font-weight: 700; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.gd-faq dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.gd-faq dd { margin: 8px 0 0; }

/* ------------------------------------------------------------------ privacy overview and the Bubl! policy */
.pv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .pv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pv-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; color: var(--ink); }
.pv-card .kb-icon { width: 56px; height: 56px; }
.pv-card > strong { font-size: 19px; }
.pv-site { padding-top: 56px; }
.pv-intro { font-size: 20px; line-height: 1.55; }
.pv-short { margin-top: 32px; }
.pv-short .kb-h3 { margin: 0 0 8px; }
.pv-contact p { margin: 0 0 4px; }
.pv-contact p:last-child { margin: 0; }

/* ------------------------------------------------------------------ support */
.su-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .su-grid { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 72px; } }
.su-legend { margin-bottom: 8px; }
.su-pill { position: relative; display: inline-flex; }
.su-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.su-pill input:checked + .kb-pill { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.su-pill input:focus-visible + .kb-pill { outline: 3px solid var(--accent); outline-offset: 3px; }
.su-count { text-align: right; }
.su-send { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.su-send .kb-btn { min-width: 160px; }
.su-nojs { padding: var(--s5); }
.su-error { margin: 0; padding: var(--s4) var(--s5); border-radius: var(--r-field); background: var(--err-soft); color: var(--err-ink); }
.su-aside { display: flex; flex-direction: column; gap: 16px; }
.su-aside .kb-h3, .su-aside .kb-small { margin: 0; }
.su-quick { text-decoration: none; color: var(--ink); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }

/* ------------------------------------------------------------------ 404 */
.nf { padding: 72px 0 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.nf .kb-h1, .nf .kb-lead { margin: 0; }
