/* ============================================================
   PAUTA MUSICAL — Sistema visual
   Estética: editorial erudito · sala de concerto
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  /* paleta noturna de concerto */
  --midnight:   #221813;
  --ink:        #2e2118;
  --ink-soft:   #3d2c20;
  --gold:       #ef7720;
  --gold-light: #f0c084;
  --burgundy:   #c25a18;
  --cream:      #fdf6e3;
  --cream-deep: #f3e9cf;
  --paper:      #fdf8ec;
  --muted:      #7a6a55;
  --line:       rgba(239, 119, 32, 0.26);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', -apple-system, system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- rótulos / kicker ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CABEÇALHO
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff9d9;            /* mesma cor do fundo da logo: integra sem moldura */
  border-bottom: 1px solid rgba(46, 33, 24, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
}
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
}
/* logo oficial: header já é creme, então fica sem moldura */
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand-logo { height: 32px; }
}
.brand-text { line-height: 1.1; }
.brand-text .name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-text .sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  opacity: 0.78;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
  position: relative;
}
.nav a:hover { opacity: 1; color: var(--gold); }
.nav-toggle svg path { stroke: var(--ink); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 100% at 80% -10%, rgba(239,119,32,0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--midnight) 0%, var(--ink) 100%);
  color: var(--cream);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ef7720' stroke-opacity='0.05'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 16ch;
  margin: 18px 0 22px;
  color: var(--cream);
}
.hero-desc {
  font-size: 1.05rem;
  max-width: 46ch;
  color: rgba(246, 241, 231, 0.78);
  margin-bottom: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  border-top: 1px solid rgba(239,119,32,0.22);
  padding-top: 22px;
  max-width: 640px;
}

/* ============================================================
   MATÉRIA EM DESTAQUE
   ============================================================ */
.featured {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 30px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(34,24,19,0.55);
  overflow: hidden;
}
.featured-cover {
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.featured-body {
  padding: 46px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-body .tema {
  color: var(--burgundy);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.featured-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 14px 0 18px;
  color: var(--ink);
}
.featured-body p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 26px;
}

/* ============================================================
   GRADE DE MATÉRIAS
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 34px;
  padding-bottom: 90px;
}
.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); }
.card-cover {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
}
.card-cover .note-mark {
  position: absolute;
  top: 16px; right: 18px;
  opacity: 0.85;
}
.card-cover .tema-chip {
  position: relative;
  background: rgba(34,24,19,0.78);
  color: var(--gold-light);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 18px 4px 0; }
.card-date {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.card-body h4 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 8px 0 10px;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.card:hover h4 { color: var(--burgundy); }
.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--gold);
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}
.btn:hover { gap: 16px; color: var(--burgundy); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============================================================
   PÁGINA DE MATÉRIA
   ============================================================ */
.article-hero {
  background: linear-gradient(180deg, var(--midnight), var(--ink));
  color: var(--cream);
  padding: 0;
}
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
  min-height: 470px;
}
.article-hero-text {
  padding: 64px 52px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-hero-text .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(246, 241, 231, 0.84);
  max-width: 34ch;
  margin: 6px 0 4px;
}
.article-hero-text .meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 119, 32, 0.32);
  color: var(--gold-light);
}
/* entrada suave (termina sempre visível — não esconde conteúdo) */
.article-hero-text > * { animation: fadeUp 0.7s var(--ease) both; }
.article-hero-text > *:nth-child(2) { animation-delay: 0.06s; }
.article-hero-text > *:nth-child(3) { animation-delay: 0.12s; }
.article-hero-text > *:nth-child(4) { animation-delay: 0.18s; }
.article-hero-text > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes heroImg { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .article-hero-text > *, .article-hero-media img { animation: none; }
}
.article-hero .tema {
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
}
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 20ch;
  margin: 18px 0 20px;
}
.article-hero .meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(246,241,231,0.7);
}
/* coluna da imagem, ao lado do título */
.article-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--midnight);
  border-left: 3px solid var(--gold);
}
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* recorta só o necessário na altura */
  object-position: center;
  display: block;
  animation: heroImg 1s var(--ease) both;
}
.article-hero-media::after {  /* costura: a imagem dissolve no painel escuro à esquerda */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    var(--ink) -4%,
    rgba(46, 33, 24, 0.55) 8%,
    rgba(34, 24, 19, 0) 32%);
  pointer-events: none;
}
/* sem imagem: a coluna vira o gradiente da paleta */
.article-hero-media:not(.has-img) { background: var(--ink-soft); }
@media (max-width: 760px) {
  .article-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .article-hero-text { padding: 54px 0 28px; }
  .article-hero-media { min-height: 300px; border-left: 0; border-top: 3px solid var(--gold); }
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 32px 40px;
}
.article-body .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 36px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
}
.article-body p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #2c2a22;
  margin-bottom: 26px;
}
.article-body p:first-letter { }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 8px;
}
.back-link:hover { opacity: 1; }

.article-footer {
  border-top: 1px solid var(--line);
  max-width: 680px;
  margin: 20px auto 0;
  padding: 30px 32px 70px;
  text-align: center;
}
.article-footer .kicker { display: block; margin-bottom: 8px; }
.article-footer p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   PÁGINA SOBRE
   ============================================================ */
.about-hero {
  background: linear-gradient(180deg, var(--midnight), var(--ink));
  color: var(--cream);
  padding: 90px 0;
  text-align: center;
}
.about-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  margin: 16px 0;
}
.about-hero p { max-width: 52ch; margin: 0 auto; color: rgba(246,241,231,0.78); }
.about-section { padding: 70px 0; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.about-stat {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.about-stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.about-stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.prose { max-width: 680px; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  margin: 10px 0 18px;
}
.prose p { color: #3a382e; font-size: 1.08rem; margin-bottom: 22px; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: var(--midnight);
  color: var(--cream);
  padding: 70px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(239,119,32,0.2);
}
.footer-top .brand-text .name { color: var(--cream); }
.footer-blurb { color: rgba(246,241,231,0.7); max-width: 40ch; margin-top: 18px; font-size: 0.95rem; }
.footer-social { text-align: right; }
.footer-social .kicker { display: block; margin-bottom: 16px; }
.social-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.social-row a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239,119,32,0.35);
  border-radius: 50%;
  color: var(--gold-light);
  transition: all 0.3s var(--ease);
}
.social-row a:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-3px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.78rem;
  color: rgba(246,241,231,0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 860px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 220px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-social { text-align: left; }
  .social-row { justify-content: flex-start; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff9d9;
    border-bottom: 1px solid rgba(46, 33, 24, 0.12);
    padding: 10px 0;
  }
  .nav.open a { padding: 14px 32px; opacity: 0.9; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .grid { grid-template-columns: 1fr; }
  .featured-body { padding: 32px 26px; }
}

/* aparição suave — animação de carga, NUNCA esconde o conteúdo de forma permanente.
   (Sem depender de JS/observer: se algo falhar, os cards continuam visíveis.) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.card { animation: fadeUp 0.6s var(--ease) both; }
.grid .card:nth-child(2)  { animation-delay: 0.06s; }
.grid .card:nth-child(3)  { animation-delay: 0.12s; }
.grid .card:nth-child(4)  { animation-delay: 0.18s; }
.grid .card:nth-child(5)  { animation-delay: 0.24s; }
.grid .card:nth-child(6)  { animation-delay: 0.30s; }
.grid .card:nth-child(7)  { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
