/*
Theme Name: Alfa Estelar
Theme URI: https://blog.alfaestelar.com.br
Author: Alfa Estelar
Description: Tema editorial para resenhas literárias, inspirado no encontro entre livros e constelações.
Version: 1.1.0
Text Domain: alfa-estelar
*/

:root {
  --ae-ink: #111426;
  --ae-night: #090d1b;
  --ae-indigo: #1a2144;
  --ae-violet: #6d50df;
  --ae-violet-soft: #a99aff;
  --ae-gold: #e7b85c;
  --ae-gold-light: #f4d89a;
  --ae-ivory: #f7f2e9;
  --ae-paper: #fffdf9;
  --ae-muted: #626579;
  --ae-line: #e8e2d8;
  --ae-radius: 22px;
  --ae-shadow: 0 24px 70px rgba(12, 15, 33, .12);
  --ae-serif: Georgia, "Times New Roman", serif;
  --ae-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ae-ink);
  background: var(--ae-paper);
  font-family: var(--ae-sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.ae-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(9, 13, 27, .92);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .01em; }
.brand-mark { width: 42px; height: 42px; color: var(--ae-gold); filter: drop-shadow(0 0 12px rgba(231,184,92,.25)); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { margin-top: 5px; color: #b9bdd2; font-size: .64rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.main-nav ul { display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #e7e8f2; font-size: .92rem; font-weight: 650; }
.main-nav a:hover { color: var(--ae-gold-light); }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--ae-gold-light); }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--ae-night) url('assets/images/hero-alfa-estelar.png') center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,23,.98) 0%, rgba(7,10,23,.88) 36%, rgba(7,10,23,.2) 73%, rgba(7,10,23,.12) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, rgba(9,13,27,.52)); }
.hero-content { position: relative; z-index: 2; width: min(690px, 62%); padding: 100px 0 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ae-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: "✦"; font-size: .9rem; }
.hero h1 { margin: 24px 0 22px; font-family: var(--ae-serif); font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: var(--ae-gold-light); font-style: italic; }
.hero p { max-width: 620px; margin: 0; color: #d8d9e5; font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--ae-gold); border-radius: 999px; background: var(--ae-gold); color: #15162a; font-size: .88rem; font-weight: 800; letter-spacing: .02em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--ae-gold-light); }
.button.secondary { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.3); }

.constellation-bar { position: relative; z-index: 3; margin-top: -58px; }
.constellation-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: var(--ae-radius); background: var(--ae-indigo); color: white; box-shadow: var(--ae-shadow); }
.constellation-item { padding: 28px 26px; border-right: 1px solid rgba(255,255,255,.1); }
.constellation-item:last-child { border: 0; }
.constellation-item span { display: block; color: var(--ae-gold); font-family: var(--ae-serif); font-size: 1.75rem; }
.constellation-item strong { display: block; margin-top: 5px; font-size: .85rem; }
.constellation-item small { color: #b7bbd1; }

.section { padding: 110px 0; }
.section.alt { background: var(--ae-ivory); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-kicker { color: var(--ae-violet); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.section-title { max-width: 720px; margin: 8px 0 0; font-family: var(--ae-serif); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.text-link { color: var(--ae-violet); font-size: .86rem; font-weight: 800; white-space: nowrap; }

.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.genre-card { position: relative; min-height: 230px; padding: 28px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; border-radius: 20px; background: var(--ae-indigo); color: white; isolation: isolate; }
.genre-card::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .72; background: radial-gradient(circle at 75% 20%, var(--accent, #6d50df), transparent 45%), linear-gradient(145deg, #1c2345, #090d1b); }
.genre-card::after { content: "✦"; position: absolute; z-index: -1; top: 15px; right: 22px; color: rgba(255,255,255,.24); font-size: 4rem; }
.genre-card:nth-child(2) { --accent: #b94f7d; }
.genre-card:nth-child(3) { --accent: #356f8c; }
.genre-card:nth-child(4) { --accent: #9a6c2f; }
.genre-card small { color: var(--ae-gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.genre-card h3 { margin: 7px 0 0; font-family: var(--ae-serif); font-size: 1.58rem; font-weight: 500; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { overflow: hidden; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); background: white; box-shadow: 0 14px 40px rgba(20,23,45,.06); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--ae-shadow); }
.post-cover {
  aspect-ratio: 2/3;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f3eee5, #fffdf9);
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(14,16,31,.16);
  transition: transform .5s, box-shadow .5s;
}
.post-card:hover .post-cover img { transform: scale(1.035); }
.post-placeholder { height: 100%; display: grid; place-items: center; color: var(--ae-gold-light); font-family: var(--ae-serif); font-size: 3.5rem; }
.post-body { padding: 26px; }
.post-meta { display: flex; align-items: center; gap: 9px; color: var(--ae-violet); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-body h3 { margin: 12px 0 10px; font-family: var(--ae-serif); font-size: 1.55rem; line-height: 1.18; font-weight: 600; }
.post-body p { margin: 0; color: var(--ae-muted); font-size: .93rem; }
.stars { margin-top: 18px; color: #cb8e22; letter-spacing: .08em; }
.archive-wrap .post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.archive-wrap .post-cover { padding: 9px; }
.archive-wrap .post-body { padding: 16px 14px 18px; }
.archive-wrap .post-body h3 { margin: 8px 0 7px; font-size: 1.02rem; line-height: 1.25; }
.archive-wrap .post-body p { display: none; }
.archive-wrap .post-meta { font-size: .62rem; letter-spacing: .07em; }
.archive-wrap .stars { margin-top: 10px; font-size: .82rem; }
.ae-pagination { margin-top: 55px; }
.ae-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ae-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ae-line); border-radius: 999px; background: white; color: var(--ae-indigo); font-size: .86rem; font-weight: 800; }
.ae-pagination .page-numbers.current, .ae-pagination .page-numbers:hover { border-color: var(--ae-violet); background: var(--ae-violet); color: white; }

.manifesto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.manifesto-visual { position: relative; min-height: 520px; border-radius: 34px; background: linear-gradient(145deg, var(--ae-indigo), var(--ae-night)); overflow: hidden; }
.manifesto-visual::before { content: "“"; position: absolute; top: -58px; left: 35px; color: rgba(231,184,92,.18); font-family: var(--ae-serif); font-size: 22rem; line-height: 1; }
.manifesto-quote { position: absolute; inset: auto 38px 42px; color: white; font-family: var(--ae-serif); font-size: 2rem; line-height: 1.28; }
.manifesto-copy p { color: var(--ae-muted); font-size: 1.04rem; }
.principles { display: grid; gap: 17px; margin-top: 30px; }
.principle { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.principle i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #eee9ff; color: var(--ae-violet); font-style: normal; font-weight: 900; }
.principle strong { display: block; }
.principle span { color: var(--ae-muted); font-size: .9rem; }

.newsletter { padding: 62px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border-radius: 30px; color: white; background: var(--ae-indigo); }
.newsletter h2 { margin: 0 0 8px; font-family: var(--ae-serif); font-size: 2.4rem; font-weight: 500; }
.newsletter p { margin: 0; color: #cbd0e4; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter input { min-width: 260px; min-height: 52px; padding: 0 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: white; }

.content-wrap { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; }
.archive-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; }
.article-header { margin-bottom: 42px; text-align: center; }
.article-header h1 { margin: 15px auto 20px; font-family: var(--ae-serif); font-size: clamp(2.7rem, 5vw, 4.9rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.article-featured { margin: 0 auto 52px; padding: 28px; display: grid; place-items: center; border-radius: 24px; background: var(--ae-ivory); }
.article-featured img { width: auto; max-height: 760px; border-radius: 8px; box-shadow: 0 18px 45px rgba(14,16,31,.16); object-fit: contain; }
.article-content { font-family: var(--ae-serif); font-size: 1.14rem; }
.article-content h2 { margin-top: 2.4em; font-size: 2rem; line-height: 1.2; }
.article-content h3 { margin-top: 2em; font-size: 1.45rem; }
.article-content blockquote { margin: 35px 0; padding: 24px 28px; border-left: 4px solid var(--ae-gold); background: var(--ae-ivory); font-style: normal; }
.article-content table { width: 100%; border-collapse: collapse; font-family: var(--ae-sans); font-size: .95rem; }
.article-content td { padding: 13px; border-bottom: 1px solid var(--ae-line); }
.rating-box { margin: 45px 0; padding: 32px; border: 1px solid #ded5ff; border-radius: var(--ae-radius); background: #f5f1ff; text-align: center; }
.rating-box h3 { margin: 0 0 8px; }
.rating-box .stars { font-size: 1.8rem; }
.reader-rating { margin-top: 45px; padding: 34px; border-radius: var(--ae-radius); background: var(--ae-indigo); color: white; }
.reader-rating h2 { margin-top: 0; color: var(--ae-gold-light); }
.rmp-widgets-container { margin: 24px 0 0 !important; color: white; }
.rmp-widgets-container .rmp-heading, .rmp-widgets-container .rmp-rating-widget__icons-list { color: white !important; }
.comments-area { margin-top: 55px; padding-top: 38px; border-top: 1px solid var(--ae-line); }
.comments-title, .comment-reply-title { font-family: var(--ae-serif); font-size: 1.8rem; }
.comment-list { padding: 0; list-style: none; }
.comment-body { margin: 22px 0; padding: 22px; border-radius: 16px; background: var(--ae-ivory); }
.comment-form label { display: block; margin-bottom: 6px; font-family: var(--ae-sans); font-size: .82rem; font-weight: 800; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 13px 15px; border: 1px solid var(--ae-line); border-radius: 12px; background: white; }
.comment-form .submit { padding: 14px 22px; border: 0; border-radius: 999px; background: var(--ae-gold); color: var(--ae-ink); font-weight: 800; cursor: pointer; }

.site-footer { padding: 72px 0 32px; background: var(--ae-night); color: #c4c7d7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; }
.footer-grid h3 { color: white; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 8px 0; }
.footer-bottom { margin-top: 55px; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { min-height: 620px; background-position: 62% center; }
  .hero::before { background: rgba(7,10,23,.76); }
  .hero-content { width: 100%; }
  .constellation-grid, .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .archive-wrap .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manifesto { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ae-container { width: min(100% - 26px, 1180px); }
  .brand-copy small { display: none; }
  .hero { min-height: 640px; }
  .hero-content { padding: 80px 0 120px; }
  .hero h1 { font-size: 3.2rem; }
  .constellation-grid, .genre-grid, .post-grid { grid-template-columns: 1fr; }
  .archive-wrap .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .constellation-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding: 75px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .manifesto-visual { min-height: 400px; }
  .newsletter { padding: 35px 25px; }
  .newsletter-form { flex-direction: column; }
  .newsletter input { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
