/* Pergunta pra Jesus — layout v2 (prévia, não publicado) */

:root {
  --bg: #f4ebe0;
  --bg-band: #eadccb;
  --paper: #fbf6ef;
  --ink: #2f241c;
  --ink-soft: #6b5b4e;
  --muted: #8a7668;
  --terracotta: #c15c3c;
  --terracotta-deep: #a44b30;
  --line: #e4d5c4;
  --icon-bg: #efe4d6;
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --max: 68rem;
  --header-h: 3.35rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--terracotta-deep); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

h2, .article-card h3 { text-wrap: balance; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header (slim addition) ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(228, 213, 196, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand:hover { color: var(--terracotta-deep); }

.nav-toggle {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle svg { width: 1.15rem; height: 1.15rem; margin: auto; display: block; }

.site-nav ul {
  display: flex;
  gap: 0 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.15rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--terracotta); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 26.5rem) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 0;
  min-height: 290px;
  padding: 0.45rem 0 0.25rem;
}

.hero-copy {
  padding: 0.25rem 1.1rem 0.25rem 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--terracotta);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem;
  line-height: 1;
}

.eyebrow svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.15rem, 5.6vw, 4.65rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
}

.hero h1 .l1,
.hero h1 .l2 { display: block; }

.hero h1 .pra {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 700;
}

.hero .lede {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.42;
  max-width: 24.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--terracotta);
  color: #fbf6ef;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--terracotta-deep); color: #fbf6ef; }
.btn svg { width: 1.05rem; height: 1.05rem; }

.btn-circle {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.btn-circle:hover {
  background: var(--terracotta);
  color: #fbf6ef;
}
.btn-circle svg { width: 1rem; height: 1rem; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.hero-note svg { width: 0.95rem; height: 0.95rem; color: var(--terracotta); flex: 0 0 auto; }

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 290px;
  margin-right: calc((min(var(--max), 100vw - 2.75rem) - 100vw) / 2);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(244, 235, 224, 0.82) 10%, rgba(244, 235, 224, 0.35) 22%, rgba(244, 235, 224, 0) 40%);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

/* ---------- Themes ---------- */

.themes {
  padding: 1.35rem 0 1.7rem;
}

.themes-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.15rem;
}

.themes-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0 auto 0.45rem;
  color: var(--terracotta);
  display: block;
}

.themes-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  color: var(--terracotta);
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.themes-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.theme-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.85rem 0.85rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-card:hover {
  border-color: #d4b5a4;
  color: inherit;
  transform: translateY(-1px);
}

.theme-icon {
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--icon-bg);
  color: var(--terracotta-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-icon svg { width: 1.05rem; height: 1.05rem; }

.theme-body { min-width: 0; }
.theme-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin: 0.12rem 0 0.28rem;
  line-height: 1.2;
}
.theme-body p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}
.go {
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Purpose band ---------- */

.purpose-wrap { padding: 0 0 1.8rem; }

.purpose {
  background: var(--bg-band);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem 1.4rem;
  align-items: center;
}

.purpose-art {
  width: 9.4rem;
  height: 5.6rem;
  color: var(--terracotta-deep);
  flex: 0 0 auto;
}
.purpose-art svg { width: 100%; height: 100%; display: block; }

.purpose-text {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.35;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
}
.purpose-text strong {
  font-weight: 700;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--terracotta-deep);
  border: 1.5px solid var(--terracotta);
  background: transparent;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  line-height: 1.2;
}
.btn-pill:hover {
  background: var(--terracotta);
  color: #fbf6ef;
}

/* ---------- Shared sections ---------- */

.section { padding: 1.8rem 0; }

.section-head { margin-bottom: 1.15rem; }

.section-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.35rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Articles ---------- */

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.article-card {
  border-top: 1.5px solid var(--terracotta);
  padding-top: 0.9rem;
  min-width: 0;
}

.article-card .cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.5rem;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.article-card h3 a:hover { color: var(--terracotta-deep); }

.article-card .excerpt {
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ler {
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.ler.soon {
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}

/* ---------- Ask (once) + reflections ---------- */

.converse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  min-width: 0;
}

.panel h2 { margin: 0 0 0.4rem; font-size: 1.55rem; }

.panel-lead {
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.ask-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ask-form input[type="text"],
.ask-form input[type="email"],
.ask-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.ask-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.ask-form input[type="text"]:focus,
.ask-form input[type="email"]:focus,
.ask-form textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: var(--terracotta);
}

.form-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
  line-height: 1.45;
}

.form-note a { white-space: nowrap; }

.reflections { margin-top: 0.15rem; }

.reflection {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.1rem 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.reflection:first-child { border-top: 0; padding-top: 0; }

.chevron {
  color: var(--terracotta);
  font-size: 1.05rem;
  line-height: 1.4;
}

.reflection p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.ref-cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
  font-weight: 600;
}

/* ---------- Sobre + materiais ---------- */

.sobre-text {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.sobre-text p { margin: 0 0 0.8rem; }
.sobre-text p:last-child { margin-bottom: 0; }

.materiais-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.material-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.1rem;
}

.material-card .cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.material-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.material-card p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.material-card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.footer-brand {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1rem;
}
.footer-brand small {
  display: block;
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

.footer-social { display: flex; gap: 1.1rem; }
.footer-social a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-social a:hover { color: var(--terracotta); }

/* ---------- Post ---------- */

.post-wrap {
  width: min(41.5rem, calc(100% - 2.75rem));
  margin: 0 auto;
  padding: 2.2rem 0 3.6rem;
}

.back {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
}

.post-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.7rem;
}

.post-wrap > h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.post-body p { margin: 0 0 0.95rem; }

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-style: normal;
  color: var(--ink);
}

.scripture {
  background: var(--paper);
  border-left: 3px solid var(--terracotta);
  padding: 1.15rem 1.25rem 1.1rem;
  margin: 1.7rem 0;
  border-radius: 0 10px 10px 0;
}

.scripture h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.scripture p { margin: 0 0 0.85rem; }
.scripture p:last-child { margin-bottom: 0; }

.video-box {
  margin-top: 2.3rem;
  padding: 1.15rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #efe6d9;
}

.video-box h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.video-box p { margin: 0; color: var(--ink-soft); }


/* ---------- Article groups (home) + ebook note (posts) ---------- */

.article-group + .article-group {
  margin-top: 2rem;
}

.article-group > .cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.85rem;
}

.ebook-note {
  margin-top: 2.3rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.ebook-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.ebook-note a {
  font-weight: 600;
  text-decoration: none;
}
.ebook-note a:hover { text-decoration: underline; }


/* ---------- Post + Continue lendo ---------- */

.post-layout {
  width: min(var(--max), calc(100% - 2.75rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 41.5rem) 17.5rem;
  justify-content: center;
  column-gap: 3.5rem;
  align-items: start;
}
.post-layout > .post-wrap { width: auto; margin: 0; }

.related {
  position: sticky;
  top: 1.5rem;
  margin-top: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta);
  border-radius: 14px;
  padding: 1.05rem 1rem 1rem;
}
.related h2 {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.related-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0.45rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.related-item:hover { background: var(--bg); color: var(--ink); }
.related-thumb {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--cat-color, var(--terracotta));
}
.cat-perguntas { --cat-color: #c15c3c; }
.cat-curiosidades { --cat-color: #8a7a3e; }
.cat-criancas { --cat-color: #4f7f86; }
.related-text { display: block; min-width: 0; }
.related-cat {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-color, var(--terracotta));
  margin-bottom: 0.15rem;
}
.related-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.related-item:hover .related-title { color: var(--terracotta-deep); }
.related-all {
  display: block;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 41.5rem); }
  .related { position: static; margin: 0 0 2.5rem; }
  .related h2 { font-size: 1.45rem; }
  .related-list { gap: 0.55rem; }
  .related-item { background: var(--bg); border: 1px solid var(--line); padding: 0.8rem 0.75rem; min-height: 3.6rem; }
}
@media (max-width: 700px) {
  .post-layout { width: min(var(--max), calc(100% - 1.7rem)); }
  .post-layout > .post-wrap { padding-bottom: 1.5rem; }
}


/* ---------- Palavras-chave ---------- */
.post-tags { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.post-tags h2 {
  font-family: var(--font-sans); font-style: normal; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list li {
  font-size: 0.82rem; line-height: 1.2; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem;
}


/* ---------- Ilustrações ---------- */
.post-cover { margin: 0 0 1.6rem; }
.post-cover img {
  width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 18px 36px -26px rgba(47, 36, 28, 0.55); background: var(--bg-band);
}
.card-thumb { display: block; margin: 0 0 0.75rem; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.related-img { object-fit: cover; padding: 0; width: 3.4rem; height: 2.3rem; }
@media (max-width: 700px) { .post-cover img { border-radius: 12px; } }

#temas, #artigos, #pergunte, #sobre, #materiais, #perguntas, #curiosidades, #criancas {
  scroll-margin-top: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(2.7rem, 6.4vw, 3.8rem); }
  .theme-body h3 { font-size: 0.98rem; }
  .purpose { gap: 0.9rem 1rem; padding: 1rem 1.05rem; }
  .purpose-art { width: 7.2rem; height: 4.6rem; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.2rem 0 0.4rem;
    gap: 0.4rem;
  }
  .hero-copy { max-width: none; padding: 0 0 0.4rem; width: auto; }
  .hero-visual {
    min-height: 200px;
    height: 220px;
    margin: 0.3rem calc((min(var(--max), 100vw - 1.7rem) - 100vw) / 2) 0;
  }
  .hero-visual::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 235, 224, 0) 28%);
  }
  .hero-visual img { object-position: 50% 40%; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .purpose {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
  .btn-pill { white-space: normal; }
}

@media (max-width: 800px) {
  .articles,
  .converse,
  .materiais-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 36px -24px rgba(47, 36, 28, 0.4);
    padding: 0.5rem 0.4rem 0.7rem;
    z-index: 20;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--bg); }

  .theme-grid { grid-template-columns: 1fr; }
  .wrap, .post-wrap { width: min(var(--max), calc(100% - 1.7rem)); }
  .section { padding: 1.45rem 0; }
  .hero-visual { margin-inline: -0.85rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.45rem; }
  .hero-actions { flex-wrap: wrap; }
}

/* Short pages (thank-you): keep the footer at the bottom of the viewport */
body.page-short {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-short main {
  flex: 1 0 auto;
}
