@font-face { font-family: 'Big Shoulders Display'; src: url(/site/fonts/BigShouldersDisplay-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(/site/fonts/Archivo-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #e8e0ca;
  --paper-2: #ddd3b8;
  --ink: #0b0a08;
  --cream: #f2e8d6;
  --red: #fb5c4c;
  --red-d: #d93a2b;
  --yel: #ffc431;
  --cyan: #1d9fc4;
  --plate: rgba(29, 159, 196, .75);
  --witch: #4a2a55;
  --disp: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --kl: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(11,10,8,.09) .8px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 5px 5px, 220px 220px;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; box-shadow: 0 0 0 7px var(--yel); }

/* halftone: one fixed screen, one drifting at a screen angle, the moire is the shimmer */
.ht { position: relative; isolation: isolate; overflow: hidden; }
.ht::before, .ht::after { content: ''; position: absolute; pointer-events: none; z-index: 5; mix-blend-mode: multiply; }
.ht::before { inset: 0; background: radial-gradient(rgba(11,10,8,.5) 0 .9px, transparent 1.5px) 0 0 / 5px 5px; opacity: .22; }
.ht::after { inset: -30%; background: radial-gradient(rgba(29,100,140,.55) 0 1px, transparent 1.7px) 0 0 / 5.4px 5.4px; opacity: .16; transform: rotate(15deg); animation: screen 14s linear infinite alternate; }
@keyframes screen { to { transform: rotate(15deg) translate(9px, 4px); } }

/* robot */
.bot { display: block; overflow: visible; }
.bot .eyeL .g7 { animation: flip7 5.2s steps(1) infinite; }
.bot .eyeL .gd { opacity: 0; animation: flipd 5.2s steps(1) infinite; }
.bot .eyeR .g7 { opacity: 0; }
.bot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.2s var(--ease) infinite; }
.bot .ant { transform-box: fill-box; transform-origin: 50% 100%; animation: ant 3.1s ease-in-out infinite; }
@keyframes blink { 0%, 86%, 92%, 100% { transform: scaleY(1); } 89% { transform: scaleY(.08); } }
@keyframes flip7 { 0%, 88% { opacity: 1; } 89%, 95% { opacity: 0; } 96% { opacity: 1; } }
@keyframes flipd { 0%, 88% { opacity: 0; } 89%, 95% { opacity: 1; } 96% { opacity: 0; } }
@keyframes ant { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }

/* corner box, the comic's price box */
.corner { background: var(--cream); border: var(--kl) solid var(--ink); display: grid; grid-template-rows: auto auto; width: max-content; box-shadow: 4px 4px 0 var(--ink); }
.corner .bot { width: 100%; height: auto; padding: 10px 12px 6px; background: var(--paper); border-bottom: var(--kl) solid var(--ink); }
.price { background: var(--red); color: var(--ink); text-align: center; padding: 4px 8px 6px; font-family: var(--disp); font-weight: 800; line-height: .95; }
.price small { display: block; font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.price b { font-size: 34px; font-weight: 900; letter-spacing: -.01em; }

/* keylined display type */
.letter { font-family: var(--disp); font-weight: 900; line-height: .82; text-transform: uppercase; letter-spacing: -.01em; -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }

/* caption boxes */
.cap { background: var(--yel); border: var(--kl) solid var(--ink); padding: 8px 12px 9px; font-family: var(--body); font-weight: 700; font-size: 13px; line-height: 1.32; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); max-width: 34ch; }
.cap.n { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.cap.n .bot { width: 30px; height: auto; margin-top: 1px; }
.cap b { font-family: var(--disp); font-weight: 900; font-size: 1.45em; letter-spacing: 0; line-height: 1; display: block; }
.cap.w { background: var(--cream); }

.facts { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 20px); padding: 3px 0 0 3px; gap: 0; font-family: var(--disp); font-weight: 900; text-transform: uppercase; line-height: 1; }
.facts span { background: var(--cream); border: var(--kl) solid var(--ink); padding: 5px 9px 6px; font-size: 22px; white-space: nowrap; }
.facts span { margin: -3px 0 0 -3px; }
.facts small { display: block; font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .05em; margin-bottom: 2px; }
.facts span.m { background: var(--red); }

/* stamped buttons */
.stamp {
  --c: var(--red); display: inline-flex; align-items: center; gap: .5em; position: relative;
  font-family: var(--disp); font-weight: 900; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
  color: var(--c); text-decoration: none; padding: 12px 18px 13px; border: 4px solid var(--c); outline: 2px solid var(--c); outline-offset: -10px;
  background: transparent; transform: rotate(-2.5deg); cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp.k { --c: var(--ink); }
.stamp.y { --c: var(--yel); }
.stamp:hover { background: var(--c); color: var(--paper); transform: rotate(0deg) translateY(-2px); outline-color: var(--paper); }
.stamp.y:hover { color: var(--ink); outline-color: var(--ink); }
.stamp:active { transform: rotate(0deg) translateY(2px) scale(.97); transition-duration: .06s; }
.stamp:focus-visible { outline: 3px dashed var(--ink); outline-offset: 6px; }
.stamp svg { width: .8em; height: .8em; flex: none; }

/* masthead bar used on inside pages */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px; border-bottom: 4px solid var(--ink); background: var(--paper); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .bot { width: 46px; height: auto; }
.brand span { font-family: var(--disp); font-weight: 900; font-size: 34px; line-height: .8; letter-spacing: -.005em; text-transform: uppercase; color: var(--red); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 2px -1px 0 var(--plate); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-family: var(--body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.nav a { text-decoration: none; padding: 8px 10px; border: 2px solid transparent; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.nav a:hover { border-color: var(--ink); background: var(--yel); }
.nav a:active { transform: translateY(1px); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--cream); }
.nav a.add { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav a.add:hover { background: var(--red); color: var(--ink); }
.nav a .x { width: 14px; height: 14px; display: block; }

/* indicia footer */
.indicia { border-top: 4px solid var(--ink); padding: 26px 28px 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px 36px; align-items: start; font-size: 13px; line-height: 1.5; }
.indicia .bot { width: 92px; height: auto; }
.indicia p { max-width: 64ch; }
.indicia p + p { margin-top: 8px; }
.indicia strong { font-family: var(--disp); font-weight: 900; font-size: 22px; text-transform: uppercase; display: block; line-height: 1; margin-bottom: 6px; }
.indicia .nav { justify-content: flex-end; }

@media (max-width: 760px) {
  .bar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .brand .bot { width: 36px; }
  .brand span { font-size: 26px; -webkit-text-stroke-width: 4px; }
  .nav { gap: 2px; font-size: 12px; }
  .nav a { padding: 7px 8px; min-height: 44px; display: inline-flex; align-items: center; }
  .indicia { grid-template-columns: 1fr; padding: 22px 16px 28px; }
  .indicia .nav { justify-content: flex-start; }
  .stamp { font-size: 21px; }
}
@media (hover: none) { .stamp:hover { background: transparent; color: var(--c); transform: rotate(-2.5deg); outline-color: var(--c); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yel); border: var(--kl) solid var(--ink); padding: 8px 12px; font-weight: 800; text-transform: uppercase; font-size: 13px; text-decoration: none; transition: top .15s var(--ease); }
.skip:focus { top: 12px; }

/* demo stage: the game itself, played inside the page, under a thin bar of our own so nothing covers the game's buttons */
.demo-stage { position: relative; }
.demo-stage.is-playing { background: var(--ink); }
.demo-stage iframe { position: absolute; left: 0; right: 0; bottom: 0; top: 46px; z-index: 20; width: 100%; height: calc(100% - 46px); border: 0; background: #000; }
.demo-bar { position: absolute; z-index: 21; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; background: var(--ink); color: var(--paper); }
.demo-name { margin-right: auto; font: 900 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; color: var(--yel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar button { font: 800 13px/1 var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--yel); border: 2px solid var(--paper); padding: 8px 12px; min-height: 36px; cursor: pointer; }
.demo-bar button:hover { background: var(--cream); }
.demo-bar button:active { transform: translateY(1px); }
.demo-bar button:focus-visible { outline: 3px dashed var(--yel); outline-offset: 3px; }
html.demo-lock, html.demo-lock body { overflow: hidden; }
.demo-stage.is-overlay { position: fixed; inset: 0; z-index: 200; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; border: 0; margin: 0; }
.demo-stage.is-overlay .demo-bar { padding-top: env(safe-area-inset-top); height: calc(46px + env(safe-area-inset-top)); }
.demo-stage.is-overlay iframe { top: calc(46px + env(safe-area-inset-top)); height: calc(100% - 46px - env(safe-area-inset-top)); }

/* live figures load after the page; a block waits invisible until they land, and is removed if they never do */
[data-live-block][data-loading] { visibility: hidden; }
