:root {
  color-scheme: light;
  --ink: #07111f;
  --ocean: #072433;
  --hull: #09a6b3;
  --sail: #f7f4ec;
  --brass: #d8a852;
  --ember: #e66535;
  --paper: #fbfaf6;
  --muted: rgba(7, 17, 31, 0.68);
  --radius: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body::selection {
  color: var(--ink);
  background: #f8d27b;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

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

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--ocean);
  color: white;
}

.boot-error {
  white-space: pre-wrap;
  place-items: start;
}

.dg-kicker {
  margin: 0;
  letter-spacing: 0.22em;
}

.dg-button {
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.dg-button:hover {
  transform: translateY(-2px);
}

.dg-button.primary {
  color: var(--ink);
  background: var(--brass);
}

.dg-button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hub-shell {
  min-height: 100vh;
  background:
    linear-gradient(130deg, rgba(9, 166, 179, 0.18), transparent 32%),
    linear-gradient(180deg, #061622 0%, #0b2632 52%, #f7f4ec 52%);
}

.hub-hero {
  min-height: 54vh;
  display: grid;
  align-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 3rem;
  color: white;
}

.hub-nav,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.hub-nav span,
.brand-lockup span {
  font-family: Cinzel, Georgia, serif;
  font-weight: 900;
}

.hub-copy {
  max-width: 58rem;
}

.hub-copy h1 {
  margin: 1rem 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 3rem;
  line-height: 0.98;
  max-width: 14ch;
}

.hub-copy p:last-child {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hub-facts span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.matrix-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
  background: #f7f4ec;
}

.matrix-entry h2 {
  margin: 0.8rem 0 1rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.matrix-entry p {
  color: var(--muted);
  line-height: 1.75;
}

.matrix-entry a {
  font-weight: 900;
}

.matrix-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.matrix-link-grid a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.68);
}

.matrix-link-grid span {
  color: var(--hull);
}

.hub-card {
  min-height: 19rem;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #07111f;
  color: white;
}

.hub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 300ms ease;
}

.hub-card:hover img {
  transform: scale(1.04);
}

.hub-card div {
  position: relative;
  z-index: 1;
  min-height: 9rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.hub-card p,
.hub-card span {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.hub-card h2 {
  margin: 0.35rem 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.design-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-bg, var(--paper));
  color: var(--page-text, var(--ink));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: var(--nav-text, white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-lockup span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header nav {
  flex: 0 1 auto;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.site-header nav a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 900;
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--brass);
}

.hero-stage {
  min-height: 96vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.42fr);
  align-items: end;
  gap: 2rem;
  padding-top: 8rem;
  padding-bottom: 3rem;
  color: white;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.32) 62%, rgba(0, 0, 0, 0.72));
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 56rem;
}

.hero-copy .dg-kicker {
  max-width: calc(100vw - 2.5rem);
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.hero-copy h1 {
  margin: 0.8rem 0 1rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 5rem;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.hero-copy > p:last-of-type {
  width: min(100%, 42rem);
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-card {
  padding: 1.25rem;
  align-self: end;
}

.hero-card p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--metric-bg, var(--ink));
}

.metric-strip article {
  min-height: 8rem;
  display: grid;
  align-items: end;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.06);
}

.metric-strip span {
  color: var(--metric-text, white);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.88fr);
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--story-bg, transparent);
}

.story-visual {
  min-height: 34rem;
  overflow: hidden;
  border-radius: var(--story-radius, 1.6rem);
  background: var(--ink);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  align-self: center;
}

.story-copy h2,
.give-section h2 {
  margin: 1rem 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 3.3rem;
  line-height: 1.02;
}

.story-copy p,
.give-section p {
  color: var(--copy, var(--muted));
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.chapter-grid article,
.doctrine-section article {
  border: 1px solid var(--line, rgba(7, 17, 31, 0.12));
  border-radius: 1rem;
  padding: 1rem;
  background: var(--panel, rgba(255, 255, 255, 0.62));
}

.chapter-grid span {
  color: var(--accent, var(--hull));
  font-weight: 900;
}

.chapter-grid strong {
  display: block;
  margin-top: 0.35rem;
}

.route-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--route-bg, var(--ink));
}

.route-line {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding-bottom: 0.2rem;
}

.route-line span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.doctrine-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.doctrine-section span {
  color: var(--accent, var(--ember));
  font-weight: 900;
  text-transform: uppercase;
}

.doctrine-section p {
  margin: 0.8rem 0 0;
  color: var(--copy, var(--muted));
  line-height: 1.6;
}

.give-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  gap: 2rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--give-bg, #f2efe7);
}

.donation-panel {
  border: 1px solid var(--line, rgba(7, 17, 31, 0.12));
  border-radius: 1.4rem;
  padding: 1.25rem;
  background: var(--donation-bg, white);
  box-shadow: 0 22px 70px rgba(7, 17, 31, 0.14);
}

.donation-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.donation-panel__head strong {
  font-family: Newsreader, Georgia, serif;
  font-size: 2.2rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.amount-grid button,
.donate-action,
.fund-select select {
  width: 100%;
  border: 1px solid var(--line, rgba(7, 17, 31, 0.12));
  border-radius: 0.8rem;
  background: rgba(7, 17, 31, 0.04);
  color: inherit;
}

.amount-grid button {
  padding: 0.8rem 0.2rem;
  cursor: pointer;
  font-weight: 900;
}

.amount-grid button.active {
  color: var(--ink);
  background: var(--brass);
}

.fund-select span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fund-select select {
  padding: 0.85rem;
}

.donate-action {
  margin-top: 1rem;
  padding: 1rem;
  color: white;
  background: var(--action-bg, var(--ink));
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--footer-text, rgba(255, 255, 255, 0.66));
  background: var(--footer-bg, var(--ink));
  font-size: 0.85rem;
}

.site-footer a {
  color: white;
  font-weight: 900;
}
