:root {
  --paper: #faf8f3;
  --paper-2: {{PAPER_2}};
  --ink: #1a1c18;
  --ink-2: {{INK_2}};
  --ink-3: {{INK_3}};
  --rule: #d0d2c8;
  --accent: #2d4a2c;
  --accent-soft: #6a8a5e;
  --section-pad: 56px;
  --container-pad: 32px;
  --base-lh: 1.55;
  --rule-style: dotted;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--base-lh);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* === Typography === */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.kicker {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 60ch;
}

.lead-narrow {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38ch;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.hairline {
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
}

/* === Masthead === */
.masthead {
  background: var(--paper);
  padding-top: 28px;
}

.masthead .hairline { margin: 28px 0 0; }

.masthead-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.estab {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.branding { text-align: center; }

.monogram {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 auto 10px;
  letter-spacing: 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
}

.navlinks {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.navlinks a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.navlinks a:hover { color: var(--accent); }

.navlinks a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

/* === Section base === */
.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-3);
  font-style: italic;
}

/* === Section: Intro === */
.intro-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.intro-meta {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 32px 28px;
  position: sticky;
  top: 32px;
}

.intro-meta hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 18px 0;
}

.meta-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin-top: 4px;
  font-weight: 500;
}

.meta-value.mono { font-family: var(--font-mono); font-size: 14px; }

.link-classic {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.link-classic:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
  transform: translateX(3px);
}

/* === Section: Serviços === */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.servico-principal {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
}

.servico-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.servico-texto {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}

.sub-h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
}

.secundarias-prosa {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  font-style: italic;
}

/* === Tabela oficial === */
.tabela-oficial {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.tabela-oficial th, .tabela-oficial td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}

.tabela-oficial tr:last-child th, .tabela-oficial tr:last-child td {
  border-bottom: none;
}

.tabela-oficial th {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-3);
  width: 240px;
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
}

.tabela-oficial td {
  color: var(--ink);
  font-weight: 400;
}

.tabela-oficial td.mono { font-family: var(--font-mono); }

.status-pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* === Section: Contato === */
.section-contato { background: var(--ink); color: var(--paper); }
.section-contato .display { color: var(--paper); }
.section-contato .lead-narrow { color: rgba(253, 250, 244, 0.7); }
.section-contato .kicker { color: rgba(253, 250, 244, 0.5); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contato-dl dt {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: rgba(253, 250, 244, 0.5);
  margin-top: 24px;
  letter-spacing: 0.04em;
}

.contato-dl dt:first-child { margin-top: 0; }

.contato-dl dd {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--paper);
  margin-top: 4px;
  line-height: 1.5;
}

.contato-dl dd.mono { font-family: var(--font-mono); font-size: 17px; }

.contato-dl a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.contato-dl a:hover { opacity: 0.7; }

/* === Footer === */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}

.footer-meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 4px;
}

.footer-right {
  text-align: right;
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
}

.footer-right p { margin-top: 4px; }

.copyright {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
}

/* === Responsivo === */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .masthead-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .estab, .navlinks { justify-content: center; display: flex; }
  .navlinks { flex-wrap: wrap; gap: 16px; }
  .intro-grid, .servicos-grid, .contato-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro-meta { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .tabela-oficial th, .tabela-oficial td { padding: 14px 16px; font-size: 14px; }
  .tabela-oficial th { width: 140px; }
  .section { padding: 64px 0; }
}
