/* ============================================================
   PRODUCT DOMO — shared base stylesheet
   Tokens & shared chrome extracted from the original Sobre page.
   Variation-specific styles live inline in each page.
   ============================================================ */

:root {
  --cream: #F8F4ED;
  --cream-deep: #F0E9DC;
  --paper: #FFFFFF;
  --ink: #1C1815;
  --ink-soft: #4A413A;
  --ink-mute: #8A7E72;
  --rule: #E5DDD0;
  --rule-strong: #D4C9B6;
  --clay: #B25E3A;
  --clay-deep: #8A4828;
  --clay-soft: #D08A66;
  --highlight: #F0E6D2;
  --ink-invert: #14110E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
.serif { font-family: 'Fraunces', serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
img { max-width: 100%; display: block; }

/* paper-grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/></svg>");
  pointer-events: none; z-index: 100; mix-blend-mode: multiply;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ---------- HEADER ---------- */
header.site-header {
  padding: 1.75rem 0;
  position: sticky; top: 0;
  background: rgba(248, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: baseline; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; white-space: nowrap; }
.site-header .brand-mark { display: inline-flex; align-items: baseline; }
.brand-mark .bk { color: var(--clay); font-weight: 300; margin: 0 0.14em; }
.brand-mark .bk:first-child { margin-left: 0; }
.brand { flex-shrink: 0; }
.brand-divider { width: 1px; height: 16px; background: var(--rule-strong); align-self: center; }
.brand-person { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; font-weight: 400; color: var(--ink-soft); font-variation-settings: "opsz" 14; }
.nav-primary { display: flex; gap: 2.25rem; font-size: 14px; }
.nav-primary a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav-primary a:hover { color: var(--ink); }
.nav-primary a.active { color: var(--ink); border-bottom-color: var(--clay); }
.lang-toggle { display: flex; gap: 0.4rem; align-items: baseline; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.lang-toggle button { background: none; border: none; color: var(--ink-mute); cursor: pointer; padding: 0; font-family: inherit; font-size: 12px; border-bottom: 1px solid transparent; transition: all 0.2s; }
.lang-toggle button.active { color: var(--ink); border-bottom-color: var(--clay); }
.lang-toggle .slash { color: var(--ink-mute); }

/* ---------- FOOTER ---------- */
footer.site-footer { padding: 4rem 0 3rem; background: var(--cream-deep); border-top: 1px solid var(--rule); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-block .brand-mark { font-size: 28px; display: block; margin-bottom: 0.5rem; }
.footer-tagline { font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; color: var(--ink-soft); line-height: 1.5; max-width: 320px; font-weight: 300; }
.footer-col-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); margin-bottom: 1.25rem; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--clay-deep); }
.footer-col span { color: var(--ink-soft); font-size: 14px; display: block; margin-bottom: 0.4rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }
.footer-bottom .meta { font-family: 'Fraunces', serif; font-style: italic; font-size: 13px; color: var(--ink-mute); font-weight: 300; }

/* ---------- shared bits ---------- */
[data-lang="pt"] .en, [data-lang="en"] .pt { display: none; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 500;
}

/* button */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-clay:hover { background: transparent; color: var(--clay-deep); border-color: var(--clay-deep); }

/* animated text link */
.link-underline {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--clay); padding-bottom: 1px;
  transition: all 0.2s;
}
.link-underline:hover { color: var(--clay-deep); border-bottom-color: var(--clay-deep); border-bottom-width: 2px; }

/* scroll reveal — entrance is opt-in via .anim-ready (added by JS only when the
   tab is actually visible). Without it the resting state is fully visible, so
   content never hides in backgrounded tabs, print/PDF, or reduced-motion. */
.anim-ready .reveal { opacity: 0; }
.anim-ready .reveal.visible { animation: revealUp 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.anim-ready .reveal.visible.d1 { animation-delay: 0.08s; }
.anim-ready .reveal.visible.d2 { animation-delay: 0.16s; }
.anim-ready .reveal.visible.d3 { animation-delay: 0.24s; }
.anim-ready .reveal.visible.d4 { animation-delay: 0.32s; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .container, .container-wide { padding: 0 1.5rem; }
  .nav-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
