@font-face {
  font-family: "Moonstall Brush";
  src: url("moonstall-brush.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #110d18;
  --panel: #21172b;
  --ink: #fff0d7;
  --muted: #d6c1cc;
  --gold: #ffd276;
  --gold-shadow: #482016;
  --rule: #62404e;
  --brush: "Moonstall Brush", ui-monospace, monospace;
  --page: 1152px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 78% 8%, #332039 0%, transparent 35rem), var(--night);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}
a { color: var(--gold); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid #ffeabb; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd, p { margin: 0; }
.wrap { width: min(calc(100% - 3rem), var(--page)); margin-inline: auto; }

.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--panel); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header {
  background: linear-gradient(#2a1524, #190f1d);
  border-block: 2px solid;
  border-top-color: #8f342e;
  border-bottom-color: #53323a;
  box-shadow: 0 1px #130c18;
}
.nav, .footer-inner { display: flex; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; padding-block: .75rem; flex-wrap: wrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.nav a, .footer-inner a { text-decoration: none; }
.nav-links a { font: 1rem/1.2 var(--brush); color: var(--ink); padding: .4rem .15rem; }
.nav-links a:hover, .footer-inner a:hover { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: .16em; font-size: .84rem; font-weight: 800; letter-spacing: .085em; color: var(--ink); white-space: nowrap; }
.brand::before { content: ""; width: 18px; height: 18px; margin-right: .48rem; background: url("cash-coin.png") center / contain no-repeat; image-rendering: pixelated; }
.brand span { color: var(--gold); }

.hero, .fact-band, .features article {
  border: 16px solid #803a30;
  border-image: url("lacquer.png") 8 repeat;
  image-rendering: pixelated;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 432px;
  margin-top: clamp(1.25rem, 4vw, 2.5rem);
  background: #1c1426;
  box-shadow: 0 16px 42px #0504099c, 0 0 26px #9c413720;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(90deg, #100c17 2%, #110c19f5 25%, #140e1dd1 43%, #120c1738 63%, #110b1710 100%),
    url("riverside-title-scene.webp") center 47% / cover no-repeat;
}
.hero-scene::before, .hero-scene::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 58px;
  background: url("lantern.png") center bottom / 21px 27px no-repeat,
    linear-gradient(#a57350, #d59255) center top / 2px 36px no-repeat;
  filter: drop-shadow(0 1px 7px #ffb1528c);
}
.hero-scene::before { right: 10%; }
.hero-scene::after { right: 5%; height: 74px; background-size: 21px 27px, 2px 52px; }
.hero-copy { padding: clamp(1.3rem, 4vw, 3rem); width: min(100%, 550px); }
.label, dt, h2, h3, .headline, .button, .text-link, figcaption a {
  font-family: var(--brush);
  font-weight: 400;
}
.label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .7rem;
  color: var(--gold);
  font-size: 1rem;
}
.label::before { content: ""; width: 14px; height: 14px; background: url("gold-knot.png") center / contain no-repeat; }
h1 { margin: 0 0 .65rem; }
h1 img { width: min(100%, 470px); filter: drop-shadow(0 4px 0 #2f182c) drop-shadow(0 0 14px #f3a55342); }
.headline {
  font-size: clamp(1.42rem, 3vw, 2.15rem);
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: .85rem;
  text-shadow: 2px 2px var(--gold-shadow);
}
.hero-copy > p:not(.label, .headline) { color: var(--muted); max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .5rem;
  border: 9px solid #efa955;
  border-image: url("amber-button.png") 5 fill stretch;
  color: #211124;
  text-decoration: none;
  font-size: 1rem;
}
.button:hover { color: #211124; filter: brightness(1.12); }
.button span { font: 1rem system-ui, sans-serif; }
.store-status { font-size: .9rem; color: var(--muted); }

.fact-band {
  margin-top: .85rem;
  border-width: 10px;
  background: #22172c url("lacquer-pattern.png");
}
.facts {
  display: grid;
  grid-template-columns: 1.26fr 1.55fr repeat(3, 1fr);
  gap: .7rem 1.2rem;
  padding: .65rem 1rem;
}
dt { color: var(--gold); font-size: .92rem; line-height: 1.2; }
dd { font-size: .92rem; line-height: 1.35; margin-top: .36rem; }

.section { padding-block: clamp(2.1rem, 4.8vw, 3.5rem); }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  min-height: 56px;
  margin-bottom: 1.25rem;
  padding: .45rem .65rem;
  border: solid #743536;
  border-width: 20px 16px 8px;
  border-image: url("lacquer-head.png") 16 8 8 fill stretch;
  image-rendering: pixelated;
}
.section-heading p, .text-link { font-size: .93rem; }
.section-heading p { color: var(--muted); }
h2, h3 { margin: 0; line-height: 1.1; }
h2 { display: flex; gap: .5rem; align-items: center; font-size: clamp(1.4rem, 3.3vw, 2rem); color: var(--gold); text-shadow: 2px 2px var(--gold-shadow); }
h2::before { content: ""; flex: 0 0 14px; height: 14px; background: url("gold-knot.png") center / contain no-repeat; }
h3 { margin-bottom: .6rem; color: var(--gold); font-size: 1.2rem; }
.intro { max-width: 69ch; color: var(--muted); }

.features, .gallery, .art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.features { margin-top: 1.25rem; }
.features article { border-width: 11px; padding: .8rem .75rem; background: #21172b url("lacquer-pattern.png"); }
.features p { color: var(--muted); font-size: .94rem; }

.art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(#trailer, #screenshots, #art) .section-heading {
  min-height: 0;
  padding: .25rem 0 .75rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
}
:is(#trailer, #screenshots, #art) h2::before { display: none; }
.gallery, .art-grid { gap: 1.15rem; }
.trailer-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--night);
  border: 1px solid var(--rule);
}
.supplemental-heading { margin: 1.6rem 0 .85rem; }
figure {
  min-width: 0;
  background: var(--panel);
  border: 1px solid #634654;
  image-rendering: pixelated;
}
.shot { display: block; }
.shot img { width: 100%; }
.shot:hover img { filter: brightness(1.12); }
figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem .7rem; padding: .63rem .7rem .45rem; font-size: .9rem; }
figcaption a { white-space: nowrap; }
.logo-art { display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(ellipse, #392639, #211727); padding: 9%; }
.logo-art img { width: 100%; }
.site-footer { border-top: 2px solid var(--rule); background: #1e1424; }
.footer-inner { font-size: .9rem; }

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 1.5rem); }
  .nav-links { column-gap: .75rem; }
  .hero { border-width: 12px; min-height: 0; }
  .hero-copy { width: 100%; padding: 1rem .75rem 7.6rem; }
  .hero-scene {
    background:
      linear-gradient(180deg, #150e1de8 0%, #150e1de8 60%, #150e1d52 83%, #150e1d00),
      url("riverside-title-scene.webp") right bottom / auto 57% no-repeat, #150e1d;
  }
  .hero-scene::before, .hero-scene::after { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: .55rem; }
  .features, .gallery, .art-grid { grid-template-columns: 1fr; }
  .section-heading { gap: .5rem; padding-inline: .25rem; border-inline-width: 10px; }
}
