/* Base dos templates. Cada template sobrescreve as variáveis no data.js (cores) e tem o próprio style.css. */
:root {
  --bg: #f5f4f0; --fg: #151515; --muted: #6b6b6b; --line: rgba(0, 0, 0, .12);
  --acc: #e4572e; --acc-fg: #fff; --card: #fff;
  --f-titulo: 'Inter Tight', system-ui, sans-serif;
  --f-texto: 'Inter', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --pad: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--f-texto); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* site: sections com altura automática */
.sec { position: relative; width: 100%; }
.wrap { padding: 0 var(--pad); }

.foto { background: #ccc center / cover no-repeat; }
img.foto { object-fit: cover; width: 100%; height: 100%; }

/* entrada ao carregar */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms + 120ms); }
.in .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
