@font-face {
  font-family: Norwester;
  src: url('/assets/fonts/norwester.woff') format('woff');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --display: Norwester, sans-serif;
  --purple: #bd91ff;
  --blue: #7ab9ff;
  --muted: #b0acbc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #050507;
  color: #f4f1fa;
  font: 16px/1.6 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, .action-card, .social-card { transition: background .2s; }
button:hover, .action-card:hover, .social-card:hover {
  background-color: #241b37;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.shell { width: min(900px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}
.brand { font: 25px/1 var(--display); letter-spacing: .03em; }
.brand span { color: var(--purple); }
.aid-explorer summary { background: #100d18; border-color: #ad81f65c; }
.aid-explorer summary::after { color: var(--purple); }
.site-header .aid-explorer nav { background: #100d18; }
.site-header .aid-explorer nav .explore-aid,
.site-header .aid-explorer nav .explore-contact {
  color: #d3bbff;
  background: #ad81f610;
}
.site-header .aid-explorer nav a:hover { background: #302344; }
main, footer { position: relative; z-index: 1; }
.video-frame {
  position: relative;
  border: 1px solid #b18af066;
  border-radius: 12px;
  overflow: hidden;
  background: #09090c;
  box-shadow: -12px 0 40px #9c56ff24, 12px 0 40px #438cff24;
}
video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.sound-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  color: white;
  background: #08080bc9;
}
.sound-toggle svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.sound-on, .sound-toggle[aria-pressed='true'] .sound-off { display: none; }
.sound-toggle[aria-pressed='true'] .sound-on { display: block; }
.video-tools { display: flex; justify-content: space-between; padding-top: 7px; }
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.text-button { border: 0; background: none; color: #c7b2e8; padding: 0; }
.video-tools button { font-size: 12px; }
.intro { padding-top: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(32px, 5.6vw, 52.8px); margin: 4px 0 7px; }
h1 span, h2 span { color: var(--purple); }
h2 { font-size: 28px; margin: 0 0 10px; }
h3 { font-size: 19px; margin: 15px 0 9px; }
p { margin: 0 0 10px; }
.lead { font-size: 20px; color: #ded7ed; }
.story { max-width: 780px; color: var(--muted); }
.family-quote { color: #d4b8ff; }
.family-quote span { color: var(--muted); white-space: nowrap; }
.support, .connect { margin-top: 23px; }
.story p:last-child { margin-bottom: 0; color: #d4b8ff; }
.support { margin-top: 12px; }
#support-title span { color: var(--blue); }
.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 9px;
  border: 1px solid #a476ef65;
  border-radius: 9px;
  background: #14101e;
  color: #f4f1fa;
  text-align: left;
}
.action-card strong { font-size: 17px; }
.action-card small { display: block; color: #c0b6d2; font-size: 12px; }
.card-icon { font-size: 29px; color: var(--purple); line-height: 1; }
.arrow { margin-left: auto; color: var(--purple); font-size: 23px; }
.campaign { border-color: #6aabf265; background: #0d1623; }
.campaign .card-icon, .campaign .arrow { color: var(--blue); }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-grid.husband { grid-template-columns: repeat(2, 1fr); }
.social-card {
  position: relative;
  min-width: 0;
  padding: 10px 30px 10px 12px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: #111015;
}
.husband .social-card { border-color: var(--blue); }
.social-card strong { font-size: 14px; }
.social-card small { display: block; color: var(--muted); font-size: 11px; }
.social-card > span { position: absolute; top: 12px; right: 12px; color: var(--blue); }
.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(115deg, #1b102a, #0c192b);
}
.share-card h2 { font-size: 24px; margin-bottom: 5px; }
.share-card p { font-size: 13px; color: var(--muted); margin: 0; }
#share-page, #copy-address {
  border: 0;
  border-radius: 6px;
  padding: 11px 15px;
  background: #c5a0ff;
  color: #150b24;
  font-weight: 650;
  white-space: nowrap;
}
#page-status { font-size: 13px; color: var(--blue); margin-top: 7px; }
footer { display: flex; justify-content: space-between; padding-block: 22px; }
footer .brand { font-size: 20px; }
footer p { color: var(--muted); font-size: 12px; }
dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 25px;
  border: 1px solid #9a73cf80;
  border-radius: 14px;
  color: #f4f1fa;
  background: #100d18;
}
dialog::backdrop { background: #000c; backdrop-filter: blur(6px); }
.close-dialog {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: white;
  font-size: 27px;
}
dialog h2 { margin-top: 8px; }
dialog p { font-size: 14px; color: var(--muted); }
.network-choice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 8px 0;
  padding: 15px 12px;
  border: 1px solid #7957ab;
  border-radius: 7px;
  background: #1b1426;
  color: white;
  text-align: left;
}
.network-choice span { font-size: 13px; color: #c5b2e2; }
#wallet-qr {
  display: block;
  width: min(100%, 285px);
  height: auto;
  margin: 12px auto;
  border-radius: 8px;
}
label { display: block; font-size: 13px; }
textarea {
  width: 100%;
  resize: none;
  padding: 10px;
  margin: 5px 0 8px;
  border: 1px solid #76618f;
  border-radius: 6px;
  background: #08060c;
  color: white;
  font: 14px/1.6 monospace;
  word-break: break-all;
}
#wallet-status { margin-top: 10px; }
body:has(dialog[open]) { overflow: hidden; }
.sparkles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sparkles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bc9bff;
  box-shadow: 0 0 7px 2px #9756e888;
  animation: shimmer 4s ease-in-out infinite alternate;
}
.sparkles i:nth-child(even) { background: #83bdff; }
@keyframes shimmer { from { opacity: .25; } to { opacity: .9; } }
@media (max-width: 580px) {
  .shell { width: calc(100% - 24px); }
  .social-grid { grid-template-columns: 1fr; }
  .social-grid.husband { grid-template-columns: 1fr 1fr; }
  .share-card { display: block; }
  #share-page { margin-top: 12px; }
  .story { font-size: 15px; }
  .intro { padding-top: 10px; }
  .action-card { padding: 12px; gap: 10px; }
  .action-card small { font-size: 11px; }
  footer { align-items: center; }
  footer p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
