/* ============================================================
   BASE — Reset suave + tipografia + utilities
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-warm);
  background-color: var(--bg-cream);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Acessibilidade: skip link */
.bt-skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--text-navy);
  color: var(--bg-cream);
  padding: 0.8rem 1.4rem;
  z-index: var(--z-modal);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bt-skip-link:focus {
  left: 1rem;
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-navy);
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em; }

p {
  margin: 0 0 1.2rem;
  max-width: 60ch;
}

a {
  color: var(--text-navy);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-soft);
}
a:hover { color: var(--gold-dark); }

strong { font-weight: 500; color: var(--text-navy); }

em {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--text-warm);
}

/* ── Mídia ── */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* <picture> como wrapper "ghost" — o <img> dentro herda layout do parent.
   Sem isso, picture (inline default) quebra height:100% dentro de aspect-ratio. */
picture {
  display: contents;
}

/* Imagens com loading lazy não devem causar CLS — usar width/height nos templates */

/* ── Listas ── */
ul, ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }

/* ── Botões nativos ── */
button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Focus visível (acessibilidade) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Seleção ── */
::selection {
  background: var(--gold-glow);
  color: var(--text-navy);
}

/* ── Utilities ── */
.bt-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

.bt-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* Seções com background próprio: cor + textura layered.
   A textura repete idêntica em cada seção pra criar a sensação de papel contínuo. */
.bt-section--cream-warm {
  background-color: var(--bg-cream-warm);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
}
.bt-section--cream-light {
  background-color: var(--bg-cream-light);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
}
.bt-section--white {
  background-color: var(--bg-white);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
}

.bt-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bt-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-warm-light);
  margin-bottom: 1rem;
  display: inline-block;
}

.bt-script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  color: var(--text-warm);
}

/* Linha decorativa dourada — separador editorial.
   Anima crescendo da esquerda quando combinada com data-reveal="line". */
.bt-rule-gold {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  margin: 1.5rem auto;
  border: 0;
  opacity: 0.6;
}
/* Variante alinhada à esquerda */
.bt-rule-gold--left {
  margin-left: 0;
  margin-right: 0;
  width: 48px;
}
/* Larguras maiores opcionais */
.bt-rule-gold--lg   { width: 80px; }
.bt-rule-gold--xl   { width: 120px; }

/* Cruz decorativa (símbolo + ou ✦ entre frases) */
.bt-cross {
  display: inline-block;
  color: var(--gold);
  font-size: 0.9em;
  margin: 0 0.8em;
  opacity: 0.65;
  font-style: normal;
}
