/* SilverCatMoon. The brand is black on white or white on black; the brand's navy, pale and lemon only go with it.
   The studio pages follow the visitor's system, a game page keeps its game's own: Tallow white on black,
   Patience black ink on paper. The night band at the top of the home page is always black, for the silver. */

@font-face { font-family: "Gruppo"; src: url("/assets/fonts/gruppo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/assets/fonts/quicksand.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #474747;
  --faint: #666666;
  --line: rgba(0, 0, 0, 0.14);
  --surface: #edf4fe;
  --accent: #011121;
  --underline: #011121;
  --lemon: #e0f522;
  --display: "Gruppo", "Century Gothic", "Avenir Next", sans-serif;
  --text: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --hand: "Quicksand", "Varela Round", "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --mark-ratio: 321.9 / 356.2;
  --wordmark-ratio: 517.1 / 40.8;
  --long-ratio: 879.4 / 118.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #ffffff;
    --muted: #b8b8b8;
    --faint: #8f8f8f;
    --line: rgba(255, 255, 255, 0.16);
    --surface: #0b1215;
    --accent: #edf4fe;
    --underline: #e0f522;
  }
}

:root.night {
  color-scheme: dark;
  --paper: #000000;
  --ink: #ffffff;
  --muted: #b8b8b8;
  --faint: #8f8f8f;
  --line: rgba(255, 255, 255, 0.16);
  --surface: #0b1215;
  --accent: #edf4fe;
  --underline: #e0f522;
}

:root.paper {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #474747;
  --faint: #666666;
  --line: rgba(0, 0, 0, 0.2);
  --surface: #ffffff;
  --accent: #d81028;
  --underline: #d81028;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: var(--underline); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lemon); border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: 0.05em; }
h3 { font-size: 1.3rem; letter-spacing: 0.04em; }
p { margin: 0; }
p + p { margin-top: 1em; }
.first { margin-top: 18px; }
.lifted { margin-top: clamp(16px, 5vw, 64px); }
.plain { margin: 0; }
.caption { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }

/* The bar */

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.16em; }
.brand-logo { display: block; height: 34px; aspect-ratio: var(--long-ratio); background: currentColor; -webkit-mask: url("/assets/img/brand/logo-long.svg?v=86a2a095") center / contain no-repeat; mask: url("/assets/img/brand/logo-long.svg?v=86a2a095") center / contain no-repeat; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav a { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.08em; text-decoration: none; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* The night band: always black, the mark silver by the light that moves across it */

.night-band { background: #000; color: #fff; }
.night-band .bar { color: #fff; }
.hero { text-align: center; padding-block: clamp(48px, 9vw, 120px) clamp(64px, 11vw, 140px); }
.hero { --logo: clamp(160px, 28vw, 270px); }
.hero h1 { margin-top: calc(var(--logo) * 0.143); }
.wordmark { display: block; width: min(100%, calc(var(--logo) * 1.606)); margin-inline: auto; aspect-ratio: var(--wordmark-ratio); background: #fff; -webkit-mask: url("/assets/img/brand/primary-wordmark.svg?v=27ed8923") center / contain no-repeat; mask: url("/assets/img/brand/primary-wordmark.svg?v=27ed8923") center / contain no-repeat; }
.tagline { font-family: var(--hand); color: #a8a8a8; letter-spacing: 0.08em; font-size: clamp(1rem, 2vw, 1.25rem); margin-top: 10px; }
.rule { width: 72px; height: 2px; background: var(--lemon); margin: 26px auto 0; border: 0; }
.hero .lede { max-width: 34rem; margin: 26px auto 0; color: #d6d6d6; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.sheen {
  width: var(--logo, 120px);
  aspect-ratio: var(--mark-ratio);
  margin-inline: auto;
  background-image: linear-gradient(105deg, #79828a 0%, #79828a 30%, #9aa1ab 35%, #c2c8d1 39.5%, #ebf0f7 43.5%, #e7ecf4 46.5%, #b8bfc8 50.5%, #7c848e 54.5%, #5a626b 58.5%, #626b75 63%, #6b747e 67.5%, #5e6670 72%, #666f78 77%, #666f78 100%);
  background-size: 320% 100%;
  background-position: 100% 0;
  -webkit-mask: url("/assets/img/brand/primary-mark.svg?v=96f48a21") center / contain no-repeat;
  mask: url("/assets/img/brand/primary-mark.svg?v=96f48a21") center / contain no-repeat;
  animation: sheen 6.5s cubic-bezier(0.45, 0.05, 0.35, 1) -2.2s infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 62%, 100% { background-position: 0% 0; } }

/* Sections */

.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); margin-top: 14px; }

/* Game cards */

.cards { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); background: var(--surface); transition: transform 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--ink); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.top { object-position: 50% 0; }
.card-body { padding: clamp(18px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); }
.card-body p { color: var(--muted); }
.card-more { margin-top: auto; padding-top: 8px; font-family: var(--display); letter-spacing: 0.08em; font-size: 0.95rem; }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.95rem; color: var(--muted); }
.status .dot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.status .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 1px var(--line); }

.pixel { image-rendering: pixelated; }

/* Two columns of text and an aside */

.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 860px) { .split { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.split .text p { color: var(--muted); }
.split .text p:first-of-type { color: var(--ink); }
.more { display: inline-block; margin-top: 22px; font-family: var(--display); letter-spacing: 0.08em; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); letter-spacing: 0.06em; color: var(--muted); font-size: 1.05rem; }
.facts dd { margin: 0; }

/* Features */

.features { display: grid; gap: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { border-top: 2px solid var(--ink); padding-top: 16px; }
.feature p { color: var(--muted); margin-top: 8px; }

/* Galleries */

.gallery { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1fr 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border: 1px solid var(--line); background: #000; }
.gallery figcaption { font-family: var(--display); letter-spacing: 0.06em; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.paper .gallery figcaption { color: var(--ink); font-size: 1.05rem; }

/* A game page's opening */

.game-hero { padding-block: clamp(8px, 2vw, 20px) clamp(40px, 7vw, 80px); }
.film { width: 100%; background: #000; border: 1px solid var(--line); }
.film-16x9 { aspect-ratio: 16 / 9; }
.film-4x3 { aspect-ratio: 4 / 3; }
.game-title { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 16px; }
.game-title h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); letter-spacing: 0.06em; }
.game-title .lede { font-size: clamp(1.2rem, 2.6vw, 1.55rem); max-width: 34rem; }

.pixel-title { width: min(560px, 86vw); }
.pixel-title svg { width: 100%; fill: currentColor; }

.note { font-size: 0.95rem; color: var(--faint); max-width: 46rem; }
.note a { text-decoration-color: currentColor; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--ink); font-family: var(--display); letter-spacing: 0.08em; text-decoration: none; }
.button.solid { background: var(--ink); color: var(--paper); }
.button[aria-disabled="true"] { cursor: default; }

/* Contact and the foot */

.contact h2 { margin-bottom: 14px; }
.contact p { color: var(--muted); }
.contact .mail { font-family: var(--display); letter-spacing: 0.06em; font-size: clamp(1.25rem, 3vw, 1.7rem); color: var(--ink); }

.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; font-size: 0.95rem; color: var(--muted); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.foot .brand { color: var(--ink); }
.foot .brand-logo { height: 40px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--underline); }

/* 404 */

.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding-block: 64px; }
.lost .sheen { width: 120px; }

@media (prefers-reduced-motion: reduce) {
  .sheen { animation: none; background-position: 38% 0; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* The devlog */

.posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 46rem; }
.posts li { padding-block: 22px; border-bottom: 1px solid var(--line); }
.posts time { display: block; font-family: var(--display); letter-spacing: 0.08em; color: var(--muted); font-size: 0.95rem; margin-bottom: 6px; }
.posts h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; text-decoration-color: var(--underline); }
.posts p { color: var(--muted); margin-top: 8px; }

.post { max-width: 60rem; margin-inline: auto; }
.post-head { padding-block: clamp(16px, 4vw, 48px) clamp(28px, 4vw, 44px); }
.post-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: 0.05em; }
.post-head .lede { margin-top: 16px; color: var(--muted); font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
.post-body { padding-bottom: clamp(56px, 9vw, 112px); }
.post-body p + p, .post-body ul + p, .post-body p + ul { margin-top: 1em; }
.post-body ul { padding-left: 1.2em; margin-bottom: 0; }
.post-body li + li { margin-top: 0.5em; }
.post-body figure { margin: clamp(28px, 4vw, 40px) 0; }
.post-body img { width: 100%; border: 1px solid var(--line); background: #000; }
.post-body figcaption { font-family: var(--display); letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); margin-top: 8px; }
.pair { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; } }
.back { display: inline-block; margin-top: clamp(28px, 4vw, 40px); font-family: var(--display); letter-spacing: 0.08em; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: clamp(36px, 5vw, 52px); margin-bottom: 14px; }
.post-body h3 { font-size: 1.35rem; margin-top: 26px; margin-bottom: 8px; }
.post-body code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.86em; }
.post-body pre { margin: 1.2em 0; padding: 16px 18px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); line-height: 1.45; }
.post-body pre code { font-size: 0.8rem; }
.post-body .math { margin: 1.1em 0; padding-left: 18px; border-left: 2px solid var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.post-body var { font-style: italic; }
.post-body .refs { font-size: 0.95rem; color: var(--muted); }
