/* ============================================================
   Theme — Breakpoints
   The missing layer of the design system. Color, spacing, type, and
   effects all have token files; responsive breakpoints did not, so the
   same widths were re-typed as literals across ~25 @media blocks.

   IMPORTANT — read before using:
   CSS custom properties CANNOT be referenced inside a media-query
   condition (`@media (max-width: var(--bp-phone))` does NOT work in any
   browser today). So this file is NOT consumed at runtime — it is the
   *documented source of truth*. Every @media literal in the codebase
   must match one of the values below, and each literal carries a short
   comment naming the token it mirrors.

   Convention for a new media query:
     1. Pick the closest token below; do not invent a new width.
     2. Use its rem value verbatim, e.g. `@media (max-width: 54rem)`.
     3. Add a trailing comment: `/* --bp-phone */`.

   If we later adopt a CSS build step (postcss-custom-media), these
   become real `@custom-media` rules and the literals collapse into
   `@media (--bp-phone)`. The file is written so that swap is purely
   mechanical.
   ============================================================ */

:root {
  /* Canonical responsive breakpoints. Deliberately only TWO: each marks a
     genuinely distinct layout intent, not a per-page one-off. Anything that
     does not clearly belong to one of these is a candidate to fold onto the
     nearest token (see the non-canonical list below), not a new token.

     rem (not px) so they track the root font size like the rest of the
     token system. */

  --bp-phone: 54rem; /*    864px — THE phone breakpoint. Where the layout
                        structurally changes: desktop nav collapses into the
                        hamburger menu, multi-column grids drop to one column,
                        the centered absolute title goes static. Used ~15×. */
  --bp-phone-sm: 36rem; /* 576px — small phone. A distinct treatment, not just
                           "more of --bp-phone": turns card grids into
                           horizontal scroll-snap rows (genres, game). Only
                           meaningful well below the main phone breakpoint. */
}

/* ------------------------------------------------------------
   Non-canonical literals still in the tree.
   These are page-local one-offs that predate the token layer; left
   untouched to avoid a visual regression, but flagged here so they
   don't masquerade as blessed values. Fold each onto the nearest
   token the next time its page is reworked — do NOT add new tokens
   for them:

     48rem  (page_styles/membership.css)         → --bp-phone
     50rem  (admin_styles/analytics.css)         → --bp-phone
     40rem  (page_styles/artist_detail.css)      → --bp-phone
     800px  (page_styles/auth.css)               → --bp-phone
     32rem  (page_styles/membership.css)         → --bp-phone-sm
     640px  (admin_styles/prose_xray.css, auth)  → --bp-phone-sm
     600px  (page_styles/auth.css)               → --bp-phone-sm
   ------------------------------------------------------------ */
