:root{
  /* True 1-bit. Matches the logo and the capsule art exactly, no third value. */
  --ink:#000000;
  --bone:#FFFFFF;

  /* Ordered dither is the only tonal device. No grays anywhere on this page. */
  --d12:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23FFFFFF'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23FFFFFF'/%3E%3C/svg%3E");
  --d25:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23FFFFFF'/%3E%3C/svg%3E");
  --d50:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23FFFFFF'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23FFFFFF'/%3E%3C/svg%3E");

  /* Cinzel matches the engraved caps in the wordmark. Mono is the chip register. */
  --display:'Cinzel','Trajan Pro',Georgia,serif;
  --mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;

  --gutter:clamp(20px,5vw,64px);
  --rule:1px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--ink);color:var(--bone);
  font-family:var(--mono);font-size:14px;line-height:1.65;
}
a{color:inherit}
img{display:block;max-width:100%;height:auto}

::selection{background:var(--bone);color:var(--ink)}
:focus-visible{outline:2px solid var(--bone);outline-offset:3px}

.wrap{max-width:1180px;margin:0 auto;padding:0 var(--gutter)}
.label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:500}
.rule{height:2px;background-image:var(--d50);background-size:2px 2px}

/* ---------- masthead ---------- */
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 20px;flex-wrap:wrap}
.wordmark{
  display:flex;align-items:center;gap:12px;text-decoration:none;
  font-family:var(--display);font-weight:700;
  font-size:clamp(15px,1.9vw,19px);letter-spacing:.16em;
  text-transform:uppercase;line-height:1;
}
.wordmark img{width:30px;height:30px;flex:none}
.masthead nav{display:flex;gap:22px}
.masthead nav a{text-decoration:none;padding-bottom:2px;border-bottom:var(--rule) solid transparent}
.masthead nav a:hover{border-bottom-color:var(--bone)}

/* ---------- hero ---------- */
.hero{
  display:grid;grid-template-columns:1.05fr .95fr;
  gap:clamp(24px,5vw,64px);align-items:center;
  padding:clamp(40px,7vw,88px) 0 clamp(40px,6vw,72px);
}
.hero h1{
  font-family:var(--display);font-weight:400;
  font-size:clamp(23px,3.3vw,44px);
  line-height:1.2;letter-spacing:.01em;
  margin:0;max-width:23ch;
}
.hero h1 em{font-style:normal;font-weight:700}
/* The name explanation is a footnote, not the thesis. Kept small on purpose. */
.gloss{
  margin:clamp(26px,4vw,40px) 0 0;max-width:48ch;
  padding-top:clamp(16px,2.2vw,20px);
  border-top:var(--rule) solid var(--bone);
}
.gloss .term{margin:0 0 7px;opacity:.65}
.gloss p{margin:0;font-size:13px;line-height:1.55;opacity:.8}
.hero .lockup{justify-self:center;width:min(100%,400px);text-align:center}
.lockup .mark{width:100%}
/* Studio wordmark under the mark, after the publisher lockup: DARK / SILICON / - GAMES -.
   Live text in Cinzel rather than baked into the image, so it stays crisp at any size.
   The trailing padding cancels the letter-spacing after the last glyph so lines center. */
.lockup-words{
  margin:-12% 0 0;max-width:none;
  font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:1.08;
  font-size:clamp(28px,4.2vw,52px);letter-spacing:.2em;
}
.lockup-words span{display:block;padding-left:.2em}
.lockup-words .lockup-games{
  display:flex;align-items:center;justify-content:center;gap:.6em;
  margin-top:.12em;font-size:.48em;letter-spacing:.42em;padding-left:.42em;
}
.lockup-games::before,.lockup-games::after{content:"";flex:0 1 4.5em;height:1px;background:var(--bone)}

/* ---------- sections ---------- */
section{padding:clamp(52px,8vw,104px) 0}
.sec-head{display:flex;align-items:center;gap:14px;margin-bottom:clamp(24px,4vw,40px)}
.sec-head .rule{flex:1}
h2{
  font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(30px,5.4vw,64px);line-height:1;letter-spacing:.03em;margin:0;
}
p{margin:0 0 16px;max-width:58ch}

/* ---------- games ---------- */
.game{display:grid;grid-template-columns:320px 1fr;gap:clamp(28px,5vw,64px);align-items:start}
.capsule{width:100%}
.logline{
  font-family:var(--display);font-weight:400;
  font-size:clamp(18px,2.3vw,27px);line-height:1.25;
  margin:16px 0 22px;max-width:26ch;
}
dl.spec{margin:0;border-top:var(--rule) solid var(--bone)}
dl.spec div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:var(--rule) solid var(--bone)}
dl.spec dt{opacity:.65}
dl.spec dd{margin:0;text-align:right;font-weight:500}

.actions{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 30px}
.btn{
  display:inline-block;text-decoration:none;padding:12px 20px;
  border:var(--rule) solid var(--bone);
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;
}
.btn-lit{background:var(--bone);color:var(--ink)}
.btn-lit:hover{background:var(--ink);color:var(--bone)}
.btn-dark:hover{background:var(--bone);color:var(--ink)}
/* Not a link yet. Dithered fill reads as unpowered rather than broken. */
.btn-pending{
  background-image:var(--d12);background-size:4px 4px;
  cursor:default;
}
.btn-pending .soon{opacity:.6;letter-spacing:.12em}

/* Each title after the first: a dithered rule above it, same grid below. */
.game-next{
  margin-top:clamp(52px,8vw,104px);padding-top:clamp(52px,8vw,104px);
  background-image:var(--d50);background-size:2px 2px;background-repeat:repeat-x;
}
.subtitle{margin:12px 0 0;opacity:.65}

/* ---------- Full Bleed ----------
   The site chrome stays 1-bit; inside this block the game's own palette shows:
   bone paper, ink black and one blood red, sampled from its logo and screenshots.
   Red is for rules, borders and large type only: #D71920 on black is ~4:1. */
.fb{--blood:#D71920;--paper:#F2EEE4;color:var(--paper)}
.fb .game-next{
  background-image:linear-gradient(var(--blood),var(--blood));
  background-size:100% 3px;background-repeat:no-repeat;
}
.fb-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fb .subtitle{opacity:.75}
.fb-red{color:var(--blood);font-weight:700}
.fb dl.spec,.fb dl.spec div{border-color:var(--blood)}
.fb .btn{border-color:var(--blood)}
.features{margin:0 0 16px;padding:0;list-style:none;max-width:58ch}
.features li{position:relative;padding:0 0 6px 20px}
.features li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:8px;background:var(--blood)}
.fb-loop{margin:clamp(30px,4.5vw,56px) 0 0}
.fb-loop video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--ink);border-top:3px solid var(--blood)}
.fb-loop figcaption{margin-top:9px;opacity:.6}
.fb .shots{margin-top:clamp(14px,2vw,26px)}
.fb .shot a:hover,.fb .shot a:focus-visible{border-color:var(--blood)}
.fb .shot img{aspect-ratio:16/9}

/* ---------- studio / press ---------- */
.cols{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px)}

footer{padding:34px 0 56px;font-size:12px}
footer .rows{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:20px}
footer nav{display:flex;gap:18px;flex-wrap:wrap}
footer a{text-decoration:none;border-bottom:var(--rule) solid transparent}
footer a:hover{border-bottom-color:var(--bone)}
.legal{opacity:.6}

@media (max-width:860px){
  .hero{grid-template-columns:1fr;text-align:left}
  .hero .lockup{order:-1;width:min(74%,300px);justify-self:start;margin-bottom:8px}
  .lockup-words{font-size:clamp(24px,8vw,40px)}
  .game{grid-template-columns:1fr}
  .capsule{max-width:300px}
  .shots{grid-template-columns:1fr}
  .cols{grid-template-columns:1fr}
}

/* ---------- screenshots ---------- */
.shots{
  margin:clamp(30px,4.5vw,56px) 0 0;
  display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(14px,2vw,26px);
}
.shot{margin:0}
.shot a{display:block;border:var(--rule) solid transparent}
.shot a:hover,.shot a:focus-visible{border-color:var(--bone)}
.shot img{width:100%;height:auto}
.shot figcaption{margin-top:9px;opacity:.6}
.shots-hint{margin:14px 0 0;opacity:.45;letter-spacing:.12em}

/* Pure-CSS enlarge: the overlay is only laid out while it is the :target. */
.lightbox{display:none}
.lightbox:target{
  display:flex;position:fixed;inset:0;z-index:60;background:var(--ink);
  align-items:center;justify-content:center;padding:clamp(14px,3vw,36px);
}
.lightbox-scrim{position:absolute;inset:0}
.lightbox img{position:relative;max-width:100%;max-height:100%;width:auto}
.lightbox-close{
  position:absolute;top:clamp(14px,3vw,30px);right:clamp(14px,3vw,30px);
  padding:9px 15px;text-decoration:none;background:var(--ink);
  border:var(--rule) solid var(--bone);
}

/* ---------- interior pages ---------- */
.page{padding:clamp(48px,9vw,110px) 0 clamp(56px,9vw,110px);max-width:64ch}
.page h1{
  font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(32px,5.6vw,66px);line-height:1;letter-spacing:.03em;margin:0;
}
.page .status{
  display:inline-block;margin:26px 0 0;padding:12px 20px;
  border:var(--rule) solid var(--bone);
  background-image:var(--d12);background-size:4px 4px;
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:500;
}
.page .lead{margin:30px 0 0;font-size:clamp(14px,1.5vw,17px);line-height:1.6}
.back{display:inline-block;margin-top:34px;text-decoration:none;border-bottom:var(--rule) solid var(--bone);padding-bottom:2px}
/* Text pages (a game's privacy policy and support page): small mono headings, not the display h2. */
.page-crumbs{margin:0 0 clamp(20px,3vw,32px);opacity:.7}
.page-crumbs a{text-decoration:none;border-bottom:var(--rule) solid currentColor}
.page-meta{margin:18px 0 0;opacity:.65}
.page h2{
  font-family:var(--mono);font-weight:500;font-size:11px;line-height:1.65;letter-spacing:.2em;
  margin:34px 0 8px;padding-top:14px;border-top:var(--rule) solid var(--bone);
}
.page .lead + h2{margin-top:40px}

/* ---------- press kits ----------
   Written by tools/presskit/build.mjs. The chrome is the site's; a game's kit inside .fb takes
   that game's palette, as its block on the front page does. */
.pk{padding-bottom:clamp(40px,7vw,90px)}
.pk-head{padding-bottom:0}
.pk-crumbs{margin:clamp(28px,5vw,48px) 0 clamp(20px,3vw,32px);opacity:.7}
.pk-crumbs a{text-decoration:none;border-bottom:var(--rule) solid currentColor}
.pk-title{
  font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(32px,5.6vw,66px);line-height:1;letter-spacing:.03em;margin:0;
}
.pk-logo{margin:0}
.pk-logo img{width:min(100%,520px)}
.pk-sec{padding:clamp(40px,6vw,76px) 0 0}
.pk-copy h3{margin:24px 0 8px;opacity:.65}
.pk-copy h3:first-child{margin-top:0}
.pk-dim{opacity:.6}
.pk .features li::before{background:var(--blood,var(--bone))}
.pk .shot figcaption{opacity:1}
.pk .shot figcaption .label{opacity:.8}
.pk .shot figcaption .pk-dim{display:block;margin-top:2px;font-size:11px;opacity:.5}
.pk-art{grid-template-columns:repeat(3,1fr)}
.pk-art img,.fb .pk-art img{width:100%;height:auto;aspect-ratio:auto}
.pk-head .lead + p{margin-top:18px}
.pk-light a{background:var(--bone)}
.pk-cards{display:grid;grid-template-columns:repeat(3,minmax(0,320px));align-items:end;gap:clamp(24px,4vw,56px)}
.pk-card{display:grid;gap:10px;align-content:start;text-decoration:none;padding:12px;border:var(--rule) solid transparent}
.pk-card:hover,.pk-card:focus-visible{border-color:var(--bone)}
.pk-card img{width:100%}
.pk-card-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:clamp(20px,2.4vw,28px);line-height:1.1;letter-spacing:.03em}
@media (max-width:860px){
  .pk-art{grid-template-columns:repeat(2,1fr)}
  .pk-cards{grid-template-columns:1fr}
}

/* ---------- title pages ----------
   One page per game (site/<game>/), written by tools/presskit/build.mjs (title.mjs). Site chrome,
   with the game's palette inside .fb as on the front page. */
.tp{padding-bottom:clamp(40px,7vw,90px)}
.tp-hero{margin:clamp(20px,3vw,32px) 0 0}
.tp-hero img{width:100%;height:auto}
.tp-top{
  display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(28px,5vw,72px);align-items:start;
  padding-top:clamp(32px,5vw,56px);
}
.tp-name{
  font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(36px,6.4vw,76px);line-height:1;letter-spacing:.03em;margin:0;
}
.tp-logo{margin:0}
.tp-logo img{width:min(100%,520px)}
.tp-top .actions{margin-bottom:0}
.tp-video{margin:clamp(36px,5vw,64px) 0 0}
.tp-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--ink);border-top:var(--rule) solid var(--bone)}
.fb .tp-video video{border-top:3px solid var(--blood)}
.tp-video figcaption{margin-top:9px;opacity:.7}
.tp-sec{padding:clamp(48px,7vw,88px) 0 0}
.tp-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,52px)}
.tp-pillars > div{padding-top:18px;border-top:var(--rule) solid var(--bone)}
.fb .tp-pillars > div{border-top:3px solid var(--blood)}
.tp-pillar{font-size:clamp(22px,2.6vw,32px);margin:0 0 14px}
.tp-about{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
.tp-h3{margin:0 0 14px;opacity:.65}
.tp .features li::before{background:var(--blood,var(--bone))}
.tp-cols-3{grid-template-columns:repeat(3,1fr)}
.tp-cols-5{grid-template-columns:repeat(5,1fr)}
.tp-cols-5 .shot figcaption{font-size:10px;letter-spacing:.12em}
.tp-end{text-align:center}
.tp-end p{margin-left:auto;margin-right:auto}
.tp-end .logline{max-width:30ch}
.tp-end .actions{justify-content:center}
.tp-dim{opacity:.6;font-size:13px}
/* A title page's cast and places (Neon Exorcist 199X: the crew, the districts). */
.tp-lead{max-width:62ch}
.tp-cast{list-style:none;margin:clamp(18px,2.6vw,30px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(18px,2.6vw,32px)}
.tp-cast img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:top;border-bottom:var(--rule) solid var(--bone)}
.tp-cast h3,.tp-places h3{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:clamp(17px,1.8vw,22px);line-height:1.1;margin:14px 0 4px}
.tp-cast p{margin:0}
.tp-cast .tp-tag{opacity:.7;margin-bottom:8px}
.tp-places{list-style:none;margin:clamp(6px,1vw,12px) 0 clamp(18px,2.6vw,30px);padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:clamp(16px,2.2vw,28px)}
.tp-places li{border-top:var(--rule) solid var(--bone);padding-top:2px}
.tp-places h3 .label{display:block;margin-top:6px}
.tp-places p{margin:8px 0 0}
.tp-places .tp-foot{opacity:.7}
/* Neon Exorcist 199X: as with Full Bleed, the chrome stays 1-bit and the game's own palette, the
   hot pink and cyan of its interface frames, shows only inside .neon (its title page and press kit). */
.neon{--pink:#FF3FB8;--cyan:#45F0FF}
.neon .subtitle{color:var(--cyan);opacity:1}
.neon dl.spec,.neon dl.spec div{border-color:var(--pink)}
.neon .btn{border-color:var(--cyan)}
.neon .features li::before,.pk.neon .features li::before{background:var(--pink)}
.neon .sec-head .rule{background-image:linear-gradient(var(--pink),var(--pink))}
.neon .shot a:hover,.neon .shot a:focus-visible{border-color:var(--cyan)}
.neon .shot img{aspect-ratio:16/9}
.neon .tp-video video,.neon .tp-pillars > div,.neon .tp-places li{border-top:3px solid var(--pink)}
.neon .tp-cast img{border-bottom:3px solid var(--pink)}
.neon .tp-role,.neon .tp-places h3 .label{color:var(--cyan)}
.neon .pk-art img{aspect-ratio:auto}
@media (max-width:860px){
  .tp-top,.tp-about,.tp-pillars{grid-template-columns:1fr}
  .tp-cast{grid-template-columns:repeat(2,1fr)}
  .tp-places{grid-template-columns:1fr}
  .neon .shots{grid-template-columns:1fr}
  .tp-cols-3,.tp-cols-5{grid-template-columns:repeat(2,1fr)}
}
.title-link{text-decoration:none}
.title-link:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.shot video{display:block;width:100%;height:auto;background:var(--ink)}

/* ---------- front page: two featured games, two to come ---------- */
/* The masthead stays in view and names the games, so each is one click from anywhere. */
.top{position:sticky;top:0;z-index:5;background:var(--ink);border-bottom:2px solid transparent;border-image:var(--d50) 2 repeat}
.top .masthead{padding:16px 0 14px}
[id]{scroll-margin-top:80px}
.hero-tight{padding:clamp(24px,3.6vw,44px) 0}
.hero-tight .lockup{width:min(100%,300px)}
.kick{margin:0 0 6px;opacity:.7}
.fb .kick{opacity:.85}
.neon .kick{color:var(--cyan);opacity:1}
.when{margin:10px 0 0;opacity:.8}
.gt{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.03em;line-height:1.05;margin:0}
.gt a{text-decoration:none}
.gt a:hover{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}

.feat{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,2vw,24px)}
.feat-game{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:clamp(14px,2vw,24px);border-top:3px solid var(--bone);padding-top:clamp(14px,1.8vw,22px)}
.feat-game.fb{border-top-color:var(--blood)}
.feat-art{display:block;align-self:start;border:var(--rule) solid var(--bone)}
.fb .feat-art{border-color:var(--blood)}
.feat-art img{width:100%;height:auto}
.feat-body,.also-body{display:flex;flex-direction:column;min-width:0}
.feat-body .gt{font-size:clamp(22px,2.5vw,34px)}
.feat-body .logline{margin:12px 0 0;font-size:clamp(14px,1.25vw,16px);max-width:36ch}
/* Buttons at the foot of the capsule, whatever the title and pitch wrap to. */
.feat-body .actions,.also-body .actions{flex-direction:column;align-items:stretch;text-align:center;margin:auto 0 0;padding-top:16px}

.also{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,3vw,36px);margin-top:clamp(26px,4vw,48px)}
.also-game{display:grid;grid-template-columns:42% minmax(0,1fr);gap:18px;padding-top:16px;border-top:3px solid var(--bone)}
.also-game.neon{border-top-color:var(--pink)}
/* Castle Veyr: the storm's slate blue (the road scene's #283048, lifted to read on black). */
.veyr{--slate:#7383AD}
.also-game.veyr{border-top-color:var(--slate)}
.veyr .btn{border-color:var(--slate)}
.also-art{display:block;align-self:start}
.also-art,.also-art img{width:100%;height:auto}
.also-body .gt{font-size:clamp(18px,2vw,24px)}
.also-body .logline{margin:8px 0 0;font-size:14px}
.also-body .actions{gap:8px;padding-top:14px}
.also-body .btn{white-space:normal}
.also-body .btn .soon{display:block}
.fp-studio{padding-top:clamp(34px,5vw,60px)}

@media (max-width:860px){
  .top nav{gap:6px 14px;flex-wrap:wrap}
  .feat,.also{grid-template-columns:1fr}
  .feat-game{grid-template-columns:40% minmax(0,1fr)}
}
#games{padding:clamp(8px,1.4vw,18px) 0 0}
.fp-studio{padding-bottom:clamp(20px,3vw,40px)}
/* The loops come in two shapes (616x360 store loops, 960x540 captures): one frame for all. */
.shot-loop video{aspect-ratio:16/9;object-fit:cover}
.tp-hero video{display:block;width:100%;height:auto;background:var(--ink)}
