/* ==========================================================================
   TODAKI — BASE.CSS (Design Tokens, Tipografia Local, Reset & Acessibilidade)
   ========================================================================== */

/* 1. @font-face Locais (WOFF2) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fontes/newsreader-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fontes/newsreader-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fontes/newsreader-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fontes/newsreader-600-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fontes/plus-jakarta-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fontes/plus-jakarta-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fontes/plus-jakarta-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fontes/plus-jakarta-sans-700.woff2') format('woff2');
}

/* 2. Variáveis de Design (Paleta Clara, Clean & Autoral) */
:root {
  /* Cores Principais */
  --bg-body: #FAF8F5;          /* Off-white quente e acolhedor */
  --bg-canvas: #FFFFFF;        /* Branco puro para cartões e áreas de foco */
  --bg-subtle: #F3EFEA;        /* Fundo suave para contraste delicado */
  --bg-hover: #ECE7E0;

  /* Tipografia & Contraste (AAA) */
  --text-main: #141416;        /* Quase preto profundo para legibilidade máxima */
  --text-muted: #57534E;       /* Tom ardósia quente para metadados */
  --text-light: #78716C;       /* Cinza médio quente */

  /* Cores Autorais Todaki */
  --brand-primary: #C84B20;    /* Terracota vibrante editorial */
  --brand-primary-hover: #A83812;
  --brand-primary-light: #FDF1EB;
  --brand-accent: #D97706;     /* Âmbar dourado complementar */
  --brand-accent-light: #FEF3C7;
  --brand-dark: #1F1E1D;

  /* Bordas e Sombras */
  --border-subtle: #EBE5DF;
  --border-focus: #C84B20;
  --shadow-sm: 0 1px 3px rgba(20, 20, 22, 0.04), 0 1px 2px rgba(20, 20, 22, 0.02);
  --shadow-md: 0 4px 12px rgba(20, 20, 22, 0.06), 0 2px 4px rgba(20, 20, 22, 0.03);
  --shadow-lg: 0 12px 28px rgba(20, 20, 22, 0.08), 0 4px 8px rgba(20, 20, 22, 0.04);
  --shadow-hover: 0 16px 36px rgba(200, 75, 32, 0.12), 0 6px 14px rgba(20, 20, 22, 0.05);

  /* Font Families */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala de Espaçamento */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Raios de Borda */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transições Suaves */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Reset Moderno e Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imagens e Mídias */
img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
}

svg.svg-icon {
  display: inline-block !important;
  vertical-align: -0.15em !important;
  flex-shrink: 0 !important;
}

.meta-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.meta-item svg,
.meta-item .svg-icon {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.meta-item span {
  display: inline-block !important;
  line-height: 1 !important;
}

.meta-separator {
  display: inline-block !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background-color: var(--text-light, #9ca3af) !important;
  margin: 0 0.25rem !important;
  flex-shrink: 0 !important;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Botões e Inputs */
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* 4. Escala Tipográfica Fluida */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

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

.lead-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
}
