/* Blobby website: shared tokens, base, layout, buttons, nav, footer, video slots.
   Section styles live in their own files next to this one. Plain CSS, no build step. */

/* Self-hosted fonts (fonts/LICENSE.txt), so no visitor request goes to Google. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fredoka-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); }

/* Look (Tang, 2026-10-20): black, white and saturated glossy colour, like the app's Glossy theme.
   No paper, no hand-drawn outlines, no tilt, no hard offset shadows. */
:root {
  /* surfaces */
  --cream: #ffffff;        /* old name kept: the page background, now plain white */
  --cream-2: #f4f4f7;
  --soft: #f4f4f7;         /* light grey band */
  --black: #0b0b10;        /* dark band */
  --paper: #ffffff;
  --ink: #0b0b10;
  --ink-2: #3a3a44;        /* body text on white, 11:1 */
  --ink-3: #62626e;        /* small print, 6:1 on white */
  --line: rgba(11, 11, 16, .1);   /* hairline */

  /* Blobby's colours, from blob-draw.js COLOURS */
  --accent: #22d3ee;       /* site accent and hero Blobby (Tang, 2026-10-23: blue instead of orange) */
  --tangerine: #ff7a45;    /* default Blobby colour */
  --pink: #ff4f9a;
  --red: #ff2f5c;
  --purple: #6b4cff;
  --green: #25d158;
  --peach: #ffa082;
  --sky: #22d3ee;          /* cyan (Tang, 2026-10-23); was #29b6ff */
  --gold: #f5b301;


  --font-display: "Fredoka", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --border: 1px solid var(--line);
  --pop: 0 24px 48px -20px rgba(11, 11, 16, .28), 0 2px 8px rgba(11, 11, 16, .06);   /* soft lift */
  --pop-sm: 0 10px 24px -12px rgba(11, 11, 16, .3), 0 1px 3px rgba(11, 11, 16, .08);
  /* Glossy sheen, laid over a saturated colour: background: var(--sheen), var(--c); */
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 48%, rgba(0, 0, 0, .06) 100%);
  --sheen-edge: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 0, 0, .08);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --ease-spring: cubic-bezier(.2, 1.4, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(52px, 9vw, 112px); font-weight: 700; }
h2 { font-size: clamp(38px, 5.6vw, 68px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); max-width: 36em; }
.small { font-size: 15px; color: var(--ink-3); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
/* small label above a heading: a coloured dot and the word */
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kc, var(--accent)); box-shadow: var(--sheen-edge); }
/* a saturated glossy surface: set --c */
.glossy { background: var(--sheen), var(--c, var(--accent)); box-shadow: var(--sheen-edge), 0 22px 44px -22px color-mix(in srgb, var(--c, var(--accent)) 80%, #000); }
/* dark band */
.section.dark { background: var(--black); color: #fff; }
.section.dark .lead { color: #c9c9d2; }
.section.dark .kicker { color: #c9c9d2; }
.section.soft { background: var(--soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 20px/1 var(--font-display); text-decoration: none; cursor: pointer;
  padding: 18px 28px 17px; border-radius: 999px; border: 0;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--pop-sm);
  transition: transform .18s var(--ease-spring), box-shadow .18s ease, background-color .18s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
/* primary: glossy black pill, white text */
.btn-primary, .btn-dark { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 55%), var(--black); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 32px -14px rgba(11,11,16,.6); }
.section.dark .btn-primary, .footer .btn-primary { background: var(--sheen), #fff; color: var(--ink); }
.btn-small { font-size: 17px; padding: 12px 18px 11px; }
.btn .win { width: 22px; height: 22px; flex: none; }
.btn-note { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-3); }
/* before launch: a download button that is not a link yet (search the pages for COMING-SOON) */
.btn.is-soon, .btn.is-soon:hover, .btn.is-soon:active { transform: none; cursor: default; background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font: 700 26px/1 var(--font-display); }
.nav nav { margin-left: auto; }
.brand-blob { width: 40px; height: 40px; flex: none; }
.nav-links { display: flex; gap: 4px; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-links a:hover { background: var(--soft); }
.nav .btn-small { margin-left: 8px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }
@media (max-width: 380px) { .brand { font-size: 22px; } .nav .btn-small { font-size: 15px; padding: 10px 14px 9px; } }

/* ---------- launch news sign-up (home and beta pages, js/news.js) ---------- */
.news { background: var(--soft); }
.news-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; color: #fff;
  background: var(--black); border-radius: var(--radius); box-shadow: var(--pop); padding: clamp(24px, 4vw, 48px);
}
.news-card .kicker { --kc: var(--purple); color: #c9c9d2; }
.news-copy p { color: #c9c9d2; margin: 0; }
.news-copy .news-invite { margin-top: 12px; }
.news-card a { color: #fff; }
.news-slot { min-width: 0; }
.news-ph {
  margin: 0; background: #1a1a22; border: 1px solid #2a2a33; border-radius: var(--radius-sm); padding: 18px 20px; color: #c9c9d2;
}
.news-ph b { color: #fff; }

@media (max-width: 760px) { .news-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px 0 40px; margin-top: 0; }
.footer a { color: #fff; }
.footer { background: var(--black); }
.footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer h2 { font-size: 30px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer ul a { display: inline-block; padding: 11px 0; }
.footer .fine { grid-column: 1 / -1; font-size: 14px; color: #c9c9d2; border-top: 1px solid #2a2a33; padding-top: 20px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
