/* MOnalytics brand layer: the site is always dark. Since Nov 2026 the look is a monochrome "terminal"
style: pure black, off-white text, neutral greys, hairline borders, square corners, mono labels, with
mint used sparingly as the one accent (see "Terminal look" at the end of mo-components.css).
Loaded raw after app.min.css by default.hbs, so no rebuild is needed.
The same palette used to live in Ghost Admin > Settings > Code injection > Site header;
it is part of the theme now, so that injected :root / body block can be deleted.
default.hbs also pins data-color-scheme="dark", and the theme switcher is hidden below. */

:root,
html[data-color-scheme] {
  color-scheme: dark;
  --color-primary: #00c896;
  /* Neutral, slightly warm greys on pure black: no navy tint any more. */
  --color-text: #f3f3f1;
  --color-text-acc: #9b9b97;
  --mo-text-dim: #5a5a56;
  --color-bg: #000;
  --color-bg-body: #000;
  --color-bg-acc: #0a0a0a;
  --color-border: #262624;
  --global-hero-title-color: var(--color-text);
  /* Square corners everywhere (also enforced in mo-components.css > "Terminal look"). */
  --global-radius: 0;
  --global-radius-rounded: 0;
  --global-max-width: 1200px;

  /* Surfaces: near-black panels separated by hairlines, not by colour. */
  --color-dark-acc: #0a0a0a;
  --mo-surface: #050505;
  --mo-surface-raised: #0a0a0a;
  --mo-border: rgba(255, 255, 255, 0.14);
  --mo-border-soft: rgba(255, 255, 255, 0.08);

  /* Type: no extra web fonts. Headings and body keep the system font; labels, data and buttons use
     the system monospace for the terminal feel. */
  --mo-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Status colours: one meaning everywhere (tracker, cards, posts). */
  --mo-hit: #10b981;
  --mo-miss: #f43f5e;
  --mo-pending: #6a9fd4;
  --mo-removed: #fb923c;

  /* Access levels: free account = brand mint, paid = the old brand gold. */
  --mo-gate-free: var(--color-primary);
  --mo-gate-paid: #f0a500;
}

body,
.main {
  background-color: #000;
}

/* No light/system switching: hide the theme button in the off-canvas menu. */
.js-theme-toggle {
  display: none;
}

/* Fumio mutes .section__title to 25% opacity as a quiet section label. On the custom
pages and the home page these are real headings, so show them at full strength
(the about page already does the same in custom-about.hbs). Same on posts ("Written by", "More from"). */
.section__title,
.pt-page .section__title,
.fd-page .section__title,
.fdd-page .section__title,
.chg-page .section__title {
  opacity: 1;
  color: var(--color-text);
}

/* A tag with the Ghost accent colour set to pure black (#000000) is invisible on the dark
site. Fall back to the normal muted tag colour instead of the black per-tag accent. */
.post-card__tag[style*="#000000"] {
  --color-accent: var(--color-text-acc) !important;
}

/* Numbers in stats and tables line up (tabular figures). */
[data-stat],
[data-filter-count],
.mo-stat__num,
.pt-table td,
.fdd-stat,
.fd-card__bottom {
  font-variant-numeric: tabular-nums;
}

/* Visible keyboard focus everywhere (Fumio's default is easy to miss on black). */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip link: hidden until it gets keyboard focus. */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 10px 16px; background: var(--color-primary); color: #000; font-weight: 700; text-decoration: none; transition: top 0.15s; }
.skip-link:focus { top: 12px; }

/* Embedded frames (Ghost Portal's floating button, comments, embeds) are light documents. With
color-scheme: dark on the page, a frame whose own scheme differs gets an opaque white canvas instead of
a transparent one. Keep frames on the normal scheme so their backgrounds stay transparent. */
iframe { color-scheme: normal; }
