@font-face {
  font-family: Alegreya;
  src: url("../assets/fonts/Alegreya-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ground: #171b19;
  --deep: #121613;
  --type: #eee9da;
  --quiet: #bcbeb2;
  --line: #41473e;
  --brass: #e1bf83;
  --gutter: clamp(20px, 5.6vw, 96px);
  --reading: Alegreya, Georgia, serif;
  --ui: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--type); font: 1.125rem/1.52 var(--reading); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--brass); }
button, summary { cursor: pointer; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #f1cb85; outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: 12px; padding: 10px 14px; transform: translateY(-180%); background: var(--type); color: var(--deep); z-index: 8; }
.skip:focus { transform: none; }
.nav-wrap, .footer-wrap, .section-wrap, .hero-inner { width: min(100%, 1500px); padding-inline: var(--gutter); margin-inline: auto; }
.site-header { background: #151917; border-bottom: 1px solid #343a33; }
.nav-wrap, .site-nav, .footer-wrap, .site-footer nav { display: flex; align-items: center; }
.nav-wrap { min-height: 70px; justify-content: space-between; gap: 20px; }
.wordmark { display: block; flex: none; }
.wordmark img { width: 131px; }
.site-nav { gap: clamp(18px, 3vw, 46px); }
.site-nav a, .site-footer a { text-decoration: none; font: 500 .88rem/1.4 var(--ui); }
.site-nav a { padding-block: 12px; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.site-nav [aria-current="page"] { color: var(--brass); }
.site-nav .nav-play { border: 1px solid #9c875d; padding: 6px 20px; color: var(--brass); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #1e201b; }
.hero-art { position: absolute; right: 0; top: 0; width: 83%; height: 100%; object-fit: cover; object-position: 53% 54%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #1b1e19 3%, #1b1d19 16%, rgba(24,27,22,.95) 25%, rgba(24,26,21,.76) 37%, rgba(24,26,21,.12) 60%, transparent 77%);
}
.hero-inner { min-height: clamp(465px, 39vw, 590px); display: flex; align-items: center; padding-block: 56px; }
.hero-copy { max-width: 420px; }
.edition { color: #ecd7ab; font: 600 .75rem/1.6 var(--ui); letter-spacing: .09em; text-transform: uppercase; }
.edition span { padding-inline: .5em; color: #ad9a74; }
.hero h1 { margin: 16px 0 18px; font: 520 clamp(4rem,6.25vw,6.25rem)/.93 var(--reading); letter-spacing: -.045em; color: #f7efdf; }
.intro { max-width: 375px; font-size: clamp(1.14rem,1.48vw,1.38rem); line-height: 1.4; color: #e4e0d2; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; }
.play, .download-jump, .section-heading a, .world-status, .file-kind, .install-note, .site-footer p { font-family: var(--ui); }
.play { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 21px; font-size: .93rem; font-weight: 700; color: #29211a; background: var(--brass); text-decoration: none; }
.play:hover { color: #201b16; background: #f2d69c; }
.play span, .section-heading a span { font-weight: 500; }
.download-jump { font-size: .9rem; font-weight: 600; }
.world-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .76rem; color: #d5d6c8; }
.server-dot { width: 7px; height: 7px; border-radius: 50%; background: #aaa99a; }
[data-state="online"] .server-dot { background: #a4c38b; }
[data-state="offline"] .server-dot { background: #d89d78; }
.art-credit { position: absolute; bottom: 14px; right: var(--gutter); padding: 4px 9px; background: #161813d9; color: #f2e8ce; font-size: .9rem; }
.art-credit span { margin-left: 6px; color: #c5c5b8; font: .69rem var(--ui); }

.world { padding-block: clamp(38px,5vw,76px) 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 23px; }
h2 { font: 520 clamp(2rem,3.1vw,3.1rem)/1.08 var(--reading); letter-spacing: -.03em; }
.section-heading a { font-size: .85rem; }
.gallery, .art-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.gallery { margin-bottom: 30px; }
.shot { display: block; background: #20251d; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.shot:hover { outline: 1px solid var(--brass); outline-offset: 2px; }
figcaption { padding-block: 8px 2px; font-size: 1.25rem; line-height: 1.3; }
.extra { border-top: 1px solid var(--line); }
.extra:last-child { border-bottom: 1px solid var(--line); }
.extra summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px; list-style: none; font-size: 1.12rem; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary::after { content: "+"; color: var(--brass); font: 1.3rem var(--ui); }
.extra[open] summary::after { content: "−"; }
.extra summary:hover { color: var(--brass); }
.extra p { max-width: 62ch; color: var(--quiet); }
.sky-content { display: grid; grid-template-columns: 1fr 1.6fr; align-items: start; gap: 32px; padding: 10px 0 26px; }
.sky-content video { width: 100%; background: #090d10; }
kbd { font-size: .83em; border-bottom: 1px solid #7c8471; padding-inline: .15em; }
.art-gallery { padding: 10px 0 24px; }

.downloads { background: #212720; border-block: 1px solid #383e34; }
.download-inner { padding-block: clamp(36px,5vw,68px); display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.download-copy p { max-width: 34ch; margin-top: 14px; color: #c7ccbe; }
.platforms > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #4a5245; padding: 13px 4px; font-size: 1.36rem; text-decoration: none; }
.platforms > a:last-of-type { border-bottom: 1px solid #4a5245; }
.platforms > a:hover { background: #292f26; }
.platforms small, .file-kind { font: .8rem var(--ui); color: #bcc4b3; }
.platforms small { margin-left: .55em; }
.file-kind { color: var(--brass); letter-spacing: .055em; }
.file-kind b { margin-left: 8px; font-size: 1.1rem; }
.install-note { margin: 16px 0 0; color: #c4cabb; font-size: .8rem; line-height: 1.65; }
.beta { padding-block: 24px 36px; }
.beta .extra { border-top: 0; }
.beta .extra p { padding-bottom: 16px; }
.site-footer { background: var(--deep); }
.footer-wrap { justify-content: space-between; gap: 20px; min-height: 84px; }
.site-footer nav { flex-wrap: wrap; gap: 10px 23px; }
.site-footer p, .site-footer a { color: var(--quiet); font-size: .8rem; }

dialog { width: fit-content; max-width: min(1100px,94vw); max-height: 93vh; padding: 10px 12px 12px; border: 1px solid #85795c; background: #1a1d19; color: var(--type); }
dialog::backdrop { background: #080b09df; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.lightbox-top p { font-size: 1.2rem; }
.lightbox-top button { background: transparent; border: 1px solid #6f7468; padding: 5px 10px; font: .85rem var(--ui); }
.lightbox-top button span { margin-left: 5px; }
#lightbox-img { max-height: 76vh; width: auto; object-fit: contain; }
.document { padding: clamp(42px,7vw,90px) var(--gutter); }
.doc-wrap { max-width: 48rem; margin-inline: auto; }
.document h1 { font: 520 clamp(2.7rem,6vw,4.8rem)/1.04 var(--reading); letter-spacing: -.035em; margin: 0 0 30px; }
.document h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: 1.15em 0 .45em; }
.document h3 { font-size: 1.35rem; margin: 1.1em 0 .3em; }
.document p, .document li { overflow-wrap: anywhere; }
.document article p { margin-block: .85em; }
.document article li + li { margin-top: .45em; }
.document article ul, .document article ol { padding-left: 1.45em; }
.document .patch-entry { border-top: 1px solid var(--line); padding: 1.5em 0; }
.document .patch-entry h2 { margin-top: .25em; }
.document .patch-date { color: var(--quiet); font: .82rem/1.5 var(--ui); }

@media (max-width: 760px) {
  .nav-wrap { min-height: 59px; gap: 10px; }
  .wordmark img { width: 96px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .8rem; }
  .site-nav .nav-play { padding: 3px 8px; }
  .hero-art { position: relative; width: 100%; height: auto; aspect-ratio: 2.2; object-position: center 55%; z-index: 0; }
  .hero::before { display: none; }
  .hero-inner { min-height: 0; padding-block: 28px; }
  .hero-copy { max-width: 520px; }
  .hero h1 { font-size: clamp(3.2rem,8vw,4rem); margin: 9px 0 12px; }
  .hero h1 br { display: none; }
  .hero-actions { margin-top: 20px; }
  .intro { max-width: 43ch; }
  .art-credit { bottom: auto; top: 8px; right: 12px; }
  .section-heading { margin-bottom: 16px; }
  .gallery, .art-gallery { gap: 14px; }
  .download-inner, .sky-content { grid-template-columns: 1fr; gap: 22px; }
  .footer-wrap { flex-wrap: wrap; padding-block: 20px; }
}
@media (max-width: 530px) {
  .hero h1 { font-size: clamp(2.65rem,9.25vw,3.5rem); }
  .hero-art { aspect-ratio: 1.95; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .art-gallery { grid-template-columns: 1fr 1fr; }
  figcaption { font-size: 1.04rem; }
  .hero-actions { flex-wrap: wrap; gap: 13px 19px; }
  .footer-wrap { align-items: start; gap: 12px; flex-direction: column; }
  .section-heading { gap: 12px; }
}
@media (max-width: 389px) {
  .wordmark img { width: 76px; }
  .site-nav { gap: 10px; }
  .nav-wrap { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
