:root {
  color-scheme: dark;
  --ground: #101621;
  --panel: #182131;
  --edge: #354054;
  --ink: #f3ecdf;
  --soft: #bfc9d8;
  --muted: #a5b2c5;
  --gold: #e9c782;
  --title: Georgia, 'Times New Roman', serif;
  font: 100%/1.5 system-ui, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 70% 8%, #202b3d 0, transparent 52rem); }
h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #ffde92; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: .65rem auto auto .65rem; transform: translateY(-180%); background: var(--ink); color: var(--ground); padding: .6rem 1rem; border-radius: 4px; }
.skip:focus { transform: none; }
.masthead { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--edge); }
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; font: 700 1.16rem/1.15 var(--title); flex: 0 0 auto; }
.brand img { display: block; }
.brand small { display: block; margin-top: .18rem; color: var(--muted); font: 650 .62rem/1.15 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
nav { display: flex; gap: clamp(.4rem, 3vw, 2.1rem); align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; font-size: .88rem; font-weight: 560; }
nav a:hover { color: var(--gold); }
main:focus { outline: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); margin-block: 2rem 1.25rem; min-height: 430px; border: 1px solid #4f4b46; border-radius: 14px; overflow: hidden; background: #171e2b; box-shadow: 0 18px 42px #080c1480; }
.hero-copy { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.eyebrow, .atlas-heading { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 750; }
.eyebrow { display: flex; align-items: center; gap: .62rem; }
.diamond { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
h1 { margin-top: .85rem; font: 700 clamp(3.1rem, 6.25vw, 5.75rem)/.96 var(--title); letter-spacing: -.065em; }
h1 span { color: var(--gold); }
.intro { margin-top: 1.2rem; max-width: 35ch; color: var(--soft); font-size: clamp(.98rem, 1.5vw, 1.11rem); line-height: 1.6; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; padding: .83rem 1.13rem; min-height: 51px; border: 1px solid #f4d693; border-radius: 6px; color: #21180f; background: linear-gradient(#efd196, #d6ad64); font-weight: 780; text-decoration: none; box-shadow: 0 3px 12px #090b13a0; }
.button:hover { background: #ffe3a6; }
.button:active { background: #c79a52; }
.file { font-size: .73rem; line-height: 1.55; color: var(--soft); overflow-wrap: anywhere; }
.file span { display: block; color: var(--muted); }
.atlas { position: relative; display: grid; padding: 1rem; min-width: 0; background: #171f2b; border-left: 1px solid #414039; }
.atlas::before { content: ''; position: absolute; inset: 0; background-image: url('atlas.jpg'); background-image: image-set(url('atlas-small.webp') type('image/webp') 1x, url('atlas.webp') type('image/webp') 2x, url('atlas.jpg') type('image/jpeg') 1x); background-size: cover; background-position: center 85%; }
.atlas::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #30476644, #131b2a22 45%, #1017228c), linear-gradient(to top, #0f151e73, transparent 45%); }
.atlas-frame { isolation: isolate; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; gap: .35rem; padding: .84rem .35rem .95rem; border: 1px solid #a08b5963; border-radius: 5px; }
.atlas-heading { text-align: center; }
.compass { display: block; width: min(100%, 330px); height: auto; max-height: 100%; }
.atlas-caption { padding-inline: .4rem; color: #e3d1ab; font: italic 1rem/1.4 var(--title); text-align: center; }
.panels { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
.panel { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--edge); border-radius: 10px; background: var(--panel); scroll-margin-top: 1rem; }
h2 { margin-bottom: .85rem; font: 700 1.8rem/1.1 var(--title); }
.steps, .resources { margin: 0; padding: 0; list-style: none; }
.steps { counter-reset: step; display: grid; gap: .7rem; color: var(--soft); font-size: .91rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.65rem minmax(0, 1fr); gap: .7rem; }
.steps li::before { display: grid; place-items: center; align-self: start; min-height: 23px; border: 1px solid #7d6947; border-radius: 4px; content: counter(step); color: var(--gold); font-size: .73rem; font-weight: 700; }
code { color: #f0daad; overflow-wrap: anywhere; font-size: .93em; }
.owner { margin-bottom: .52rem; color: var(--soft); font-size: .91rem; overflow-wrap: anywhere; }
.owner strong { color: var(--ink); }
.owner span { padding-left: .3rem; color: var(--muted); }
.resources li + li { border-top: 1px solid var(--edge); }
.resources a { display: flex; min-height: 44px; justify-content: space-between; gap: .35rem; align-items: center; color: var(--gold); text-decoration: none; font-size: .93rem; }
.resources a:hover { color: #ffe0a3; }
.resources a:hover > span:first-child { text-decoration: underline; }
.out { font-size: 1.12rem; padding-inline: .3rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; color: var(--muted); font-size: .79rem; margin-block: 1.35rem 0; padding-block: 1rem 1.45rem; border-top: 1px solid var(--edge); }

@media (max-width: 780px) {
  .wrap { width: min(100% - 2rem, 640px); }
  .hero { grid-template-columns: 1fr; margin-top: 1.15rem; }
  .atlas { min-height: 245px; border-left: 0; border-top: 1px solid #414039; }
  .atlas-frame { padding-block: .5rem; }
  .compass { width: min(100%, 162px); }
  .panels { grid-template-columns: 1fr; gap: .85rem; }
  h1 { font-size: clamp(3.1rem, 10vw, 5rem); }
}

@media (max-width: 400px) {
  .masthead { gap: .5rem; min-height: 68px; }
  .brand { gap: .4rem; }
  .brand img { width: 32px; height: 32px; }
  nav { gap: .65rem; }
  nav a { font-size: .76rem; }
  .hero-copy { padding: 1.5rem 1.15rem; }
  h1 { font-size: clamp(2.5rem, 13vw, 3.2rem); }
  .download { margin-top: 1.25rem; }
  .button { width: 100%; }
}
