/* seraphinesoftware.com. Built by tools/marketing/website.py; see docs/Art/Marketing art/Website.md.
   The colors are the game's: dusk purples, the banners' pink, the logo's teal. The fonts are the game's own pixel
   fonts (tools/art/make_web_fonts.py), which stay crisp only at whole multiples of their height: the heading font is
   14px tall (28, 42, 56), the body font 9px (18, 27). */

@font-face {
  font-family: "Vaporware Heading";
  src: url("/assets/fonts/VaporwareHeading.ttf?v=79c4865015") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Vaporware Body";
  src: url("/assets/fonts/VaporwareBody.ttf?v=5535cf8e06") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1d092a;
  --night: #140620;
  --panel: #2c1839;
  --line: #5a3f78;
  --text: #ece6f7;
  --muted: #b9a8d3;
  --pink: #e0669f;
  --pink-light: #f08cbb;
  --teal: #7fd8cf;
  --checker-a: #301a3f;
  --checker-b: #291736;
  --gutter: 24px;
  --heading: "Vaporware Heading", ui-monospace, monospace;
  --body: "Vaporware Body", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 18px/36px var(--body);
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}
img, video { image-rendering: pixelated; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--pink-light); }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
p { margin: 0 0 18px; }
strong { color: #fff; font-weight: normal; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.small { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--pink); color: var(--ink); padding: 6px 12px; }
.skip:focus { left: 8px; }

/* The game's text shadows, in game pixels: --gp is one at the element's font size (the body font is 9px tall, so 2px at
   18px; the heading font 14px, so 2px at 28px). Body text is the game's outlined body font (game/fonts/mainOutline.png):
   a one-pixel shade to the right, below and diagonally, in the text's colour darkened (in the game it's 20% of it, the
   font's #333 under a tint; on the site's dark purples that came out the background's own brightness and vanished, so
   here it's mostly the night violet the site's darkest panels use, tinted by the text).
   Headings are two-tone text's drop (effects.draw_two_tone_text): two steps of TEXT_SHADOW violet, down and right. */
:root { --gp: 2px; --violet-drop: #2a0040; }
* {
  --shade: rgba(0, 0, 0, 0.8);
  --shade: color-mix(in srgb, currentColor 8%, #050009);
  text-shadow: var(--gp) 0 0 var(--shade), 0 var(--gp) 0 var(--shade), var(--gp) var(--gp) 0 var(--shade);
}
.display, .heading, .eyebrow, .brand, .lightbox-close {
  text-shadow: var(--gp) var(--gp) 0 var(--violet-drop), calc(var(--gp) * 2) calc(var(--gp) * 2) 0 var(--violet-drop);
}
.eyebrow, .brand { --gp: 1px; }
.lightbox-close { --gp: 3px; }
/* dark words on the pink and teal buttons, typed text and selections stay clean */
.btn, .btn *, input, textarea, ::selection { text-shadow: none; }

/* Easier-to-read text (the header's Aa, TextToggle in site.js; layout.html's head applies it before the page draws):
   body text in the reader's own system font, smoothed, without the pixel shade. Headings, the logo and the art stay
   the game's. Some readers find the pixel body font hard going */
html.plain-text { --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html.plain-text body { -webkit-font-smoothing: auto; font-smooth: auto; text-rendering: optimizeLegibility; }
html.plain-text * { --shade: transparent; }

/* Type */
.display, .heading, .eyebrow { font-family: var(--heading); font-weight: normal; letter-spacing: 0; }
.display { font-size: 56px; line-height: 70px; margin: 0; --gp: 4px; }
.small-display { font-size: 42px; line-height: 56px; --gp: 3px; }
.heading { font-size: 28px; line-height: 42px; margin: 0 0 24px; color: #fff; --gp: 2px; }
.heading-big { font-size: 42px; line-height: 56px; --gp: 3px; }
.eyebrow { font-size: 14px; line-height: 28px; margin: 0; color: var(--pink-light); text-transform: none; }

/* Buttons: the banners' pink, a dark keyline and a hard pixel shadow; pressing pushes it into the page */
.buttons { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: 8px 0 20px; }
.buttons.center { justify-content: center; }
.btn {
  display: inline-block;
  font: 18px/24px var(--body);
  padding: 11px 20px 9px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink), inset 2px 2px 0 rgba(255, 255, 255, 0.35), inset -2px -2px 0 rgba(120, 20, 70, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2), background-color 80ms;
}
.btn:hover { background: var(--pink-light); color: var(--ink); transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink), inset 2px 2px 0 rgba(255, 255, 255, 0.35), inset -2px -2px 0 rgba(120, 20, 70, 0.35); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-alt { background: var(--teal); }
.btn-alt:hover { background: #a6ebe3; }
.btn-small { font-size: 18px; padding: 8px 14px 6px; box-shadow: 3px 3px 0 var(--ink); }

/* Header: sticks, slides away on the way down and back on the way up (site.js) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 6, 32, 0.92);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 200ms ease;
}
@supports (backdrop-filter: blur(6px)) { .site-header { backdrop-filter: blur(6px); } }
.site-header.tucked { transform: translateY(-110%); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 14px/28px var(--heading); }
.brand { flex-shrink: 0; }
.brand img { image-rendering: auto; max-width: none; }
.brand:hover { color: #fff; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--pink); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--teal); }
/* the Aa: in whichever font the body text is in, so it shows what pressing it gives (or takes back) */
.text-toggle { flex-shrink: 0; font: 18px/24px var(--body); color: var(--muted); background: none; cursor: pointer;
  border: 2px solid var(--line); padding: 5px 9px 3px; text-shadow: none; }
.text-toggle:hover { color: #fff; border-color: var(--pink); }
.text-toggle[aria-pressed="true"] { color: #fff; border-color: var(--teal); }
/* the footer's: a plain switch among the footer's links, there at every size */
.footer-toggle { font: inherit; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-toggle:hover { color: var(--pink-light); }
.footer-toggle[aria-pressed="true"]::after { content: ": on"; }

/* Heroes: the studio at dusk, live from the game, behind the logo */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-start; background: var(--night); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-game { min-height: clamp(300px, 46vw, 760px); }
.hero-game .hero-inner { padding-top: clamp(16px, 3vw, 48px); }
.hero-short { min-height: clamp(280px, 30vw, 460px); }
.hero-short .hero-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-wrap { margin: 0 auto; line-height: 0; max-width: min(48vw, 900px); }
.logo-wrap img { filter: drop-shadow(4px 4px 0 rgba(20, 6, 32, 0.6)); }
/* the moving logo (logo.js) over the still, with room above it for the plate to fall in from */
.logo-wrap.logo-live { position: relative; }
.live-logo { position: absolute; image-rendering: pixelated; filter: drop-shadow(4px 4px 0 rgba(20, 6, 32, 0.6));
  -webkit-tap-highlight-color: transparent; user-select: none; }
.hero-home { min-height: clamp(420px, 52vw, 720px); align-items: center; }
.hero-home .hero-video { object-position: 50% 0; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 45% at 50% 52%, rgba(20, 6, 32, 0.55), rgba(20, 6, 32, 0) 100%),
  linear-gradient(180deg, rgba(20, 6, 32, 0.15) 0%, rgba(20, 6, 32, 0.5) 55%, var(--ink) 100%); }
.hero-mark { image-rendering: auto; filter: drop-shadow(4px 4px 0 var(--ink)); margin-bottom: 8px; }
.hero-line { margin: 12px 0 0; font-size: 18px; }

/* Bands */
.band { padding: 72px 0; position: relative; }
.band-checker {
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 16px 16px;
  border-top: 2px solid #3d2452;
  border-bottom: 2px solid #120518;
}
.manifesto p:first-of-type { font-size: 18px; }

/* Banners: the game's title cards, drawn at whole multiples of their pixels (site.js) */
.banner { margin: 0 0 32px; text-align: center; line-height: 0; }
.px { image-rendering: pixelated; height: auto; }

/* Game card (home) */
.game-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.game-art { display: block; line-height: 0; outline: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); transition: transform 120ms steps(3); }
.game-art:hover { transform: translate(-2px, -2px); }
.game-art img { width: 100%; height: auto; }

/* Intro (game page) */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.trailer-wrap { position: relative; outline: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); line-height: 0; }
.trailer { width: 100%; aspect-ratio: 16 / 9; background: #000; image-rendering: auto; display: block; }
.trailer-play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.trailer-play img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: filter 120ms; }
.trailer-play:hover img, .trailer-play:focus-visible img { filter: brightness(1.12); }
/* a chunky pink play button: a square with a hard shadow and a stepped triangle cut from it */
.play-badge { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--pink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink), inset 3px 3px 0 rgba(255, 255, 255, 0.35);
  transition: transform 80ms steps(2), box-shadow 80ms steps(2); }
.play-badge::after { content: ""; position: absolute; left: 32px; top: 22px; border-style: solid; border-width: 22px 0 22px 30px;
  border-color: transparent transparent transparent var(--ink); }
.trailer-play:hover .play-badge { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink), inset 3px 3px 0 rgba(255, 255, 255, 0.35); }

/* Feature rows: banner, then the paragraph beside its clip, alternating sides */
.feature { padding: 64px 0; }
.feature-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.feature.clip-left .clip { order: -1; }
.feature.clip-left .feature-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.clip { width: 100%; aspect-ratio: 16 / 9; display: block; background: var(--night); outline: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); }
.more-shots { margin-top: 32px; }
.cta { border-top: 2px solid #3d2452; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(224, 102, 159, 0.18), rgba(224, 102, 159, 0) 70%); }
.also { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; }
.also li { position: relative; padding-left: 32px; margin-bottom: 18px; }
.also li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; background: var(--pink); box-shadow: 2px 2px 0 var(--ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery a { display: block; line-height: 0; outline: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(10, 2, 16, 0.7); transition: transform 100ms steps(2); }
.gallery a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(10, 2, 16, 0.7); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { color: var(--muted); font-size: 18px; line-height: 27px; margin-top: 10px; }

/* Press kit: the logo and key art, each a preview with its size and a download */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 56px; }
.art-card { margin: 0; }
.art-logo { grid-column: 1 / -1; }
.art-preview { display: flex; align-items: center; justify-content: center; line-height: 0; outline: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(10, 2, 16, 0.7); background: var(--night); transition: transform 100ms steps(2); }
.art-preview:hover { transform: translate(-2px, -2px); }
.art-preview img { width: 100%; height: auto; }
/* the logo on the game's checker, at a whole multiple of its pixels, so the transparency reads */
.art-logo .art-preview { padding: 40px 24px;
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 16px 16px; }
.art-logo .art-preview img { width: 586px; max-width: 100%; } /* the 4x file shown at 2x */
.art-card figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 10px; line-height: 27px; }
.art-card figcaption > span { display: flex; flex-direction: column; }
.art-card figcaption a { flex-shrink: 0; }
.gallery-heading { margin-top: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 2, 16, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { outline: 2px solid var(--line); max-width: none; }
.lightbox figcaption { margin-top: 12px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--text); font: 42px/42px var(--heading); cursor: pointer; }

/* Fact sheet */
.facts { width: 100%; border-collapse: collapse; background: rgba(20, 6, 32, 0.75); outline: 2px solid var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 16px; border-bottom: 2px solid #3d2452; font-weight: normal; }
.facts th { color: var(--pink-light); white-space: nowrap; width: 30%; }

/* Contact form */
.contact { display: grid; gap: 16px; margin-top: 24px; }
.contact label { display: grid; gap: 4px; color: var(--muted); }
.contact input, .contact textarea {
  font: 18px/27px var(--body); color: var(--text); background: var(--night);
  border: 2px solid var(--line); border-radius: 0; padding: 8px 12px;
}
.contact input:focus, .contact textarea:focus { border-color: var(--pink); outline: none; }
.contact .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.contact .optional { color: #8a77a6; }
.form-status { margin: 0; min-height: 36px; color: var(--teal); }
.contact .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Mailing list sign-up */
.newsletter { border-top: 2px solid #3d2452; }
.steam-card { display: flex; align-items: center; gap: 28px; margin: 40px auto 0; max-width: 860px; text-align: left; }
.steam-card-art { flex: 0 1 380px; display: block; line-height: 0; }
.steam-card-art img { width: 100%; height: auto; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.steam-card-text { flex: 1 1 300px; }
.steam-card-text .heading { margin-bottom: 12px; }
.steam-card-text .buttons { margin-bottom: 0; }
@media (max-width: 640px) {
  .steam-card { flex-direction: column; align-items: stretch; text-align: center; }
  .steam-card-art { flex-basis: auto; }
  .steam-card-text .buttons { justify-content: center; }
}
.signup { margin-top: 24px; }
.signup-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signup input {
  flex: 1 1 260px; max-width: 420px; font: 18px/27px var(--body); color: var(--text); background: var(--night);
  border: 2px solid var(--line); border-radius: 0; padding: 8px 12px;
}
.signup input:focus { border-color: var(--pink); outline: none; }
.signup .form-status { margin-top: 12px; }
.signup .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* How it was made: the list of posts, and a post */
.post-list { display: grid; gap: 24px; }
.post-card { display: grid; gap: 6px; padding: 24px 28px; background: var(--panel); border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(10, 2, 16, 0.7); color: var(--text); text-decoration: none; }
.post-card:hover { border-color: var(--pink); }
.post-card-title { font: 28px/42px var(--heading); color: #fff; }
.post-card-summary { color: var(--muted); }
.post-head { padding-bottom: 40px; }
.post-head .eyebrow a { color: inherit; }
.post-summary { font-size: 27px; line-height: 36px; color: var(--muted); margin: 0; }
.post-body h2 { font: 28px/42px var(--heading); color: #fff; margin: 48px 0 16px; }
.post-body h3 { font-size: 27px; line-height: 36px; color: var(--pink-light); margin: 36px 0 12px; font-weight: normal; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { margin: 0 0 24px; padding: 4px 0 4px 24px; border-left: 4px solid var(--teal); color: var(--muted); }
.post-body code { color: var(--teal); }
/* code in a sentence: the code blocks' well, small enough to sit in the line, and kept whole round a line break */
.post-body :not(pre) > code { background: rgba(20, 6, 32, 0.75); border: 2px solid var(--line); padding: 0 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; text-shadow: none; }
.post-body .ai-text { color: #b79cff; } /* text Claude wrote, until it's replaced (Post.AI_MARK in website.py) */
.post-body pre { margin: 0 0 24px; padding: 16px 20px; overflow-x: auto; background: rgba(20, 6, 32, 0.75);
  border: 2px solid var(--line); font-size: 18px; line-height: 27px; white-space: pre; text-shadow: none; }
/* a long post's contents (Markdown.contents in website.py), before its first section */
.post-contents { margin: 0 0 40px; padding: 20px 28px 12px; background: rgba(20, 6, 32, 0.75);
  border: 2px solid var(--line); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); }
.post-contents-title { font: 14px/28px var(--heading); color: var(--pink-light); margin: 0 0 8px; --gp: 1px;
  text-shadow: var(--gp) var(--gp) 0 var(--violet-drop), calc(var(--gp) * 2) calc(var(--gp) * 2) 0 var(--violet-drop); }
.post-contents ol { columns: 2 280px; column-gap: 40px; margin: 0 0 8px; padding-left: 28px; }
.post-contents li { break-inside: avoid; margin-bottom: 4px; }
.post-contents a { text-decoration: none; }
.post-contents a:hover { text-decoration: underline; }
/* the same contents down the left on wide screens (PostSidebar in site.js), in the space beside the post's column:
   hidden until the contents box has scrolled away, the section being read marked like the menu's current page */
.post-sidebar { display: none; }
@media (min-width: 1400px) {
  /* as wide as the space beside the post's column allows (it's 860px, its text 24px in), up to 300px */
  .post-sidebar { --side-room: calc((100vw - 860px) / 2); --side-w: min(300px, calc(var(--side-room) - 48px));
    display: block; position: fixed; z-index: 40; top: 96px;
    left: max(16px, calc(var(--side-room) - var(--side-w) - 24px)); width: var(--side-w); max-height: calc(100vh - 128px);
    overflow-y: auto; scrollbar-width: thin; padding: 16px 16px 12px; background: rgba(20, 6, 32, 0.75);
    border: 2px solid var(--line); box-shadow: 6px 6px 0 rgba(10, 2, 16, 0.7);
    opacity: 0; visibility: hidden; transform: translateX(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
  .post-sidebar.shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  /* the header slides away on the way down: the panel takes the space it leaves, and gives it back when it returns,
     moving with it (the header's own 200ms) */
  .post-sidebar.shown { transition: opacity 160ms ease, transform 160ms ease, top 200ms ease, max-height 200ms ease; }
  .site-header.tucked ~ .post-sidebar { top: 24px; max-height: calc(100vh - 56px); }
  .post-sidebar ol { list-style: none; margin: 0; padding: 0; }
  .post-sidebar li { margin: 0; }
  .post-sidebar a { display: block; padding: 2px 0 2px 12px; border-left: 2px solid transparent; color: var(--muted);
    text-decoration: none; font-size: 18px; line-height: 22px; }
  .post-sidebar a:hover { color: #fff; border-left-color: var(--pink); }
  .post-sidebar a[aria-current] { color: #fff; border-left-color: var(--teal); }
  /* a line between sections, so each reads as a group with its subsections */
  .post-sidebar li:not(.sub):not(:first-child) { margin-top: 5px; padding-top: 5px; border-top: 2px solid rgba(90, 63, 120, 0.55); }
  /* a subsection: in under its section, on a bullet, its wrapped lines lining up after the bullet */
  .post-sidebar .sub a { position: relative; padding-left: 36px; }
  .post-sidebar .sub a::before { content: "•"; position: absolute; left: 22px; color: var(--line); }
  .post-sidebar .sub a:hover::before, .post-sidebar .sub a[aria-current]::before { color: var(--teal); }
}
.post-sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.post-sidebar-close { display: none; }
.contents-button { display: none; }
@media (min-width: 1400px) {
  .post-sidebar .post-contents-title { margin: 0 0 8px; }
}
/* narrower: no room beside the post, so a Contents button (bottom left, while the side list would be showing) slides
   the same list in over the whole screen, with a close button; picking a section, Esc or the close slide it away */
@media (max-width: 1399px) {
  .contents-button { display: block; position: fixed; left: var(--gutter); bottom: 16px; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
  .contents-button.shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .post-sidebar { display: block; position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 40px; background: var(--ink); border-right: 2px solid var(--line);
    transform: translateX(-100%); visibility: hidden;
    transition: transform 220ms ease, visibility 0s linear 220ms; }
  .post-sidebar.open { transform: none; visibility: visible; transition-delay: 0s; }
  .post-sidebar-head { position: sticky; top: -16px; margin: -16px calc(var(--gutter) * -1) 12px;
    padding: 16px var(--gutter) 10px; background: var(--ink); border-bottom: 2px solid var(--line); }
  .post-sidebar .post-contents-title { margin: 0; }
  .post-sidebar-close { display: block; font: 42px/42px var(--heading); color: var(--text); background: none; border: 0;
    padding: 0 4px; cursor: pointer; --gp: 3px;
    text-shadow: var(--gp) var(--gp) 0 var(--violet-drop), calc(var(--gp) * 2) calc(var(--gp) * 2) 0 var(--violet-drop); }
  .post-sidebar-close:hover { color: var(--pink-light); }
  .post-sidebar ol { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
  .post-sidebar li:not(.sub):not(:first-child) { margin-top: 6px; padding-top: 6px; border-top: 2px solid rgba(90, 63, 120, 0.55); }
  /* rows big enough to tap */
  .post-sidebar a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid transparent; color: var(--muted);
    text-decoration: none; font-size: 18px; line-height: 27px; }
  .post-sidebar a:hover { color: #fff; border-left-color: var(--pink); }
  .post-sidebar a[aria-current] { color: #fff; border-left-color: var(--teal); }
  .post-sidebar .sub a { position: relative; padding-left: 36px; }
  .post-sidebar .sub a::before { content: "•"; position: absolute; left: 22px; color: var(--line); }
  .post-sidebar .sub a[aria-current]::before { color: var(--teal); }
  html.contents-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .post-sidebar, .contents-button { transition: none; transform: none; }
}

/* a section's own address: the # beside its heading, there on hover and keyboard focus */
.post-body h2, .post-body h3 { position: relative; }
.heading-link { margin-left: 12px; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity 120ms; }
.post-body h2:hover .heading-link, .post-body h3:hover .heading-link, .heading-link:focus-visible { opacity: 1; }
.heading-link:hover { color: var(--pink-light); }
@media (hover: none) { .heading-link { display: none; } }

/* the post's code as a zip (download: in its header), closing the post */
.post-download { margin: 48px 0 0; padding: 24px 28px 28px; background: rgba(20, 6, 32, 0.75);
  border: 2px solid var(--line); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); }
.post-download h2 { margin-top: 0; }
.post-picture { margin: 32px 0; text-align: center; }
.post-picture img { max-width: 100%; height: auto; outline: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); }
.post-picture figcaption { color: var(--muted); font-size: 18px; line-height: 27px; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--night); border-top: 2px solid var(--line); padding: 40px 0; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-row img { image-rendering: auto; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-row nav a { color: var(--muted); }
.footer-row nav a:hover { color: var(--pink-light); }
.footer-row p { margin: 0 0 0 auto; }

.notfound { min-height: 60vh; display: flex; align-items: center; }

/* The playable demo: the web build in a frame, loaded only when asked for (it's a big download) */
.play { padding-top: 48px; }
.player { position: relative; margin: 0 auto 24px; width: 100%; aspect-ratio: 16 / 9; background: #000;
  outline: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 2, 16, 0.7); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-cover { position: absolute; inset: 0; overflow: hidden; }
.play-poster { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.9); }
.player-start { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.player-start .small { color: var(--text); max-width: 560px; margin: 0; }
.start-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 28px;
  background: rgba(20, 6, 32, 0.82); border: 2px solid var(--line); box-shadow: 6px 6px 0 rgba(10, 2, 16, 0.7); }
.btn-big { font-size: 27px; line-height: 36px; padding: 14px 28px 12px; }
.touch-only { display: none; }
@media (pointer: coarse) and (hover: none) { .touch-only { display: block; } }
.play-after { margin-top: 32px; }

/* Phones and narrow windows */
/* the header's Wishlist drops "on Steam" before the menu, the Aa and it run out of room (the pixel font is wide) */
.site-header .btn-small { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1200px) {
  .wide-only { display: none; }
}
/* then the header sheds what's covered elsewhere, widest screens first (measured in the pixel font, the wider of
   the two): the studio's name (its logo still goes home), Home, Making of (in the footer too). Wishlist, the game
   and Play stay longest */
@media (max-width: 1000px) {
  .brand span { display: none; }
}
@media (max-width: 860px) {
  .nav-home { display: none; }
}
@media (max-width: 780px) {
  .nav-made { display: none; }
}
@media (max-width: 900px) {
  .game-card, .intro-grid, .feature-body, .feature.clip-left .feature-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.clip-left .clip { order: 0; }
  .gallery, .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .band { padding: 56px 0; }
  .feature { padding: 48px 0; }
  .footer-row p { margin-left: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .wide-only, .brand span, .nav-home, .nav-play, .nav-made { display: none; }
  .header-row { gap: 10px; }
  .site-nav { gap: 12px; }
  .site-header .btn-small { padding: 8px 8px 6px; }
  .display { font-size: 42px; line-height: 56px; --gp: 3px; }
  .small-display { font-size: 28px; line-height: 42px; --gp: 2px; }
  .heading { font-size: 28px; line-height: 42px; }
  .gallery, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-card figcaption { flex-direction: column; gap: 0; }
  .facts th { width: auto; white-space: normal; }
  .hero-home { min-height: 420px; }
  .heading-big { font-size: 28px; line-height: 42px; --gp: 2px; }
  .logo-wrap { max-width: 100%; }
  .btn-big { font-size: 18px; line-height: 24px; padding: 12px 20px 10px; }
  /* the demo's cover grows to fit its words on a phone; the frame goes back to 16:9 once the game's in it */
  .player:not(.playing) { aspect-ratio: auto; }
  .player:not(.playing) .player-cover { position: relative; }
  .player-start { padding: 24px 12px; }
  .start-panel { padding: 20px 16px; }
  .play-badge { width: 56px; height: 56px; margin: -28px 0 0 -28px; box-shadow: 4px 4px 0 var(--ink), inset 2px 2px 0 rgba(255, 255, 255, 0.35); }
  .play-badge::after { left: 20px; top: 13px; border-width: 13px 0 13px 18px; }
}

/* the smallest phones: Press, then the Aa, move to the footer so the Wishlist button keeps its room; on the very
   narrowest the logo goes too */
@media (max-width: 480px) {
  .nav-press { display: none; }
}
@media (max-width: 420px) {
  .site-header .text-toggle { display: none; }
}
@media (max-width: 360px) {
  .brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .game-art, .gallery a, .site-header { transition: none; }
}
