:root {
  --ink: #1b1b2e;
  --muted: #606074;
  --paper: #fffdf8;
  --sand: #f4eee2;
  --sand-2: #e7dcc7;
  --forest: #111184;
  --forest-2: #070747;
  --brand-gradient: linear-gradient(135deg, #111184 0%, #070747 100%);
  --red: #b4232f;
  --red-dark: #8f1722;
  --gold: #b8893f;
  --white: #ffffff;
  --line: rgba(17, 17, 132, 0.15);
  --shadow: 0 24px 64px rgba(7, 7, 71, 0.16);
  --header-surface: rgba(255, 253, 248, 0.96);
  --card-surface: rgba(255, 255, 255, 0.86);
  --solid-surface: #ffffff;
  --notice-surface: #fff5dc;
  --lead-color: #45455a;
  --prose-color: #45455a;
  --donation-surface: rgba(255, 255, 255, 0.9);
  --donation-pix-surface: linear-gradient(145deg, rgba(17, 17, 132, 0.09), rgba(255, 255, 255, 0.96));
  --pix-copy-surface: rgba(17, 17, 132, 0.06);
  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --content: 74rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(184, 137, 63, 0.08), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

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

picture {
  display: block;
  min-width: 0;
}

a {
  color: var(--forest);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--red-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--forest-2);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.45rem, 7vw, 5.75rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--forest-2);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.topbar {
  padding: 0.55rem 0;
  color: var(--white);
  background: var(--brand-gradient);
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  text-align: center;
}

.topbar a {
  color: var(--white);
  font-weight: 750;
}

.topbar-whatsapp {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar-whatsapp:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar-whatsapp img {
  width: 1.05rem;
  height: 1.05rem;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--header-surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.85rem;
  color: var(--forest-2);
  text-decoration: none;
}

.brand picture {
  flex: 0 0 auto;
}

.brand img {
  width: 4.15rem;
  max-height: 3.75rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-tagline {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

.desktop-nav a {
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 720;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--forest-2);
  background: var(--sand);
}

.desktop-nav .nav-contact {
  margin-left: 0.35rem;
  padding-inline: 1rem;
  color: var(--white);
  background: var(--red);
}

.desktop-nav .nav-contact:hover,
.desktop-nav .nav-contact[aria-current="page"] {
  color: var(--white);
  background: var(--red-dark);
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  color: var(--forest-2);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  border-radius: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a[aria-current="page"] {
  background: var(--sand);
}

.breadcrumb {
  padding: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 0.35rem;
  color: var(--gold);
  content: "/";
}

.breadcrumb a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
}

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3.75rem, 8vw, 7.5rem) 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-grid-text {
  grid-template-columns: minmax(0, 1fr) !important;
}

.hero-grid-text > div {
  max-width: 58rem;
}

.hero-grid-media h1 {
  font-size: clamp(2.45rem, 5vw, 4.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: var(--red);
  content: "";
}

.lead {
  max-width: 44rem;
  margin-bottom: 1.75rem;
  color: var(--lead-color);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--forest-2);
  background: transparent;
  border-color: rgba(17, 17, 132, 0.36);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--brand-gradient);
  border-color: var(--forest);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media::before {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  content: "";
}

.hero-media picture,
.hero-media img {
  width: 100%;
}

.hero-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  max-width: 15rem;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: rgba(7, 7, 71, 0.94);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.trust-strip {
  color: var(--white);
  background: var(--brand-gradient);
}

.trust-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.trust-item {
  padding: 1.35rem;
  background: rgba(7, 7, 71, 0.7);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #f1d6a7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.87rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section-sand {
  background: var(--sand);
}

.section-dark {
  color: rgba(255, 255, 255, 0.84);
  background: var(--brand-gradient);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  display: grid;
  max-width: 50rem;
  margin-bottom: 2.25rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
  background: var(--card-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 7, 71, 0.06);
}

.card p,
.card li {
  color: var(--muted);
}

.card-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.4rem 0;
  font-weight: 800;
}

.ebook-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.ebook-card > picture {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  background: var(--solid-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.ebook-card > picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ebook-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1.25rem;
}

.ebook-card-body .card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
}

.notice {
  padding: 1.2rem 1.35rem;
  background: var(--notice-surface);
  border: 1px solid rgba(184, 137, 63, 0.36);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
}

.notice strong {
  color: var(--forest-2);
}

.statement {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  background: var(--red-dark);
  border-radius: var(--radius-lg);
}

.statement h2,
.statement h3 {
  color: var(--white);
}

.statement p {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.85);
}

.media-split {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.media-split picture,
.media-split img {
  width: 100%;
}

.media-split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  position: absolute;
  top: 0.15rem;
  left: 0;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.event-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--solid-surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-card time {
  color: var(--forest-2);
  font-weight: 850;
}

.event-card h3,
.event-card p {
  margin: 0;
}

.event-card-alert {
  border-left-color: var(--gold);
}

.event-card[hidden],
.agenda-empty[hidden] {
  display: none;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  color: var(--forest-2);
  background: var(--sand);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.definition-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.definition-list div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  color: var(--forest-2);
  font-weight: 850;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--solid-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-list summary {
  padding: 1.15rem 3rem 1.15rem 1.2rem;
  color: var(--forest-2);
  cursor: pointer;
  font-weight: 850;
}

.faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.enrollment-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.registration-form {
  position: relative;
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: var(--forest-2);
  font-weight: 850;
}

.form-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--solid-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}

.form-field input:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(17, 17, 132, 0.22);
  outline-offset: 2px;
}

.form-field input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-consent input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--forest);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--red-dark);
  background: rgba(180, 35, 47, 0.08);
  border: 1px solid rgba(180, 35, 47, 0.28);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-submit {
  justify-content: center;
  width: 100%;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.donation-grid {
  display: grid;
  gap: 1rem;
}

.donation-option {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--forest-2);
  background: var(--donation-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(7, 7, 71, 0.08);
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.donation-option:hover {
  color: var(--forest-2);
  border-color: rgba(17, 17, 132, 0.4);
  box-shadow: 0 18px 44px rgba(7, 7, 71, 0.14);
  transform: translateY(-3px);
}

.donation-option strong {
  max-width: 14rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.donation-value {
  margin-bottom: 0.55rem;
  color: var(--red-dark);
  font-size: 1.05rem;
  font-weight: 850;
}

.donation-action {
  margin-top: 1.2rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.donation-pix {
  border-color: rgba(17, 17, 132, 0.3);
  background: var(--donation-pix-surface);
}

.pix-panel {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.pix-qr {
  width: min(100%, 26rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pix-qr img {
  width: 100%;
}

.pix-details {
  margin: 1.5rem 0;
}

.pix-copy-box {
  max-height: 8.5rem;
  margin: 1.5rem 0;
  overflow: auto;
  padding: 1rem;
  background: var(--pix-copy-surface);
  border: 1px solid rgba(17, 17, 132, 0.18);
  border-radius: var(--radius-sm);
}

.pix-copy-box code {
  color: var(--forest-2);
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  user-select: all;
}

.pix-copy-status {
  margin-top: 0.8rem;
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-panel > div {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--solid-surface);
}

.contact-panel a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.map-placeholder {
  display: grid;
  min-height: 21rem;
  padding: 2rem;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(7, 7, 71, 0.9), rgba(17, 17, 132, 0.88)),
    url('/assets/conga-ctuca.jpg') center / cover;
  background-image:
    linear-gradient(rgba(7, 7, 71, 0.9), rgba(17, 17, 132, 0.88)),
    image-set(url('/assets/conga-ctuca.webp') type('image/webp'), url('/assets/conga-ctuca.jpg') type('image/jpeg'));
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
}

.map-placeholder h2,
.map-placeholder p {
  color: var(--white);
}

.prose {
  width: min(100%, 50rem);
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  color: var(--prose-color);
}

.prose li + li {
  margin-top: 0.4rem;
}

.small {
  color: var(--muted);
  font-size: 0.86rem;
}

.cta-band {
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
}

.cta-band h2 {
  max-width: 20ch;
  color: var(--white);
}

.cta-band p {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-gradient);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand-tagline,
.footer-brand p {
  color: rgba(255, 255, 255, 0.66);
}

.footer-brand p {
  max-width: 34rem;
  margin-top: 1rem;
}

.footer-title {
  margin-bottom: 0.8rem;
  color: #f0d29c;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.footer-bottom a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin-inline: auto;
  font-size: clamp(4rem, 15vw, 9rem);
}

@media (min-width: 42rem) {
  .container {
    width: min(calc(100% - 3rem), var(--content));
  }

  .grid-2,
  .trust-grid,
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(10rem, 1fr));
  }
}

@media (min-width: 64rem) {
  .hero-grid,
  .media-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.92fr);
  }

  .enrollment-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero-media img {
    min-height: 34rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .donation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pix-panel {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 72rem) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    gap: 0.65rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand img {
    width: 3.25rem;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-tagline {
    max-width: 10.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }

  .actions .button {
    width: 100%;
  }

  .hero-note {
    position: static;
    max-width: none;
    margin-top: 0.75rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4ff;
    --muted: #bbbcd0;
    --paper: #09091b;
    --sand: #12122d;
    --sand-2: #1c1c42;
    --forest: #aeb2ff;
    --forest-2: #f5f5ff;
    --gold: #e7bd70;
    --line: rgba(174, 178, 255, 0.22);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    --header-surface: rgba(9, 9, 27, 0.96);
    --card-surface: rgba(18, 18, 45, 0.94);
    --solid-surface: #11112b;
    --notice-surface: #241f16;
    --lead-color: #d4d5e8;
    --prose-color: #d4d5e8;
    --donation-surface: rgba(17, 17, 43, 0.96);
    --donation-pix-surface: linear-gradient(145deg, rgba(71, 71, 185, 0.35), rgba(17, 17, 43, 0.98));
    --pix-copy-surface: rgba(174, 178, 255, 0.1);
  }

  html {
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at 7% 4%, rgba(231, 189, 112, 0.08), transparent 24rem),
      var(--paper);
  }

  a:hover,
  .eyebrow,
  .donation-value {
    color: #ff98a0;
  }

  .site-header {
    backdrop-filter: blur(16px);
  }

  .button,
  .desktop-nav .nav-contact {
    background: #a51f2b;
    border-color: #a51f2b;
  }

  .button:hover,
  .desktop-nav .nav-contact:hover,
  .desktop-nav .nav-contact[aria-current="page"] {
    background: #c12b39;
    border-color: #c12b39;
  }

  .button-secondary {
    color: var(--forest-2);
    background: transparent;
    border-color: rgba(174, 178, 255, 0.48);
  }

  .notice {
    border-color: rgba(231, 189, 112, 0.42);
  }

  .hero-media img,
  .media-split img {
    border-color: rgba(174, 178, 255, 0.24);
  }

  .donation-option:hover {
    border-color: rgba(174, 178, 255, 0.55);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  }

  .pix-qr {
    border-color: rgba(174, 178, 255, 0.3);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .actions,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
