/* =========================================================
   Curiosidades e Reflexões Bíblicas — folha de estilo
   Tokens de cor originais do site (oklch), tipografia Lora + Inter.
   ========================================================= */

:root {
  /* marca */
  --purple: oklch(52% 0.18 275);
  --purple-soft: oklch(62% 0.14 275);
  --orange: oklch(66% 0.15 55);
  --brown: oklch(58% 0.15 20);

  /* tema claro (padrão) */
  --bg: oklch(97.5% 0.008 70);
  --bg-alt: oklch(95.5% 0.012 70);
  --card: oklch(99% 0.003 70);
  --card-alt: oklch(96% 0.015 70);
  --text: oklch(24% 0.02 265);
  --text-sec: oklch(42% 0.02 265);
  --text-muted: oklch(52% 0.015 265);
  --border: oklch(89% 0.015 70);
  --insight: oklch(95% 0.045 80);
  --insight-line: oklch(78% 0.11 80);
  --note: oklch(94% 0.03 275);
  --note-line: oklch(72% 0.11 275);
  --study: oklch(95% 0.032 20);
  --study-line: oklch(72% 0.12 20);
  --link: oklch(45% 0.17 275);
  --shadow: 0 1px 2px oklch(24% 0.02 265 / 0.05), 0 8px 24px -12px oklch(24% 0.02 265 / 0.16);
  --shadow-lg: 0 2px 4px oklch(24% 0.02 265 / 0.06), 0 20px 44px -20px oklch(24% 0.02 265 / 0.24);
  --hero-1: oklch(32% 0.11 285);
  --hero-2: oklch(26% 0.08 275);

  --radius: 14px;
  --radius-lg: 20px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 68ch;
  --shell: 1080px;
}

/* tema escuro */
[data-theme="dark"] {
  --bg: oklch(17% 0.02 275);
  --bg-alt: oklch(21% 0.025 275);
  --card: oklch(23% 0.025 275);
  --card-alt: oklch(26% 0.03 275);
  --text: oklch(94% 0.01 275);
  --text-sec: oklch(82% 0.015 275);
  --text-muted: oklch(68% 0.02 275);
  --border: oklch(32% 0.025 275);
  --insight: oklch(30% 0.05 80);
  --insight-line: oklch(70% 0.12 80);
  --note: oklch(30% 0.05 275);
  --note-line: oklch(68% 0.13 275);
  --study: oklch(30% 0.05 20);
  --study-line: oklch(68% 0.13 20);
  --link: oklch(80% 0.13 275);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 8px 24px -12px oklch(0% 0 0 / 0.5);
  --shadow-lg: 0 2px 4px oklch(0% 0 0 / 0.35), 0 20px 44px -20px oklch(0% 0 0 / 0.6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 600; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--card); color: var(--text); padding: .75rem 1.1rem;
  border-radius: 0 0 var(--radius) 0; box-shadow: var(--shadow-lg);
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.02rem;
  color: var(--text); text-decoration: none; margin-right: auto;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__mark { flex: 0 0 auto; }
.brand__mark { color: var(--purple-soft); font-size: 1.05em; }
.brand:hover { color: var(--link); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--text-sec); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-left: .3rem; padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text-sec); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* o nome do site é longo: em telas estreitas ele quebra em duas linhas
   em vez de ser cortado no meio de uma palavra */
@media (max-width: 620px) {
  .shell { width: min(100% - 1.75rem, var(--shell)); }
  .brand {
    font-size: .86rem; line-height: 1.25; white-space: normal;
    overflow: visible; text-overflow: clip; align-items: flex-start;
    padding-block: .45rem;
  }
  .brand__mark { font-size: 1em; line-height: inherit; }
  .nav { gap: .1rem; }
  .nav { flex: 0 0 auto; }
  .nav a { font-size: .82rem; padding: .4rem .35rem; }
  .theme-toggle { width: 32px; height: 32px; margin-left: .15rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.25rem); }
.hero__inner { max-width: var(--measure); }
.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--purple-soft); margin: 0 0 .9rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 3.6rem); margin: 0 0 .5rem; letter-spacing: -0.01em;
}
/* o nome do site no hero usa a mesma púrpura que a linha de apoio usava */
.hero__nome { color: var(--purple-soft); text-wrap: balance; }
.hero__author { color: var(--text-muted); font-size: .95rem; margin: 0 0 1.6rem; }
.hero__lead { font-size: 1.13rem; color: var(--text-sec); margin: 0 0 1rem; }
.hero p:not(.kicker):not(.hero__author):not(.hero__lead) { color: var(--text-sec); margin: 0 0 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .9rem; padding: .8rem 1.4rem;
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- seções ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: var(--measure); margin-bottom: 1.75rem; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.15rem); margin: 0 0 .35rem; }
.section__head p { color: var(--text-muted); margin: 0; font-size: .97rem; }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filter {
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  padding: .48rem .95rem; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--text-sec);
  border: 1px solid var(--border);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filter:hover { color: var(--text); border-color: var(--text-muted); }
.filter[aria-pressed="true"] {
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff; border-color: transparent;
}

/* ---------- grade de cards ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); list-style: none; padding: 0; margin: 0; }
.cards li { display: flex; }

.card {
  display: flex; flex-direction: column; gap: .6rem;
  width: 100%; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--purple-soft) 40%, var(--border)); }

.card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--card-alt); color: var(--text-sec);
}
.tag--new { background: color-mix(in oklab, var(--insight) 80%, var(--card)); color: color-mix(in oklab, var(--brown) 75%, var(--text)); }
[data-theme="dark"] .tag--new { color: oklch(88% 0.09 80); }

.card h3 { font-size: 1.18rem; margin: .1rem 0 0; }
.card__desc { color: var(--text-sec); font-size: .93rem; margin: 0; }
.card__meta { color: var(--text-muted); font-size: .82rem; margin: auto 0 0; padding-top: .5rem; }
.card__cta { color: var(--link); font-weight: 600; font-size: .88rem; }

.empty { color: var(--text-muted); padding: 2rem 0; display: none; }
.empty[data-visible="true"] { display: block; }

/* ---------- sobre ---------- */
.prose-narrow { max-width: var(--measure); }
.prose-narrow p { color: var(--text-sec); }
.signature { font-family: var(--serif); font-style: italic; color: var(--text-muted); }

/* ---------- artigo ---------- */
.article { padding: clamp(2rem, 5vw, 3.25rem) 0 1rem; }
.article__head { max-width: var(--measure); margin-inline: auto; }
.backlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .87rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; margin-bottom: 1.5rem;
}
.backlink:hover { color: var(--link); }
.article h1 { font-size: clamp(1.95rem, 5vw, 2.9rem); margin: .4rem 0 .6rem; letter-spacing: -0.01em; }
.article__dek { font-size: 1.1rem; color: var(--text-sec); margin: 0 0 1.1rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; color: var(--text-muted); font-size: .85rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.prose { max-width: var(--measure); margin-inline: auto; padding-top: 1.75rem; font-size: 1.06rem; }
.prose p { margin: 0 0 1.25rem; color: var(--text-sec); }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .8rem; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 1.35rem; padding-left: 1.1rem; color: var(--text-sec); }
.prose li { margin: .4rem 0; padding-left: .2rem; }
.prose li::marker { color: var(--purple-soft); }

blockquote.verse {
  margin: 1.6rem 0; padding: 1.25rem 1.5rem;
  background: var(--card); border-left: 3px solid var(--purple-soft);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
}
blockquote.verse p { font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: var(--text); margin: 0 0 .55rem; }
blockquote.verse cite { display: block; font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

.box { margin: 1.75rem 0; padding: 1.25rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; border-left: 3px solid; }
.box__title { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 .5rem; color: var(--text); }
.box p { margin: 0 0 .6rem; color: var(--text-sec); }
.box p:last-child { margin-bottom: 0; }
.box--insight { background: var(--insight); border-color: var(--insight-line); }
.box--note { background: var(--note); border-color: var(--note-line); }
.box--study { background: var(--study); border-color: var(--study-line); }

/* lista de nomes (Gênesis 5) */
.names { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .5rem; }
.names li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  padding: .7rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.names b { font-family: var(--serif); font-size: 1.05rem; color: var(--text); font-weight: 600; min-width: 6.5rem; }
.names span { color: var(--text-sec); font-size: .95rem; }
.names span::before { content: "→"; color: var(--purple-soft); margin-right: .5rem; }

/* navegação entre artigos */
.pager { max-width: var(--measure); margin-inline: auto; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 2.5rem 0 1rem; }
.pager a {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem 1.15rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.pager a:hover { border-color: var(--purple-soft); transform: translateY(-2px); }
.pager small { color: var(--text-muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.pager strong { font-family: var(--serif); font-weight: 600; font-size: .98rem; color: var(--text); }
.pager .pager--next { text-align: right; }

/* ---------- chamada final ---------- */
.callout-final { text-align: center; max-width: 42ch; margin: 0 auto; padding: clamp(2.5rem, 6vw, 3.5rem) 0 0; }
.callout-final p { font-family: var(--serif); font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.45; color: var(--text); margin: 0; }
.callout-final .pin { color: var(--brown); }

/* =========================================================
   Bloco Grupo Novo Legado
   ========================================================= */
.gnl { margin: 2.5rem 0 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.gnl__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); text-align: center; margin: 0 0 .2rem; }
.gnl__sub { font-family: var(--sans); font-size: .875rem; color: var(--text-muted); text-align: center; margin: 0 0 1.25rem; }
.gnl__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gnl__card {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gnl__card:hover, .gnl__card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gnl__logo {
  align-self: flex-start; display: flex; align-items: center; justify-content: center;
  height: 46px; box-sizing: border-box; padding: 0 .85rem; border-radius: 12px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
}
.gnl__logo img { height: 28px; width: auto; max-width: 100%; display: block; }
.gnl__card--mmf .gnl__logo { background: #fff; border-color: rgba(255,255,255,.9); }
.gnl__text { font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: rgba(255,255,255,.8); margin: 0; }
.gnl__cta { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: #fff; margin-top: auto; }

/* ---------- rodapé ---------- */
.site-footer { padding: 1rem 0 3rem; }
.site-footer__text { text-align: center; max-width: 60ch; margin-inline: auto; }
.site-footer__brand { font-family: var(--serif); font-weight: 600; color: var(--text); margin: 0 0 .6rem; }
.site-footer__text p { color: var(--text-muted); font-size: .87rem; margin: 0 0 .55rem; }
.site-footer__text a { color: var(--link); }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.notfound h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin: 0 0 .6rem; }
.notfound p { color: var(--text-sec); max-width: 46ch; margin: 0 auto 1.6rem; }
.notfound__code { font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--purple-soft); opacity: .35; margin: 0 0 .5rem; }

/* ---------- utilidades ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .gnl__card, .pager a { transition: none; }
}

@media print {
  .site-header, .filters, .gnl, .pager, .theme-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
