@font-face {
  font-family:Myriad;
  src:url("./fonts/MyriadPro-Regular.woff2") format("woff2");
  font-display:swap;
}

@font-face {
  font-family:Myriad;
  src:url("./fonts/MyriadPro-Semibold.woff2") format("woff2");
  font-weight:600 800;
  font-display:swap;
}

:root {
  color-scheme:dark;
  --bg:#080f1b;
  --panel:#101e30;
  --text:#f3f4f3;
  --soft:#bbc7d7;
  --ice:#a9ddfb;
  --blue:#64baf2;
  --border:#2c435b;
  --serif:Georgia,"Times New Roman",serif;
  --head:74px;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--head) + 12px);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--text);
  background:var(--bg);
  font:17px/1.5 Myriad,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,summary,input {
  font:inherit;
}

button,summary {
  cursor:pointer;
}

button {
  color:inherit;
}

button {
  border:0;
  background:none;
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {
  outline:2px solid #c3eafa;
  outline-offset:4px;
}

img {
  display:block;
  max-width:100%;
}

[hidden] {
  display:none!important;
}

.icon {
  width:21px;
  height:21px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.55;
}

.sprite {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

h1,h2,h3,h4,p {
  margin:0;
}

h1,h2,h3,h4 {
  font-family:var(--serif);
  font-weight:400;
}

strong {
  font-weight:600;
  color:#e0edfa;
}

.skip {
  position:fixed;
  z-index:80;
  top:8px;
  left:8px;
  transform:translateY(-200%);
  padding:8px 16px;
  background:#152d44;
}

.skip:focus {
  transform:none;
}

.topbar {
  height:var(--head);
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(8,16,29,.97);
  border-bottom:1px solid #2a394c;
}

.top-inner {
  height:100%;
  width:min(100% - 64px,1736px);
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
}

.brand {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  height:100%;
}

.brand img {
  width:94px;
  height:60px;
  object-fit:contain;
}

.site-links {
  display:flex;
  align-items:stretch;
  align-self:stretch;
  gap:clamp(12px,1.5vw,30px);
}

.site-links a {
  display:flex;
  align-items:center;
  position:relative;
  color:#c4cfdd;
  font-size:15px;
  white-space:nowrap;
}

.site-links a:hover,.site-links a[aria-current] {
  color:#fff;
}

.site-links a[aria-current]:after {
  content:"";
  position:absolute;
  bottom:13px;
  left:calc(50% - 2px);
  width:4px;
  height:4px;
  background:var(--blue);
  transform:rotate(45deg);
}

.top-tools {
  display:flex;
  align-items:center;
  gap:18px;
  flex:none;
}

.discord,.cta,.glass-btn,.quiet-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:600;
}

.discord {
  border:1px solid #445f79;
  background:#132740;
  color:#e3effd;
  border-radius:4px;
  padding:8px 15px;
  font-size:15px;
}

.discord:hover,.glass-btn:hover {
  background:#234563;
  border-color:#84b4dd;
}

.discord .icon {
  width:18px;
}

#language-menu {
  position:relative;
}

#language-menu summary {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  list-style:none;
  white-space:nowrap;
  font-size:15px;
}

summary::-webkit-details-marker {
  display:none;
}

summary .icon {
  width:12px;
}

#language-menu[open] summary .icon {
  transform:rotate(180deg);
}

.language-pop {
  position:absolute;
  right:-5px;
  top:calc(100% + 8px);
  min-width:215px;
  max-height:calc(100dvh - var(--head) - 16px);
  overflow:auto;
  background:#101e30;
  border:1px solid #3d556d;
  border-radius:5px;
  padding:12px;
  box-shadow:0 18px 40px #0009;
}

.small-label,.rail-label,.section-index,.kicker,.legend,.cue {
  font-size:11px;
  text-transform:uppercase;
  font-weight:600;
  letter-spacing:.19em;
}

.language-pop .small-label {
  font-size:11px;
  letter-spacing:.08em;
  color:var(--soft);
  padding:1px 6px 9px;
}

button[data-language] {
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  min-height:35px;
}

.language-pop button {
  width:100%;
  padding:3px 8px;
  border-radius:3px;
  font-size:15px;
}

.language-pop button:hover,.language-pop button[aria-pressed=true] {
  background:#203a52;
}

.selected-marker {
  margin-left:auto;
  color:var(--ice);
  visibility:hidden;
}

button[aria-pressed=true]>.selected-marker {
  visibility:visible;
}

.icon-btn {
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  border-radius:4px;
  color:var(--ice);
}

.icon-btn:hover {
  background:#20344b;
}

#nav-toggle {
  display:none;
}

#read-progress {
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#83d4ff;
  transform:scaleX(0);
  transform-origin:left;
  pointer-events:none;
}

.hero {
  position:relative;
  isolation:isolate;
  background:#111f33;
  min-height:580px;
  height:clamp(580px,73vh,805px);
  display:flex;
  flex-flow:column;
  justify-content:center;
  overflow:hidden;
}

.hero-art,.hero-art img,.hero-shade {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2;
}

.hero-art img {
  object-fit:cover;
  object-position:64% 44%;
}

.hero-shade {
  z-index:-1;
  background:linear-gradient(90deg,rgba(4,11,22,.91) 0%,rgba(6,15,29,.70) 24%,rgba(6,16,31,.25) 50%,rgba(6,17,31,.02) 72%),linear-gradient(0deg,#081322 0%,rgba(8,19,34,.93) 5%,rgba(8,19,34,.35) 25%,transparent 53%);
}

.hero-inner,.hero-floor {
  width:min(84%,1460px);
  margin:0 auto;
}

.hero-inner {
  padding:30px 0 124px;
}

.hero-copy {
  width:min(700px,63%);
}

.legend {
  display:flex;
  align-items:center;
  gap:11px;
  color:#c2dcee;
  font-size:12px;
  letter-spacing:.24em;
}

.legend>span {
  width:33px;
  height:1px;
  background:#95bad1;
}

.legend>.icon {
  width:17px;
  height:17px;
}

.legend i {
  display:inline-block;
  width:3px;
  height:3px;
  background:#a8c6de;
  transform:rotate(45deg);
}

.hero h1 {
  margin:22px 0 19px;
  font-size:clamp(78px,7.8vw,130px);
  line-height:.90;
  letter-spacing:-.064em;
  color:#fff9ee;
  text-shadow:0 3px 20px #060f1a38;
}

.hero h1 em {
  display:inline-block;
  font-weight:400;
  letter-spacing:-.063em;
  color:#b9ddf4;
}

.hero-copy>p {
  color:#d7e2ed;
  font-size:clamp(18px,1.42vw,23px);
  max-width:500px;
  line-height:1.48;
}

.hero-copy>p strong {
  color:#e4f3ff;
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:25px;
  margin-top:29px;
}

.cta {
  color:#092239;
  background:linear-gradient(105deg,#d3ecfc,#8ac9f1);
  border:1px solid #c1eaff;
  border-radius:3px;
  min-height:46px;
  padding:12px 20px;
  line-height:1.2;
  box-shadow:0 4px 24px #092e4b55;
}

.cta:hover {
  background:#e3f4ff;
}

.cta .icon {
  width:16px;
  height:16px;
}

.quiet-btn {
  font-size:16px;
  color:#e3effb;
}

.quiet-btn .icon {
  width:17px;
}

.quiet-btn:hover {
  color:var(--ice);
}

.hero-floor {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  align-items:center;
  gap:clamp(28px,5vw,88px);
  padding:20px 0 24px;
}

.hero-floor:before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:linear-gradient(90deg,#6589a35e,#9cc3df33,transparent);
}

.metric {
  display:flex;
  align-items:center;
  gap:15px;
}

.metric-icon {
  width:36px;
  height:36px;
  border:1px solid #69859a7a;
  transform:rotate(45deg);
  display:grid;
  place-items:center;
}

.metric-icon .icon {
  color:#b2d9f2;
  transform:rotate(-45deg);
  width:19px;
  height:19px;
}

.metric>div {
  display:flex;
  flex-direction:column;
}

.metric b {
  font:32px/1.05 var(--serif);
  color:#e6f0f5;
  font-variant-numeric:lining-nums;
}

.metric>div>span {
  color:#bbccdc;
  font-size:13px;
  margin-top:3px;
}

.cue {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:13px;
  color:#d6e5f1;
  font-size:10px;
}

.cue .icon {
  width:14px;
  height:19px;
}

.reading {
  width:min(94%,1450px);
  margin:auto;
  display:grid;
  grid-template-columns:165px minmax(0,1fr);
  gap:clamp(24px,3.5vw,66px);
  padding-right:clamp(2px,4vw,70px);
}

.rail {
  min-width:0;
}

.rail-inner {
  position:sticky;
  top:calc(var(--head) + 45px);
  padding-block:60px;
}

.rail-label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  color:#a9c4d8;
  margin-bottom:20px;
}

.rail-label>.icon {
  width:18px;
  height:18px;
}

.chapter-nav {
  display:grid;
  gap:5px;
}

.chapter-nav a {
  display:flex;
  align-items:center;
  gap:10px;
  color:#a3b1c5;
  font-size:16px;
  min-height:40px;
  padding:7px 8px 7px 14px;
  border-left:1px solid #294056;
}

.chapter-nav a .icon {
  width:16px;
  opacity:.8;
}

.chapter-nav a:hover,.chapter-nav a[aria-current=location] {
  color:#dceefd;
  background:linear-gradient(90deg,#27445d93,transparent);
  border-color:#8ccdf4;
}

.chapters {
  min-width:0;
}

.chapter {
  padding-block:69px 35px;
  scroll-margin-top:0;
}

.chapter-heading {
  text-align:center;
  max-width:820px;
  margin:0 auto 32px;
}

.ornament {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  height:13px;
  color:#6589a4;
}

.ornament i {
  display:block;
  width:clamp(36px,8vw,110px);
  height:1px;
  background:linear-gradient(90deg,transparent,#577895);
}

.ornament i:last-child {
  transform:rotate(180deg);
}

.ornament b,.ornament em {
  display:block;
  width:4px;
  height:4px;
  border:1px solid #6692af;
  transform:rotate(45deg);
}

.ornament em {
  width:8px;
  height:8px;
  background:#a0cbe9;
}

.section-index {
  color:#9dbbd2;
  margin-top:13px;
  font-size:10px;
}

.chapter h2,footer h2 {
  font-size:clamp(42px,4.9vw,76px);
  line-height:1.06;
  letter-spacing:-.055em;
  color:#f3f1ed;
  margin:9px auto 13px;
  text-wrap:balance;
}

.intro {
  max-width:650px;
  margin:auto;
  color:var(--soft);
  font-size:19px;
  line-height:1.5;
  text-wrap:pretty;
}

.lang-select h3 {
  font-size:clamp(32px,3.2vw,52px);
  line-height:1.08;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.lang-select>p,.extras {
  font-size:18px;
  line-height:1.55;
  color:var(--soft);
}

.lang-atlas {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  align-items:center;
  gap:clamp(15px,3vw,50px);
  padding:24px 0 14px;
  scroll-margin-top:10px;
}

.lang-illustration {
  position:relative;
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  isolation:isolate;
  background:radial-gradient(ellipse at center,#1b476a60,transparent 65%);
}

.lang-illustration>strong {
  font:italic clamp(70px,7.2vw,114px)/1 var(--serif);
  letter-spacing:-.1em;
  padding-right:.1em;
  color:#cbe7f6;
}

.lang-illustration>span {
  text-transform:uppercase;
  letter-spacing:.24em;
  font-size:12px;
  color:var(--ice);
  font-weight:600;
}

.celestial {
  position:absolute;
  z-index:-1;
  top:50%;
  left:50%;
  width:min(94%,280px);
  aspect-ratio:1;
  border:1px solid #5985a65c;
  border-radius:50%;
  transform:translate(-50%,-50%) rotate(-23deg);
  box-shadow:0 0 0 7px #080f1b,0 0 0 8px #34495d88;
}

.celestial i,.celestial b,.celestial em,.celestial span {
  position:absolute;
  inset:0 21%;
  border:1px solid #5284a43c;
  border-radius:50%;
}

.celestial b {
  inset:0 38%;
}

.celestial em {
  inset:27% 0;
}

.celestial span {
  inset:43% 0;
}

.atlas-symbol {
  position:absolute;
  top:6px;
  left:50%;
  color:#9fcff1;
  background:var(--bg);
  padding:0 8px;
  transform:translateX(-50%);
}

.lang-select h3 {
  font-size:clamp(28px,2.7vw,42px);
}

.lang-select>p {
  margin:10px 0 18px;
}

.lang-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.lang-grid button {
  min-height:36px;
  border-bottom:1px solid #314154;
  padding:4px 5px;
  color:#c1d0df;
  gap:6px;
  font-size:16px;
}

.lang-grid button img {
  width:23px;
  height:23px;
}

.lang-grid button:hover,.lang-grid button[aria-pressed=true] {
  background:#112339;
  border-color:#79b2d9;
  color:#fff;
}

.kicker {
  display:flex;
  align-items:center;
  gap:8px;
  color:#b3cde2;
  letter-spacing:.12em;
}

.kicker .icon {
  width:16px;
}

.glass-btn {
  font-size:15px;
  border:1px solid #6179919e;
  border-radius:3px;
  background:#132539ba;
  padding:8px 14px;
}

.glass-btn .icon {
  width:17px;
}

.item-select {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
}

.item-select button {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  font-size:13px;
  line-height:1.2;
  color:#adbdcf;
  padding:2px 0;
  overflow-wrap:anywhere;
}

.item-icon {
  height:55px;
  width:55px;
  display:grid;
  place-items:center;
  color:#bbac87;
  background:radial-gradient(circle at 55% 45%,#34475c,#101a26 80%);
  border:1px solid #485b6c;
  border-radius:3px;
}

.item-icon img {
  width:46px;
  height:46px;
  object-fit:contain;
}

.item-icon>.icon {
  width:29px;
  height:29px;
}

.item-select button[aria-pressed=true] .item-icon,.item-select button:hover .item-icon {
  border-color:#9ccde8;
  box-shadow:0 0 14px #78b8e225;
}

.item-select button[aria-pressed=true] {
  color:#e6f5ff;
}

.extras {
  text-align:center;
  font-size:16px;
  max-width:705px;
  margin:19px auto 0;
}

.level-picker {
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 23px;
  background:#101e30;
  color:#d3e5ef;
}

.level-picker label {
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:600;
  white-space:nowrap;
}

.level-picker label .icon {
  color:var(--ice);
}

#level-range {
  flex:1;
  min-width:70px;
  accent-color:#91cef1;
  cursor:pointer;
}

#level-output {
  min-width:43px;
  text-align:center;
  font:23px var(--serif);
  color:#c7e9ff;
}

.route-steps {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:3px;
  padding:14px 0;
}

.route-steps button {
  color:#a7bacd;
  font-size:17px;
  padding:10px 4px;
  border-bottom:1px solid #33485a;
  font-variant-numeric:tabular-nums;
}

.route-steps button[aria-pressed=true],.route-steps button:hover {
  background:linear-gradient(0deg,#213c5480,transparent);
  border-color:#97d4f8;
  color:#d7ecff;
}

footer {
  text-align:center;
  padding:65px 5vw 20px;
  margin-top:40px;
  background:radial-gradient(ellipse at 50% 100%,#213b576f,transparent 69%),#091321;
}

footer h2 {
  font-size:clamp(35px,3.75vw,60px);
  margin:22px auto 10px;
}

footer p {
  color:var(--soft);
  font-size:18px;
}

.footer-discord {
  margin-top:20px;
  font-size:17px;
  padding:11px 22px;
}

.colophon {
  width:min(100%,1320px);
  margin:45px auto 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #28394b;
  padding-top:15px;
  font-size:13px;
  color:#99aabd;
}

.colophon a {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
}

.colophon .icon {
  width:17px;
  transform:rotate(180deg);
}

.dialog-open {
  overflow:hidden;
}

dialog {
  background:#0e1b2c;
  color:var(--text);
  border:1px solid #40576f;
  box-shadow:0 30px 100px #0009;
}

dialog::backdrop {
  background:#050b14cc;
  backdrop-filter:blur(5px);
}

#nav-drawer {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:min(360px,94vw);
  height:100dvh;
  max-height:100dvh;
  padding:20px 25px;
}

.drawer-head,.zoom-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.drawer-head>span {
  font:30px var(--serif);
}

.drawer-head {
  margin-bottom:30px;
}

#nav-drawer h2 {
  color:var(--ice);
  font-family:inherit;
}

.drawer-chapters {
  margin-block:14px 24px;
}

.drawer-site {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  border-top:1px solid var(--border);
  padding-top:16px;
}

.drawer-site a {
  padding:8px 2px;
  color:var(--soft);
}

.drawer-site a[aria-current],.drawer-site a:hover {
  color:#fff;
}

#zoom {
  padding:12px 18px;
  max-width:min(95vw,540px);
  max-height:95dvh;
  border-radius:8px;
}

.zoom-head {
  padding-bottom:10px;
}

#zoom>img {
  max-width:100%;
  width:auto;
  height:auto;
  max-height:68dvh;
  margin:auto;
}

#zoom p {
  font-size:15px;
  margin:10px auto 0;
  color:var(--soft);
}

.topbar {
  background:#09111f;
}

.hero-copy>p {
  max-width:570px;
  text-wrap:pretty;
}

.language-error {
  color:#ffcf9a;
  font-size:14px;
  padding:7px;
}

.server-facts {
  display:flex;
  justify-content:center;
  align-items:baseline;
  gap:clamp(16px,3vw,56px);
  margin:0 0 22px;
}

.server-facts>span {
  display:flex;
  align-items:center;
  gap:8px;
  color:#adbdcf;
  font-size:15px;
}

.server-facts b {
  font:25px/1 var(--serif);
  color:#bbdff3;
}

#level-range {
  appearance:none;
  height:30px;
  margin:0;
  background:none;
}

#level-range::-webkit-slider-runnable-track {
  height:3px;
  border-radius:2px;
  background:linear-gradient(to right,#9dd6ff var(--range-fill,0%),#354b62 var(--range-fill,0%));
}

#level-range::-webkit-slider-thumb {
  appearance:none;
  width:16px;
  height:16px;
  margin-top:-6.5px;
  border:2px solid #c5e9ff;
  border-radius:3px;
  transform:rotate(45deg);
  background:#457da6;
  box-shadow:0 0 0 3px #15273a;
}

#level-range::-moz-range-track {
  height:3px;
  background:#354b62;
}

#level-range::-moz-range-progress {
  height:3px;
  background:#9dd6ff;
}

#level-range::-moz-range-thumb {
  width:14px;
  height:14px;
  border:2px solid #c5e9ff;
  border-radius:3px;
  transform:rotate(45deg);
  background:#457da6;
}

.lang-illustration {
  background:radial-gradient(ellipse at center,#23527b6b,transparent 70%);
}

.lang-illustration #preview-name {
  font:italic clamp(30px,3vw,46px)/1.15 var(--serif);
  color:#e3f2fa;
  letter-spacing:-.055em;
  padding:4px 0 0;
  text-shadow:0 3px 12px #071321;
}

.flag-portrait {
  display:grid;
  place-items:center;
  width:70px;
  height:70px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#396481,#122c41 60%,#071727);
  border:1px solid #83a7be;
  box-shadow:0 0 0 4px #0a1727,0 0 0 5px #415d72,0 10px 30px #08131c80;
  margin:0 0 10px;
}

.celestial {
  transform:translate(-50%,-50%) rotate(var(--bearing,-23deg));
}

.celestial::after {
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  background:#a5dbff;
  border:2px solid #162d40;
  box-shadow:0 0 9px #589cca;
  border-radius:50%;
  top:14%;
  left:13%;
}

@media(prefers-reduced-motion:no-preference) {
  .celestial {
    transition:transform .6s cubic-bezier(.2,.8,.2,1);
  }
}

@media(max-width:680px) {
  .flag-portrait {
    width:47px;
    height:47px;
    margin-bottom:5px;
  }
  .flag-portrait img {
    width:32px;
    height:32px;
  }
  .lang-illustration #preview-name {
    font-size:28px;
  }
}

@keyframes entrance {
  from {
    opacity:.28;
    transform:translateY(6px);
  }
  to {
    opacity:1;
    transform:none;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .hero-copy {
    animation:entrance .8s ease-out both;
  }

  .cta,.discord,.glass-btn {
    transition:background .18s,border-color .18s;
  }
  .metric-icon {
    transition:color .2s;
  }
}

@media(min-width:1750px) {
  .reading {
    grid-template-columns:190px minmax(0,1fr);
  }
  .hero-inner,.hero-floor {
    width:85%;
  }
}

@media(max-width:1250px) {
  .site-links {
    gap:12px;
  }
  .top-inner {
    width:calc(100% - 38px);
    gap:15px;
  }
  .top-tools {
    gap:11px;
  }
  .reading {
    grid-template-columns:140px minmax(0,1fr);
    padding-right:8px;
    gap:28px;
  }
  .hero-inner,.hero-floor {
    width:88%;
  }
  .lang-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:1130px) {
  .site-links {
    display:none;
  }
  #nav-toggle {
    display:inline-grid;
  }
  .top-tools {
    gap:17px;
  }
  .top-inner {
    width:calc(100% - 48px);
  }
  .reading {
    width:94%;
    grid-template-columns:130px minmax(0,1fr);
    gap:18px;
  }
  .rail-label {
    font-size:10px;
  }
  .chapter-nav a {
    font-size:14px;
    gap:6px;
  }
  .hero-copy {
    width:65%;
  }
  .hero h1 {
    font-size:clamp(75px,8.8vw,104px);
  }

  .item-icon {
    width:45px;
    height:45px;
  }
}

@media(max-width:870px) {
  .reading {
    display:block;
    width:min(90%,760px);
    padding:0;
  }
  .rail {
    display:none;
  }
  .hero-floor {
    gap:35px;
  }
  .metric {
    gap:12px;
  }
  .metric-icon {
    width:29px;
    height:29px;
  }
  .metric-icon .icon {
    width:16px;
  }
  .metric>div>span {
    font-size:12px;
  }
  .cue {
    display:none;
  }
  .chapter {
    padding-top:57px;
  }
  .lang-atlas {
    grid-template-columns:.75fr 1.25fr;
  }
  .hero-shade {
    background:linear-gradient(90deg,#07101de6,#07101d88 48%,#0a132018 80%),linear-gradient(0deg,#081322,transparent 49%);
  }
}

@media(max-width:680px) {
  :root {
    --head:61px;
  }
  .top-inner {
    width:calc(100% - 25px);
    gap:8px;
  }
  .brand img {
    width:77px;
    height:52px;
  }
  .top-tools {
    gap:10px;
  }
  .top-tools .discord {
    padding:6px 10px;
  }
  .top-tools .discord .icon {
    width:16px;
  }
  #language-menu summary {
    gap:5px;
    font-size:14px;
  }
  .language-pop {
    min-width:190px;
    right:-40px;
  }
  .hero {
    height:auto;
    min-height:0;
    padding-top:clamp(185px,53vw,330px);
    display:block;
  }
  .hero-art {
    bottom:auto;
    height:100%;
    background:#0b192a;
  }
  .hero-art img {
    object-fit:cover;
    object-position:center 22%;
    top:0;
    height:auto;
    min-height:0;
    max-height:95%;
    aspect-ratio:650/749;
  }
  .hero-shade {
    background:linear-gradient(0deg,#081322 0%,#081322 12%,#081322ef 28%,#081322bc 45%,#08132226 69%,transparent 82%),linear-gradient(90deg,#07102032,transparent 65%);
  }
  .hero-inner,.hero-floor {
    width:calc(100% - 42px);
  }
  .hero-inner {
    padding:0 0 27px;
  }
  .hero-copy {
    width:100%;
  }
  .legend {
    font-size:10px;
    letter-spacing:.2em;
    gap:8px;
  }
  .legend>span {
    width:24px;
  }
  .legend>.icon {
    width:13px;
  }
  .hero h1 {
    font-size:clamp(58px,12vw,85px);
    margin:13px 0;
    line-height:.94;
  }
  .hero h1 em {
    letter-spacing:-.055em;
  }
  .hero-copy>p {
    font-size:17px;
    max-width:361px;
  }
  .hero-actions {
    gap:20px;
    margin-top:18px;
  }
  .cta {
    font-size:15px;
    min-height:43px;
    padding:10px 13px;
  }
  .quiet-btn {
    font-size:15px;
    gap:6px;
  }
  .hero-floor {
    position:relative;
    flex-wrap:nowrap;
    gap:14px;
    align-items:flex-start;
    justify-content:space-between;
    padding:16px 0 19px;
  }
  .metric {
    gap:6px;
    min-width:0;
    align-items:flex-start;
  }
  .metric-icon {
    display:none;
  }
  .metric b {
    font-size:27px;
  }
  .metric>div>span {
    font-size:12px;
    line-height:1.16;
    max-width:125px;
  }
  .metric.attr-metric {
    max-width:40%;
  }
  .reading {
    width:calc(100% - 32px);
  }
  .chapter {
    padding:42px 0 14px;
  }
  .chapter-heading {
    margin-bottom:23px;
  }
  .chapter h2 {
    font-size:42px;
  }
  .intro {
    font-size:17px;
  }
  .section-index {
    margin-top:9px;
  }

  .lang-select>p {
    font-size:17px;
  }

  .lang-atlas {
    grid-template-columns:1fr;
    gap:22px;
    padding:0;
  }
  .lang-illustration {
    min-height:165px;
  }
  .celestial {
    width:145px;
  }
  .atlas-symbol {
    top:0;
  }
  .atlas-symbol .icon {
    width:16px;
  }
  .lang-illustration>strong {
    font-size:69px;
  }
  .lang-illustration>span {
    font-size:10px;
  }
  .lang-select {
    text-align:center;
  }
  .lang-select h3 {
    font-size:29px;
  }
  .lang-select>p {
    margin:7px 0 13px;
  }
  .lang-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
  }
  .lang-grid button {
    font-size:14px;
    gap:4px;
    padding:4px 2px;
  }
  .lang-grid button img {
    width:20px;
    height:20px;
  }
  .lang-grid .selected-marker {
    font-size:10px;
  }

  .item-icon {
    width:48px;
    height:48px;
  }
  .item-select button {
    font-size:13px;
  }

  .extras {
    font-size:16px;
  }
  .level-picker {
    padding:12px;
    gap:8px;
  }
  .level-picker label {
    font-size:15px;
    gap:4px;
  }
  .level-picker label .icon {
    width:16px;
  }
  .route-steps {
    gap:1px;
    padding:8px 0;
  }
  .route-steps button {
    font-size:15px;
    padding:9px 0;
  }

  .colophon {
    text-align:left;
    gap:14px;
  }
  footer {
    padding-top:41px;
    margin-top:24px;
  }
}

@media(max-width:370px) {
  .top-tools {
    gap:6px;
  }
  .top-inner {
    width:calc(100% - 16px);
  }
  .brand img {
    width:64px;
  }
  #nav-toggle {
    width:31px;
  }
  .top-tools .discord {
    gap:4px;
    padding:5px 7px;
  }
  .hero-inner,.hero-floor {
    width:calc(100% - 34px);
  }
  .hero-actions {
    gap:11px;
  }
  .lang-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .level-picker label {
    white-space:normal;
  }
  .reading {
    width:calc(100% - 24px);
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
  }
}
