/* A Fim de Proclamar — site styles
   Tokens first; one accent (gold), one ink (deep navy), warm paper surfaces.
   Two hues reach the screen and they do different jobs: --accent says what to click,
   --logo says whose site this is. Never swap them. */

:root {
  --paper: #f6f1e8;
  --paper-2: #efe7d8;
  --paper-3: #e7ddca;
  --white: #fffdf8;
  --ink: #1b2a41;
  --ink-2: #2a3547;
  --text: #2d3441;
  --muted: #5f6673;
  --line: #e0d6c3;
  --line-strong: #cdbfa4;
  --accent: #b8862b;
  --accent-ink: #8a6418;
  --accent-soft: #f3e6c7;
  /* The mission's own blue, sampled from its artwork (research/brand/). A brand colour with one
     job - the mark - and deliberately not an interface colour: it scores 2.32:1 on --paper, so it
     can never be text, a border or a focus ring. Kept separate from --accent so the two never get
     confused; on --navy it measures 5.52:1. */
  --logo: #65A6E2;
  --navy: #1b2a41;
  --navy-2: #233550;
  --on-navy: #f3ede2;
  --on-navy-muted: #b9c0cc;
  --focus: #8a6418;

  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --measure: 66ch;
  --shadow-1: 0 1px 2px rgba(27, 42, 65, 0.08), 0 2px 8px rgba(27, 42, 65, 0.06);
  --shadow-2: 0 8px 24px rgba(27, 42, 65, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.3rem; line-height: 1.3; }
.display-1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.display-2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.kicker {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 var(--s-3);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: var(--s-3); }
.muted { color: var(--muted); }
.signature { font-style: italic; color: var(--muted); }
.container { width: min(var(--container), 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons: padding ≈ half height, radius ≈ ¼ height, label 600; six states */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 60ms ease, box-shadow 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--shadow-1); }
.btn-primary:hover { background: #142034; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.95rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.actions-center { justify-content: center; }
.text-link { font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
/* The mark paints itself from --logo; nothing here sets its colour. */
.brand .mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand-a { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.brand-b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.lang { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 8px; font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.lang:hover { background: var(--paper-2); color: var(--ink); }
.header-lang { margin-left: -4px; }
.menu-lang { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.footer-legal-right { display: inline-flex; align-items: center; gap: var(--s-3); }
/* LangLinks replaces the class rather than adding to it, so .lang never applies here: this rule has
   to stand alone. inline-flex + min-height gives the 24px tap target and makes the negative margin
   effective (vertical margins are ignored on inline boxes), so the legal row is unmoved. */
.footer-lang {
  display: inline-flex; align-items: center; min-height: 24px;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--on-navy-muted); text-decoration: none; border-radius: 8px;
  padding: 6px 8px; margin: -6px -8px;
}
.footer-lang:hover { background: none; color: var(--white); }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; display: inline-block; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); min-width: 260px; padding: var(--s-3); }
.menu nav ul { list-style: none; }
.menu nav ul ul { padding-left: var(--s-4); }
.menu nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu nav ul ul a { font-weight: 400; color: var(--ink-2); }
.menu nav a:hover, .menu nav a[aria-current='page'] { background: var(--paper-2); }
@media (max-width: 900px) {
  .nav, .header-cta, .header-lang { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { padding-block: var(--section); }
.hero-home { padding-top: clamp(40px, 6vw, 80px); }
.hero-compact { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 56px); }
.hero-plain { padding-bottom: 0; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .hero-home .hero-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); }
  .hero-compact .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); }
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-2); }
.hero-compact .hero-media img { aspect-ratio: 5 / 4; }
.hero-home .display-1 { margin-bottom: var(--s-4); }
.hero-copy .lead { margin-top: var(--s-4); }

/* Memorial band */
.mem-band { background: var(--navy); color: var(--on-navy); border-top: 2px solid var(--accent); }
.mem-band .kicker { color: #d7b35f; margin-bottom: 4px; }
.mem-band-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5); align-items: center; padding-block: var(--s-6); }
.mem-thumb { width: 72px; height: 108px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.mem-band-title { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 2px; color: #fff; }
.mem-band-text { margin: 0; color: var(--on-navy-muted); max-width: 60ch; }
.mem-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.mem-band .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
@media (max-width: 700px) { .mem-band-row { grid-template-columns: auto 1fr; } .mem-band .btn { grid-column: 1 / -1; justify-self: start; } }

/* Memorial hero */
.mem-hero { padding-block: clamp(40px, 6vw, 80px) var(--s-7); }
.mem-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .mem-grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.mem-portrait { margin: 0; }
/* 3 / 4, not 2 / 3: the hero photo is a frame from the mission's own farewell reel and its full
   height is all there is. A 2 / 3 box would have object-fit trim 53 px off each side and clip the
   child's ear. The band thumb (.mem-thumb) is a different image and stays 2 / 3. */
.mem-portrait img { width: 100%; max-width: 460px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-2); }
.mem-portrait figcaption, .figure figcaption, .thumb-cap { font-size: 0.9rem; color: var(--muted); margin-top: var(--s-3); }
.mem-dates { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); margin: var(--s-2) 0 0; }
.mem-copy .lead { margin-top: var(--s-5); }

/* Sections */
.section-head { max-width: 60ch; margin-bottom: var(--s-7); }
.section-intro { margin-top: var(--s-3); color: var(--ink-2); font-size: 1.125rem; }
.prose-section, .details-section, .donate-section { padding-block: clamp(40px, 5vw, 64px); }
.prose { max-width: none; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-bottom: var(--s-4); }
.prose .kicker + h2 { margin-top: 0; }
.prose p { font-size: 1.125rem; line-height: 1.65; }
.prose p + p { margin-top: 0; }
.list { padding-left: 1.2em; font-size: 1.125rem; line-height: 1.6; }
.list li { margin-bottom: var(--s-2); padding-left: 4px; }
.list li::marker { color: var(--accent); }

.quote-section { padding-block: clamp(40px, 5vw, 64px); }
.quote { margin: 0 auto; max-width: none; border-left: 1px solid var(--line-strong); padding-left: clamp(16px, 3vw, 32px); }
.quote > * { max-width: 56ch; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.35; color: var(--ink); font-style: italic; font-weight: 400; }
.quote figcaption { color: var(--muted); font-size: 0.95rem; }
.quote figcaption::before { content: '— '; }

.figure-section { padding-block: clamp(24px, 4vw, 48px); }
.figure { margin: 0 auto; }
.figure img { width: 100%; border-radius: var(--radius); }

.cards-section, .steps-section, .video-section, .videos-section, .gallery-section, .contact-section { padding-block: var(--section); }
.cards-section + .cards-section, .gallery-section + .cta-section { padding-top: 0; }
.cards { display: grid; gap: var(--s-5); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); color: inherit; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cards-2 .card-media img { aspect-ratio: 16 / 10; }
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-body p { color: var(--ink-2); margin: 0; flex: 1; }
.card-link { color: var(--accent-ink); font-weight: 600; margin-top: var(--s-2); }
.card:hover .card-link { color: var(--ink); }

.steps { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.step-n { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; color: var(--accent-ink); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.5rem; }
.step p { margin: 0; color: var(--ink-2); flex: 1; }

.cta-section { padding-block: var(--section); }
.cta { text-align: center; max-width: 64ch; }
.cta h2 { margin-bottom: var(--s-3); }
.cta p { color: var(--ink-2); font-size: 1.125rem; }
.cta .actions { margin-top: var(--s-5); }

.details { display: grid; gap: 0; margin: var(--s-4) 0 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 0.95rem; }
.details dd { margin: 0; }
.details-mono dd { font-variant-numeric: tabular-nums; }
.notice { background: var(--accent-soft); border: 1px solid #e3cf98; border-radius: var(--radius); padding: var(--s-5) var(--s-6); margin-top: var(--s-4); }
.notice p { margin: 0; }
.notice .actions { margin-top: var(--s-4); }

/* Galleries */
.gallery-title { margin-bottom: var(--s-5); }
.thumbs { list-style: none; display: grid; gap: var(--s-3); }
.thumbs-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.thumbs-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .thumbs-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .thumbs-4 { grid-template-columns: repeat(4, 1fr); } }
.thumbs a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.thumbs img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 200ms ease; }
.thumbs-4 li { overflow: hidden; border-radius: var(--radius-sm); }
.thumbs-4 li, .thumbs-4 a, .thumbs-4 img { aspect-ratio: 4 / 3; }
.thumbs a:hover img { transform: scale(1.02); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 18, 28, 0.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-7) var(--s-8); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { color: #ddd; font-size: 0.95rem; }
.lightbox img, .lightbox figcaption { cursor: default; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: #fff; border: 0; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { top: 12px !important; right: 12px; transform: none !important; }

/* Video */
.video-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .video-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.video-copy h2 { margin-bottom: var(--s-3); }
.video-copy p { color: var(--ink-2); font-size: 1.125rem; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; display: grid; place-items: center; }
.yt-play { width: 72px; height: 72px; border-radius: 50%; background: rgba(27, 42, 65, 0.85); box-shadow: 0 4px 16px rgba(0,0,0,0.35); position: relative; transition: transform 120ms ease, background-color 120ms ease; }
.yt-play::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.yt button:hover .yt-play { transform: scale(1.06); background: var(--accent); }
.yt iframe { width: 100%; height: 100%; border: 0; }
.yt noscript { position: absolute; bottom: 8px; left: 8px; }
.yt noscript a { color: #fff; }
.videos { list-style: none; display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.videos h3 { margin-top: var(--s-3); font-size: 1.15rem; }
.videos p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: var(--s-9); } }
.form { display: grid; gap: var(--s-5); max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); }
.help { font-size: 0.9rem; color: var(--muted); margin: 0; }
input[type='text'], input[type='email'], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
textarea { min-height: 160px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbeeee; border: 1px solid #e8b9b9; color: #7a2222; border-radius: 10px; padding: var(--s-3) var(--s-4); margin: 0; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-error a:hover { color: #5c1919; }
.contact-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
.contact-aside h2 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.contact-aside ul { list-style: none; margin-bottom: var(--s-3); }
.contact-aside li { padding: 4px 0; }
.form .btn { justify-self: start; }
.form .note { margin-top: calc(-1 * var(--s-3)); }

/* Memorial hero action button, under the lead */
.mem-copy .mem-actions { margin-top: var(--s-5); }

/* Guestbook ("Mensagens") */
.guestbook-section { padding-block: var(--section); }
.gb-banner { margin-bottom: var(--s-6); }
.gb-list { list-style: none; display: grid; gap: var(--s-4); margin: 0 0 var(--s-8); }
.gb-entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-1); }
.gb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin: 0 0 var(--s-2); }
.gb-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.gb-loc { color: var(--muted); font-size: 0.95rem; }
.gb-date { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.gb-msg { margin: 0; color: var(--text); white-space: pre-wrap; }
.gb-empty { color: var(--muted); font-size: 1.05rem; margin: 0 0 var(--s-8); }
.gb-form-wrap { border-top: 1px solid var(--line); padding-top: var(--s-7); }
.gb-form-title { font-size: 1.4rem; margin-bottom: var(--s-2); }
.gb-form-note { margin-bottom: var(--s-5); }
.gb-form { max-width: 640px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: var(--s-9) var(--s-6); margin-top: var(--s-6); }
.footer-top { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.footer-brand { display: grid; gap: var(--s-4); }
.footer-verse { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin: 0; color: #fff; max-width: 46ch; }
.footer-ref { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d7b35f; display: inline-block; margin-top: var(--s-2); }
.footer-about { color: var(--on-navy-muted); margin: 0; max-width: 52ch; align-self: end; }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-block: var(--s-7); }
.footer-h { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: #d7b35f; margin-bottom: var(--s-3); }
.footer-cols ul { list-style: none; }
.footer-cols li { padding: 4px 0; color: var(--on-navy-muted); }
/* inline-block + padding gives each link a 24px+ tap target; negative margin keeps the column rhythm */
.footer-cols a { display: inline-block; padding-block: 4px; margin-block: -4px; color: #fff; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; color: #fff; }
.footer-cols a, .footer-cols li, .contact-aside a { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.12); color: var(--on-navy-muted); font-size: 0.9rem; }

/* Poem quotes and section titles added with the memorial update */
.quote-head { margin-bottom: var(--s-4); }
.quote-head h2 { margin-top: 0; }
.quote-poem p { font-style: normal; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; }
.videos-title { margin-bottom: var(--s-5); }
.videos-section + .videos-section { padding-top: 0; }
