/* =========================================================
   Base: variáveis da marca, tipografia, botões e conteúdo do editor
   ========================================================= */

:root {
  /* Marca: laranja (destaque) + oliva (terreno) + castanho-terra (tinta) */
  --accent: #e65d30;
  --accent-2: #ff7a3d;
  --accent-dark: #b9431b;
  --olive: #a99f52;
  --olive-300: #d4cd96;
  --olive-100: #efecd9;
  --brown: #3c2211;
  --ink: #17110d;
  --ink-2: #211913;
  --ink-3: #2d231b;
  --sand: #f7f3ec;
  --paper: #ffffff;
  --text: #1f1914;
  --muted: #6b6159;
  --muted-dark: #b9ada3;
  --line: #e8e0d4;
  --line-dark: #ffffff1f;

  --grad-brand: linear-gradient(120deg, #e65d30 0%, #e0832f 45%, #a99f52 100%);
  --grad-glow: radial-gradient(60% 80% at 10% 0%, #e65d3038, transparent 60%),
               radial-gradient(50% 70% at 95% 100%, #a99f5233, transparent 60%);

  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --shell: 1240px;
  --space: clamp(4.5rem, 9vw, 8rem);
  --shadow: 0 30px 80px -30px #17110d40;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .6em; font-weight: 700; }
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding-block: var(--space); position: relative; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #f2f3ee; }
.section--dark .lead, .section--dark p { color: var(--muted-dark); }
.section--topo { background-image: url("../images/topografia-clara.svg"); background-size: cover; background-position: center; }
.section--dark.section--topo { background-image: var(--grad-glow), url("../images/topografia-escura.svg"); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.2rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -0.045em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.gradient-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px -10px #e65d30aa; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--dark { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: #ffffffe6; color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.entry-content > * { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.entry-content > .alignwide { width: min(100% - 2.5rem, var(--shell)); }
.entry-content > .alignfull, .entry-content--full > * { width: 100%; max-width: none; }
.entry-content--full > :not(.alignfull):not(section) { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.entry-content--flush > * { width: auto; margin-inline: 0; }
.entry-content > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2em; }
.entry-content > h3 { font-size: 1.35rem; margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul:not([class]) li::marker { color: var(--accent); }
.entry-content :where(p, li, td) > a { color: var(--accent-dark); text-underline-offset: 3px; }
.entry-content .wp-block-group.alignfull > * { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.entry-content > blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 1.4rem; font-size: 1.2rem; }
.wp-block-image figcaption { font-size: .85rem; color: var(--muted); }
.wp-block-media-text { gap: 3rem; }
.wp-block-media-text__content { padding: 0 !important; }
.wp-block-gallery img { border-radius: var(--radius-sm); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.wp-block-button__link { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; background: var(--accent); color: var(--ink); border: 1px solid transparent; transition: transform .2s, background .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); background: var(--accent-2); }
.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
