/* ==========================================================================
   HIDROSENIOR 2026 — RESET MODERNO
   Baseado em Andy Bell (piccalil.li) + ajustes para o design system.
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--lh-normal);
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  color: var(--ink-900);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--brand-navy);
  text-wrap: balance;
  font-variation-settings: "wdth" 90, "opsz" 48;
}

h1 { font-size: var(--fs-hero);  font-variation-settings: "wdth" 85, "opsz" 96, "wght" 700; }
h2 { font-size: var(--fs-h2);    font-variation-settings: "wdth" 88, "opsz" 60, "wght" 600; }
h3 { font-size: var(--fs-h3);    font-variation-settings: "wdth" 92, "opsz" 32, "wght" 600; }
h4 { font-size: var(--fs-body-lg); font-family: var(--font-mono); font-weight: 500;
     letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-cyan); }

p, li, dd {
  max-width: 65ch;
  text-wrap: pretty;
}

ul, ol {
  padding-left: var(--s-3);
}

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--brand-cyan-20);
  color: var(--ink-900);
}

/* Acessibilidade — visually hidden mas foca no Tab */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: var(--z-overlay);
  padding: var(--s-2) var(--s-3);
  background: var(--brand-navy);
  color: var(--brand-white);
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom-right-radius: var(--radius-md);
}

.skip-link:focus {
  top: 0;
}
