:root{
  --bg:#0f2b3d;
  --bg2:#0a1f2c;
  --card:#123847;
  --cream:#f5efe3;
  --muted:#9fb4bf;
  --gold:#d4a24c;
  --gold-soft:#e9c98a;
  --line:rgba(245,239,227,0.14);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f5efe3;
    --bg2:#eee4cf;
    --card:#ffffff;
    --cream:#12222c;
    --muted:#5c6f78;
    --gold:#b9822f;
    --gold-soft:#8a5f1f;
    --line:rgba(18,34,44,0.12);
  }
}
:root[data-theme="dark"]{
  --bg:#0f2b3d;
  --bg2:#0a1f2c;
  --card:#123847;
  --cream:#f5efe3;
  --muted:#9fb4bf;
  --gold:#d4a24c;
  --gold-soft:#e9c98a;
  --line:rgba(245,239,227,0.14);
}

*{box-sizing:border-box;}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg2), transparent 60%),
    var(--bg);
  color:var(--cream);
  font-family:'Inter', -apple-system, Segoe UI, sans-serif;
  min-height:100vh;
  padding-block:56px;
  padding-inline:16px;
  display:flex;
  justify-content:center;
  position:relative;
  overflow-x:hidden;
}
.compass{
  position:fixed;
  top:-120px;right:-120px;
  width:340px;height:340px;
  opacity:0.06;
  pointer-events:none;
  z-index:0;
}
.compass svg{width:100%;height:100%;stroke:var(--gold);}
.page{
  width:100%;
  max-width:640px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
  position:relative;
  z-index:1;
}
.page.narrow{max-width:480px;}
@keyframes rise{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}
.rise{animation:rise 0.6s cubic-bezier(.2,.7,.3,1) both;}
@media (prefers-reduced-motion: reduce){
  .rise{animation:none;}
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(212,162,76,0.12);
  border:1px solid rgba(212,162,76,0.35);
  color:var(--gold);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.4px;
}
.badge svg{width:13px;height:13px;}
.crest{
  width:80px;height:80px;border-radius:22px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg, var(--gold-soft), var(--gold));
  box-shadow:0 14px 34px rgba(212,162,76,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  font-family:'Playfair Display', Georgia, serif;
  font-weight:700;
  font-size:27px;
  color:var(--bg2);
  letter-spacing:1px;
  position:relative;
}
.crest::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:26px;
  border:1px solid rgba(212,162,76,0.35);
}
h1{
  font-family:'Playfair Display', Georgia, serif;
  font-weight:600;
  font-size:clamp(28px,7vw,37px);
  margin:0;
  text-align:center;
  text-wrap:balance;
  letter-spacing:0.3px;
}
h1 em{
  font-style:normal;
  color:var(--gold);
}
.tagline{
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:14.5px;
  letter-spacing:0.3px;
  max-width:420px;
  line-height:1.55;
}
.eyebrow{
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:2.5px;
  color:var(--gold);
  font-weight:600;
}

.links{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}
.linkcard{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:16px 18px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--cream);
  text-decoration:none;
  transition:transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position:relative;
}
.linkcard:hover{
  transform:translateY(-2px);
  border-color:var(--gold);
  box-shadow:0 10px 28px rgba(0,0,0,0.2);
}
.linkcard:active{transform:translateY(0);}
.linkcard.featured{
  background:linear-gradient(135deg, rgba(212,162,76,0.16), var(--card) 60%);
  border-color:rgba(212,162,76,0.4);
}
.pulse{
  position:absolute;
  top:12px;right:14px;
  width:8px;height:8px;
  border-radius:50%;
  background:#e0464a;
  box-shadow:0 0 0 rgba(224,70,74,0.5);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(224,70,74,0.5);}
  70%{box-shadow:0 0 0 7px rgba(224,70,74,0);}
  100%{box-shadow:0 0 0 0 rgba(224,70,74,0);}
}
@media (prefers-reduced-motion: reduce){
  .pulse{animation:none;}
}
.linkcard:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.icon{
  flex:none;
  width:42px;height:42px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(212,162,76,0.14);
  color:var(--gold);
}
.icon svg{width:21px;height:21px;}
.linktext{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.linktext strong{
  font-size:15.5px;
  font-weight:600;
}
.linktext span{
  font-size:12.5px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.arrow{
  margin-left:auto;
  color:var(--muted);
  flex:none;
}

.divider{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  margin:10px 0 -2px;
}
.divider::before, .divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.socials{
  display:flex;
  gap:12px;
}
.social{
  width:44px;height:44px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--cream);
  text-decoration:none;
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.social:hover{border-color:var(--gold);transform:translateY(-2px);}
.social svg{width:19px;height:19px;}

footer{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}
footer a{color:var(--gold);text-decoration:none;}

.topbar{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.topbar .brand{
  display:flex;align-items:center;gap:8px;
  font-family:'Playfair Display', Georgia, serif;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  color:var(--cream);
}
.topbar .mark{
  width:28px;height:28px;border-radius:8px;
  background:linear-gradient(160deg, var(--gold-soft), var(--gold));
  display:flex;align-items:center;justify-content:center;
  color:var(--bg2);font-weight:700;font-size:12px;
}
.signin{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--cream);
  text-decoration:none;
  font-size:12.5px;
  font-weight:600;
  transition:border-color .15s ease;
}
.signin:hover{border-color:var(--gold);}
.signin svg{width:14px;height:14px;}

.section{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.section-head h2{
  font-family:'Playfair Display', Georgia, serif;
  font-size:19px;
  font-weight:600;
  margin:0;
}
.section-head span{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:1.5px;
}

.pillgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.pill{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px;
  border-radius:12px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--cream);
  text-decoration:none;
  transition:transform 0.15s ease, border-color 0.15s ease;
}
.pill:hover{transform:translateY(-2px);border-color:var(--gold);}
.pill strong{font-size:13.5px;font-weight:600;}
.pill span{font-size:11px;color:var(--muted);}

.donate-card{
  width:100%;
  border-radius:16px;
  padding:22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(212,162,76,0.25), transparent 60%),
    var(--card);
  border:1px solid rgba(212,162,76,0.35);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.donate-card h3, .donate-card h1{
  margin:0;
  font-family:'Playfair Display', Georgia, serif;
  font-size:21px;
}
.donate-card p{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.55;
}
.btn-gold{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 18px;
  border-radius:12px;
  background:linear-gradient(160deg, var(--gold-soft), var(--gold));
  color:var(--bg2);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  align-self:flex-start;
}
.btn-gold svg{width:16px;height:16px;}

.about-card{
  width:100%;
  padding:18px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13.5px;
  line-height:1.7;
}
.about-card strong{color:var(--cream);}

.chapters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  padding:7px 13px;
  border-radius:999px;
  background:var(--card);
  border:1px solid var(--line);
  font-size:12px;
  color:var(--cream);
}

.promo{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  transform:translate(-50%, 130%);
  width:min(400px, calc(100% - 32px));
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--gold);
  box-shadow:0 16px 40px rgba(0,0,0,0.3);
  text-decoration:none;
  color:var(--cream);
  transition:transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.promo.show{transform:translate(-50%, 0);}
.promo .icon{background:rgba(212,162,76,0.16);}
.promo-text{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1;}
.promo-text b{font-size:13.5px;font-weight:700;}
.promo-text span{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.promo-close{
  flex:none;
  width:24px;height:24px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);
  background:transparent;
  border:none;
  cursor:pointer;
}
.promo-close:hover{color:var(--cream);}
@media (prefers-reduced-motion: reduce){
  .promo{transition:none;}
}

.breadcrumb{
  font-size:12px;
  color:var(--muted);
  align-self:flex-start;
}
.breadcrumb a{color:var(--gold);text-decoration:none;}

.prose{
  width:100%;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
  color:var(--muted);
  font-size:14px;
  line-height:1.75;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.prose h2{
  font-family:'Playfair Display', Georgia, serif;
  color:var(--cream);
  font-size:18px;
  margin:0 0 -6px;
}
.prose strong{color:var(--cream);}
