/* 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") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Vaporware Body";
  src: url("/assets/fonts/VaporwareBody.ttf") 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; text-shadow: 1px 0 0 currentColor; }

.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; }

/* Type */
.display, .heading, .eyebrow { font-family: var(--heading); font-weight: normal; letter-spacing: 0; }
.display { font-size: 56px; line-height: 70px; margin: 0; text-shadow: 4px 4px 0 var(--ink); }
.small-display { font-size: 42px; line-height: 56px; }
.heading { font-size: 28px; line-height: 42px; margin: 0 0 24px; color: #fff; text-shadow: 2px 2px 0 #4a1f63; }
.heading-big { font-size: 42px; line-height: 56px; text-shadow: 3px 3px 0 #4a1f63; }
.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); }

/* 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)); }
.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; text-shadow: 2px 2px 0 var(--ink); }

/* 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; }

.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; }

/* 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); text-shadow: 2px 2px 0 var(--ink); 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 */
@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 { 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 { 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; }
  .small-display { font-size: 28px; line-height: 42px; }
  .heading { font-size: 28px; line-height: 42px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .facts th { width: auto; white-space: normal; }
  .hero-home { min-height: 420px; }
  .heading-big { font-size: 28px; line-height: 42px; }
  .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 moves to the footer so the Wishlist button keeps its room */
@media (max-width: 420px) {
  .nav-press { display: none; }
}

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