/* Anumbra Studio
   One idea carries the page: a painted dark wall, a wordmark lit by the lantern. Everything else stays quiet. */

@font-face{
  font-family:"Bodoni Moda";
  src:url("fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2");
  font-weight:400 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Bodoni Moda";
  src:url("fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2");
  font-weight:400 900;font-style:italic;font-display:swap;
}
@font-face{
  font-family:"Hanken Grotesk";
  src:url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}

:root{
  --ink:#0b0b0e;        /* the dark room */
  --coal:#121217;       /* raised surface in the dark room */
  --black:#050507;      /* the object that casts the shadow */
  --bone:#e6e1d6;       /* text on dark */
  --mute:#9a96a3;       /* secondary text on dark */
  --line:rgba(230,225,214,.14);
  --magenta:#d82880;    /* the lantern: pulled from the logo, used sparingly */
  --magenta-deep:#601038;
  --serif:"Bodoni Moda","Didot","Bodoni 72",Georgia,serif;
  --sans:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --bar:3.5rem;
  --gutter:clamp(1.25rem,5vw,3rem);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--bar) + 1rem)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{
  margin:0;
  background:var(--ink);
  color:var(--bone);
  font-family:var(--sans);
  font-size:1.0625rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
[hidden]{display:none!important}

a{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-decoration-color:rgba(230,225,214,.35);
  text-underline-offset:.28em;
  transition:text-decoration-color .2s;
}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--bone);outline-offset:4px;border-radius:2px}

.skip{
  position:absolute;left:1rem;top:-4rem;z-index:20;
  background:var(--bone);color:var(--black);padding:.6rem 1rem;border-radius:2px;
}
.skip:focus{top:.75rem}

/* ---------- Header ---------- */
.bar{
  position:sticky;top:0;z-index:10;
  height:var(--bar);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:0 var(--gutter);
  background:rgba(11,11,14,.88);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.bar-name{
  display:inline-flex;align-items:center;gap:.65rem;
  font-family:var(--serif);font-weight:700;font-size:1.15rem;letter-spacing:-.005em;
  text-decoration:none;white-space:nowrap;
}
.bar-logo{width:2rem;height:2rem;border-radius:50%;display:block}
.bar-nav{display:flex;gap:clamp(.9rem,2.4vw,1.8rem);font-size:.94rem}
.bar-nav a{text-decoration:none;color:var(--mute);transition:color .2s}
.bar-nav a:hover{color:var(--bone)}
.bar-menu{display:none}
@media (max-width:640px){
  /* without script the links simply wrap onto a second row */
  .bar{height:auto;flex-wrap:wrap;padding-block:.6rem}
  .bar-nav{width:100%;justify-content:space-between;font-size:.9rem}
  .js .bar{height:var(--bar);flex-wrap:nowrap;padding-block:0}
  .js .bar-menu{
    display:inline-block;font:inherit;font-size:.94rem;color:var(--bone);cursor:pointer;
    background:transparent;border:1px solid rgba(230,225,214,.4);border-radius:2px;padding:.4rem .85rem;
  }
  .js .bar-menu[aria-expanded="true"]{background:rgba(230,225,214,.1);border-color:var(--bone)}
  .js .bar-nav{
    display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;
    padding:0 var(--gutter) .75rem;background:rgba(11,11,14,.98);border-bottom:1px solid var(--line);
  }
  .js .bar-nav.open{display:flex}
  .js .bar-nav a{padding:.9rem 0;font-size:1.1rem;color:var(--bone);border-top:1px solid var(--line)}
  .js .bar-nav a:first-child{border-top:0}
}

/* ---------- The painted wall ---------- */
.stage{
  --lx:50%;--ly:16%;
  position:relative;
  min-height:calc(100vh - var(--bar));
  min-height:calc(100svh - var(--bar));
  display:grid;place-items:center;
  padding:3rem var(--gutter) 6rem;
  overflow:hidden;
  background:var(--ink) url("img/bg-hero-sm.webp") center/cover no-repeat;
}
@media (min-width:700px){.stage{background-image:url("img/bg-hero.webp")}}
.stage::before{ /* the lantern light moves across the paint */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 55% 60% at var(--lx) var(--ly),rgba(255,150,225,.16),transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%,rgba(11,11,14,.0) 35%,rgba(11,11,14,.55) 100%);
}
.stage::after{ /* the wall dissolves into the dark room below */
  content:"";position:absolute;left:0;right:0;bottom:0;height:34%;
  background:linear-gradient(to bottom,transparent,var(--ink));
  pointer-events:none;
}
.lockup{position:relative;z-index:1;text-align:center}
/* The emblem: a base plate, two separate eyes and a few light layers, driven by main.js.
   The resting state (no script, or reduced motion) is simply the finished logo. */
.emblem-wrap{
  position:relative;display:block;margin:0 auto 1.4rem;
  width:clamp(6.5rem,17vw,12.5rem);aspect-ratio:1;
}
.e-halo{ /* lantern light spilling onto the wall */
  position:absolute;inset:-48%;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(216,40,128,.36) 0,rgba(216,40,128,.15) 34%,transparent 64%);
  opacity:var(--halo,.55);
}
.emblem{
  position:absolute;inset:0;perspective:700px;
  /* the engine sets --sdx/--sdy so the shadow falls the same way as the wordmark's */
  filter:drop-shadow(var(--sdx,6px) var(--sdy,8px) 14px rgba(5,5,7,.65)) drop-shadow(0 0 26px rgba(216,40,128,.28));
}
.e-tilt{
  position:absolute;inset:0;border-radius:50%;overflow:hidden;
  transform:translateY(var(--fy,0px)) rotateY(var(--ry,0deg)) rotateX(var(--rx,0deg));
}
.e-tilt > *{position:absolute;display:block;pointer-events:none}
.e-base{inset:0;width:100%;height:100%}
.e-eye{
  translate:var(--ex,0px) var(--ey,0px);
  scale:1 var(--blink,1);
  transition:scale .07s linear;
}
.e-glow{border-radius:50%;mix-blend-mode:screen}
.e-lantern{
  left:33%;top:58.5%;width:34.5%;height:34.5%;
  background:radial-gradient(circle,rgba(255,160,235,.85),rgba(255,70,175,.32) 42%,transparent 68%);
  opacity:var(--fl,.55);scale:var(--fs,1);
}
.e-eyeglow{
  width:17.5%;height:17.5%;
  background:radial-gradient(circle,rgba(255,120,205,.7),rgba(255,60,170,.26) 45%,transparent 70%);
  opacity:var(--eg,.35);translate:var(--ex,0px) var(--ey,0px);
}
.e-sheen{
  inset:0;border-radius:50%;mix-blend-mode:screen;
  background:radial-gradient(circle at var(--hx,30%) var(--hy,22%),rgba(255,255,255,.17),transparent 55%);
}
.mark{
  margin:0;
  font-family:var(--serif);
  font-weight:800;
  font-size:clamp(3.4rem,15.5vw,10.5rem);
  line-height:.98;
  letter-spacing:-.02em;
  color:#f3eee3;
  /* fallback trail; script replaces it with a live one */
  text-shadow:2px 3px 5px rgba(5,5,7,.55),7px 9px 22px rgba(216,40,128,.34),16px 20px 46px rgba(216,40,128,.22);
}
.mark span{display:block}
@media (min-width:900px){
  .mark{font-size:clamp(5rem,10.5vw,10.5rem)}
  .mark span{display:inline}
}
.tagline{
  margin:1.6rem 0 0;
  font-family:var(--serif);font-style:italic;font-weight:500;
  font-size:clamp(1.15rem,2.4vw,1.6rem);
  color:#d9d3c8;
  text-shadow:0 1px 14px rgba(5,5,7,.8);
}
.status{
  position:absolute;z-index:2;left:var(--gutter);right:var(--gutter);bottom:1.75rem;
  margin:0;display:flex;align-items:center;justify-content:center;gap:.6rem;
  font-size:.95rem;color:var(--bone);
}
.status a{text-decoration-color:rgba(230,225,214,.4)}
.dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--magenta);box-shadow:0 0 0 3px rgba(216,40,128,.25),0 0 14px rgba(216,40,128,.55)}
::selection{background:var(--magenta);color:#fff}

/* ---------- Sections ---------- */
.block{
  max-width:1180px;margin:0 auto;
  padding:clamp(3.5rem,8vw,6.5rem) var(--gutter);
  display:grid;gap:1.75rem 3rem;
  border-top:1px solid var(--line);
}
main > .block:first-of-type{border-top:0}
@media (min-width:900px){
  .block{grid-template-columns:minmax(0,3fr) minmax(0,9fr)}
}
.block h2{
  margin:0;
  font-family:var(--serif);font-weight:600;
  font-size:clamp(1.9rem,3.4vw,2.6rem);line-height:1.1;letter-spacing:-.01em;
}
.body{min-width:0}
.body > :first-child{margin-top:0}
@media (max-width:600px){.teaser{aspect-ratio:4/3}}
.lede{margin:0 0 1.5rem;max-width:44ch;color:var(--mute)}

.statement{
  margin:0 0 2.5rem;max-width:30ch;
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.55rem,3vw,2.3rem);line-height:1.25;letter-spacing:-.01em;
}
.facts{
  margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line);
}
@media (min-width:700px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts div{padding:1rem 1rem 1.1rem 0;border-bottom:1px solid var(--line)}
.facts dt{font-size:.9rem;color:var(--mute)}
.facts dd{margin:.15rem 0 0;font-family:var(--serif);font-weight:600;font-size:1.25rem}

/* ---------- Games ---------- */
.teaser{
  position:relative;width:100%;aspect-ratio:16/9;
  display:grid;place-items:center;
  background:var(--coal) url("img/bg-hero.webp") 18% 62%/190% auto no-repeat;overflow:hidden;border:1px solid var(--line);
}
.teaser::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse 28% 38% at 50% 56%,rgba(216,40,128,.16),transparent 70%),
    radial-gradient(ellipse at 50% 50%,rgba(11,11,14,.78),rgba(11,11,14,.25) 80%);
}
.facets{position:absolute;inset:0;width:100%;height:100%;display:block}
.teaser-text{
  position:relative;z-index:1;margin:0;padding:1rem;text-align:center;
  font-family:var(--serif);font-style:italic;font-weight:500;
  font-size:clamp(1.15rem,2.4vw,1.6rem);line-height:1.4;
}

/* A published game (filled from config.js) */
.game{display:grid;gap:2rem}
.game-art{position:relative;width:100%;aspect-ratio:16/9;background:var(--coal);overflow:hidden;border:1px solid var(--line)}
.game-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.game-art .facets{opacity:.9}
.game-head{display:grid;gap:.2rem}
.game-series{margin:0;color:var(--mute);font-size:1rem}
.game-title{
  margin:0;font-family:var(--serif);font-weight:800;
  font-size:clamp(2.8rem,8vw,5.5rem);line-height:1;letter-spacing:-.02em;
}
.game-cols{display:grid;gap:2rem}
@media (min-width:900px){.game-cols{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:3rem}}
.game-text p{margin:0 0 1rem;max-width:56ch}
.game-tagline{font-family:var(--serif);font-style:italic;font-weight:500;font-size:1.35rem;line-height:1.35}
.game-meta{margin:0 0 1.5rem;border-top:1px solid var(--line)}
.game-meta div{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line)}
.game-meta dt{color:var(--mute)}
.game-meta dd{margin:0;text-align:right}
.actions{display:flex;flex-wrap:wrap;gap:.75rem}
.btn{
  display:inline-block;padding:.8rem 1.3rem;border-radius:2px;
  background:var(--bone);color:var(--black);text-decoration:none;font-weight:600;
  border:1px solid var(--bone);transition:background .2s,color .2s;
}
.btn:hover{background:transparent;color:var(--bone)}
.btn.ghost{background:transparent;color:var(--bone);border-color:rgba(230,225,214,.4)}
.btn.ghost:hover{border-color:var(--bone);background:rgba(230,225,214,.08)}

/* ---------- News ---------- */
.news{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.news li{
  display:grid;gap:.15rem 2rem;padding:1.1rem 0;border-bottom:1px solid var(--line);
}
@media (min-width:700px){.news li{grid-template-columns:9rem minmax(0,1fr)}}
.news time{color:var(--mute);font-size:.95rem}
.news a{font-family:var(--serif);font-weight:600;font-size:1.3rem;line-height:1.3;text-decoration:none}
.news a:hover{text-decoration:underline}
.news p{margin:.25rem 0 0;color:var(--mute);max-width:60ch}

/* ---------- Follow ---------- */
.social{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.social a{
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  padding:1.05rem 0;border-bottom:1px solid var(--line);text-decoration:none;
  transition:padding-left .25s,color .2s;
}
.s-name{font-family:var(--serif);font-weight:600;font-size:1.5rem;line-height:1.2}
.s-handle{color:var(--mute);font-size:.98rem;overflow-wrap:anywhere;text-align:right}
.social a:hover{padding-left:.6rem}
.social a:hover .s-handle{color:var(--bone)}
@media (prefers-reduced-motion:reduce){.social a{transition:none}.social a:hover{padding-left:0}}

/* ---------- Contact ---------- */
.mail{margin:0 0 1.25rem;font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,4.6vw,2.9rem);line-height:1.15;overflow-wrap:anywhere}
.copy{
  font:inherit;font-size:.95rem;color:var(--bone);cursor:pointer;
  background:transparent;border:1px solid rgba(230,225,214,.4);border-radius:2px;padding:.55rem 1rem;
  transition:border-color .2s,background .2s;
}
.copy:hover{border-color:var(--bone);background:rgba(230,225,214,.08)}
.copy-note{margin-left:.9rem;color:var(--mute);font-size:.95rem}

/* ---------- Footer ---------- */
.foot{
  max-width:1180px;margin:0 auto;
  padding:2rem var(--gutter) 3rem;
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 2rem;
  border-top:1px solid var(--line);
  color:var(--mute);font-size:.92rem;
}
.foot p{margin:0}

/* ---------- 404 ---------- */
.lost{min-height:calc(100svh - var(--bar));display:grid;place-content:center;gap:1rem;padding:3rem var(--gutter);text-align:center}
.lost .emblem-still{display:block;width:7rem;height:7rem;margin:0 auto .5rem;border-radius:50%}
.lost h1{margin:0;font-family:var(--serif);font-weight:800;font-size:clamp(2.6rem,9vw,5rem);line-height:1}
.lost p{margin:0;color:var(--mute)}

/* ---------- Painted backdrop behind the sections ---------- */
body{position:relative;isolation:isolate}
body::before{ /* fixed, so the paint stays put while the sections scroll over it */
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(rgba(11,11,14,.84),rgba(11,11,14,.9)),
    url("img/bg-hero-sm.webp") center/cover no-repeat;
}
@media (min-width:700px){body::before{background-image:linear-gradient(rgba(11,11,14,.84),rgba(11,11,14,.9)),url("img/bg-hero.webp")}}
.block h2::before{
  content:"";display:block;width:2.2rem;height:2px;margin-bottom:.9rem;
  background:var(--magenta);box-shadow:0 0 14px rgba(216,40,128,.7);
}
.bar{border-bottom-color:rgba(216,40,128,.28)}
.facts,.social,.news,.game-meta{border-top-color:rgba(216,40,128,.3)}
.facts div,.social a,.news li,.game-meta div{border-bottom-color:rgba(230,225,214,.12)}
