/* igreja.org — web. Editorial preto e branco, serifa como voz, vidro líquido. */

:root {
  --ink: #111;
  --ink-2: #6b6b6b;
  --paper: #fdfcfa;
  --paper-2: #f2f0ec;
  --hairline: rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Cormorant Garamond", serif;
  --serif-body: "EB Garamond", serif;
  --sans: "Inter", -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f0ec;
    --ink-2: #9a9a94;
    --paper: #101010;
    --paper-2: #1c1c1a;
    --hairline: rgba(255, 255, 255, 0.16);
  }
}
:root[data-theme="dark"] {
  --ink: #f2f0ec;
  --ink-2: #9a9a94;
  --paper: #101010;
  --paper-2: #1c1c1a;
  --hairline: rgba(255, 255, 255, 0.16);
}

/* Glassmorphism desligável (toggle no topo). */
:root[data-glass="off"] .glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--paper);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

/* ── Vidro líquido ─────────────────────────────── */
.glass {
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  border: 1px solid var(--hairline);
}

/* ── Barra superior (desktop) ──────────────────── */
.topbar {
  position: fixed; inset: 14px 14px auto;
  z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  max-width: 1060px; margin: 0 auto;
}
.brand-logo { height: 40px; display: block; filter: invert(1); }
@media (prefers-color-scheme: dark) { .brand-logo { filter: none; } }
.topnav { display: flex; gap: 22px; flex: 1; }
.topnav a { font-size: 14px; color: var(--ink-2); padding: 6px 2px; }
.topnav a.active { color: var(--ink); font-weight: 600; }
.login-btn {
  border: 1px solid var(--hairline); background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600;
}

/* ── Tab bar (mobile) ──────────────────────────── */
.tabbar {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 50;
  display: none; justify-content: space-around; align-items: center;
  border-radius: 999px; padding: 8px 6px;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 10px; color: var(--ink-2); min-width: 64px;
}
.tabbar a.active { color: var(--ink); font-weight: 600; }
.tabbar .ti { font-size: 19px; line-height: 1.1; }

@media (max-width: 760px) {
  .topnav, .login-btn { display: none; }
  .topbar { justify-content: center; }
  .tabbar { display: flex; }
}

/* ── Layout ────────────────────────────────────── */
.app { max-width: 1060px; margin: 0 auto; padding: 108px 20px 120px; }
.section-title { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 34px 0 6px; }
.section-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 16px; }
.caption {
  font-size: 11px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-2); margin: 26px 0 10px;
}

/* ── Hero editorial ────────────────────────────── */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; color: #fff; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.40); }
.hero .content { position: relative; padding: 30px; }
.hero .verse { font-family: var(--serif); font-size: clamp(26px, 4.4vw, 44px); line-height: 1.15; }
.hero .ref { font-family: var(--serif); font-style: italic; font-size: 17px; opacity: 0.85; margin-top: 10px; }
.hero .kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }

/* ── Grades e cards ────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-books { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #222; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.36); }
.card-photo .content { position: relative; padding: 14px; }
.card-photo .cat { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.8; }
.card-photo h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.card-photo p { font-size: 12px; opacity: 0.85; }
.card-photo:hover { transform: translateY(-2px); transition: transform 0.18s ease; }

.row-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 8px;
}
.row-card:hover { background: var(--paper-2); }
.row-card .grow { flex: 1; }
.row-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.row-card small { color: var(--ink-2); font-size: 12px; }
.row-card .chev { color: var(--ink-2); }

/* ── Chips ─────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--hairline); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; white-space: nowrap;
}
.chip.active { background: var(--ink); color: var(--paper); border-color: transparent; }

/* ── Leitor bíblico ────────────────────────────── */
.reader-hero {
  background: #000; color: #fff; border-radius: var(--radius-lg);
  text-align: center; padding: 56px 24px;
}
.reader-hero .book { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; opacity: 0.7; }
.reader-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 66px); line-height: 1; margin: 14px 0; }
.reader-hero .opener { font-family: var(--serif); font-style: italic; font-size: 18px; opacity: 0.8; }
.verse-line { display: flex; gap: 14px; padding: 9px 4px; }
.verse-line .n { font-family: var(--serif); color: var(--ink-2); min-width: 26px; text-align: right; }
.verse-line .t { font-family: var(--serif-body); font-size: 18.5px; line-height: 1.65; }
.reader-nav { display: flex; justify-content: space-between; margin: 26px 0; font-family: var(--serif); font-size: 16px; }
.reader-nav a { border-bottom: 1px solid var(--hairline); padding-bottom: 2px; }
.reader-tools { display: flex; gap: 8px; align-items: center; margin: 18px 0 6px; flex-wrap: wrap; }

/* ── Página do tema ────────────────────────────── */
/* Podcast */
.podcast-card {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 18px; margin: 14px 0; background: var(--paper);
}
.podcast-card .cover { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius); flex: none; }
.podcast-card .cover-empty { display: flex; align-items: center; justify-content: center; background: var(--paper-2); font-size: 30px; }
.podcast-card .grow { flex: 1; min-width: 0; }
.podcast-card h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 2px; }
.podcast-card small { color: var(--ink-2); font-size: 12px; display: block; margin-top: 2px; }
.podcast-card .soon { font-family: var(--serif); font-style: italic; font-size: 14px; margin-top: 10px; }
.podcast-card audio { width: 100%; margin-top: 12px; display: block; }

.verse-quote {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.verse-quote .q { font-family: var(--serif-body); font-size: 19px; line-height: 1.6; }
.verse-quote .r { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.base-block { margin: 22px 0; }
.base-block p { font-family: var(--serif-body); font-size: 17.5px; line-height: 1.65; }

/* ── Prosa editorial ───────────────────────────── */
.prose p { font-family: var(--serif-body); font-size: 18px; line-height: 1.7; margin: 12px 0; }

/* ── Modal de login ────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper); border-radius: var(--radius-lg);
  max-width: 380px; width: 100%; padding: 34px 28px;
  text-align: center; display: flex; flex-direction: column; gap: 12px;
}
.modal-logo { height: 54px; object-fit: contain; filter: invert(1); margin: 0 auto 4px; }
@media (prefers-color-scheme: dark) { .modal-logo { filter: none; } }
.modal-lead { font-family: var(--serif-body); font-size: 15.5px; color: var(--ink-2); }
.auth-btn {
  border-radius: var(--radius); padding: 14px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--hairline); background: transparent; color: var(--ink);
}
.auth-apple { background: var(--ink); color: var(--paper); border-color: transparent; }
.modal-note { font-size: 12px; color: var(--ink-2); }
.modal-close { background: none; border: none; color: var(--ink-2); font-size: 13px; }

.footer-note { text-align: center; color: var(--ink-2); font-size: 12px; margin-top: 60px; }


/* ── Hero bento (home) ─────────────────────────── */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(84px, auto);
}
.tile {
  background: var(--paper-2); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.tile-word {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7vw, 84px); line-height: 1;
}
.tile-icon { font-size: 30px; display: flex; align-items: center; justify-content: center; }
.tile-note { font-family: var(--serif-body); font-size: 17px; line-height: 1.5; }
.tile-stat .n { font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); font-weight: 500; }
.tile-stat .l { color: var(--ink-2); font-size: 14px; }
.tile-dark {
  background: #0d0d0d; color: #fff; border-color: transparent;
  justify-content: space-between;
}
.tile-dark .play {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: #0d0d0d; display: flex; align-items: center;
  justify-content: center; font-size: 17px;
}
.tile-people { flex-direction: row; align-items: center; gap: 12px; }
.tile-people img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-2); }
.tile-people img + img { margin-left: -18px; }
.tile-people .count { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-left: 6px; }
.tile a { text-decoration: none; }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; }
.t-3 { grid-column: span 3; } .t-8 { grid-column: span 8; }
.t-5 { grid-column: span 5; } .t-7 { grid-column: span 7; }
.r-2 { grid-row: span 2; }
@media (max-width: 760px) {
  .t-6, .t-4, .t-3, .t-8, .t-5, .t-7 { grid-column: span 12; }
}

/* Controles do topo (tema + vidro). */
.top-toggle {
  border: 1px solid var(--hairline); background: transparent; color: var(--ink);
  border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 15px;
}
