/* Plotmosa design tokens — per Claude design spec (May 25, 2026)
 * Palette: warm-earth craftsman (cream + olive + terracotta)
 * Typography: Fraunces serif + Inter sans + JetBrains Mono
 */

:root {
  /* Palette */
  --p-bg: #f6f2ea;
  --p-surface: #fffdf8;
  --p-surface-2: #efebe2;
  --p-ink: #2b2620;
  --p-ink-2: #4a4339;
  --p-ink-3: #8a8273;
  --p-border: #e8e2d4;
  --p-accent: #6b7a4f;        /* moss — single CTA accent */
  --p-accent-hover: #5a6843;
  --p-accent-2: #b4623a;      /* terracotta — destructive/warning + italic emphasis */

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(43, 38, 32, 0.04);
  --sh-2: 0 4px 16px rgba(43, 38, 32, 0.06);
  --sh-3: 0 12px 32px rgba(43, 38, 32, 0.10);

  /* Radius */
  --r-sm: 4px;
  --r-md: 5px;       /* button radius per spec */
  --r-lg: 8px;
  --r-xl: 12px;
}

/* ─── Auth-nav FOUC guard (2026-05-29) ─────────────────────────────────
 * The logged-OUT nav CTA ("Sign in" / "Pro sign in") flashed for ~1-3s on
 * AUTHENTICATED users before the /api/auth/me probe swapped the nav. We cache
 * "was authed" in localStorage; loader-v2 (early) adds html.pl-was-authed; that
 * hides the logged-out CTAs ONLY for likely-authed users until the probe
 * resolves (a path adds html.pl-auth-ready; loader-v2 also adds it after 3s as
 * a safety net). Anonymous users are NOT affected — their CTA shows instantly. */
html.pl-was-authed:not(.pl-auth-ready) nav.top a.cta,
html.pl-was-authed:not(.pl-auth-ready) nav.top #nav-signin { visibility: hidden; }
