/* ============================================================
   A Academia — sistema visual
   Tokens antes de componentes. Paleta derivada da marca deles
   (escuro + cyan), mas sem o glow, que é o que fazia parecer template.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- cor: rampa em OKLCH a partir do cyan da marca --- */
  --ink-900: oklch(0.13 0.012 250);   /* fundo base */
  --ink-800: oklch(0.17 0.014 250);   /* superfície elevada */
  --ink-700: oklch(0.23 0.016 250);   /* borda forte */
  --ink-600: oklch(0.32 0.014 250);   /* borda sutil */
  --ink-400: oklch(0.615 0.012 250);  /* texto secundário — 4.5:1 sobre ink-900 */
  --ink-200: oklch(0.82 0.008 250);   /* texto corrente */
  --ink-050: oklch(0.97 0.004 250);   /* texto forte */

  --brand:      oklch(0.78 0.135 205);  /* cyan da marca */
  --brand-dim:  oklch(0.62 0.110 205);
  --brand-deep: oklch(0.30 0.060 220);
  --open:       oklch(0.78 0.170 150);  /* aberto agora */

  /* --- tipografia: escala com salto real, não 16/18/20/24 --- */
  --step--1: 0.8125rem;                          /* 13px, acima do piso de 11 */
  --step-0:  1.0625rem;                          /* 17px corrente */
  --step-1:  1.375rem;
  --step-2:  clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --step-3:  clamp(2.5rem,  1.6rem + 4.0vw, 4rem);
  --step-4:  clamp(3.25rem, 1.5rem + 8.5vw, 7.5rem);

  /* --- espaço: razão, não múltiplos cegos de 4 --- */
  --s-1: 0.5rem;  --s-2: 0.875rem; --s-3: 1.5rem;
  --s-4: 2.5rem;  --s-5: 4rem;     --s-6: 6.5rem;  --s-7: 10rem;

  --measure: 62ch;
  --edge: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--ink-200);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink-050);
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-stretch: 80%; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-stretch: 94%; font-weight: 700; }

p { margin: 0; max-width: var(--measure); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* --- utilidades --- */
.wrap   { max-width: 1400px; margin-inline: auto; padding-inline: var(--edge); }
.lede   { font-size: var(--step-1); line-height: 1.5; color: var(--ink-200); font-stretch: 96%; }
.muted  { color: var(--ink-400); }
.meta   { font-size: var(--step--1); line-height: 1.5; color: var(--ink-400);
          font-stretch: 105%; letter-spacing: 0.02em; }
.section { padding-block: var(--s-5); scroll-margin-top: 5.5rem; }
section[id] { scroll-margin-top: 5.5rem; }
.rule   { border: 0; border-top: 1px solid var(--ink-700); margin: 0; }

/* números grandes, tabulares */
.figure { font-variant-numeric: tabular-nums; font-weight: 800; font-stretch: 78%;
          color: var(--ink-050); line-height: 0.9; letter-spacing: -0.02em; }

/* --- botões: retangulares, sem pílula nem sombra colorida --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.5em; min-height: 48px;
  font-size: var(--step-0); font-weight: 700; font-stretch: 94%;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.btn--primary { background: var(--brand); color: oklch(0.16 0.03 220); }
.btn--primary:hover { background: var(--ink-050); }
.btn--ghost { border-color: var(--ink-600); color: var(--ink-050); background: none; }
.btn--ghost:hover { border-color: var(--brand); }

/* --- status aberto/fechado --- */
.status { display: inline-flex; align-items: center; gap: 0.45em;
          font-size: var(--step--1); font-weight: 700; font-stretch: 104%;
          letter-spacing: 0.04em; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%;
                  background: currentColor; flex: none; }
.status[data-open='1'] { color: var(--open); }
.status[data-open='0'] { color: var(--ink-400); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
