/* ─────────────────────────────────────────────────────────────
   RC Arquitetura — base styles
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Roxborough CF";
  src: url("assets/roxborough-cf-regular.woff2") format("woff2"),
       url("assets/roxborough-cf-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Bricolage Grotesque — auto-hospedada ────────────────────
   Antes vinha por @import do Google Fonts, mas o @import estava
   DEPOIS do @font-face acima: a especificação CSS exige que ele
   venha antes de qualquer outra regra, então o navegador descartava
   a linha e a fonte da marca nunca carregava — o site inteiro
   renderizava em fonte de sistema.
   Auto-hospedar resolve e mantém o site sem nenhuma requisição a
   terceiros (nada de IP do visitante indo para o Google) e com a
   política de segurança fechada em 'self'.
   Fonte variável: um arquivo cobre os pesos 300 a 600. Licença OFL.
   ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/vendor/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/vendor/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* paleta oficial */
  --espresso: #2B2520;
  --marca:    #7B6F65;
  --areia:    #A89B8D;
  --papel:    #ECE6DD;
  --cream:    #FDF5EA;

  /* derivados sutis */
  --papel-deep: #E4DDD2;
  --line: rgba(43, 37, 32, 0.14);
  --line-soft: rgba(43, 37, 32, 0.08);

  /* tipografia */
  --serif: "Roxborough CF", "Cormorant Garamond", Georgia, serif;
  --sans:  "Bricolage Grotesque", "Inter", system-ui, -apple-system, sans-serif;

  /* tempos */
  --slide-duration: 9s;
  --motion: 1;

  /* layout */
  --gutter: clamp(24px, 4vw, 56px);
  --max: 1480px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: clip;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--papel);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}

body {
  /* leave overflow as visible so position: sticky works on descendants */
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--espresso);
  color: var(--cream);
}

/* ─── utilitários ─────────────────────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marca);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ─── reveal by scroll position ────────────────────────────
   (Disabled — initial hide caused issues in some preview environments.
    Project cards still have their scroll-linked horizontal slide-in.) */

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── tweaks panel host adjustments ───────────────────────── */
.tw-panel-root { font-family: var(--sans); }
