:root {
  --green: #a2bf1a;
  --yellow: #fbba00;
  --red: #cf3415;
  --brown: #823c2e;
  --ink: #221f20;
  --muted: #6e6763;
  --paper: #fbfaf7;
  --soft: #f1ece5;
  --white: #fff;
  --line: rgba(34, 31, 32, 0.12);
  --shadow: 0 24px 70px rgba(34, 31, 32, 0.12);
  --gutter: 1rem;
  --section-space: 4.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, rgba(251, 186, 0, 0.13), transparent 23rem),
    radial-gradient(circle at 98% 22%, rgba(162, 191, 26, 0.11), transparent 25rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-shell { width: min(1080px, calc(100% - (var(--gutter) * 2))); margin-inline: auto; }

.newsletter-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: .7rem var(--gutter);
  background: rgba(251,250,247,.94);
  box-shadow: 0 8px 26px rgba(34,31,32,.07);
  backdrop-filter: blur(12px);
}
.brand img { width: 104px; }
.header-side { display: flex; align-items: center; gap: 1rem; }
.back-link { display: none; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.back-link::before { content: "←"; margin-right: .45rem; color: var(--red); }
.lang-switch { display: inline-flex; gap: .2rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-switch button { min-width: 38px; min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 900; cursor: pointer; }
.lang-switch button.active { color: var(--ink); background: var(--green); }

.article-hero { display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; padding: 1.75rem 0 var(--section-space); }
.hero-copy { text-align: center; }
.issue-line { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .55rem; margin-bottom: 1.1rem; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; text-wrap: balance; }
h1 { max-width: 620px; margin-inline: auto; font-size: clamp(2.7rem, 13vw, 4.35rem); }
h2 { font-size: clamp(2rem, 10vw, 3.35rem); }
.article-hero blockquote { position: relative; width: fit-content; margin: 1.6rem auto 0; padding-left: 1rem; border-left: 4px solid var(--green); text-align: left; }
.article-hero blockquote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-style: italic; }
.article-hero cite { display: block; margin-top: .4rem; color: var(--muted); font-size: .78rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.hero-intro { max-width: 590px; margin: 1.5rem auto 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.media-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(34,31,32,.08); background: linear-gradient(145deg, #ebe6de, #f7f3ed); color: var(--brown); text-align: center; isolation: isolate; }
.media-placeholder::before { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, transparent 0 28px, rgba(130,60,46,.035) 28px 29px); content: ""; }
.media-placeholder::after { position: absolute; width: 65%; aspect-ratio: 1; border: 2px solid rgba(162,191,26,.25); border-radius: 48% 52% 58% 42%; content: ""; transform: rotate(18deg); }
.hero-placeholder { min-height: 560px; border-radius: 48% 48% 46% 54% / 40% 52% 48% 60%; box-shadow: var(--shadow); }
.placeholder-icon { width: 62px; height: 62px; margin-bottom: 1rem; color: var(--green); }
.placeholder-icon svg, .play-icon svg { width: 100%; height: 100%; fill: currentColor; }
.media-placeholder strong { z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.media-placeholder small { z-index: 1; max-width: 250px; margin-top: .45rem; color: var(--muted); line-height: 1.5; }

.story-photo { position: relative; margin: 0; overflow: hidden; border-radius: 1.5rem; background: var(--soft); box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo figcaption { position: absolute; right: .75rem; bottom: .75rem; left: .75rem; padding: .75rem .9rem; border-radius: .85rem; color: var(--white); background: rgba(34,31,32,.72); backdrop-filter: blur(8px); font-size: .75rem; line-height: 1.4; }
.hero-photo { order: -1; width: min(100%, 430px); height: auto; margin-inline: auto; border-radius: 0; }
.hero-photo img { object-position: 51% center; }
.hero-photo.heart-photo .heart-photo-frame img { object-position: 51% center; }

.story-section { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.story-section-alt .story-copy { order: -1; }
.section-number { position: absolute; top: 1.15rem; left: 0; color: rgba(34,31,32,.07); font-family: Georgia, serif; font-size: 4.5rem; font-weight: 700; line-height: 1; }
.story-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .8rem; color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.story-copy > p:not(.eyebrow), .video-heading > p:not(.eyebrow), .gratitude > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.72; }
.story-copy > p:not(.eyebrow):first-of-type { margin-top: 1.6rem; }
.portrait-placeholder { min-height: 520px; border-radius: 1.5rem; }
.portrait-placeholder.warm { background: linear-gradient(145deg, #f3e4c7, #fbf7ee); }
.portrait-photo { height: clamp(360px, 112vw, 500px); }
.portrait-photo img { object-position: center 58%; }
.portrait-photo.warm img { object-position: center 42%; }
.heart-photo { height: auto; overflow: clip; background: transparent; box-shadow: none; }
.heart-photo-frame { position: relative; width: calc(100% - 2rem); margin-inline: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 28px rgba(34,31,32,.16)); }
.heart-photo-frame::before { position: absolute; inset: -5%; z-index: -1; background: var(--green); content: ""; opacity: .3; transform: rotate(-7deg); -webkit-mask: url("../../output/logos/bume-simbolo-coracao.png") center / contain no-repeat; mask: url("../../output/logos/bume-simbolo-coracao.png") center / contain no-repeat; }
.heart-photo .heart-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; -webkit-mask: url("../../output/logos/bume-simbolo-coracao.png") center / contain no-repeat; mask: url("../../output/logos/bume-simbolo-coracao.png") center / contain no-repeat; }
.heart-photo figcaption { position: static; margin: .6rem auto 0; padding: .8rem 1rem; color: var(--muted); background: transparent; backdrop-filter: none; text-align: center; }
.placeholder-label { z-index: 1; margin-bottom: .45rem; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.prayer-card { display: flex; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border-radius: 1rem; background: rgba(162,191,26,.15); }
.prayer-card.yellow { background: rgba(251,186,0,.16); }
.prayer-card > span { display: grid; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--green); place-items: center; }
.prayer-card.yellow > span { background: var(--yellow); }
.prayer-card strong { font-family: Georgia, serif; font-size: 1.1rem; }
.prayer-card p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.video-section { display: grid; grid-template-columns: 1fr; align-items: center; gap: 1.75rem; padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.video-heading { text-align: center; }
.video-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; width: min(100%, 420px); margin-inline: auto; }
.video-card { margin: 0; overflow: hidden; border-radius: 1.25rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #151314; object-fit: cover; }
.video-card figcaption { min-height: 58px; padding: 1rem; font-size: .76rem; font-weight: 800; line-height: 1.4; }

.gratitude { position: relative; margin-top: 0; padding: 4rem 1.25rem; border-radius: 1.5rem; background: var(--green); text-align: center; overflow: hidden; }
.gratitude > img { position: absolute; right: -8%; bottom: -42%; width: 48%; opacity: .1; transform: rotate(-10deg); }
.gratitude .eyebrow { color: var(--ink); }
.gratitude h2, .gratitude > p { position: relative; z-index: 1; max-width: 730px; margin-inline: auto; }
.gratitude > p:not(.eyebrow) { color: rgba(34,31,32,.78); }
.gratitude .blessing { font-family: Georgia, serif; font-size: 1.22rem !important; font-weight: 700; }
.gratitude-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .9rem 1.3rem; border: 0; border-radius: 999px; font-size: .75rem; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.button.primary { color: var(--ink); background: var(--yellow); box-shadow: 0 14px 28px rgba(80,59,0,.15); }
.button.dark { color: var(--white); background: var(--ink); }
.share-feedback { min-height: 1.2em; margin: 1rem auto 0 !important; font-size: .82rem !important; font-weight: 800; }

.donation-callout { display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; padding: var(--section-space) 0; }
.donation-copy { text-align: center; }
.donation-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.donation-details { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.5rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.donation-method { display: inline-flex; margin-bottom: 1rem; padding: .45rem .7rem; border-radius: 999px; color: var(--ink); background: var(--green); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.donation-details > strong { display: block; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2rem); }
html[lang="pt-BR"] .donation-details > strong { font-size: clamp(1.08rem, 5vw, 1.8rem); letter-spacing: -.025em; }
.donation-details > p { margin: 1rem 0 1.5rem; color: rgba(255,255,255,.68); font-size: .92rem; line-height: 1.6; }
.donation-feedback { display: inline-block; min-height: 1.2em; margin-left: .8rem; color: var(--green); font-size: .76rem; font-weight: 800; }

.issue-nav { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.25rem .75rem; padding: 1.5rem 0 3.5rem; font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.issue-nav a { color: var(--red); text-align: center; }
.issue-nav a { grid-column: 1 / -1; grid-row: 1; }
.issue-nav span:last-child { text-align: right; }
.issue-disabled { color: #aaa49f; }
.newsletter-footer { display: flex; align-items: center; flex-direction: column; gap: .65rem; padding: 2rem var(--gutter); color: rgba(255,255,255,.72); background: var(--ink); font-size: .72rem; text-align: center; }
.newsletter-footer img { width: 104px; margin-bottom: .4rem; }
.newsletter-footer p { margin: 0; line-height: 1.5; }

@media (max-width: 480px) {
  .prayer-card { padding: 1rem; }
  .gratitude-actions .button,
  .donation-details .button { width: 100%; }
  .donation-feedback { display: block; margin: .75rem 0 0; text-align: center; }
}

@media (min-width: 481px) {
  :root { --gutter: 1.5rem; --section-space: 5.5rem; }
  .article-hero { padding-top: 2.5rem; }
  .hero-photo { width: min(78vw, 510px); }
  .portrait-photo { height: 520px; }
  .video-list { width: min(100%, 460px); }
  .gratitude { padding: 5rem 2.5rem; }
}

@media (min-width: 781px) {
  :root { --gutter: 2rem; --section-space: 7rem; }
  .newsletter-header { padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  .brand img { width: 126px; }
  .back-link { display: inline-block; }
  .article-hero { grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 6vw, 5rem); padding: 4.5rem 0 6rem; }
  .hero-copy { text-align: left; }
  .issue-line { justify-content: flex-start; font-size: .75rem; }
  h1 { margin-inline: 0; font-size: clamp(3.5rem, 6vw, 5.35rem); }
  h2 { font-size: clamp(2.25rem, 4vw, 3.35rem); }
  .article-hero blockquote { margin-inline: 0; }
  .hero-intro { margin-inline: 0; font-size: 1.08rem; }
  .hero-photo { order: initial; width: 100%; }
  .story-section { grid-template-columns: 1.07fr .93fr; gap: clamp(2.5rem, 8vw, 7rem); }
  .story-section-alt .story-copy { order: initial; }
  .section-number { top: 2rem; font-size: 6rem; }
  .story-copy > p:not(.eyebrow), .video-heading > p:not(.eyebrow), .gratitude > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.8; }
  .video-section { grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 6rem); }
  .video-heading, .donation-copy { text-align: left; }
  .video-list { grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; margin-inline: 0; }
  .gratitude { padding: 6rem clamp(3rem, 8vw, 7rem); border-radius: 2rem; }
  .donation-callout { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); }
  .issue-nav { grid-template-columns: 1fr auto 1fr; padding: 2.5rem 0 4rem; font-size: .74rem; }
  .issue-nav a { grid-column: auto; grid-row: auto; }
  .newsletter-footer { flex-direction: row; gap: 1.5rem; padding: 2rem max(var(--gutter), calc((100vw - 1080px) / 2)); text-align: left; }
  .newsletter-footer img { width: 110px; margin: 0 auto 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.issue-nav .issue-home { grid-column: 1 / -1; grid-row: 1; }
.issue-nav .issue-previous { grid-column: 1; grid-row: 2; text-align: left; }
.issue-nav .issue-next { grid-column: 2; grid-row: 2; text-align: right; }

@media (min-width: 781px) {
  .issue-nav .issue-previous { grid-column: 1; grid-row: 1; }
  .issue-nav .issue-home { grid-column: 2; grid-row: 1; }
  .issue-nav .issue-next { grid-column: 3; grid-row: 1; }
}
