:root {
  --bg: #f4f3ee;
  --surface: #e6e8e1;
  --surface-2: #ecede7;
  --line: #d6d8cf;
  --ink: #232b27;
  --muted: #66706a;
  --sage: #5b7b66;
  --accent: #4e6c59;
  --accent-hover: #42604e;
  --sun: #e8c77e;
  --radius: 4px;
  --margin: clamp(20px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, blockquote, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--sun); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #e2bd6a; }
.btn-wide { width: 100%; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .2s;
}
.chip:hover { background: var(--surface-2); }
.linkbtn { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; }
.muted { color: var(--muted); }

/* Cabeçalho */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--margin); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; }
.brand b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.045em; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-weight: 600; }
.top nav > a:not(.btn) { text-decoration: none; padding: 8px 0; }
.top nav > a[aria-current="page"]:not(.btn) { color: var(--accent); }
.top nav > a:not(.btn):hover { color: var(--accent); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); padding: 8px 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang div { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 150px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(35, 43, 39, .12); }
.lang div a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 3px; }
.lang div a:hover, .lang div a[aria-current] { background: var(--surface); }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; justify-content: space-between; }
  .brand b { font-size: 1.3rem; }
}

/* Devocional */
.dayline { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--margin) 20px; font-size: 15px; font-weight: 600; color: var(--muted); }
.daynav { display: flex; gap: 20px; }
.daynav a { color: var(--ink); text-decoration: none; }
.daynav a:hover { color: var(--accent); }
.devo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 80px); padding: 0 var(--margin); align-items: start; }
.devo-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.devo-img figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.devo-img figcaption a { color: var(--muted); }
.devo-body { max-width: 600px; display: flex; flex-direction: column; gap: 18px; }
.devo-label { font-size: 15px; font-weight: 600; color: var(--accent); }
.devo h1 { font-size: clamp(2.25rem, 1.2rem + 3vw, 3.5rem); font-weight: 800; line-height: .98; letter-spacing: -0.045em; }
.devo-verse { padding: 10px 0 4px; }
.devo-verse p { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.025em; }
.devo-verse cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: 16px; color: var(--muted); }
.devo-p { font-size: 1.1875rem; line-height: 1.6; }
.devo-prayer { background: var(--surface); border-radius: 6px; padding: 22px 24px; }
.devo-prayer p:last-child { margin-top: 6px; font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.devo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) {
  .devo { grid-template-columns: 1fr; }
  .devo-img img { aspect-ratio: 16 / 10; }
}

/* Apoio */
.support { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(56px, 7vw, 88px) var(--margin); background: var(--surface); }
.support h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.support-text p { margin-top: 18px; font-size: 1.1875rem; max-width: 34em; }
.facts { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex: none; }
.support-card { align-self: start; background: var(--bg); border-radius: 6px; padding: 28px; display: grid; gap: 16px; }
.pix { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.pix b { word-break: break-all; }
.support-page .support { margin-top: 24px; }
@media (max-width: 820px) { .support { grid-template-columns: 1fr; } }

/* Dias anteriores e arquivo */
.prev, .archive { padding: clamp(72px, 9vw, 120px) var(--margin) 0; }
.prev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.prev h2, .archive h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; }
.archive h1 { margin-bottom: 28px; }
.prev-head a { font-weight: 600; color: var(--accent); text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; transition: opacity .2s; }
.card:hover img { opacity: .88; }
.card:hover b { color: var(--accent); }
.card-meta, .card-ref { font-size: 14px; color: var(--muted); }
.card-meta { font-weight: 600; }
.card b { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; font-weight: 600; }
.pager a { color: var(--accent); text-decoration: none; }
.devo-verse cite abbr { text-decoration: none; margin-left: 6px; font-weight: 400; font-size: 14px; }
.credits-h { font-size: 1.25rem; font-weight: 600; margin: 32px 0 14px; }
.bible-credits { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 60em; }
.bible-credits a { color: var(--muted); }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.credit-list li { display: flex; gap: 20px; align-items: center; }
.credit-list img { width: 160px; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 4px; flex: none; }
@media (max-width: 560px) { .credit-list li { flex-direction: column; align-items: flex-start; } }

/* Chamada do app */
.appband { margin-top: clamp(80px, 10vw, 140px); padding: clamp(56px, 7vw, 80px) var(--margin); background: var(--ink); color: var(--bg); }
.appband h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.045em; }
.appband p { margin-top: 14px; max-width: 32em; color: var(--surface); font-size: 1.125rem; }

/* Mensagens (vazio, 404) */
.message { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 40px var(--margin); max-width: 760px; }
.message svg { width: 96px; height: 96px; }
.message h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }

/* Rodapé */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 40px var(--margin) 48px; color: var(--muted); font-size: 15px; }
.foot .brand { color: var(--ink); }
.foot .brand svg { width: 30px; height: 30px; }
.foot .brand b { font-size: 1.2rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
