/* =====================================================
   CLUBE LEGACI — Global CSS
   Paleta + tipografia + reset + utilitários
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Bricolage+Grotesque:wght@400;500;600;700&display=swap');

:root {
  /* Paleta */
  --cream: #F8F6F2;
  --paper: #F5F0E5;
  --paper-warm: #FBF7EB;
  --forest: #1A3C34;
  --forest-light: #244A3F;
  --forest-deep: #0A1C18;
  --copper: #C17F4A;
  --copper-light: #D4945C;
  --copper-dark: #7A4A22;
  --gold: #D4AF37;
  --gold-light: #E0BF4F;
  --gold-deep: #8C7423;

  --ink: #111010;
  --ink-soft: rgba(17, 16, 16, 0.7);
  --ink-muted: rgba(17, 16, 16, 0.45);

  --paper-soft: rgba(245, 240, 229, 0.85);
  --paper-muted: rgba(245, 240, 229, 0.55);

  --success: #2D7A4F;
  --warning: #D97706;
  --danger: #DC2626;

  --border-light: rgba(17, 16, 16, 0.08);
  --border-paper: rgba(245, 240, 229, 0.12);

  /* Tipografia */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  /* Escalas — público 50+ */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 62px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.18);
  --shadow-pola: 2px 6px 14px rgba(0, 0, 0, 0.20);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== BODY base ===== */
body {
  background: var(--cream);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dark variant */
body.dark {
  background: var(--forest-deep);
  color: var(--paper);
  background-image:
    radial-gradient(ellipse 800px 500px at 80% 20%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 70%, rgba(193, 127, 74, 0.08), transparent 60%);
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 1;
}
body.dark::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.73 0 0 0 0 0.50 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}
body > * { position: relative; z-index: 2; }

/* ===== TYPE HELPERS ===== */
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }
.italic { font-style: italic; }
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 3px;
  color: var(--copper);
  text-transform: lowercase;
}
.label-caps {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink-muted);
}
body.dark .label-caps { color: var(--paper-muted); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-style: italic; font-weight: 700; }
h1 { font-size: var(--text-4xl); line-height: 1.05; }
h2 { font-size: var(--text-3xl); line-height: 1.1; }
h3 { font-size: var(--text-2xl); line-height: 1.2; }
h4 { font-size: var(--text-xl); line-height: 1.3; }

.headline-hero {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-5xl);
  line-height: 1.0;
  letter-spacing: -0.5px;
}
.headline-hero .accent { color: var(--gold); }
body:not(.dark) .headline-hero .accent { color: var(--forest); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-4); }
.row-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--space-5); }
  .headline-hero { font-size: 38px; }
}

/* ===== TOP NAV ===== */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-bottom: 0.5px solid var(--border-light);
}
body.dark .topnav { border-color: rgba(212, 175, 55, 0.25); }

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--forest);
}
body.dark .brand-name { color: var(--paper); }
.brand-tag {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-muted);
}
body.dark .brand-tag { color: var(--paper-muted); }

.nav-links {
  display: flex;
  gap: var(--space-6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
body.dark .nav-links { color: var(--paper-soft); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--copper); }
.nav-links a.active {
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}
body.dark .nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ===== EDITORIAL DIVIDER ===== */
.divider-editorial {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-7) 0;
  color: var(--copper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 3px;
}
.divider-editorial::before, .divider-editorial::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(193, 127, 74, 0.4);
  margin: 0 var(--space-4);
}

/* ===== PAGE PADDING ===== */
.page {
  padding: var(--space-6) 0 var(--space-9);
}
.hero {
  padding: var(--space-7) 0 var(--space-8);
}
