/* ============================================================
   Resistência em Piquiá de Baixo — piquia.narrassol.com
   Corpo em Sanchez (slab serif, auto-hospedada). Sem dependências externas.
   ============================================================ */

/* ---- Sanchez (local) ---- */
@font-face {
  font-family: 'Sanchez';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/sanchez-regular-latin.woff2') format('woff2');
  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: 'Sanchez';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/sanchez-regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
@font-face {
  font-family: 'Sanchez';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/sanchez-italic-latin.woff2') format('woff2');
  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: 'Sanchez';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/sanchez-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  --paper:   #f7f3ec;
  --paper-2: #efe8db;
  --ink:     #241712;
  --ink-soft:#5a4a40;
  --brand:   #9e4418;
  --accent:  #ff6b35;
  --line:    #e0d6c5;
  --dark:    #1c120d;
  --dark-2:  #2a1a12;
  --nav-bg:  #5a6b47;   /* oliva/verde-sage original */
  --nav-txt: #eef2e8;
  --maxw:    720px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Sanchez', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

/* ---- Navegação das 6 partes (abaixo do hero, sticky) ---- */
.part-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 2px solid rgba(0,0,0,.18);
}
.part-nav__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.part-nav__inner::-webkit-scrollbar { display: none; }
.part-nav a {
  flex: 0 0 auto;
  color: var(--nav-txt); text-decoration: none;
  font-family: var(--sans); font-size: .86rem; font-weight: 600; letter-spacing: .03em;
  padding: .75rem 1.1rem; white-space: nowrap; display: flex; align-items: center;
  transition: background .12s, color .12s;
}
.part-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.part-nav a[aria-current="page"] {
  background: #fff; color: var(--nav-bg);
  font-weight: 700;
}

/* ---- Hero da parte ---- */
.hero { position: relative; color: #fff; background: var(--dark-2); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,8,.22), rgba(20,12,8,.62)); }
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) 1.2rem clamp(2.5rem, 7vw, 5rem);
  text-align: center;
}
.hero__kicker {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .18em; font-size: .72rem; font-weight: 700;
  color: var(--accent); margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero__tagline {
  font-style: italic; color: #f0e2d6;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem); margin: 1rem auto 0; max-width: 36ch;
}
.hero__byline {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .04em;
  color: #cdbbac; margin-top: 1.6rem; text-transform: uppercase;
}

/* ---- Corpo do artigo ---- */
.article { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.2rem 1rem; }
.article > p { margin: 0 0 1.5rem; }
.article > p a { text-decoration: underline; text-underline-offset: 2px; }
.article > p:first-of-type::first-letter {
  font-size: 3.4em; float: left; line-height: .82;
  padding: .05em .12em 0 0; color: var(--brand); font-weight: 400;
}
.article h2, .article h3 {
  font-family: var(--serif); font-weight: 400; color: var(--brand);
  line-height: 1.2; margin: 2.6rem 0 1rem;
}
.article h2 { font-size: 1.7rem; }
.article h3 { font-size: 1.35rem; }

/* citações em destaque */
.pull {
  margin: 2.2rem 0; padding: .4rem 0 .4rem 1.4rem;
  border-left: 4px solid var(--accent);
  font-style: italic; color: #3a2a20; font-size: 1.22rem; line-height: 1.6;
}
.pull p { margin: 0 0 .8rem; }
.pull p:last-child { margin-bottom: 0; }
.pull cite { display: block; font-style: normal; font-family: var(--sans);
  font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

/* figuras / mídia */
figure.media {
  margin: 2.2rem 0;
  /* leve bleed além da coluna de texto em telas largas */
  width: min(100%, 920px);
  margin-left: 50%; transform: translateX(-50%);
}
figure.media img, figure.media video {
  width: 100%; border-radius: 8px; background: var(--paper-2);
  box-shadow: 0 6px 24px rgba(36,23,18,.12);
}
figure.media figcaption {
  font-family: var(--sans); font-size: .82rem; line-height: 1.45;
  color: var(--ink-soft); margin-top: .6rem; padding: 0 .2rem;
}
figure.media figcaption .credito { display: block; font-style: italic; color: #8a7666; margin-top: .15rem; }
.embed { position: relative; padding-top: 56.25%; margin: 2.2rem 0; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(36,23,18,.12); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* próximo */
.proximo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 3rem auto 4rem; padding: 1.4rem 1.6rem;
  background: var(--dark); color: #fff; text-decoration: none; border-radius: 12px;
  font-family: var(--sans); transition: transform .15s, background .15s;
}
.proximo:hover { background: var(--brand); transform: translateY(-2px); }
.proximo .lbl { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--accent); }
.proximo .nome { font-size: 1.5rem; font-weight: 700; font-family: var(--serif); }
.proximo .arrow { font-size: 1.8rem; line-height: 1; }

/* ---- Rodapé ---- */
.site-footer {
  background: var(--dark); color: #c9b6a6;
  font-family: var(--sans); font-size: .9rem; line-height: 1.7;
  padding: 2.5rem 1.2rem; text-align: center; border-top: 3px solid var(--brand);
}
.site-footer strong { color: #f2e9df; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 .5rem; color: #5a4334; }

@media (max-width: 640px) {
  body { font-size: 1.08rem; }
  .part-nav a { padding: .7rem .8rem; font-size: .8rem; }
  figure.media { width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
  figure.media img, figure.media video { border-radius: 0; }
  figure.media figcaption { padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
