/* AG Sharko · Maré — tokens. Cores, espaços, raios e sombras só daqui.
   O tema escuro redefine os mesmos nomes; componentes nunca olham o tema. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800-italic-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;

  /* Cor */
  --chao: #F6F2EA;          /* areia: fundo */
  --chao-2: #EFE9DD;        /* areia molhada: seções alternadas, a "água" */
  --placa: #FFFFFF;         /* superfície de formulário */
  --tinta: #141414;         /* texto */
  --tinta-2: #585550;       /* texto de apoio, 6.6:1 na areia */
  --borda: #D9D1C1;         /* fios entre linhas */
  --borda-forte: #8C857A;   /* contorno de campo, 3.4:1 na placa */
  --sharko: #E30613;        /* a única cor viva: ação */
  --sharko-forte: #B8000C;  /* hover do botão */
  --sharko-texto: #C8000F;  /* vermelho em texto, 5.4:1 na areia */
  --sharko-tinta: #FFFFFF;  /* texto sobre o vermelho */
  --sharko-claro: #FBE3E1;  /* seleção de texto, halo do campo */

  /* Faixa de trabalhos (sempre escura) */
  --faixa: #141414;
  --faixa-2: #1F1E1C;
  --faixa-tinta: #F6F2EA;
  --faixa-tinta-2: #B9B2A6;
  --faixa-borda: #34322F;
  --faixa-sharko-texto: #FF6B63;

  /* Letra */
  --f-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.875rem, 1.6rem + 5.6vw, 6rem);
  --t-h2: clamp(2.375rem, 1.6rem + 3.2vw, 4rem);
  --t-h3: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
  --t-corpo: 1.0625rem;   /* 17 */
  --t-lead: 1.1875rem;    /* 19 */
  --t-rotulo: 0.9375rem;  /* 15 */

  /* Espaço (base 4) */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 20px; --e-6: 24px;
  --e-8: 32px; --e-12: 48px; --e-16: 64px; --e-24: 96px; --e-32: 128px;
  --margem: 20px;
  --largura: 1200px;
  --secao: clamp(64px, 6vw + 40px, 128px);

  /* Forma */
  --r-sm: 10px;
  --r-md: 14px;
  --r-pill: 999px;
  --sombra-1: 0 1px 2px rgb(20 20 20 / 0.06), 0 8px 24px rgb(20 20 20 / 0.06);
  --sombra-2: 0 2px 4px rgb(20 20 20 / 0.08), 0 16px 40px rgb(20 20 20 / 0.12);
  --sombra-subir: 0 -1px 0 rgb(20 20 20 / 0.06), 0 -20px 48px rgb(20 20 20 / 0.10);
  --foco: 0 0 0 3px var(--chao), 0 0 0 5px var(--sharko);

  /* Movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 768px) { :root { --margem: 32px; --t-corpo: 1.125rem; } }
@media (min-width: 1024px) { :root { --margem: 48px; } }

/* Escuro: segue o aparelho, a menos que a pessoa escolha "claro" */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    color-scheme: dark;
    --chao: #141312; --chao-2: #1B1A18; --placa: #23211F;
    --tinta: #F3EEE5; --tinta-2: #B4AEA4; --borda: #34322F; --borda-forte: #807A71;
    --sharko-forte: #B8000C; --sharko-texto: #FF6B63; --sharko-claro: #3A1715;
    --faixa: #0C0B0B; --faixa-2: #1B1A18; --faixa-borda: #2E2C29;
    --sombra-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --sombra-2: 0 2px 4px rgb(0 0 0 / 0.5), 0 16px 40px rgb(0 0 0 / 0.45);
    --sombra-subir: 0 -1px 0 rgb(255 255 255 / 0.05), 0 -20px 48px rgb(0 0 0 / 0.5);
  }
}
:root[data-tema="escuro"] {
  color-scheme: dark;
  --chao: #141312; --chao-2: #1B1A18; --placa: #23211F;
  --tinta: #F3EEE5; --tinta-2: #B4AEA4; --borda: #34322F; --borda-forte: #807A71;
  --sharko-forte: #B8000C; --sharko-texto: #FF6B63; --sharko-claro: #3A1715;
  --faixa: #0C0B0B; --faixa-2: #1B1A18; --faixa-borda: #2E2C29;
  --sombra-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  --sombra-2: 0 2px 4px rgb(0 0 0 / 0.5), 0 16px 40px rgb(0 0 0 / 0.45);
  --sombra-subir: 0 -1px 0 rgb(255 255 255 / 0.05), 0 -20px 48px rgb(0 0 0 / 0.5);
}
