/* Salmos Para Dormir — layout editorial sereno, rápido no mobile e acolhedor para leitura noturna */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1e2430;
  --muted: #5a6270;
  --night: #0f172a;
  --night-2: #18243e;
  --ac: #9a6b24;
  --ac-light: #e2b86b;
  --ln: #e4ddd3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Barra superior noturna */
.topbar { background: var(--night); color: #f8fafc; height: 40px; border-bottom: 1px solid rgba(226,184,107,.2); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-links { display: flex; gap: 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.topbar-links a { color: #e2e8f0; }
.topbar-links a:hover, .topbar-links a.yt-top { color: var(--ac-light); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 24px; padding: 6px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: var(--ac-light); margin: 4px 0; border-radius: 2px; }
.menu nav {
  position: absolute; top: 34px; left: 0;
  background: var(--night); color: #fff;
  padding: 16px 20px; z-index: 30; min-width: 260px;
  border: 1px solid rgba(226,184,107,.25); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.menu nav a {
  display: block; padding: 8px 0; font-size: 13px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08); color: #f1f5f9;
}
.menu nav a:hover { color: var(--ac-light); }
.menu .m-sec { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-light); }
.menu nav a.m-sub { text-transform: none; font-weight: 400; padding-left: 10px; font-size: 14px; }

/* Cabeçalho */
.masthead { padding-top: 38px; text-align: center; }
.logo {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--night);
}
.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  margin: 6px 0 22px;
  color: var(--muted);
}
.catnav {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 6px 22px;
  border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
  padding: 13px 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.catnav a:hover, .catnav a.on { color: var(--ac); }
.catnav a.yt-pill {
  background: var(--night); color: var(--ac-light);
  padding: 5px 12px; border-radius: 999px; font-size: 12px;
}
.catnav a.yt-pill:hover { background: var(--night-2); color: #fff; }

main.wrap { padding-top: 32px; padding-bottom: 64px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; margin-bottom: 36px; align-items: stretch; }
.hero.solo { grid-template-columns: 1fr; }
.hero-main { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--night); }
.hero-main img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; opacity: .92; }
.hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15,23,42,.92));
  color: #fff; padding: 36px 24px 22px; text-align: left;
}
.hero-cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ac-light); margin-bottom: 6px;
}
.hero-tit {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700; line-height: 1.15;
}
.hero-canal {
  background: var(--night); color: #f8fafc;
  border-radius: 10px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(226,184,107,.25);
}
.hero-canal-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-light); margin: 0 0 6px; }
.hero-canal h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; margin: 0 0 10px; color: #fff; line-height: 1.2; }
.hero-canal p { font-size: 14px; color: #cbd5e1; margin: 0 0 14px; line-height: 1.5; }

/* Embed responsivo do YouTube */
.yt-embed {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: 8px; overflow: hidden;
  margin: 14px 0; border: 1px solid rgba(226,184,107,.3);
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-box {
  background: var(--night); color: #f8fafc;
  border-radius: 10px; padding: 22px 24px; margin: 28px 0;
  border-left: 4px solid var(--ac-light);
}
.yt-box h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; margin: 0 0 8px; color: #fff; }
.yt-box p { margin: 0 0 12px; font-size: 15px; color: #cbd5e1; }
.btn-yt, .side-btn {
  display: inline-block; background: var(--ac-light); color: var(--night);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 10px 18px; border-radius: 6px;
  text-align: center; transition: opacity .15s;
}
.btn-yt:hover, .side-btn:hover { opacity: .9; }

/* Divisores e seções */
.linha {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin: 32px 0 18px; color: var(--night);
}
.linha:before, .linha:after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.stories {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 36px;
}
.story {
  position: relative; display: block; border-radius: 8px; overflow: hidden;
  background: var(--night);
}
.story img { width: 100%; aspect-ratio: 16/11; object-fit: cover; opacity: .82; }
.story span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(15,23,42,.92));
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25;
}
.story i { display: block; font-style: italic; font-weight: 400; font-size: 12px; color: var(--ac-light); margin-top: 3px; }

/* Colunas e lista de artigos */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.post {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--ln);
}
.post-img img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ac); margin: 0 0 4px; }
.post-tit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 700; line-height: 1.18; margin: 0 0 6px;
}
.post-tit a:hover { color: var(--ac); }
.byline { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.intro { margin: 0 0 12px; font-size: 15px; color: #334155; }
.vermais {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ac); border-bottom: 1px solid var(--ac); padding-bottom: 2px; margin-bottom: 10px;
}
.share { display: flex; gap: 6px; flex-wrap: wrap; }
.share a {
  border: 1px solid var(--ln); color: var(--muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.share a:hover { color: var(--night); border-color: var(--night); }

/* Sidebar */
.sidebar { position: sticky; top: 20px; }
.side-box {
  background: var(--night); color: #f8fafc;
  padding: 20px; border-radius: 10px; margin-bottom: 24px;
  border: 1px solid rgba(226,184,107,.25);
}
.side-box-tit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 700; color: var(--ac-light); margin: 0 0 8px;
}
.side-box p { font-size: 14px; color: #cbd5e1; margin: 0 0 14px; line-height: 1.55; }
.side-box .side-btn { display: block; }
.side-tit.small {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  margin: 0 0 10px; border-bottom: 1px solid var(--ln); padding-bottom: 6px;
}
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats li { border-bottom: 1px solid var(--ln); }
.side-cats a { display: block; padding: 10px 0; font-size: 14px; font-weight: 600; }
.side-cats a:hover { color: var(--ac); }

/* Páginas de categoria */
.cat-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px; font-weight: 700; margin: 0 0 12px; color: var(--night);
}
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtros button {
  background: #fff; color: var(--ink); border: 1px solid var(--ln);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.filtros button.on { background: var(--night); color: var(--ac-light); border-color: var(--night); }
.cat-desc { font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--ln); padding-bottom: 16px; margin: 0 0 24px; }
.vazio { font-style: italic; color: var(--muted); }

/* Artigo */
.migalhas { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.migalhas a:hover { color: var(--ac); }
.art-tit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700; line-height: 1.12; margin: 0 0 8px; color: var(--night);
}
.share-bar { border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); padding: 10px 0; margin: 14px 0 18px; }
.lead { font-size: 18px; line-height: 1.55; color: #334155; margin: 0 0 18px; }
.resposta {
  border-left: 4px solid var(--ac);
  background: #f3ede2;
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  margin: 0 0 24px;
}
.resposta-tit {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ac); margin: 0 0 6px;
}
.resposta p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.capa { margin: 0 0 24px; }
.capa img { width: 100%; height: auto; border-radius: 8px; }

.texto { font-size: 17px; line-height: 1.78; color: var(--ink); }
.texto p { margin: 0 0 1.15em; }
.texto h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px; font-weight: 700; line-height: 1.22;
  color: var(--night); margin: 1.6em 0 .55em;
}
.texto h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 700; color: var(--night); margin: 1.3em 0 .45em;
}
.texto a { color: var(--ac); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.texto strong { font-weight: 700; color: var(--night); }
.texto blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--ac);
  background: #f5efe6; border-radius: 0 8px 8px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 20px; line-height: 1.5; color: var(--night);
}
.texto blockquote p { margin: 0; }
.texto ul, .texto ol { padding-left: 22px; margin: 0 0 1.2em; }
.texto li { margin: .4em 0; }
.texto table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; background: #fff; border-radius: 8px; overflow: hidden; }
.texto th, .texto td { border: 1px solid var(--ln); padding: 10px 12px; text-align: left; }
.texto th { background: var(--night); color: #fff; font-weight: 600; }

.cluster-link {
  border-top: 1px solid var(--ln); padding-top: 14px;
  margin: 26px 0; font-size: 15px; color: var(--muted);
}
.cluster-link a { color: var(--ac); font-weight: 600; text-decoration: underline; }

.faq { margin: 34px 0; background: #fff; padding: 22px 24px; border-radius: 10px; border: 1px solid var(--ln); }
.faq h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 700; margin: 0 0 12px; color: var(--night);
}
.faq details { border-top: 1px solid var(--ln); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--night); font-size: 16px; }
.faq p { margin: 8px 0 0; font-size: 15.5px; color: #334155; }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini img { aspect-ratio: 16/11; object-fit: cover; width: 100%; margin-bottom: 8px; }
.mini h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; font-weight: 700; line-height: 1.2; margin: 0;
}
.mini h3 a:hover { color: var(--ac); }

.home-pos {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 20px; line-height: 1.45;
  text-align: center; margin: 0 auto 24px; max-width: 740px; color: #334155;
}

/* Rodapé */
.rodape {
  background: var(--night); color: #cbd5e1;
  text-align: center; padding: 48px 0 36px;
  border-top: 2px solid rgba(226,184,107,.3);
}
.logo-sm { color: #fff; font-size: 38px; }
.rodape nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 24px; margin: 18px 0;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.rodape nav a { color: #e2e8f0; }
.rodape nav a:hover { color: var(--ac-light); }
.rodape p { font-size: 13px; color: #94a3b8; max-width: 680px; margin: 8px auto; }
.rod-pos { font-style: italic; color: var(--ac-light) !important; font-size: 15px !important; }

@media (max-width: 860px) {
  .hero, .cols { grid-template-columns: 1fr; }
  .stories { grid-template-columns: repeat(2, 1fr); }
  .masthead { padding-top: 24px; }
  .catnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catnav a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .post { grid-template-columns: 1fr; gap: 12px; }
  .minis { grid-template-columns: 1fr; }
  .stories { grid-template-columns: 1fr 1fr; gap: 10px; }
}
