/* crashthestack.com: the game's palette (assets/palette.sgl) on the page.
   C-BG #0d0a1a, C-BAR-A #17122e, C-BAR-C #2e1c4d, C-TEXT #cce6ff,
   C-TEXT-DIM #7380a6, C-SELECTED #4df2d9, C-HIGHLIGHT #ff59d9, C-ICE #ff9f1a.
   The face is JetBrains Mono 2.304 (OFL 1.1, fonts/OFL.txt), self-hosted
   as a Latin subset in woff2; the system's monospace stands in while it
   loads or where woff2 is not understood. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/asset?u=https%3A%2F%2Fcrashthestack.com%2Ffonts%2FJetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/asset?u=https%3A%2F%2Fcrashthestack.com%2Ffonts%2FJetBrainsMono-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/asset?u=https%3A%2F%2Fcrashthestack.com%2Ffonts%2FJetBrainsMono-Italic.woff2") format("woff2"); }
:root {
  --bg: #0d0a1a; --bg-soft: #17122e; --line: #2e1c4d;
  --ink: #cce6ff; --ink-dim: #7380a6;
  --cyan: #4df2d9; --magenta: #ff59d9; --amber: #ff9f1a;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 15.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 48px; overflow-wrap: break-word; }  /* a long URL breaks rather than widening a phone's page (/about/ at 320 px) */

.top { text-align: center; padding: 40px 20px 8px; }
.logo { width: min(640px, 100%); height: auto; image-rendering: pixelated; }
/* the nav wraps into centered rows; side padding keeps the outer links off the screen's edges (the
   landing's nav sits outside any padded box), and a phone gets tighter spacing (David, 2026-10-12:
   at 320 px the row ran edge to edge) */
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px 20px 6px; font-size: .8rem; letter-spacing: .18em; }
@media (max-width: 480px) { .nav { gap: 10px 18px; letter-spacing: .12em; } }
.nav a { color: var(--ink-dim); }
.nav a:hover { color: var(--cyan); }
.nav a.download { color: var(--cyan); font-weight: 700; }
.nav a.download:hover { color: var(--magenta); }
.nav a.play { color: var(--amber); font-weight: 700; }
.nav a.play:hover { color: var(--magenta); }

h1 { font-size: 1.5rem; letter-spacing: .04em; margin: 28px 0 8px; color: var(--ink); }
h2 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 34px 0 10px; }
h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--ink); }
p, ul, ol, pre, blockquote, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: .25rem 0; }
em { color: var(--amber); font-style: italic; }
strong { color: var(--ink); }
code { background: var(--bg-soft); padding: .05em .3em; border-radius: 3px; font-size: .92em; }
pre { background: var(--bg-soft); border: 1px solid var(--line); padding: 12px 14px; overflow-x: auto; font-size: .88rem; line-height: 1.5; }
pre code { background: none; padding: 0; }
blockquote { border-left: 3px solid var(--line); padding-left: 14px; color: var(--ink-dim); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { color: var(--cyan); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
img { max-width: 100%; height: auto; }

.date { color: var(--ink-dim); font-size: .85rem; margin: -4px 0 20px; }
.lede { color: var(--ink-dim); }
.posts { list-style: none; padding: 0; }
.posts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 1rem; padding: 12px 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts time { color: var(--ink-dim); font-size: .85rem; padding-top: .15rem; }
.posts .summary { grid-column: 2; color: var(--ink-dim); font-size: .92rem; margin: .2rem 0 0; }
@media (max-width: 520px) { .posts li { grid-template-columns: 1fr; } .posts .summary { grid-column: 1; } }

.foot { max-width: 720px; margin: 0 auto; padding: 36px 20px 56px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .82rem; text-align: center; }
.foot .mark { display: inline-block; margin-bottom: 22px; }
.foot .mark img { display: block; width: 190px; height: auto; }
.foot p { margin: 0 0 .5rem; }
/* The "Created with Sigil" badge (usesigil.org/badge/), as on tesserawm.org:
   centered on its own row at the bottom of the footer, at its real size of
   78x51, with its 13 px of clear space as padding. */
.foot .foot-badge { display: flex; justify-content: center; padding: 13px; margin-top: 12px; }
.foot .created-with-sigil { display: block; flex: none; line-height: 0; }
.foot .created-with-sigil img { display: block; width: 78px; height: 51px; }

/* the landing */
.hero { text-align: center; padding: 56px 20px 0; }
.hero .logo { filter: drop-shadow(0 0 24px rgba(77, 242, 217, .18)); }
.tag { color: var(--ink-dim); margin: 18px auto 0; max-width: 46ch; }
.cta { display: inline-block; margin: 28px auto 0; padding: 14px 34px; border: 2px solid var(--amber); color: var(--amber); font-weight: 700; letter-spacing: .22em; font-size: 1rem; }
.cta:hover { background: var(--amber); color: var(--bg); }
.hint { color: var(--ink-dim); font-size: .82rem; margin-top: 12px; }
.blurb { padding: 44px 0 0; }
.blurb p + p { margin-top: 1rem; }
.latest { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.latest h2 { margin-top: 0; }

/* the landing's screenshots: the game's own 640x400 frames, one CSS px to a
   game pixel where the column allows (crisp at dpr 1, 2 and 3), the column's
   width on a phone (the only non-whole scale), always nearest-neighbor.
   The shots stack in one 640:400 frame, one shown, crossfading; before the
   script runs (or without it) the first stays and the dots are hidden. */
.shots { width: min(640px, 100%); margin: 36px auto 0; }
.shots .frames { position: relative; aspect-ratio: 640 / 400; outline: 1px solid var(--line); background: var(--bg); box-shadow: 0 0 28px rgba(77, 242, 217, .08); }
.shots .shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; image-rendering: pixelated; image-rendering: crisp-edges; }
.shots .shot.shown { opacity: 1; }
.shots .caption { margin: 10px 0 0; text-align: center; color: var(--ink-dim); font-size: .78rem; letter-spacing: .18em; }
.shots .dots { display: none; justify-content: center; gap: 2px; margin-top: 4px; }
.shots.live .dots { display: flex; }
.shots .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.shots .dots button::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; background: var(--line); }
.shots .dots button[aria-current="true"]::before { background: var(--cyan); }
.shots .dots button:hover::before { background: var(--magenta); }
.shots .dots button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) { .shots .shot { transition: none; } }

/* the landing's two buttons: JACK IN (amber, the main one) and DOWNLOAD (cyan, the itch.io page),
   side by side, stacked on a narrow phone */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin: 28px auto 0; }
.ctas .cta { margin: 0; }
.cta-alt { display: inline-block; padding: 14px 26px; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; letter-spacing: .22em; font-size: 1rem; }
.cta-alt:hover { background: var(--cyan); color: var(--bg); }
