/**
 * SlideFlow Base Styles — Reset e Fundações
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

::selection {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-4);
  color: var(--color-text-secondary);
  max-width: var(--max-width-prose);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Core Web Vitals + Acessibilidade: foco visível (teclado) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip link: visível apenas ao focar (teclado) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--spacing-4, 1rem);
  z-index: 10000;
  padding: var(--spacing-2, 0.5rem) var(--spacing-4, 1rem);
  background: var(--color-accent);
  color: #fff;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-md, 0.5rem);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--spacing-4, 1rem);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

em {
  font-style: italic;
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  padding: 0.125rem 0.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-sm);
}

/* LISTAS */
ul, ol {
  margin-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

li {
  margin-bottom: var(--spacing-2);
  color: var(--color-text-secondary);
}

/* IMAGENS — Core Web Vitals: dimensões explícitas reduzem CLS */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HR */
hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-12) 0;
}

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