/* ============================================================
   pedrodoria.com.br · site.css
   Sobre tokens.css (identidade v2). Tema claro: Papel + Tinta.
   Ocre em exatamente dois usos: play do showreel + CTA booking.
============================================================ */

@import url('tokens.css');

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- marca tipográfica ---------- */
.wm {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wm b { font-weight: 800; }

/* glyph dos óculos — img direto (path Tinta no svg); todos os usos são sobre fundo claro */
img.glyph {
  display: inline-block;
  height: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
}
.site-header .wm { font-size: 22px; margin-right: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a.active { border-bottom-color: var(--ink); }

.cta {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  background: var(--mustard);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.cta:hover { background: var(--mustard-3); }
.cta.small {
  font-size: 12.5px;
  padding: 9px 16px;
  background: transparent;
}
.cta.small:hover { background: var(--hover-tint); }
.cta.big { font-size: 15px; padding: 18px 32px; }

/* ---------- kickers, slots ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.kicker::before { content: '→ '; color: var(--ink); }

.slot-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px dashed var(--rule);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
}

/* ---------- moldura padrão (Tinta + margem Papel) ---------- */
.frame {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px;
}
.frame > img,
.frame > image-slot {
  width: 100%;
  height: 100%;
}

/* ============================================================
   HOME
============================================================ */

/* ---------- dobra: frase + retrato, nada mais ---------- */
.hero {
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.retrato { aspect-ratio: 4 / 5; }
.retrato img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.tese {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 4px 0 36px;
  text-wrap: pretty;
}
.tese em { font-style: italic; font-weight: 500; }
.byline {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 0 20px;
}
.byline b { font-weight: 600; }

/* showreel — seção própria, logo abaixo da dobra */
.reel-section {
  padding: 0 0 96px;
}
.reel-section .showreel {
  max-width: 880px;
}
.showreel {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 16px;
  position: relative;
}
.showreel .screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
}
.showreel .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.showreel .play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--mustard);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.showreel .play:hover { transform: scale(1.06); }
.showreel .play span {
  display: block;
  width: 0; height: 0;
  border-left: 20px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.showreel .screen-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin: 0;
  text-align: center;
}
.showreel .reel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}
.showreel .reel-foot .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.showreel .glyph { width: 44px; opacity: 0.9; }

/* ---------- keynotes ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.keynotes-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: stretch;
}
.keynote {
  border: 1px solid var(--ink);
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
}
.keynote.lead { background: var(--paper-2); }
.keynote .kn-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.keynote .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 2px;
}
.keynote h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.keynote.lead h3 { font-size: clamp(30px, 3vw, 42px); }
.keynote p {
  margin: 0;
  font-size: 18px;
  max-width: 48ch;
}
.keynote .kn-foot { margin-top: auto; padding-top: 14px; }

/* ---------- prova — ficha técnica + testemunhos ---------- */
.ficha-tec {
  display: grid;
  gap: 26px;
  padding: 28px 0 36px;
}
.ficha-tec .row {
  font-family: var(--mono);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ficha-tec .row .k { color: var(--text-muted); }
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 88px;
}
.testimonial.featured { grid-column: 1 / -1; }
.testimonial.featured blockquote {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.4;
  max-width: 36ch;
}
.testimonial blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}
.testimonial .who {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.testimonial .who b { color: var(--ink); font-weight: 600; }

/* ---------- obra ---------- */
.obra-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin: 0 0 48px;
  max-width: 22ch;
  text-wrap: pretty;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.shelf a.book { text-decoration: none; display: block; }
.book .frame { aspect-ratio: 2 / 3; transition: transform 0.18s ease; }
.book:hover .frame { transform: translateY(-4px); }
.book .b-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin: 14px 0 4px;
}
.book .b-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.obra-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 56px;
}
.obra-foot p { margin: 0; max-width: 58ch; font-size: 20px; }
.porta-leitura {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
}

.textlink {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.textlink:hover { background: var(--hover-tint); }

/* ---------- bio ---------- */
.bio p {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  margin-top: 96px;
}
.foot-cta {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.foot-cta .line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 0 0 32px;
  max-width: 26ch;
  text-wrap: pretty;
}
.foot-grid {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 0 44px;
}
.foot-grid .glyph { width: 52px; }
.foot-grid .wm { font-size: 19px; }
.foot-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links a,
.foot-links span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
}
.foot-links a:hover { border-bottom: 1px solid var(--ink); }
.foot-links .url b { color: var(--mustard-2); font-weight: 600; }
.foot-order {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 28px;
}

/* ============================================================
   PÁGINAS INTERNAS
============================================================ */
.page-head { padding: 80px 0 40px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
}
.page-head .lede {
  font-size: 21px;
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- /livros ---------- */
.book-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.book-row .frame { aspect-ratio: 2 / 3; }
.book-row h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.book-row h2 a { text-decoration: none; }
.book-row h2 a:hover { border-bottom: 2px solid var(--ink); }
.book-row .sinopse { margin: 0 0 22px; max-width: 58ch; }
.ficha {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ficha b { color: var(--ink); font-weight: 500; }
.book-row .links { margin-top: 22px; display: flex; gap: 24px; align-items: center; }

.dormant {
  border: 1px dashed rgba(10, 10, 10, 0.35);
  padding: 44px;
  margin: 56px 0 0;
}
.dormant .d-title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 24px;
  margin: 12px 0 8px;
  color: var(--text-muted);
}
.dormant p { margin: 0; color: var(--text-muted); font-size: 17px; max-width: 60ch; }

.obra-anterior {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.oa-kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.oa-item { margin-bottom: 28px; max-width: 62ch; }
.oa-item:last-child { margin-bottom: 0; }
.oa-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 4px;
}
.oa-item .ficha { margin-bottom: 6px; }
.oa-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- /livro (template individual) ---------- */
.crumb {
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--text-muted);
  display: inline-block;
  margin-top: 40px;
}
.crumb:hover { color: var(--ink); }
.livro-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  padding: 48px 0 88px;
  align-items: start;
}
.livro-hero .frame { aspect-ratio: 2 / 3; position: sticky; top: 110px; }
.livro-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 8px 0 28px;
  text-wrap: pretty;
}
.livro-hero .sinopse p { margin: 0 0 24px; max-width: 60ch; }
.compra {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.compra .links { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- /sobre ---------- */
.band-bg {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 120px;
}
.band-bg .sobre-band { padding: 0 0 64px; }
.band-bg .frame.punch {
  margin-top: -96px;
  position: relative;
  z-index: 2;
}
.sobre-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  padding: 80px 0 48px;
  align-items: start;
}
.sobre-hero .frame { aspect-ratio: 2 / 3; }
.sobre-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.sobre-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.prose p {
  margin: 0 0 26px;
  max-width: 62ch;
  text-wrap: pretty;
}
.ficha-bar {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 36px;
  color: var(--ink);
}
.ficha-bar b { font-weight: 600; }

.sobre-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  padding: 56px 0;
}
.sobre-band .frame img { width: 100%; height: 100%; object-fit: cover; }
.sobre-band .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  margin: 0;
  text-wrap: pretty;
}
.band-tall { height: 560px; }
.band-tall img { object-position: 50% 30%; }

.palco-slot {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px;
}
.palco-slot .glyph { width: 52px; opacity: 0.5; margin: 0 auto; }
.palco-slot p {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   /LINKS — sumário de autor (destino da bio do Instagram)
   Frontispício, não vitrine. Funciona sem JS, mobile-first.
============================================================ */
.links-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.links-main {
  width: 100%;
  max-width: 600px;
  margin: auto;
  padding: 64px 24px 32px;
}
img.links-glyph {
  display: block;
  width: 52px;
  margin: 0 auto 44px;
}
.links-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 9.5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-align: center;
  margin: 0 0 44px;
  text-wrap: pretty;
}
.indice ol {
  list-style: none;
  counter-reset: entrada;
  margin: 0;
  padding: 0;
}
.entrada {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  text-decoration: none;
  counter-increment: entrada;
}
.entrada::before {
  content: counter(entrada);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mustard-2);
  min-width: 12px;
}
.entrada .titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
}
.entrada .leader {
  flex: 1;
  min-width: 28px;
  border-bottom: 1px dotted rgba(10, 10, 10, 0.38);
  transform: translateY(-4px);
}
.entrada .destino {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.entrada:hover { background: var(--hover-tint); }
.entrada:hover .titulo { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.links-foot {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-align: center;
  margin: 56px 0 0;
  line-height: 1.9;
}
.links-foot b { font-weight: 600; }

@media (max-width: 920px) {
  .links-main { padding: 44px 22px 28px; }
  .links-glyph { width: 44px; margin-bottom: 32px; }
  .links-title { margin-bottom: 28px; }
  .entrada { padding: 14px 0; gap: 10px; }
  .entrada .titulo { font-size: 19px; }
  .entrada .leader { min-width: 14px; }
  .entrada .destino { font-size: 11.5px; }
  .links-foot { margin-top: 40px; font-size: 11px; }
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 920px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 22px; }

  .site-header .bar { flex-wrap: wrap; gap: 12px 20px; padding: 14px 0; }
  .site-header .wm { font-size: 20px; }
  .site-header .cta.small {
    border: none;
    background: none;
    padding: 4px 0;
    border-bottom: 1px solid var(--ink);
    font-size: 12px;
  }
  .site-nav { gap: 18px; order: 3; width: 100%; }
  .site-nav a { font-size: 12.5px; }

  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .tese { font-size: clamp(30px, 7.6vw, 38px); }
  .retrato { max-width: 420px; }
  .reel-section { padding: 0 0 64px; }
  .section { padding: 64px 0; }

  .keynotes-grid { grid-template-columns: 1fr; }
  .keynote { padding: 32px 26px 28px; }

  .testimonials { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .ficha-tec .row { font-size: 13px; line-height: 1.8; }

  .shelf { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .obra-foot { grid-template-columns: 1fr; gap: 24px; align-items: start; }

  .book-row { grid-template-columns: 1fr; gap: 28px; }
  .book-row .frame { max-width: 240px; }

  .livro-hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
  .livro-hero .frame { max-width: 300px; position: static; }

  .sobre-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 32px; }
  .sobre-hero .frame { max-width: 360px; }
  .sobre-band { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .band-bg { margin-top: 80px; }
  .band-bg .frame.punch { margin-top: -56px; }
  .band-bg .sobre-band { padding: 0 0 40px; }
  .band-tall { height: 420px; }

  .foot-cta { padding: 56px 0; }
  .foot-links { margin-left: 0; width: 100%; }
}
