/* ==========================================================================
   base.css — design tokens, reset and typography
   U888 static site
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --c-red:          #d32121;
  --c-red-dark:     #c41c1c;
  --c-red-deep:     #470000;
  --c-gold:         #f3b70f;
  --c-gold-light:   #ffd45e;
  --c-orange:       #ffa200;

  /* Surfaces */
  --c-bg:           #000000;
  --c-surface:      #12100f;
  --c-surface-2:    #1c1918;
  --c-surface-3:    #262120;
  --c-nav:          #0a0a0a;

  /* Text */
  --c-text:         #e9e6e4;
  --c-text-muted:   #a9a29e;
  --c-text-dim:     #7d7673;
  --c-heading:      #ffffff;

  /* Lines */
  --c-border:       rgba(255, 255, 255, .10);
  --c-border-strong:rgba(255, 255, 255, .18);

  /* Gradients */
  --grad-red:   linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  --grad-gold:  linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 55%, var(--c-orange) 100%);

  /* Typography */
  --font-sans: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  --fs-3xl:  clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem);

  /* Spacing scale */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radius + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-glow: 0 0 0 1px rgba(243, 183, 15, .25), 0 8px 30px rgba(211, 33, 33, .25);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --header-h: 64px;

  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: url("../img/u888-background.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

a { color: var(--c-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-gold-light); }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-base); }

p { text-wrap: pretty; }

strong, b { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-7); }

.text-center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-gold);
  color: #000;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { top: 0; color: #000; }
