:root {
  color-scheme: dark;
  --navy: #0b1423;
  --navy-deep: #080f1b;
  --ivory: #f4ebd8;
  --muted: #c3c5cc;
  --gold: #dfbc7b;
  --line: #b99a5e45;
  --display: Georgia, 'Times New Roman', serif;
  font: 100%/1.65 system-ui, sans-serif;
  background: var(--navy);
  color: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible { outline: 2px solid #ffdb99; outline-offset: 5px; }
p { margin: 0 0 1.15rem; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0 0 1rem; }
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 4;
  transform: translateY(-175%);
  padding: .65rem 1rem;
  background: var(--navy);
}
.skip:focus { transform: translateY(0); }
.topbar { background: var(--navy-deep); border-bottom: 1px solid var(--line); }
.nav-shell, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.5rem; }
.nav-shell { min-height: 4.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ivory); }
.wordmark img { width: 3rem; height: auto; }
.wordmark span { font: 1.27rem var(--display); letter-spacing: .045em; }
.topbar nav, .footer nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.8rem, 3vw, 2rem); }
.topbar nav a, .footer a { color: var(--muted); text-decoration: none; padding: .55rem 0; }
.topbar nav a[aria-current], .topbar nav a:hover, .footer a:hover { color: var(--gold); }
.topbar nav a[aria-current] { box-shadow: 0 1px var(--gold); }

.hero { isolation: isolate; position: relative; display: grid; place-items: center; min-height: clamp(36rem, 75vh, 47rem); text-align: center; padding: 3.5rem 0; }
.hero-art, .hero-art img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: center 56%; }
.hero::before {
  content: '';
  z-index: -1;
  background:
    linear-gradient(180deg, #070d181c 0%, #0a12214d 56%, var(--navy) 100%),
    radial-gradient(ellipse at 50% 52%, #070d18e0 0%, #070d1899 38%, #070d180b 75%);
}
.hero-contents { display: grid; justify-items: center; padding-bottom: 1.15rem; }
.crest { width: clamp(10rem, 23vw, 16.5rem); height: auto; filter: drop-shadow(0 .4rem .7rem #02060cb3); }
.hero h1 { font-size: clamp(3.2rem, 8.7vw, 8rem); color: #ffe1a2; text-shadow: 0 .16em .24em #03070d; margin: 0 0 .9rem; }
.hero h1 span { display: block; font: 500 clamp(1rem, 2vw, 1.7rem)/1.15 var(--display); letter-spacing: .27em; text-transform: uppercase; color: var(--ivory); }
.hero p { max-width: 36rem; font-size: clamp(1.03rem, 2vw, 1.25rem); text-shadow: 0 2px 8px #03070d; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.button { display: inline-block; padding: .72rem 1.2rem; text-decoration: none; border: 1px solid var(--gold); border-radius: .2rem; font-weight: 600; line-height: 1.35; }
.button.gold { background: var(--gold); color: #142033; }
.button.gold:hover { background: #f1d398; }
.button.quiet { background: #101b2ddd; color: var(--ivory); border-color: #d2b482a6; }
.button.quiet:hover { background: #253349; }
.text-link { text-underline-offset: .24em; }
.text-link:hover { color: #f6d79d; }

.introduction, .app-heading { display: grid; align-items: center; grid-template-columns: 1fr 1.13fr; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.introduction-copy p, .article p, .article li { color: var(--muted); }
.archive-art { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .25rem; }
.world-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: 2.5rem 4rem; border-top: 1px solid var(--line); }
.world-details h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.world-details p, .world-details li { color: var(--muted); }
[id] { scroll-margin-top: 1rem; }
.app-heading { border-bottom: 1px solid var(--line); }
.lead { color: var(--muted); max-width: 39rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.article-wrap { padding-block: 2rem 4rem; }
.article { max-width: 49rem; }
.article section { padding: 1.75rem 0; scroll-margin-top: 1.5rem; }
.article section + section { border-top: 1px solid var(--line); }
.article section > :last-child { margin-bottom: 0; }
.steps { padding-left: 1.6rem; }
.steps li { padding-left: .45rem; margin-bottom: 1rem; }
.steps li::marker { color: var(--gold); }
.steps strong { color: var(--ivory); }
.policy { padding-block: clamp(2.6rem, 6vw, 5.5rem); }
.policy-heading { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.policy-columns { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 4rem); }
.contents { display: grid; align-content: start; align-self: start; position: sticky; top: 1.25rem; margin-top: 1.9rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.contents a { padding-block: .35rem; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; min-height: 4.6rem; padding-block: .85rem; }
.footer-inner span { font-family: var(--display); }

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero { min-height: 35rem; }
  .hero-art img { object-position: 58% center; }
  .hero::before { background: linear-gradient(180deg, #080f1c56, #080f1ca6 28%, #0b1423c9 68%, var(--navy)); }
  .introduction, .app-heading, .policy-columns, .world-details { grid-template-columns: minmax(0, 1fr); }
  .policy-columns { gap: .2rem; }
  .contents { position: static; margin-bottom: .55rem; }
}

@media (max-width: 23rem) {
  .nav-shell { flex-wrap: wrap; justify-content: center; padding: .65rem 0; }
  .hero h1 { font-size: 2.9rem; }
}

.discord-services { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.service-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.service-heading h2 { margin: 0; }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.service-cards article { padding: 1.5rem; border: 1px solid var(--line); background: linear-gradient(145deg, #152135, var(--navy-deep)); }
.service-cards img { width: 5rem; height: auto; border-radius: .25rem; }
.service-cards h3 { margin: 1rem 0 .65rem; font: 500 1.6rem/1.2 var(--display); color: var(--gold); }
.service-cards p { color: var(--muted); }
.service-cards article > :last-child { margin-bottom: 0; }
.article ul { padding-left: 1.3rem; }
.article li + li { margin-top: .65rem; }
