/*
 * Baseword's skin for the shared home page (baseword-web#208).
 * Brand file: only custom properties and brand-only rules live here.
 * The layout is site.css, byte-identical in both repos. See site/TEMPLATE.md.
 *
 * The page is the app's deep space with depth (the starfield pick on the
 * 2026-11-04 ideas canvas): the app's one starfield (iOS space_background,
 * Android game_background) split by star size into far, mid and near layers
 * in images/space/. Far stars are cooler and dimmer, near ones carry a faint
 * halo, and each layer drifts at its own speed (0, 2 and 6 px/s), with a
 * shooting star now and then: css/deep-space.css, linked in the template's
 * BRAND HEAD block and shared with the videos pages. As in the app,
 * nothing sits straight on space: text, media and graphics are on Hull
 * Plates (#101418 at 90%, HullPlate in Styles.swift, Android's HULL_PLATE).
 * The track's plate adds a light edge band with the accent rule under it,
 * and circuitry along the edge.
 */
:root {
  --bg: #111C20;
  --bg-band: transparent;
  --band-border: #22292F;
  --text: #F2E7DC;
  --text-muted: #CFC6BB;
  --text-faint: #B8B0A6;
  --accent: #F27141;
  --accent-ink: #0D0D0D;
  --eyebrow: #F2BF27;
  --link: #F27141;
  --link-hover: #F2BF27;
  --cta-bg: #F27141;
  --cta-ink: #0D0D0D;
  --cta-weight: 800;

  --font-body: Inter, system-ui, sans-serif;
  --font-display: 'Bruno Ace', system-ui, sans-serif;
  --font-label: 'Bruno Ace SC', system-ui, sans-serif;
  --display-weight: 400;
  --label-weight: 400;
  --eyebrow-size: 13px;
  --h1-size: 56px;
  --h2-size: 44px;
  --h2-small-size: 36px;
  --h3-size: 26px;
  --wordmark-font: 'Bruno Ace SC', system-ui, sans-serif;
  --wordmark-size: 22px;

  /* Oli: always a circle with the orange ring */
  --mascot-ring: #F27141;
  --mascot-bg: #24303A;

  /* Hull Plate */
  --plate-bg: var(--hull);
  --plate-border: 1px solid #2A3138;
  --plate-radius: 16px;
  --plate-pad: 0px;
  --plate-inner-bg: transparent;
  --plate-head-bg: rgba(255, 255, 255, .07);
  --plate-head-rule: 2px solid var(--accent);
  --plate-circuit: block;
  --plate-chalk: none;
  --plate-clip: none;
  --plate-body-ink: #FFFFFF;

  /* the track, as the app sets it: Bruno Ace SC, solved words underlined,
     the missing word "( 7 )" in the accent over a solid rule */
  --track-font: 'Bruno Ace SC', system-ui, sans-serif;
  --track-size: 20px;
  --hl-ink: var(--accent);
  --hl-weight: 400;
  --hl-underline: underline;
  --blank-rule: 2px solid var(--accent);
  --blank-ink: var(--accent);

  /* tiles: cream with the theme's red edge and orange letters, Inter */
  --tile-bg: #F2E7DC;
  --tile-ink: #F27141;
  --tile-border: 3px solid #D94B2B;
  --tile-radius: 12px;
  --font-tile: Inter, system-ui, sans-serif;

  --btn-border: 2px solid #3A434B;
  --btn-bg: rgba(255, 255, 255, .05);
  --btn-font: 'Bruno Ace SC', system-ui, sans-serif;
  --btn-weight: 400;

  /* the streak screen: orange ticks and progress, gold for what's next */
  --s-card-bg: #161B1F;
  --s-check-bg: #D94B2B;
  --s-bar-fill: #D94B2B;
  --s-bar-track: #353B40;

  /* light enough to outline the near-black swatches (Dracula, Cosmic Ray) on the dark cards */
  --swatch-border: #9AA3AB;
  --pick-border: 2px solid #FFFFFF;
}

/* The theme preview: the edge rule and the highlights take the theme's pinned highlight. */
.theme-preview {
  --plate-head-rule: 2px solid var(--t-accent);
  --hl-ink: var(--t-accent);
}

.band { border-color: transparent; }

/* Hull Plates under everything that would otherwise sit on space. Blocks that
   are a .wrap keep the gutter outside the plate rather than inside it. */
.site-header, .download, .footer-inner {
  max-width: none;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  margin-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding: 16px 24px;
  background: var(--hull);
  border-radius: 16px;
}
.site-header { margin-top: 16px; }
.download { padding: 28px; }
.site-footer { border-top: 0; padding-bottom: 24px; }
.hero-copy, .intro, .share-copy, #leaderboard > .split-side { background: var(--hull); border-radius: 16px; padding: 28px; }
.intro { align-self: flex-start; }
.band > .wrap > h2 { align-self: flex-start; background: var(--hull); border-radius: 12px; padding: 12px 20px; }
@media (max-width: 480px) {
  .site-header, .download, .footer-inner { padding: 16px; }
  .hero-copy, .intro, .share-copy, #leaderboard > .split-side { padding: 20px 16px; }
}
