/*
 * Tilted Pokah brand system — shared by tiltedpokah.com and shop.tiltedpokah.com.
 *
 * Source of truth: tilted-pokah-shop/src/index.css (the "Midnight Navy" shell
 * skin, itself taken from the app). Values here are copied from that @theme
 * block one for one, so the three properties read as siblings. Retune here,
 * not in page styles.
 *
 * Rules of use
 *  - Navy is the ground. Cards and sheets sit one step up (shell-900) with a
 *    hairline edge (shell-800). No pure white surfaces.
 *  - Brand blue is the accent: highlights, links, focus rings, primary actions.
 *  - Gold is reserved for money and the crest: deposit / join / submit
 *    buttons, the logo, and nothing decorative beyond that.
 *  - Display type is Barlow Condensed, bold, uppercase, slightly tracked.
 *    Body type is Inter. Small labels are 11px caps at 0.3em tracking.
 *
 * Logo usage
 *  - On navy: the white mark (logo-white.png) in headers and big moments,
 *    the gold crest (logo-gold.png) as the sign-off in footers and as the
 *    favicon. Never the black mark on navy.
 *  - Give it room: at least its own diamond's height of clear space.
 *
 * Load with:
 *   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap" rel="stylesheet">
 *   <link rel="stylesheet" href="/assets/brand.css">
 */

:root {
  /* ---------- type ---------- */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* ---------- colour: the navy shell ---------- */
  --shell-950: #0f1c33; /* the ground, and the theme-color */
  --shell-900: #152643; /* cards and sheets */
  --shell-800: #223757; /* hairlines */
  --shell-700: #2b4269; /* borders, disabled fills */
  --shell-600: #7189b3; /* placeholders, disabled ink */

  /* ---------- colour: accent ---------- */
  --brand-400: #79d0fb;
  --brand-500: #34b3f1;
  --brand-600: #1c8fca;

  /* ---------- colour: money (gold) ---------- */
  --money-400: #f5cf6e;
  --money-500: #dcae3f;
  --money-600: #b98d2a;

  /* ---------- colour: status ---------- */
  --danger-500: #ff8080;
  --ok-500: #4fd18b;

  /* ---------- colour: ink ---------- */
  --ink: #e9eefa;      /* primary text on navy */
  --onmoney: #1a1204;  /* text on gold */
  --slate-100: #eaf0fb;
  --slate-200: #d8e2f4;
  --slate-300: #c2d0ea;
  --slate-400: #aabbdb;
  --slate-500: #93a5cb;
  --slate-600: #7486b0;

  /* the light well product photos sit in */
  --well: #eef1f6;

  /* ---------- spacing (the shop's 4px Tailwind scale) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter: 20px;       /* page side padding on phones (px-5) */
  --gutter-lg: 32px;    /* from 640px up (sm:px-8) */
  --content-max: 1152px; /* max-w-6xl */

  /* ---------- shape ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;  /* buttons, inputs (rounded-xl) */
  --radius-lg: 16px;  /* cards, wells (rounded-2xl) */
  --radius-pill: 999px;

  /* ---------- labels ---------- */
  --caps-size: 11px;
  --caps-tracking: 0.3em;

  /* ---------- motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* ---------- the ground: navy with one lit corner, no pattern ---------- */
  --ground-glow: radial-gradient(120% 70% at 0% 0%, rgba(52, 179, 241, 0.16), transparent 60%);
}

/* ---------- base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}
body {
  background-color: var(--shell-950);
  background-image: var(--ground-glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(52, 179, 241, 0.3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.caps {
  font-size: var(--caps-size); font-weight: 600;
  letter-spacing: var(--caps-tracking); text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.25;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* money actions: deposit, join, submit */
.btn-gold { background: var(--money-500); color: var(--onmoney); }
.btn-gold:hover { background: var(--money-400); }
.btn-gold:active { background: var(--money-600); }

/* primary non-money action */
.btn-blue { background: var(--brand-500); color: var(--shell-950); }
.btn-blue:hover { background: var(--brand-400); }

/* secondary */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--shell-700); }
.btn-ghost:hover { border-color: var(--slate-500); background: var(--shell-900); }

/* showcase buttons: square, letter-spaced caps */
.btn-lux, .btn-lux-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-4) 36px; border: 1px solid transparent; border-radius: 0;
  font-size: var(--caps-size); font-weight: 600; letter-spacing: var(--caps-tracking); text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lux:focus-visible, .btn-lux-ghost:focus-visible { outline: 2px solid var(--money-400); outline-offset: 4px; }
.btn-lux { background: var(--money-500); color: var(--onmoney); }
.btn-lux:hover { background: var(--money-400); }
.btn-lux-ghost { background: transparent; color: var(--ink); border-color: rgba(233, 238, 250, 0.4); }
.btn-lux-ghost:hover { border-color: var(--money-400); color: var(--money-400); }

/* ---------- inputs ---------- */
.input {
  width: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--shell-700); border-radius: var(--radius-md);
  background: var(--shell-900); color: var(--ink);
  font: inherit;
}
.input::placeholder { color: var(--shell-600); }
.input:focus { border-color: var(--brand-500); outline: none; }

/* ---------- surfaces ---------- */
.card {
  background: var(--shell-900);
  border: 1px solid var(--shell-800);
  border-radius: var(--radius-lg);
}

.link { color: var(--brand-400); text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }
