/* ==========================================================================
   base.css — Reset, tipografia, variáveis CSS (Design Tokens)
   Praticar Juntos — Yoga para Todos
   ========================================================================== */

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  /* Cores principais */
  --background: hsl(340 18% 8%);
  --foreground: hsl(35 40% 93%);
  --primary: hsl(38 75% 68%);
  --audio-primary: hsl(38 75% 68%);
  --audio-secondary: hsl(355 35% 60%);
  --audio-dark: hsl(340 18% 8%);
  --audio-card: hsl(340 15% 13%);
  --card: hsl(340 15% 13%);
  --audio-border: hsl(340 15% 22%);
  --border: hsl(340 15% 22%);
  --audio-green: hsl(85 35% 45%);
  --accent: hsl(85 35% 45%);
  --secondary: hsl(345 20% 20%);
  --muted: hsl(345 15% 18%);
  --muted-foreground: hsl(345 10% 58%);
  --ring: hsl(38 75% 68%);
  --destructive: hsl(0 62.8% 30.6%);

  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, hsl(340 25% 12%), hsl(355 30% 18%));
  --gradient-card: linear-gradient(145deg, hsl(340 18% 9%), hsl(340 15% 12%));

  /* Sombras */
  --shadow-glow: 0 0 40px hsl(38 75% 68% / 0.18);
  --shadow-card: 0 10px 30px -5px hsl(340 18% 4% / 0.6);

  /* Tipografia */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Espaçamentos */
  --radius: 0.75rem;
  --radius-md: 0.5rem;

  /* Transicao padrao */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: var(--transition);
}

a:hover {
  color: var(--audio-secondary);
}

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.375rem, 3vw, 2rem);
}

p {
  margin-block: 0.75em;
}

blockquote {
  font-style: italic;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-block: 1.5rem;
  color: var(--muted-foreground);
}

blockquote footer,
blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Focus e Acessibilidade ---------- */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--audio-dark);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
}

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

/* ---------- Selecao ---------- */
::selection {
  background: hsl(38 75% 68% / 0.3);
  color: var(--foreground);
}

/* ---------- 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;
  }
}

/* ---------- Responsivo: texto body em telas maiores ---------- */
@media (min-width: 768px) {
  body {
    font-size: 1rem;
  }
}
