/* =====================================================================
   PATRIMONO — Design tokens
   Consultoria de Investimentos
   Editorial restraint: one accent (deep teal), ink, paper, warm grays.
   ===================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ============== COLORS ============== */
  --black:        #0B0D10;
  --ink:          #14181D;
  --white:        #FFFFFF;
  --paper:        #FAFAF7;
  --bone:         #F4F2EC;

  --gray-50:      #F4F4F2;
  --gray-100:     #ECECE8;
  --gray-200:     #DCDCD6;
  --gray-300:     #C4C4BD;
  --gray-400:     #9C9C95;
  --gray-500:     #74746E;
  --gray-600:     #54544F;
  --gray-700:     #3A3A37;
  --gray-800:     #232321;
  --gray-900:     #141413;

  --accent-50:    #EDF4F2;
  --accent-100:   #D3E5E1;
  --accent-200:   #A9C9C2;
  --accent-300:   #7FAEA4;
  --accent-400:   #4F8E83;
  --accent-500:   #2F7368;
  --accent-600:   #205B52;
  --accent-700:   #15463F;
  --accent-800:   #0E332E;
  --accent-900:   #0A2422;

  --bg:           var(--paper);
  --bg-elevated:  var(--white);
  --bg-sunken:    var(--bone);
  --bg-inverse:   var(--ink);

  --fg:           var(--ink);
  --fg-muted:     var(--gray-600);
  --fg-subtle:    var(--gray-500);
  --fg-faint:     var(--gray-400);
  --fg-on-dark:   var(--paper);
  --fg-inverse:   var(--paper);

  --accent:       var(--accent-500);
  --accent-soft:  var(--accent-100);
  --accent-deep:  var(--accent-800);

  --border:       var(--gray-200);
  --border-soft:  var(--gray-100);
  --border-strong:var(--gray-300);
  --rule:         var(--gray-300);

  /* ============== TYPE ============== */
  /* Playfair Display: LOGO ONLY (the wordmark).
     Playfair (regular optical sizes): allowed for body, pull-quotes,
     editorial accents.
     Inter: all UI, headlines, navigation, labels.
     JetBrains Mono: all numerals, money, percentages, dates, code. */
  --font-logo:     'Playfair Display', 'Didot', Georgia, serif;
  --font-editorial:'Playfair', 'Source Serif 4', Georgia, serif;
  --font-display:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif:   'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-numeric: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.22em;

  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* ============== SPACING ============== */
  --space-0:  0;
  --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;
  --space-10: 128px;

  /* ============== RADII ============== */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-pill: 999px;

  /* ============== SHADOWS ============== */
  --shadow-xs: 0 1px 1px rgba(20, 24, 29, 0.04);
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, 0.05), 0 1px 1px rgba(20, 24, 29, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 24, 29, 0.06), 0 1px 2px rgba(20, 24, 29, 0.04);
  --shadow-lg: 0 14px 32px rgba(20, 24, 29, 0.08), 0 2px 6px rgba(20, 24, 29, 0.05);
  --shadow-xl: 0 28px 56px rgba(20, 24, 29, 0.12), 0 4px 12px rgba(20, 24, 29, 0.06);

  --halo-teal: radial-gradient(ellipse at 50% 50%,
                 rgba(127, 174, 164, 0.50) 0%,
                 rgba(211, 229, 225, 0.28) 35%,
                 rgba(255, 255, 255, 0.00) 70%);
  --halo-blue: var(--halo-teal);

  /* ============== MOTION ============== */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 360ms;
  --duration-slower: 600ms;
}

/* =====================================================================
   Base + semantic type
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.display-1, h1.display, .hero {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 128px);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.display-2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.logo-lockup {
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: var(--tracking-normal);
  color: var(--ink);
  margin: 0;
}

h5, .h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: var(--tracking-normal);
  color: var(--ink);
  margin: 0;
}

.eyebrow, .overline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: var(--leading-relaxed);
  color: var(--fg);
  font-style: italic;
}

p, .body, .text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--fg);
  margin: 0;
}

.body-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--fg);
}

.small, small {
  font-size: 14px;
  line-height: var(--leading-normal);
  color: var(--fg-muted);
}

.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-subtle);
  letter-spacing: var(--tracking-wide);
}

.numeric, .figure, .stat {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.02em;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-7) 0;
}

.section-mark {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.section-mark::before {
  content: attr(data-num);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-600);
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}
