/* manala.eu (site/README.md). The old site's dark theme under its Grimy look, as the live pages computed it on
   2026-11-29: old src/index.css (.dark tokens), src/grime.css (the look), the landing's Tailwind classes
   (src/components/landing/), LegalDoc.tsx (its cookie notice dropped 11-29, operator). The look's cells in /img were painted by the old
   game's painter (src/lib/grime/sheet.ts) at a 2 px texel and saved from the live page. */

/* Fonts: Alegreya and JetBrains Mono, SIL OFL 1.1 (fonts/*.OFL.txt; CREDITS.md §3). Latin and latin-ext. */
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/alegreya-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/alegreya-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/alegreya-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/alegreya-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: dark;
  --background: hsl(35 25% 12%);
  --foreground: hsl(39 35% 85%);
  --card: hsl(33 20% 18%);
  --primary: hsl(34 26% 73%);            /* the look's kraft (grime.css "Käekiri") */
  --muted-foreground: hsl(35 20% 62%);
  --border: hsl(33 18% 28%);
  --accent: hsl(140 25% 30%);
  --terminal-bg: hsl(35 20% 8%);
  --terminal-foreground: hsl(39 40% 80%);
  --terminal-description: hsl(35 25% 65%);
  --terminal-movement: hsl(39 35% 75%);
  --band-1: rgb(253 232 184);
  --band-2: rgb(244 196 106);
  --band-3: rgb(200 150 74);
  --bands: linear-gradient(180deg, var(--band-1) 0 47%, var(--band-2) 47% 63%, var(--band-3) 63% 100%);
  --ink-shadow: rgb(7 5 4 / 0.92);
  --ink-shadow-95: rgb(7 5 4 / 0.95);
  --engrave-light: rgb(253 232 184 / 0.14);
  --edge: rgb(90 58 28);
  --kraft: rgb(204 189 169);
  --texel: 2px;
  --font-display: 'Alegreya', 'Crimson Text', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* The base the old Tailwind preflight gave. */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  /* The look: every text wears a hard shadow half a texel down and right, and the ink stroke. */
  text-shadow: calc(var(--texel) / 2) calc(var(--texel) / 2) 0 var(--ink-shadow);
  -webkit-text-stroke: 0.15px currentColor;
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; font-family: var(--font-display); }
a { color: inherit; text-decoration: inherit; }
img, svg, iframe { display: block; vertical-align: middle; }
button { font: inherit; color: inherit; margin: 0; }

/* The themed cursors (old src/lib/cursors.ts; Kenney Cursor Pack, CC0). */
html, body { cursor: url(/img/cursor-sword.png) 5 5, auto; }
a, button { cursor: url(/img/cursor-gauntlet.png) 3 4, pointer; }

/* The look's scrollbar (grime.css WP3j): a 12 px groove and an etched thumb with grip notches. */
::-webkit-scrollbar { width: calc(6 * var(--texel)); height: calc(6 * var(--texel)); }
::-webkit-scrollbar-track { background: rgb(0 0 0 / 0.58); }
::-webkit-scrollbar-corner { background: rgb(0 0 0 / 0.58); }
::-webkit-scrollbar-thumb {
  background: url(/img/cell-sbar-grip-v.png) center / calc(2 * var(--texel)) calc(5 * var(--texel)) no-repeat;
  border: var(--texel) solid transparent;
  border-image: url(/img/cell-sbar-thumb.png) 2 fill / var(--texel) repeat;
}
::-webkit-scrollbar-thumb:hover { border-image-source: url(/img/cell-sbar-thumb-hover.png); }
::-webkit-scrollbar-thumb:active { border-image-source: url(/img/cell-sbar-thumb-press.png); }

:is(a, button):focus-visible { outline: var(--texel) solid var(--primary); outline-offset: var(--texel); }

/* ---- The landing (old LandingPage.tsx, LandingHero.tsx, LandingChrome.tsx, LandingBackdrop.tsx) ---- */
.backdrop, .backdrop > div { position: fixed; inset: 0; }
.backdrop { z-index: 0; }
.backdrop-room { background: url(/landing/bg-forest-px.webp) center / cover no-repeat; image-rendering: pixelated; }
.backdrop-scrim { background: hsl(35 25% 12% / 0.55); }
/* The posterized vignette (lights.ts landingVignette), one pixel per 4 px cell, as painted for 1920x1080 and 390x844. */
.backdrop-light { background: url(/img/vignette-wide.png) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
@media (max-aspect-ratio: 1/1) { .backdrop-light { background-image: url(/img/vignette-tall.png); } }

.page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh; }
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 5svh 0; }
.column { margin: 0 auto; width: 100%; max-width: 64rem; padding: 0 16px; }
.hero .column { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

.trailer {
  aspect-ratio: 16 / 9; height: 28svh; max-width: 100%; overflow: hidden;
  outline: var(--texel) solid var(--edge);
  box-shadow: calc(2 * var(--texel)) calc(2 * var(--texel)) 0 var(--ink-shadow-95);
}
.trailer iframe { width: 100%; height: 100%; border: 0; }

.eyebrow { font-size: 12px; line-height: 16px; color: var(--primary); }
/* A stamped title (grime.css WP4b): three ink bands per line, a one-texel drop, the fleck tile. */
.title {
  font-size: 30px; line-height: 36px;
  background: var(--bands); background-size: 100% 1lh;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none;
  filter: drop-shadow(var(--texel) var(--texel) 0 var(--ink-shadow-95));
  -webkit-mask: url(/img/wear-title.png) 0 0 / 48px; mask: url(/img/wear-title.png) 0 0 / 48px;
}
.subhead { max-width: 42rem; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }

/* The press quote on its ground (GrimeGround rank e3) with the shell's dithered hard shadow (cells.ts). The
   ground was painted for the quote's box at 1920x1080 (576x96) and at 390x844 (358x94); it stretches between. */
.quote { position: relative; isolation: isolate; max-width: 36rem; padding: 8px 16px; text-align: left;
  border-image: url(/img/cell-shadow.png) 8 4 / 8px 4px / 0 4px 8px 0 repeat; }
.quote::before { content: ''; position: absolute; inset: 0; z-index: -1; image-rendering: pixelated;
  border-image: url(/img/quote-ground-narrow.png) 4 fill / 8px stretch; }
@media (min-width: 640px) { .quote::before { border-image-source: url(/img/quote-ground.png); } }
.quote blockquote { font-size: 14px; line-height: 1.375; font-style: italic; }
.quote figcaption { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.quote figcaption a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
/* Buttons are cells (grime.css WP3a-3b): the plate for the variant, a state is a different cell, the press drops
   the button one texel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px;
  font-family: var(--font-display); font-size: 18px; line-height: 28px; image-rendering: pixelated;
  border-image-slice: 2 fill; border-image-width: var(--texel); border-image-repeat: repeat;
  text-shadow: 0 calc(var(--texel) / -2) 0 var(--ink-shadow-95), 0 calc(var(--texel) / 2) 0 var(--engrave-light);
}
.btn svg { display: inline-block; vertical-align: -0.13em; flex-shrink: 0; }
.btn:active { translate: 0 var(--texel); }
/* The primary plate wears its ring as border-image and its middle under the bands clipped to the text. */
.btn-primary {
  --mid: url(/img/cell-btn-primary-mid.png);
  color: var(--kraft);
  border-image-source: url(/img/cell-btn-primary.png); border-image-slice: 2;
  background-image: var(--bands), var(--mid); background-size: 100% 1lh, 64px 64px; background-repeat: repeat;
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none;
}
.btn-primary:hover { border-image-source: url(/img/cell-btn-primary-hover.png); }
.btn-primary:active { border-image-source: url(/img/cell-btn-primary-press.png); --mid: url(/img/cell-btn-primary-press-mid.png); }
/* Longhands only: the `border` shorthand resets border-image. */
.btn-ghost { color: #cdd3ff; border-width: 1px; border-style: solid; border-color: transparent; border-image-source: url(/img/cell-btn-ghost.png); }
.btn-ghost:hover { border-image-source: url(/img/cell-btn-ghost-hover.png); }
.btn-ghost:active { border-image-source: url(/img/cell-btn-ghost-press.png); }

.microcopy { font-size: 12px; line-height: 16px; font-style: italic; color: hsl(35 20% 62% / 0.7); }

.footer { padding: 24px 16px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.footer nav { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.footer nav a:hover { color: var(--primary); }
.footer .contact { margin-top: 12px; }
.footer .copyright { margin-top: 4px; color: hsl(35 20% 62% / 0.6); }

@media (min-width: 640px) {
  .hero .column { gap: 14px; }
  .trailer { height: 38svh; }
  .title { font-size: 48px; line-height: 1; }
  .subhead { font-size: 18px; line-height: 28px; }
  .quote { padding: 12px 20px; }
  .quote blockquote { font-size: 16px; line-height: 24px; }
  .quote figcaption { font-size: 14px; line-height: 20px; }
  .ctas { gap: 16px; }
  .microcopy { font-size: 14px; line-height: 20px; }
}
@media (min-width: 640px) and (max-height: 820px) { .trailer { height: 34svh; } }

/* ---- The legal pages and the 404 page (old LegalDoc.tsx): read word for word, no word wear ---- */
body.legal { background: var(--terminal-bg); color: var(--terminal-foreground); font-family: var(--font-mono); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.legal main { margin: 0 auto; max-width: 48rem; padding: 48px 24px; }
.legal main h1 { color: var(--terminal-foreground); font-weight: 700; font-size: 30px; line-height: 36px; margin: 8px 0 24px; }
.legal main h2 { color: var(--terminal-foreground); font-weight: 700; font-size: 20px; line-height: 28px; margin: 24px 0 12px; }
.legal main h3 { color: var(--terminal-foreground); font-weight: 700; font-size: 18px; line-height: 28px; margin: 16px 0 8px; }
.legal main p { color: var(--terminal-description); margin: 0 0 16px; line-height: 1.625; }
.legal main strong { color: var(--terminal-foreground); font-weight: 700; }
.legal main em { color: var(--terminal-foreground); font-style: italic; }
.legal main a { color: var(--terminal-movement); }
.legal main a:hover { text-decoration: underline; }
.legal main ul, .legal main ol { color: var(--terminal-description); padding-left: 24px; margin: 0 0 16px; }
.legal main ul { list-style: disc; }
.legal main ol { list-style: decimal; }
.legal main li { line-height: 1.625; }
.legal main li + li { margin-top: 8px; }
.legal main hr { height: 0; border: 0; border-top: 1px solid rgb(255 255 255 / 0.2); margin: 24px 0; }
.legal main .back { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.legal main .back a { font-size: 14px; line-height: 20px; }

