/*
 * Type.
 *
 * Self-hosted, not linked from a CDN. The Content-Security-Policy on every page is
 * `font-src 'self'`, which is deliberate — a third-party font host is a third party that can
 * see every page view and, on a bad day, serve something other than a font. Two variable
 * families, four files, 175 KB in total, cached for a year.
 *
 * Split into latin and latin-ext with a `unicode-range` on each: a shopper reading the English
 * storefront never downloads the extended set, and one on `loja.` gets it only because the
 * page actually contains the characters. That is the whole reason to keep them separate.
 *
 * `font-display: swap` on purpose. The alternative is a page that renders nothing until the
 * font arrives, and a store that shows a blank price for 300ms is worse than one that reflows.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * VultureHUB store — foundations.
 *
 * The palette is taken from the logo rather than chosen next to it. The mark sits on a
 * near-black violet, the wordmark runs a purple gradient, "HUB" is cold silver, and the scene
 * is lit by cyan crystals with magenta bloom. Those five roles are the whole system:
 *
 *   void / surface    the near-black violet the mark sits on
 *   violet            the wordmark gradient — every primary action
 *   cyan              the crystals — accents, links, focus, "this is live"
 *   magenta           the bloom — sales and urgency, used sparingly so it keeps meaning
 *   silver / gold     "HUB" and the coins in the banner — text and prices
 *
 * Everything below is a variable because the admin panel can tint a server. Nothing hard-codes
 * a hex outside this file.
 */

:root {
  /*
   * The ground is near-neutral, not violet.
   *
   * The first version of this palette put a saturated violet-black behind everything and then
   * used violet for every button, ribbon and glow on top of it. The accent had nothing to
   * stand against, so nothing read as important and the whole page looked like one texture.
   *
   * The rule now: the room is quiet and the objects are loud. Surfaces are flat neutral greys
   * with a whisper of blue; the only saturated colour on a page is the artwork, the price, and
   * the one button you are meant to press.
   */
  --void: #0d0e14;
  --void-deep: #090a0f;
  --surface: #14161e;
  --surface-2: #191c26;
  --surface-3: #21242f;
  --line: #262a36;
  --line-soft: #1e212b;

  /*
   * One accent.
   *
   * `--violet` is the brand purple and is the fill for anything clickable; white on it is
   * 7:1, which the brighter neon was not. `--violet-bright` is for borders and hover only, and
   * `--violet-text` is the one tint light enough to read as small text on these surfaces.
   */
  --violet: #8418cc;
  --violet-bright: #a855f7;
  --violet-deep: #5a0f8f;
  --violet-lift: #c084fc;
  --violet-text: #c084fc;
  --violet-wash: rgba(132, 24, 204, 0.14);

  /*
   * Everything below is a signal, not decoration, and each one means exactly one thing:
   * cyan is "live", gold is "this is the price", magenta is "this is on sale", and the last
   * three are states. Using them for anything else is what made the old palette noise.
   */
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-wash: rgba(34, 211, 238, 0.12);
  --magenta: #e879f9;
  --magenta-wash: rgba(232, 121, 249, 0.12);

  --text: #e9eaf0;
  --text-dim: #b8bcc8;
  --text-mute: #8b909f;
  --silver: #dfe6f2;
  --gold: #f2b423;
  --gold-soft: #fcd34d;

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  /*
   * These are named "grad" for history: every one is now a flat colour.
   *
   * Gradients were on buttons, on ribbons, on cards, on panels and — worst — on text, where
   * background-clip at 14px turns a crisp number into mud. Keeping the variable names meant
   * flattening the entire site by changing five values rather than a hundred rules.
   */
  --grad-brand: var(--violet);
  --grad-brand-hot: #9b2ee0;
  --grad-crystal: var(--cyan);
  --grad-sale: var(--magenta);
  --grad-gold: var(--gold);

  /* The one place a gradient still earns its keep: the logo, which has one in the artwork. */
  --grad-wordmark: linear-gradient(120deg, #c084fc 0%, #a855f7 45%, #8418cc 100%);

  /*
   * Neutral shadows. The old ones were purple-tinted, which put a faint violet halo under
   * every card and contributed to the sense that everything was glowing slightly.
   */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --glow-violet: 0 0 0 1px var(--violet-bright);
  --glow-cyan: 0 0 0 1px var(--cyan);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --fast: 120ms var(--ease);
  --med: 220ms var(--ease);

  --rail: 264px;
  --shell: 1300px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /*
   * The cart drawer and the menu sheet sit off-screen to the right until opened. Without this
   * they still count toward the document's scroll width, and every page on a phone gains 90px
   * of sideways scroll into empty space. `clip` rather than `hidden`, because `hidden` on the
   * root silently kills `position: sticky` on descendants — which the header and the rail
   * both rely on.
   */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*
   * `cv11` gives Inter a single-storey `a`… no: it gives the disambiguated 1/l/I, which
   * matters on a page full of order references and prices. `ss03` is the flat-topped 3.
   */
  font-feature-settings: 'cv11' 1, 'ss03' 1;
  font-variant-ligatures: contextual;
}

/*
 * The backdrop.
 *
 * Two soft radial lights — violet from the upper left, cyan from the right — over the void,
 * fixed so they do not travel with the scroll. It is the lighting from the logo art rather
 * than a flat colour, and it is what stops a dark page from reading as a black rectangle.
 */
/*
 * One soft light from above, and nothing else.
 *
 * There used to be two coloured auroras and a 56px grid behind every page. Under a wall of
 * product cards that reads as dirt on the screen; the page is more legible with a plain ground
 * and a single gradient to stop the top of the viewport being flat black.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1200px 520px at 50% -10%, rgba(132, 24, 204, 0.13), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 0.85em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--violet-text);
  text-decoration: none;
  transition: color var(--fast);
}
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* One focus ring everywhere, and only for keyboards. Mouse users never see it; anyone
   tabbing always does, which is the whole point of :focus-visible. */
:focus-visible {
  outline: 2px solid var(--violet-lift);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: rgba(132, 24, 204, 0.45);
  color: #fff;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--void-deep); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 8px;
  border: 3px solid var(--void-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--line); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — hidden until focused, then it lands where it can be seen. */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--violet);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--fast);
}
.skip:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

/*
 * The crystal facet.
 *
 * A chipped top-right corner, taken from the crystal shards in the logo. It is the one shape
 * that makes a VultureHUB card recognisable at a glance without a logo on it, so it is used
 * on cards, panels and the hero — and nowhere else, because a motif used everywhere is
 * texture rather than identity.
 */
.facet {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.facet-sm {
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
