@font-face {
  font-family: "Novel Studio Icons";
  src: url("assets/icons.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: dark;
  --header-height: 4.85rem;
  --page: #131519;
  --panel: #191c22;
  --panel-raised: #222730;
  --ink: #f3f1ef;
  --muted: #c0c1c6;
  --accent: #abc9f3;
  --line: #343840;
  --heading: Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
h1 { max-width: 16ch; font-size: clamp(2.65rem, 4.8vw, 4.85rem); text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4vw, 3.45rem); text-wrap: balance; }
h3 { font-size: 1.24rem; line-height: 1.25; }
.shell { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; padding: .6rem 1rem; background: var(--page); z-index: 6; }
.skip:focus { top: .6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #121315;
}
.site-header .brand { visibility: hidden; }
.site-header[data-show-brand] .brand { visibility: visible; }
.top { min-height: var(--header-height); display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding-block: .65rem; }
.brand { display: inline-flex; width: fit-content; flex-shrink: 0; }
.brand img { width: clamp(7.4rem, 14vw, 10rem); height: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }
.primary-nav > a:not(.button) { color: var(--muted); font-weight: 600; white-space: nowrap; }
.primary-nav > a:not(.button):hover, .footer-nav a:hover { color: var(--accent); }
.header-social { display: flex; gap: .36rem; padding-left: clamp(.75rem, 2vw, 1.4rem); border-left: 1px solid var(--line); }
.header-social a {
  display: grid;
  place-items: center;
  width: 2.7rem;
  min-height: 2.7rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  color: var(--ink);
}
.header-social a:hover { border-color: var(--accent); background: var(--panel-raised); }
.icon { display: inline-block; min-width: 1.15em; flex: 0 0 auto; text-align: center; line-height: 1; }
.icon::before { font: normal 1em/1 "Novel Studio Icons"; }
.icon-discord::before { content: "\e801"; }
.icon-youtube::before { content: "\f16a"; }
.icon-twitter::before { content: "\f099"; }
.icon-download::before { content: "\e812"; }
.icon-windows::before { content: "\f17a"; }
.icon-linux::before { content: "\f17c"; }
.icon-discord { color: #a3adff; }
.icon-youtube { color: #ff7777; }
.icon-twitter { color: #69caff; }
.icon-image { width: 1.15rem; height: 1.15rem; object-fit: contain; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--accent);
  color: #101929;
  font-weight: 730;
  line-height: 1.25;
  white-space: nowrap;
}
.button:hover { background: #c6ddfc; }
.button.outline { background: #22252b; border-color: #626975; color: var(--ink); }
.button.outline:hover { background: var(--panel-raised); border-color: var(--accent); }
.button.small { min-height: 2.7rem; font-size: .9rem; }

.hero {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #141312;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #131212 0%, #131212e8 28%, #1312126e 57%, transparent 80%);
}
.hero .shell { display: flex; align-items: center; min-height: clamp(30rem, 43vw, 33rem); padding-block: clamp(2.75rem, 6vw, 3.5rem); }
.intro { width: min(70%, 48rem); }
.hero-brand { width: clamp(11rem, 24vw, 17rem); height: auto; margin: 0 0 .9rem -.35rem; }
.lead { max-width: 34rem; margin-top: 1.15rem; color: #e2dede; font-size: clamp(1.05rem, 1.65vw, 1.18rem); }
.intro .actions { margin-top: 1.55rem; }

.section { padding-block: clamp(3.1rem, 6vw, 6rem); }
.section-copy { max-width: 43rem; }
.section-copy p { max-width: 36rem; margin-top: .85rem; color: var(--muted); font-size: 1.06rem; }
.composition, .release, .faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.composition h2, .release h2 { max-width: 18ch; }
.layer-art {
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 60% 45%, #253347, transparent 70%);
}
.layer-art img { width: 100%; height: auto; }
.feature-pair, .story-pair, .example-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2rem);
}
.feature-pair { margin-top: clamp(2.25rem, 5vw, 4.75rem); }
.feature {
  display: grid;
  align-content: start;
  padding-top: 1.25rem;
  gap: .55rem;
}
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #141922; border-radius: .6rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); }

.story-band { background: #171b23; border-block: 1px solid var(--line); }
.story-pair { margin-top: clamp(1.45rem, 4vw, 2.75rem); }
.story-pair figure { overflow: hidden; border: 1px solid var(--line); border-top: none; border-radius: .65rem; background: #121720; }
.story-pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #10141b; }
figcaption { padding: .65rem .9rem; color: var(--muted); font-size: .9rem; }
.example-scene { margin-top: 1.5rem; padding: 1rem clamp(1rem, 2.6vw, 1.65rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.prompt { margin-bottom: .6rem; font-weight: 670; }
details { border-top: 1px solid var(--line); }
summary { padding-block: .8rem; cursor: pointer; font-weight: 650; }
summary::marker { color: var(--accent); }
summary:hover { color: var(--accent); }
details p { padding-bottom: .85rem; color: var(--muted); }

.level-banner { margin-top: clamp(1.45rem, 4vw, 2.5rem); overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; }
.level-banner img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; object-position: center 60%; }
.release { border-top: 1px solid var(--line); }
.release img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .65rem; }
.faq { align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.steam-copy p, .footer-brand p { color: var(--muted); }
.download { margin-bottom: clamp(3rem, 7vw, 6rem); }
.steam {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.45rem, 4vw, 4rem);
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid #464f5d;
  border-radius: .75rem;
  background: var(--panel-raised);
}
.steam-logo { width: clamp(8rem, 15vw, 11.5rem); height: auto; margin-bottom: .9rem; }
.steam-copy p { margin-top: .2rem; }
.steam-copy h2 { font-family: sans-serif; }
.platforms { display: flex; flex-wrap: wrap; gap: .6rem 0.5rem; margin: .95rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.platforms li { display: flex; align-items: center; gap: .48rem; }

.site-footer { background: #101114; border-top: 1px solid var(--line); }
.footer { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .75fr)); align-items: start; gap: clamp(1.6rem, 5vw, 4.5rem); padding-block: clamp(2.2rem, 5vw, 4rem); }
.footer-brand p { margin-top: .8rem; }
.footer-nav { display: grid; justify-items: start; gap: .48rem; }
.footer-nav h2 { margin-bottom: .25rem; font: 750 1rem/1.3 system-ui, sans-serif; letter-spacing: normal; }
.footer-nav a { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); }
.footer-nav .icon-image { margin-inline: .03rem; }

@media (max-width: 54rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero .shell { grid-row: 1; min-height: auto; padding-block: 2.3rem 2rem; }
  .intro { width: 100%; }
  .hero-art { position: static; grid-row: 2; height: clamp(12rem, 40vw, 22rem); }
  .hero::after { content: none; }
  .composition, .release, .steam, .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  :root { --header-height: 3.65rem; --community-height: 2.8rem; }
  .site-header { top: calc(-1 * var(--community-height)); }
  .site-header:has(.header-social :focus-visible) { top: 0; }
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--community-height) var(--header-height);
    gap: 0 .75rem;
    padding-block: 0;
  }
  .top .brand { grid-row: 2; }
  .top .brand img { width: 6.5rem; }
  .primary-nav { grid-column: 2; grid-row: 2; margin-left: 0; gap: .75rem; }
  .header-social { grid-column: 1 / -1; grid-row: 1; justify-content: flex-end; padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .header-social a { width: 2.45rem; min-height: 2.65rem; }
  .feature-pair, .story-pair, .example-choices { grid-template-columns: minmax(0, 1fr); }
  .example-choices { gap: 0; }
  .level-banner img { aspect-ratio: 16 / 9; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 25rem) {
  .shell { width: calc(100% - 2rem); }
  .top { column-gap: .45rem; }
  .top .brand img { width: min(100%, 5.5rem); }
  .primary-nav { gap: .65rem; }
  .primary-nav .button { padding-inline: .65rem; }
  .header-social { gap: .3rem; }
  .header-social a { width: 2.25rem; }
  .actions > .button { flex: 1 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
