/* ==========================================================================
   BASE.CSS
   Fundação do Design System
   ========================================================================= */

/* ==========================================================================
   RESET
   ========================================================================= */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

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

ul,
ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   FONTES
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src:
    url("/assets/fonts/Inter-Variable.woff2")
    format("woff2");
  font-display: swap;
}

/* ==========================================================================
   TOKENS
   ========================================================================= */

:root {

  /* ==================================================
     CORES
  ================================================== */

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;

  --color-accent: #38bdf8;

  --color-background: #0f172a;
  --color-surface: #1e293b;

  --color-border: #334155;

  --color-text: #f8fafc;
  --color-text-muted: #cbd5e1;

  --color-white: #ffffff;
  --color-black: #000000;

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* ==================================================
     TIPOGRAFIA
  ================================================== */

  --font-family-base:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;

  --font-size-h6: 1.125rem;
  --font-size-h5: 1.25rem;
  --font-size-h4: 1.5rem;
  --font-size-h3: 1.75rem;
  --font-size-h2: 2rem;
  --font-size-h1: 2.5rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --line-height-tight: 1.1;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* ==================================================
     ESPAÇAMENTOS
  ================================================== */

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* ==================================================
     BORDAS
  ================================================== */

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  /* ==================================================
     SOMBRAS
  ================================================== */

  --shadow-sm:
    0 2px 8px rgba(0, 0, 0, 0.08);

  --shadow-md:
    0 8px 24px rgba(0, 0, 0, 0.12);

  --shadow-lg:
    0 16px 48px rgba(0, 0, 0, 0.16);

  /* ==================================================
     TRANSIÇÕES
  ================================================== */

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* ==================================================
     CONTAINER
  ================================================== */

  --container-width: 1200px;

}

/* ==========================================================================
   BODY
   ========================================================================= */

body {

  font-family: var(--font-family-base);

  font-size: var(--font-size-md);

  font-weight: var(--font-weight-regular);

  line-height: var(--line-height-normal);

  color: var(--color-text);

  background-color: var(--color-background);

  text-rendering: optimizeLegibility;

  -webkit-font-smoothing: antialiased;

}

/* ==========================================================================
   TIPOGRAFIA GLOBAL
   ========================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

  line-height: var(--line-height-tight);

  font-weight: var(--font-weight-bold);

  color: var(--color-text);

}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

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

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

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

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

p {

  color: var(--color-text-muted);

}

strong {

  color: var(--color-text);

  font-weight: var(--font-weight-semibold);

}

/* ==========================================================================
   LINKS
   ========================================================================= */

a {

  transition:
    color var(--transition-fast);

}

a:hover {

  color: var(--color-accent);

}

/* ==========================================================================
   SELEÇÃO
   ========================================================================= */

::selection {

  background: var(--color-primary);

  color: var(--color-white);

}

/* ==========================================================================
   FOCUS
   ========================================================================= */

:focus-visible {

  outline: 3px solid var(--color-accent);

  outline-offset: 3px;

}

/* ==========================================================================
   BOTÕES NATIVOS
   ========================================================================= */

button {

  border: none;

  background: none;

  cursor: pointer;

}

/* ==========================================================================
   FORMULÁRIOS
   ========================================================================= */

input,
textarea,
select {

  width: 100%;

  border: 1px solid var(--color-border);

  border-radius: var(--radius-md);

  background: var(--color-surface);

  color: var(--color-text);

  padding: 0.875rem 1rem;

}

input::placeholder,
textarea::placeholder {

  color: var(--color-text-muted);

}

textarea {

  resize: vertical;

  min-height: 140px;

}

/* ==========================================================================
   MOBILE TYPOGRAPHY
   ========================================================================= */

@media (min-width: 768px) {

  :root {

    --font-size-h1: 4rem;
    --font-size-h2: 3rem;
    --font-size-h3: 2rem;

  }

}