:root {
  --paper: #430e14;
  --paper-deep: #35090e;
  --paper-card: #55151b;
  --ink: #f5e6dc;
  --ink-soft: #c9a39c;
  --rust: #F28300;
  --rust-deep: #9d5500;
  --brass: #C18B39;
  --line: rgba(233, 185, 182, 0.35);
  --line-soft: rgba(233, 185, 182, 0.18);
  --font-display: 'Fraunces', serif;
  --font-mono: 'Courier Prime', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  padding: 0 1.2rem 3rem;
  position: relative;
  overflow-x: hidden;
}

/* ===== FUNDO ANIMADO (MoltenMetal) — atrás de todo o conteúdo ===== */
#fx-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: auto;
}

/* ===== TEXTURA DE PAPEL / GRÃO ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.4) 100%);
}

/* ===== FAIXA DE PERFURAÇÃO (rolo de filme) ===== */
.sprocket-strip {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0 6px,
    transparent 6px 20px
  );
  background-position: center;
  background-size: 20px 4px;
  background-repeat: repeat-x;
  opacity: 0.55;
  margin-bottom: 2.4rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  opacity: 0;
  animation: subir-e-aparecer 0.7s ease forwards;
}

@keyframes subir-e-aparecer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .container { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ===== ACESSO PRIVADO (selo) ===== */
#acesso-oculto {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}

#acesso-oculto::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

#acesso-oculto span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

#acesso-oculto:hover {
  color: var(--rust);
  border-color: var(--rust);
  transform: rotate(-6deg);
}

@media (max-width: 700px) {
  #acesso-oculto { top: 12px; right: 12px; width: 40px; height: 40px; }
  #acesso-oculto span { font-size: 0.48rem; }
}

/* ===== EYEBROW / RÓTULOS ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 0.6rem;
}

.eyebrow::before {
  content: '✦ ';
  color: var(--brass);
}

/* ===== PERFIL ===== */
.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.6rem;
  background: var(--paper-card);
  padding: 2.6rem 2.8rem;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: -8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 3.4rem;
  position: relative;
}

.profile-stamp {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--brass);
  border-radius: 50%;
}

.profile-stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--ink-soft);
  animation: girar 26s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .profile-stamp svg { animation: none; }
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-initials {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--rust);
}

.profile-info h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.profile-info .tagline {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info .tagline span {
  border: 1px solid var(--line);
  padding: 0.25rem 0.8rem;
}

.bio {
  margin-top: 1.1rem;
  color: var(--ink);
  max-width: 560px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .profile { flex-direction: column; align-items: flex-start; padding: 2rem 1.6rem; }
  .profile-stamp { width: 90px; height: 90px; }
  .profile-info h1 { font-size: 2.2rem; }
}

/* ===== CATÁLOGO / GRADE DE PROJETOS ===== */
.catalogo-head {
  margin-bottom: 1.8rem;
}

.catalogo-head .eyebrow { margin-bottom: 0.3rem; }

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 9px);
  transform: translateY(-6px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.2rem;
  margin-bottom: 4rem;
}

/* ===== CARD — BILHETE DE CINEMA ===== */
.post-card {
  background: var(--paper-card);
  padding: 1.7rem 1.8rem 1.9rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card::before,
.post-card::after {
  content: '';
  position: absolute;
  top: 3.4rem;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.post-card::before { left: -10px; }
.post-card::after { right: -10px; }

.post-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.55);
}

.post-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px dashed var(--line);
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}

.post-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.post-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.28;
  color: var(--ink);
}

.post-card .post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.post-card p.post-excerpt {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  flex: 1;
  font-size: 0.94rem;
}

.post-card .read-more {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}

.post-card .read-more:hover {
  gap: 0.8rem;
  color: var(--rust);
  border-color: var(--rust);
}

/* Quando "ligado" pelo specular-button.js, vira um botão de verdade
   (fundo + padding + cantos arredondados) pra hospedar o brilho na borda */
.post-card .read-more.specular-button-enhanced {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
}

.post-card .read-more.specular-button-enhanced:hover {
  border-bottom-color: var(--line);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 3rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

a:focus-visible,
#acesso-oculto:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
