/* Mini & Magic — reset, fontes e elementos base */

@font-face {
  font-family: "Sensei";
  src: url("../assets/fonts/Sensei-Medium.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Catamaran";
  src: url("../assets/fonts/catamaran-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Catamaran";
  src: url("../assets/fonts/catamaran-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-fundo);
  color: var(--c-texto);
  font-family: var(--f-corpo);
  font-size: var(--fs-300);
  line-height: var(--lh-corpo);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-4);
  color: var(--c-titulo);
  line-height: var(--lh-titulo);
  text-wrap: balance;
}

h1 {
  font-family: var(--f-corpo);
  font-size: var(--fs-700);
  font-weight: 800;
}

h2 {
  font-family: var(--f-display);
  font-size: var(--fs-600);
  font-weight: 400;
}

/* Títulos de secção em Catamaran (como no original) */
h2.t-corpo,
h3.t-corpo {
  font-family: var(--f-corpo);
  font-weight: 800;
}

h3 {
  font-family: var(--f-corpo);
  font-size: var(--fs-500);
  font-weight: 900;
}

p {
  margin: 0 0 var(--sp-4);
}

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

a {
  color: var(--c-acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transicao);
}

a:hover {
  color: var(--c-acento-hover);
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0 0 var(--sp-4);
  padding-left: 1.2em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--c-titulo);
  outline-offset: 3px;
  border-radius: 2px;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.saltar-para-conteudo {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-titulo);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
}

.saltar-para-conteudo:focus {
  top: var(--sp-3);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
