/* ==========================================================================
   Base — reset, design tokens, typography
   La Leyenda Project · Cold minimalist theme · Nike-style typography
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  width: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "kern" 1, "liga" 1;
  position: relative;
}

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

button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

/* ==========================================================================
   Design tokens — cold, monochrome
   ========================================================================== */

:root {
  /* Color */
  --white: #ffffff;
  --off-white: #f6f6f6;
  --paper: #fafafa;
  --black: #0a0a0a;
  --ink: #000000;
  --grey-100: #ededed;
  --grey-200: #d4d4d4;
  --grey-300: #a8a8a8;
  --grey-400: #737373;
  --grey-500: #525252;
  --grey-600: #2a2a2a;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Typography — Nike-style sans-serif */
  --font: "Helvetica Neue", "Helvetica", "Inter", "Arial", "Segoe UI",
    -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Layout */
  --container: 1440px;
  --container-text: 880px;
  --gutter: 1.5rem;
  --gutter-lg: 4rem;
  --header-h: 80px;

  /* Effects */
  --transition: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 800ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index */
  --z-progress: 40;
  --z-header: 50;
  --z-menu: 60;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow--ink {
  color: var(--grey-300);
}

.display {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
}

h1,
.h1 {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h2,
.h2 {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h3,
.h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
}

p.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--black);
  font-weight: 400;
}

.text-muted {
  color: var(--grey-500);
}

.text-grey {
  color: var(--grey-400);
}

.text-white {
  color: var(--white);
}

.text-black {
  color: var(--black);
}

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

.uppercase {
  text-transform: uppercase;
}

::selection {
  background: var(--black);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus-visible {
  top: 1rem;
}

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