/* Lumia Light — main.css
   Fundações: reset, tokens de design, tipografia, layout base. */

:root {
  /* Paleta Lumia — Secção 2 do briefing */
  --bg-primary: #2A2A2A;
  --bg-alt: #222222;
  --bg-card: #333333;
  --gold: #C9A96E;
  --gold-light: #DFC08A;
  --gold-dark: #A07840;
  --white: #F5F5F0;
  --gray-mid: #9A9890;
  --divider: #3A3A3A;
  --error: #E55A4E;
  --success: #4E9E6E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-card: 8px;
  --radius-control: 4px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm) 0;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }

p { margin: 0 0 var(--space-sm) 0; color: var(--white); }
p.lead { font-size: 1.15rem; color: var(--gray-mid); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

code, pre, .mono { font-family: var(--font-mono); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-2xl) 0; }
section.alt { background: var(--bg-alt); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-primary);
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
  border-radius: 0 0 var(--radius-control) 0;
}
.skip-link:focus {
  left: 0;
}

/* Foco visível em todos os elementos interactivos — acessibilidade obrigatória */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

::selection { background: var(--gold); color: var(--bg-primary); }
