/* The shell's two pages, in the Hologram brand.
 *
 * Every colour below is a token of Hologram-Technologies/hologram-brand-kit (commit f14a9d8),
 * copied from its generated brand/css/hologram-warm.css, which is kept beside this file as
 * brand/hologram-warm.css; a test holds the two equal. The kit switches to dark with a .dark class.
 * These pages follow the system instead, as an app's own built-in page does: paper in light, warm
 * dark in dark. No font file is shipped: Geist and Archivo are named first and used where the
 * system has them, with system fonts after.
 */
:root {
  color-scheme: light dark;
  --background: #f3f3ee;
  --foreground: #302b28;
  --card: #ffffff;
  --muted: #eae9e1;
  --muted-foreground: #6b6660;
  --brand: #e93b01;
  --destructive: #e7000b;
  --destructive-subtle: #fcdbdd;
  --destructive-border: #f5999d;
  --success: #1f7a4d;
  --border: #deddd4;
  --input: #deddd4;
  --ring: #a8a399;
  --accent-pressed: #d2d1c8;
  /* The rest of the kit's surfaces, which the frame's bar, its panels and the address bar's suggestions are drawn
   * with: without them a panel has no background and the app shows through it. */
  --popover: #ffffff;
  --popover-foreground: #302b28;
  --primary: #302b28;
  --primary-foreground: #f3f3ee;
  --primary-hover: #474340;
  --secondary: #eae9e1;
  --secondary-foreground: #302b28;
  --accent: #e0dfd6;
  --accent-foreground: #302b28;
  --sidebar: #eae9e1;
  --border-strong: #deddd4;
  --shadow-overlay: 0 16px 40px -12px #0a0a0a2e;
  --border-width: 1px;
  --ring-width: 2px;
  --ring-offset: 2px;
  --radius: 0.625rem;
  --font-sans: Geist, Inter, system-ui, sans-serif;
  --font-display: Archivo, Geist, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --tracking-display: -0.03em;
  --duration: 120ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  /* The terminal is dark in both modes: the kit's warm dark ground and text. */
  --term-background: #151312;
  --term-foreground: #f6f5f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #151312;
    --foreground: #f6f5f4;
    --card: #1e1c1b;
    --muted: #282624;
    --muted-foreground: #a6a4a2;
    --brand: #e93b01;
    --destructive: #ff6467;
    --destructive-subtle: #3e2626;
    --destructive-border: #783939;
    --success: #5fd18b;
    --border: #ffffff1a;
    --input: #ffffff26;
    --ring: #757371;
    --accent-pressed: #383735;
    --popover: #1e1c1b;
    --popover-foreground: #f6f5f4;
    --primary: #e7e5e3;
    --primary-foreground: #1e1c1b;
    --primary-hover: #ceccca;
    --secondary: #282624;
    --secondary-foreground: #f6f5f4;
    --accent: #282624;
    --accent-foreground: #f6f5f4;
    --sidebar: #1e1c1b;
    --border-strong: #383635;
    --shadow-overlay: 0 16px 40px -12px #0a0a0a8c;
  }
}
/* Under the frame, the frame owns the theme, not the system: it marks <html> dark for dark and for immersive, and
 * leaves it unmarked for light. The same tokens as above, chosen by that mark, so the page, the bar and the app the
 * page tells (view.mjs) all show the one theme the person chose. */
html.framed:not(.dark) {
  color-scheme: light;
  --background: #f3f3ee;
  --foreground: #302b28;
  --card: #ffffff;
  --muted: #eae9e1;
  --muted-foreground: #6b6660;
  --brand: #e93b01;
  --destructive: #e7000b;
  --destructive-subtle: #fcdbdd;
  --destructive-border: #f5999d;
  --success: #1f7a4d;
  --border: #deddd4;
  --input: #deddd4;
  --ring: #a8a399;
  --accent-pressed: #d2d1c8;
  --popover: #ffffff;
  --popover-foreground: #302b28;
  --primary: #302b28;
  --primary-foreground: #f3f3ee;
  --primary-hover: #474340;
  --secondary: #eae9e1;
  --secondary-foreground: #302b28;
  --accent: #e0dfd6;
  --accent-foreground: #302b28;
  --sidebar: #eae9e1;
  --border-strong: #deddd4;
  --shadow-overlay: 0 16px 40px -12px #0a0a0a2e;
}
html.framed.dark {
  color-scheme: dark;
  --background: #151312;
  --foreground: #f6f5f4;
  --card: #1e1c1b;
  --muted: #282624;
  --muted-foreground: #a6a4a2;
  --brand: #e93b01;
  --destructive: #ff6467;
  --destructive-subtle: #3e2626;
  --destructive-border: #783939;
  --success: #5fd18b;
  --border: #ffffff1a;
  --input: #ffffff26;
  --ring: #757371;
  --accent-pressed: #383735;
  --popover: #1e1c1b;
  --popover-foreground: #f6f5f4;
  --primary: #e7e5e3;
  --primary-foreground: #1e1c1b;
  --primary-hover: #ceccca;
  --secondary: #282624;
  --secondary-foreground: #f6f5f4;
  --accent: #282624;
  --accent-foreground: #f6f5f4;
  --sidebar: #1e1c1b;
  --border-strong: #383635;
  --shadow-overlay: 0 16px 40px -12px #0a0a0a8c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.5 var(--font-sans); }
main { max-width: 40rem; margin: 0 auto; padding: 2rem 1rem; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-display); }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
a { color: inherit; text-underline-offset: 0.15em; }
form { display: grid; gap: 0.5rem; margin: 1rem 0; }
input, button, select { font: inherit; padding: 0.5rem 0.75rem; border: 1px solid var(--input); border-radius: var(--radius); background: var(--card); color: inherit; max-width: 100%; transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
button { cursor: pointer; justify-self: start; }
button:hover:not(:disabled) { background: var(--muted); }
button:active:not(:disabled) { background: var(--accent-pressed); }
button:disabled { cursor: default; color: var(--muted-foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
ul { list-style: none; padding: 0; margin: 0; }
li::before { font-family: var(--font-mono); }
li[data-state="good"]::before { content: "pass  "; color: var(--success); }
/* A failure is ordinary text on the kit's subtle red ground with its border, as the kit shows a status:
   the kit's red as text on paper is 4.29:1, under what body text needs, and colour is never the only sign. */
li[data-state="bad"]::before { content: "fail"; margin-right: 0.75em; padding: 0 0.4em; border: 1px solid var(--destructive-border); border-radius: calc(var(--radius) / 2); background: var(--destructive-subtle); color: var(--foreground); }
p[data-state="good"] { color: var(--success); }
p[data-state="bad"] { padding: 0.5rem 0.75rem; border: 1px solid var(--destructive-border); border-radius: var(--radius); background: var(--destructive-subtle); color: var(--foreground); }
p[data-state="wait"] { color: var(--muted-foreground); }
output { display: block; min-height: 1.5rem; font-family: var(--font-mono); font-size: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#space-id { font-family: var(--font-mono); font-size: 0.875rem; overflow-wrap: anywhere; }
#life { display: flex; flex-wrap: wrap; gap: 0.5rem; }
select { padding: 0.4rem 0.6rem; }
#term { height: 18rem; overflow: auto; margin: 0; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--term-background); color: var(--term-foreground); font: 14px/1.4 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Drawn by xterm (terminal.mjs), which lays out and scrolls its own rows. */
#term[data-xterm] { overflow: hidden; white-space: normal; padding: 0.5rem; }
#linux-life { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#registry-list li { margin: 0.35rem 0; }
#registry-list button { text-align: left; }
#registry-list small { display: block; color: var(--muted-foreground); font-size: 0.875rem; }
#built { color: var(--muted-foreground); font-size: 0.875rem; }
#app-link { font-size: 0.875rem; overflow-wrap: anywhere; }
/* An app's own page is the app's: the frame gives it a surface and a hairline, nothing else. */
iframe { width: 100%; height: 26rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
[hidden] { display: none !important; }
