/* ============================================================
   base.css — Reset, variáveis CSS e tipografia base
   Athletica · 2026
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   Variáveis — Light mode (default)
   ============================================================ */
:root {
  /* Marca */
  --color-brand:        #B8470E;
  --color-brand-hover:  #9A3A0A;
  --color-black:        #0A0A0A;
  --color-white:        #FAFAFA;

  /* Superfícies — light */
  --color-bg:           #F7F6F2;
  --color-surface:      #FFFFFF;
  --color-text:         #1A1A1A;
  --color-text-muted:   #6B6B6B;
  --color-border:       rgba(0, 0, 0, 0.10);

  /* Tipografia */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Escala de tipo */
  --text-hero:  clamp(3rem, 7vw, 7rem);
  --text-2xl:   clamp(2rem, 4vw, 3.5rem);
  --text-xl:    clamp(1.5rem, 2.5vw, 2.25rem);
  --text-lg:    clamp(1.125rem, 1.5vw, 1.5rem);
  --text-base:  1rem;
  --text-sm:    0.875rem;
  --text-xs:    0.75rem;

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Larguras de conteúdo */
  --content-default: 960px;
  --content-wide:   1200px;

  /* Navbar height */
  --nav-height: 64px;
}

/* ============================================================
   Dark mode
   ============================================================ */
[data-theme="dark"] {
  --color-bg:           #111111;
  --color-surface:      #1C1C1C;
  --color-text:         #E8E8E8;
  --color-text-muted:   #888888;
  --color-border:       rgba(255, 255, 255, 0.10);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   Tipografia base
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   Utilitários base
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

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