/* Omarchy Lockscreens — design system ported from omacom/omarchy-site
   (omarchy.org). Same tokens, same monospace-first type, same square
   corners, same flat elevation-by-ring cards. Fonts are loaded from Google
   Fonts in _Layout; everything else lives here.

   Theme tokens are the --t-* set omarchy.org uses, copied verbatim from its
   stylesheet. js/theme.js swaps [data-theme] on <html>; nothing else in the
   page has to know a theme exists. */

/* ------------------------------------------------------------ theme values */

:root,
[data-theme='tokyo-night'] {
  --t-bg-deep: #13141c;
  --t-bg: #1a1b26;
  --t-surface: #1f2230;
  --t-surface-2: #24283b;
  --t-border-subtle: #24283b;
  --t-border-strong: #414868;
  --t-text: #c0caf5;
  --t-text-secondary: #a9b1d6;
  --t-text-muted: #8b93b8;
  --t-brand: #9ece6a;
  --t-brand-soft: #9ece6a1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #292e42;
  --t-field-bg: #0e0e14;
  --t-field-dim: #39482e;
  --t-field-mid: #678549;
  --t-field-lit: #9ece6a;
  --t-field-hover: #bbdd97;
  --t-field-crest: #daecc6;
  color-scheme: dark;
  --t-hdr-text: #ced8ff;
  --t-hdr-text-2: #b7bfea;
  --t-hdr-brand: #acdc7e;
  --t-hdr-ink: #1a1c24;
  --t-hdr-surface-2: #32364f;
  --t-hdr-surface: #2d3044;
}

[data-theme='catppuccin'] {
  --t-bg-deep: #161622;
  --t-bg: #1e1e2e;
  --t-surface: #282839;
  --t-surface-2: #313244;
  --t-border-subtle: #313244;
  --t-border-strong: #585b70;
  --t-text: #cdd6f4;
  --t-text-secondary: #cdd6f4;
  --t-text-muted: #9399b2;
  --t-brand: #89b4fa;
  --t-brand-soft: #89b4fa1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #45475a;
  --t-field-bg: #101019;
  --t-field-dim: #34415c;
  --t-field-mid: #5b76a4;
  --t-field-lit: #89b4fa;
  --t-field-hover: #accafc;
  --t-field-crest: #d2e2fd;
  color-scheme: dark;
  --t-hdr-text: #dde6ff;
  --t-hdr-text-2: #dde6ff;
  --t-hdr-brand: #99c4ff;
  --t-hdr-ink: #1c1e29;
  --t-hdr-surface-2: #41425d;
  --t-hdr-surface: #383852;
}

[data-theme='catppuccin-latte'] {
  --t-bg-deep: #e3e4e8;
  --t-bg: #eff1f5;
  --t-surface: #f8f9fb;
  --t-surface-2: #e3e4e8;
  --t-border-subtle: #d7d8dc;
  --t-border-strong: #acb0be;
  --t-text: #4c4f69;
  --t-text-secondary: #53556f;
  --t-text-muted: #5c5f77;
  --t-brand: #1e66f5;
  --t-brand-soft: #1e66f51f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #ccd0da;
  --t-field-bg: #d7d8dc;
  --t-field-dim: #a0b6e4;
  --t-field-mid: #6491ec;
  --t-field-lit: #1e66f5;
  --t-field-hover: #1750bf;
  --t-field-crest: #103887;
  color-scheme: light;
  --t-hdr-text: #8b8973;
  --t-hdr-text-2: #84836d;
  --t-hdr-brand: #b97200;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
  --t-partner-37signals: #c53030;
  --t-partner-basecamp: #b45309;
  --t-partner-hey: #5522fa;
  --t-partner-cloudflare: #c2410c;
}

[data-theme='everforest'] {
  --t-bg-deep: #21272c;
  --t-bg: #2d353b;
  --t-surface: #303a40;
  --t-surface-2: #343f44;
  --t-border-subtle: #343f44;
  --t-border-strong: #475258;
  --t-text: #d3c6aa;
  --t-text-secondary: #d3c6aa;
  --t-text-muted: #918f84;
  --t-brand: #7fbbb3;
  --t-brand-soft: #7fbbb31f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #3d484d;
  --t-field-bg: #181d20;
  --t-field-dim: #374c4c;
  --t-field-mid: #587f7b;
  --t-field-lit: #7fbbb3;
  --t-field-hover: #a5cfca;
  --t-field-crest: #cee5e2;
  color-scheme: dark;
  --t-hdr-text: #ebe3ca;
  --t-hdr-text-2: #ebe3ca;
  --t-hdr-brand: #97d8d3;
  --t-hdr-ink: #242b30;
  --t-hdr-surface-2: #4c5c64;
  --t-hdr-surface: #485760;
}

[data-theme='gruvbox'] {
  --t-bg-deep: #1e1e1e;
  --t-bg: #282828;
  --t-surface: #32302f;
  --t-surface-2: #3c3836;
  --t-border-subtle: #3c3836;
  --t-border-strong: #665c54;
  --t-text: #d4be98;
  --t-text-secondary: #d4be98;
  --t-text-muted: #a89984;
  --t-brand: #7daea3;
  --t-brand-soft: #7daea31f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #504945;
  --t-field-bg: #161616;
  --t-field-dim: #354440;
  --t-field-mid: #56746d;
  --t-field-lit: #7daea3;
  --t-field-hover: #a4c6bf;
  --t-field-crest: #cee0dc;
  color-scheme: dark;
  --t-hdr-text: #ead4ae;
  --t-hdr-text-2: #ead4ae;
  --t-hdr-brand: #93c4b9;
  --t-hdr-ink: #222426;
  --t-hdr-surface-2: #524e4c;
  --t-hdr-surface: #484645;
}

[data-theme='kanagawa'] {
  --t-bg-deep: #17171e;
  --t-bg: #1f1f28;
  --t-surface: #202838;
  --t-surface-2: #223249;
  --t-border-subtle: #223249;
  --t-border-strong: #54546d;
  --t-text: #dcd7ba;
  --t-text-secondary: #dcd7ba;
  --t-text-muted: #a7a492;
  --t-brand: #dcd7ba;
  --t-brand-soft: #dcd7ba1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #363646;
  --t-field-bg: #111116;
  --t-field-dim: #4e4c47;
  --t-field-mid: #8f8c7c;
  --t-field-lit: #dcd7ba;
  --t-field-hover: #e6e3cf;
  --t-field-crest: #f2f0e5;
  color-scheme: dark;
  --t-hdr-text: #ede8d0;
  --t-hdr-text-2: #ede8d0;
  --t-hdr-brand: #ede8d0;
  --t-hdr-ink: #1d1f26;
  --t-hdr-surface-2: #33435f;
  --t-hdr-surface: #323a4e;
}

[data-theme='matte-black'] {
  --t-bg-deep: #0d0d0d;
  --t-bg: #121212;
  --t-surface: #181818;
  --t-surface-2: #1e1e1e;
  --t-border-subtle: #1e1e1e;
  --t-border-strong: #333333;
  --t-text: #eaeaea;
  --t-text-secondary: #bebebe;
  --t-text-muted: #8a8a8a;
  --t-brand: #e68e0d;
  --t-brand-soft: #e68e0d1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #2a2a2a;
  --t-field-bg: #090909;
  --t-field-dim: #4b310a;
  --t-field-mid: #925b0b;
  --t-field-lit: #e68e0d;
  --t-field-hover: #eeb056;
  --t-field-crest: #f6d4a3;
  color-scheme: dark;
  --t-hdr-text: #f3f3f3;
  --t-hdr-text-2: #c7c7c7;
  --t-hdr-brand: #ef9716;
  --t-hdr-ink: #151719;
  --t-hdr-surface-2: #272727;
  --t-hdr-surface: #212121;
}

[data-theme='nord'] {
  --t-bg-deep: #222730;
  --t-bg: #2e3440;
  --t-surface: #343b49;
  --t-surface-2: #3b4252;
  --t-border-subtle: #3b4252;
  --t-border-strong: #4c566a;
  --t-text: #d8dee9;
  --t-text-secondary: #d8dee9;
  --t-text-muted: #9fa7b4;
  --t-brand: #81a1c1;
  --t-brand-soft: #81a1c11f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #434c5e;
  --t-field-bg: #191c23;
  --t-field-dim: #384452;
  --t-field-mid: #596e85;
  --t-field-lit: #81a1c1;
  --t-field-hover: #a7bdd4;
  --t-field-crest: #cfdbe7;
  color-scheme: dark;
  --t-hdr-text: #f1faff;
  --t-hdr-text-2: #f1faff;
  --t-hdr-brand: #9abde4;
  --t-hdr-ink: #252a33;
  --t-hdr-surface-2: #545e75;
  --t-hdr-surface: #4e576c;
}

[data-theme='osaka-jade'] {
  --t-bg-deep: #0c1512;
  --t-bg: #111c18;
  --t-surface: #1a2a22;
  --t-surface-2: #23372b;
  --t-border-subtle: #23372b;
  --t-border-strong: #53685b;
  --t-text: #f7e8b2;
  --t-text-secondary: #c1c497;
  --t-text-muted: #969978;
  --t-brand: #509475;
  --t-brand-soft: #5094751f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #32473b;
  --t-field-bg: #090f0d;
  --t-field-dim: #1e372c;
  --t-field-mid: #35614d;
  --t-field-lit: #509475;
  --t-field-hover: #84b49e;
  --t-field-crest: #bcd6cb;
  color-scheme: dark;
  --t-hdr-text: #fff7bf;
  --t-hdr-text-2: #cad3a4;
  --t-hdr-brand: #59a382;
  --t-hdr-ink: #151d1d;
  --t-hdr-surface-2: #2c4638;
  --t-hdr-surface: #23382e;
}

[data-theme='ristretto'] {
  --t-bg-deep: #211b1b;
  --t-bg: #2c2525;
  --t-surface: #342a28;
  --t-surface-2: #3d2f2a;
  --t-border-subtle: #3d2f2a;
  --t-border-strong: #72696a;
  --t-text: #e6d9db;
  --t-text-secondary: #e6d9db;
  --t-text-muted: #aca1a2;
  --t-brand: #f38d70;
  --t-brand-soft: #f38d701f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #403e41;
  --t-field-bg: #181414;
  --t-field-dim: #5a3830;
  --t-field-mid: #a05f4d;
  --t-field-lit: #f38d70;
  --t-field-hover: #f7af9b;
  --t-field-crest: #fad4c9;
  color-scheme: dark;
  --t-hdr-text: #feedef;
  --t-hdr-text-2: #feedef;
  --t-hdr-brand: #ffa184;
  --t-hdr-ink: #242224;
  --t-hdr-surface-2: #55433e;
  --t-hdr-surface: #4c3e3c;
}

[data-theme='rose-pine'] {
  --t-bg-deep: #ede7e1;
  --t-bg: #faf4ed;
  --t-surface: #fffaf3;
  --t-surface-2: #ede7e1;
  --t-border-subtle: #e1dbd5;
  --t-border-strong: #cecacd;
  --t-text: #575279;
  --t-text-secondary: #5e587d;
  --t-text-muted: #676284;
  --t-brand: #56949f;
  --t-brand-soft: #56949f1f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #dfdad9;
  --t-field-bg: #e1dbd5;
  --t-field-dim: #b7c6c5;
  --t-field-mid: #8bafb4;
  --t-field-lit: #56949f;
  --t-field-hover: #43737c;
  --t-field-crest: #2f5157;
  color-scheme: light;
  --t-hdr-text: #8a895c;
  --t-hdr-text-2: #838358;
  --t-hdr-brand: #8b4736;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='white'] {
  --t-bg-deep: #f5f5f5;
  --t-bg: #ffffff;
  --t-surface: #ffffff;
  --t-surface-2: #f5f5f5;
  --t-border-subtle: #e8e8e8;
  --t-border-strong: #c0c0c0;
  --t-text: #000000;
  --t-text-secondary: #383838;
  --t-text-muted: #4a4a4a;
  --t-brand: #6e6e6e;
  --t-brand-soft: #6e6e6e1f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #c0c0c0;
  --t-field-bg: #e8e8e8;
  --t-field-dim: #c3c3c3;
  --t-field-mid: #9c9c9c;
  --t-field-lit: #6e6e6e;
  --t-field-hover: #565656;
  --t-field-crest: #3c3c3c;
  color-scheme: light;
  --t-hdr-text: #e8e8e8;
  --t-hdr-text-2: #b0b0b0;
  --t-hdr-brand: #7a7a7a;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}
/* --------------------------------------------------------------- aliases */

/* Semantic names used throughout the pages. Everything resolves to a --t-*
   token, so a theme swap moves the whole site with one attribute. */
:root {
  --bg: var(--t-bg);
  --bg-soft: var(--t-surface);
  --bg-hard: var(--t-bg-deep);
  --surface-2: var(--t-surface-2);
  --fg: var(--t-text);
  --fg-2: var(--t-text-secondary);
  --muted: var(--t-text-muted);
  --accent: var(--t-brand);
  --accent-soft: var(--t-brand-soft);
  --accent-ink: var(--t-brand-ink);
  --border: var(--t-border-subtle);
  --border-strong: var(--t-border-strong);

  /* Fixed accents, theme-independent — as on omarchy.org. */
  --blue: oklch(0.719 0.132 264.2);
  --magenta: oklch(0.751 0.134 299.5);
  --cyan: oklch(0.82 0.105 235.7);
  --accent2: oklch(0.787 0.137 50.6);
  --red: oklch(0.723 0.159 10.3);
  --yellow: oklch(0.784 0.106 75.4);

  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'DejaVu Sans Mono', monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Square corners are the whole point — kept as a variable so old markup
     that still says var(--radius) lands on zero too. */
  --radius: 0px;

  --nav-h: 3.5rem;
  --measure: 48rem;
}

/* ------------------------------------------------------------------- base */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Monospace is the body font, as on omarchy.org; the sans face is reserved
   for names and prose. */
html, body { min-height: 100%; font-family: var(--mono); }

body {
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

::selection { background: var(--t-selection); color: var(--fg); }

/* Theme switches must not animate: every color would tween independently. */
.no-transitions, .no-transitions * { transition: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }

.img-outlined { outline: 1px solid var(--t-img-outline); outline-offset: -1px; }
.ring { box-shadow: var(--t-elevation); }
.ring-hover { transition: box-shadow .15s ease-out, background-color .15s ease-out; }
.ring-hover:hover { box-shadow: var(--t-elevation-hover); }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: color-mix(in oklch, var(--border) 50%, transparent); }
*::-webkit-scrollbar-thumb { background: var(--t-scroll-thumb); }
html { scrollbar-width: thin; scrollbar-color: var(--t-scroll-thumb) transparent; }

/* ----------------------------------------------------------------- header */

.bar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  transition: border-color .15s ease-out;
}
.bar.scrolled { border-bottom-color: var(--border); }
.bar-inner {
  margin: 0 auto; max-width: 72rem; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
@media (min-width: 640px) { .bar-inner { padding: 0 24px; } }

.mark { display: flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.mark:hover { text-decoration: none; }
.mark svg, .mark img { width: 22px; height: 22px; display: block; }
.mark .wordmark {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 420px) { .mark .wordmark { display: none; } }

.bar nav { display: none; align-items: center; }
@media (min-width: 640px) { .bar nav { display: flex; } }
.bar nav a {
  padding: 6px 12px; font-size: 14px; white-space: nowrap;
  color: var(--fg-2); transition: background-color .15s ease-out, color .15s ease-out;
}
.bar nav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.bar nav a.here { background: var(--surface-2); color: var(--fg); }

.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.iconbtn {
  height: 32px; width: 32px; display: grid; place-items: center;
  color: var(--fg-2); background: none; border: 0; cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.iconbtn:hover { background: var(--surface-2); color: var(--fg); }
.iconbtn svg { width: 20px; height: 20px; }
.bar-icons { display: none; align-items: center; gap: 2px; }
@media (min-width: 640px) { .bar-icons { display: flex; } }

.adminbadge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--yellow); border: 1px solid var(--yellow); padding: 2px 7px;
}

/* Mobile drawer */
.bar-toggle { display: grid; }
@media (min-width: 640px) { .bar-toggle { display: none; } }
.drawer {
  display: none; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px);
}
.drawer.open { display: block; }
@media (min-width: 640px) { .drawer { display: none !important; } }
.drawer nav { display: flex; flex-direction: column; max-width: 72rem; margin: 0 auto; padding: 8px 16px 16px; }
.drawer nav a { padding: 12px 0; font-size: 15px; color: var(--fg-2); }
.drawer nav a.here { color: var(--fg); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, transform .15s ease-out;
}
.btn:hover { background: color-mix(in oklch, var(--accent), white 14%); text-decoration: none; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: var(--bg-soft); color: var(--fg); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.quiet { background: none; color: var(--fg); border-color: transparent; }
.btn.quiet:hover { background: var(--surface-2); }
.btn.danger { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 22%, transparent); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------- layout + heading */

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
section.zone { padding: 32px 0 56px; }

/* omarchy.org's page heading: wordmark, then a mono uppercase brand line. */
.page-heading { padding-bottom: 40px; text-align: center; }
.page-wordmark {
  /* Not type. The wordmark is a pixel bitmap on omarchy.org's own 51x50 grid,
     worn as a mask so the field gradient shows through it -- the same
     technique and the same five --t-field-* stops the Omarchy mark uses, so
     it re-themes for free and never softens at any size.
     Regenerate the mask with scripts/build-wordmark.py. */
  width: 59.5%; max-width: 26.775rem; margin: 0 auto 12px;
  aspect-ratio: 6375 / 800;
  background-color: var(--t-field-lit);
  background-image: linear-gradient(to bottom,
    var(--t-field-crest) 0% 26.316%,
    var(--t-field-hover) 26.316% 36.842%,
    var(--t-field-lit) 36.842% 57.895%,
    var(--t-field-mid) 57.895% 73.684%,
    var(--t-field-dim) 73.684% 100%);
  -webkit-mask-image: url(/brand/lockscreens-wordmark.svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url(/brand/lockscreens-wordmark.svg);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.page-subtitle {
  margin-top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
@media (min-width: 640px) { .page-subtitle { font-size: 14px; } }

/* The instruction line under a page heading, and the controls row above the
   grid. omarchy.org keeps both quiet: small mono, muted, brand only on the
   words that name a place you go. */
.page-lede {
  margin-top: 12px; font-family: var(--mono); font-size: 13px;
  color: var(--muted); text-align: center;
}
.page-lede .step { color: var(--fg-2); }
.page-lede a { color: var(--accent); text-decoration: none; }
.page-lede a:hover { text-decoration: underline; text-underline-offset: 3px; }

.listbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 28px; flex-wrap: wrap;
  margin: 36px 0 24px; padding-bottom: 14px;
  box-shadow: inset 0 -1px 0 0 var(--border-subtle);
}
.listbar-search { display: flex; align-items: center; gap: 14px; }
.listbar-search input[type="search"] {
  width: 240px; padding: 6px 0; background: none; border: 0;
  box-shadow: inset 0 -1px 0 0 var(--border-strong);
  color: var(--fg); font-family: var(--mono); font-size: 13px;
}
.listbar-search input[type="search"]:focus {
  outline: none; box-shadow: inset 0 -1px 0 0 var(--accent);
}
.listbar-tags { gap: 18px; }

.empty-note { color: var(--muted); text-align: center; padding: 48px 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
h1.page { font-family: var(--mono); font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-family: var(--mono); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; }
.lede { color: var(--fg-2); max-width: var(--measure); }
.section-heading {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-heading h2 { margin: 0; }
.section-heading .more { margin-left: auto; font-size: 13px; color: var(--fg-2); }
.section-heading .more:hover { color: var(--fg); text-decoration: none; }

/* ------------------------------------------------------------ pixel field */

/* A nod to omarchy.org's hero: a square-cell grid that lights up in the
   theme's field colors. Canvas-drawn, so a thousand cells cost one node. */
.field { position: relative; isolation: isolate; overflow: hidden; background: var(--t-field-bg); }
.field > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.field-hero { border-bottom: 1px solid var(--border); }

/* ---------------------------------------------------------------- cards */

/* omarchy.org's theme grid, to the pixel: one column, two from 640, three
   from 1024, with more air between rows than columns. */
.cardgrid { display: grid; grid-template-columns: 1fr; gap: 28px 16px; }
@media (min-width: 640px) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cardgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cardgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .cardgrid.two { grid-template-columns: 1fr; } }

/* No card box. The screenshot carries the design and everything else gets
   out of its way -- a hairline outline, and one line of 13px mono beneath
   that lifts from secondary to full text on hover. */
.dcard { display: block; color: inherit; }
.dcard:hover { text-decoration: none; }
.dcard .thumb {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  background: var(--bg-hard);
  box-shadow: inset 0 0 0 1px var(--t-img-outline);
}
.dcard-label {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1.4;
  color: var(--fg-2); transition: color .15s ease-out;
}
.dcard:hover .dcard-label { color: var(--fg); }
.dcard-by { color: var(--muted); margin-left: 8px; }

.verified {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--accent);
  background: var(--accent-soft); padding: 3px 8px; white-space: nowrap;
}

/* A plain panel — replaces the old fake window chrome. */
.panel { background: var(--bg-soft); box-shadow: var(--t-elevation); padding: 20px; }
.panel .n {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.panel p { color: var(--fg-2); font-family: var(--sans); font-size: 14.5px; }

/* -------------------------------------------------------------- previews */

.pv, .pv-fill { position: absolute; inset: 0; }
.pv-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: 1px solid var(--t-img-outline); outline-offset: -1px; }
.thumb .pv-img { object-fit: cover; object-position: center; }
.detail-preview .pv-img { object-fit: contain; background: var(--bg-hard); }
.thumb, .detail-preview { container-type: size; position: relative; overflow: hidden; }
.pvclock { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 18cqmin; letter-spacing: .05em; color: var(--fg); line-height: 1.1; }
.pv-video {
  position: absolute; right: 4cqmin; top: 4cqmin; z-index: 2;
  font-family: var(--mono); font-size: 3.4cqmin; letter-spacing: .14em;
  color: var(--magenta); background: color-mix(in srgb, var(--bg-hard) 70%, transparent);
  border: 1px solid var(--magenta); padding: .8cqmin 2.2cqmin;
}

/* ----------------------------------------------------------- command box */

.cmd {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-hard); box-shadow: var(--t-elevation);
  padding: 12px 14px; font-family: var(--mono); font-size: 13px;
}
.cmd code { color: var(--fg); overflow-wrap: anywhere; }
.cmd .copy {
  margin-left: auto; flex: none; cursor: pointer; font: inherit; font-size: 12px;
  background: var(--surface-2); color: var(--fg-2); border: 0;
  padding: 5px 10px; transition: color .15s ease-out, background-color .15s ease-out;
}
.cmd .copy:hover { color: var(--accent-ink); background: var(--accent); }

/* Terminal transcript block */
.term { background: var(--bg-hard); box-shadow: var(--t-elevation); padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.term .c { color: var(--muted); }
.term .p { color: var(--accent); }

/* ---------------------------------------------------------------- chips */

.chips { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.chip {
  padding: 4px 2px; color: var(--muted); background: none;
  border: 0; border-bottom: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 13px;
  transition: color .15s ease-out, border-color .15s ease-out;
}
.chip:hover { color: var(--fg); border-bottom-color: var(--border-strong); text-decoration: none; }
.chip.on { color: var(--accent); border-bottom-color: var(--accent); }
.tagchip { padding: 4px 10px; background: var(--surface-2); color: var(--fg-2); font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- forms */

.field-label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.field-label .note { text-transform: none; letter-spacing: 0; color: var(--muted); }
input[type=text], input[type=url], input[type=search], input[type=password], textarea, select {
  width: 100%; background: var(--bg-hard); border: 1px solid var(--border-strong);
  padding: 10px 12px; color: var(--fg); font-family: var(--mono); font-size: 13px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { font-family: var(--sans); font-size: 14px; min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

/* -------------------------------------------------- status + scan report */

.scanline { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 13px; line-height: 2; color: var(--muted); }
.scanline.ok::before { content: '✓'; color: var(--accent); }
.scanline.warn::before { content: '!'; color: var(--yellow); }
.scanline.warn { color: var(--yellow); }
.scanline.fail::before { content: '✗'; color: var(--red); }
.scanline.fail { color: var(--red); }

.status {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border-strong); padding: 3px 8px; color: var(--muted); white-space: nowrap;
}
.status.approved { color: var(--accent); border-color: var(--accent); }
.status.needsreview, .status.scanning { color: var(--yellow); border-color: var(--yellow); }
.status.rejected, .status.revoked { color: var(--red); border-color: var(--red); }
.status.unlisted { color: var(--accent2); border-color: var(--accent2); }

.kv { font-family: var(--mono); font-size: 12.5px; line-height: 2.1; color: var(--muted); background: var(--bg-hard); box-shadow: var(--t-elevation); padding: 14px 16px; }
.kv > div { display: flex; gap: 12px; }
.kv > div > :last-child { margin-left: auto; color: var(--fg); text-align: right; overflow-wrap: anywhere; }

.alert { border-left: 2px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, transparent); padding: 12px 16px; font-family: var(--mono); font-size: 12.5px; color: var(--fg); margin-bottom: 20px; }
.alert.bad { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }

/* --------------------------------------------------------- theme picker */

/* The theme picker, after omarchy.org's: a coverflow of sheared cards over a
   dimmed page, the one in the middle bright and its neighbours pushed aside
   and dulled, with the theme's name under them.

   omarchy.org shows a screenshot of each theme on a desktop. This has no such
   pictures to show, so every card renders itself: the palettes are scoped
   [data-theme='x'] rather than :root[data-theme='x'], which means a card can
   carry its own data-theme and everything inside it -- the wordmark's
   gradient included -- comes out in that theme. Live, and nothing to
   regenerate when the design changes. */

/* The mark: the same padlock the favicon carries, worn as a mask so it takes
   the theme's accent without a second file per theme. */
.mark-glyph {
  display: block; width: 18px; height: 18px; flex: none;
  background: var(--accent);
  -webkit-mask-image: url(/brand/lockscreens-mark.svg);
  -webkit-mask-repeat: no-repeat; -webkit-mask-size: 100% 100%;
  mask-image: url(/brand/lockscreens-mark.svg);
  mask-repeat: no-repeat; mask-size: 100% 100%;
}

.picker { position: relative; }

.picker-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  outline: none;
}
.picker-modal[hidden] { display: none; }

.picker-dim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg-hard) 72%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.picker-stage {
  position: relative;
  width: 100%;
  height: min(46vw, 22rem);
  display: flex; align-items: center; justify-content: center;
}

/* One card. The 2.5% lean is the same one the theme wipe cuts across the
   page, so the picker and the transition share a geometry. */
.picker-card {
  position: absolute;
  width: min(68vw, 42rem);
  cursor: pointer;
  background: none; border: 0; padding: 0;
  transition: transform .28s ease-out, opacity .28s ease-out, filter .28s ease-out;
  will-change: transform;
}
.picker-card .frame {
  clip-path: polygon(2.5% 0%, 100% 0%, 97.5% 100%, 0% 100%);
  background: var(--border-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / .45);
}
.picker-card .inner {
  clip-path: polygon(calc(2.5% + 1px) 1px, calc(100% - 1px) 1px,
                     calc(97.5% - 1px) calc(100% - 1px), 1px calc(100% - 1px));
  background: var(--t-field-bg);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}

/* What a card shows: that theme's ground, its wordmark in its own field
   gradient, and a strip of the colours the rest of the site is built from. */
.picker-card .mark {
  width: 62%;
  aspect-ratio: 6375 / 800;
  background-color: var(--t-field-lit);
  background-image: linear-gradient(to bottom,
    var(--t-field-crest) 0% 26.316%,
    var(--t-field-hover) 26.316% 36.842%,
    var(--t-field-lit) 36.842% 57.895%,
    var(--t-field-mid) 57.895% 73.684%,
    var(--t-field-dim) 73.684% 100%);
  -webkit-mask-image: url(/brand/lockscreens-wordmark.svg);
  -webkit-mask-repeat: no-repeat; -webkit-mask-size: 100% 100%;
  mask-image: url(/brand/lockscreens-wordmark.svg);
  mask-repeat: no-repeat; mask-size: 100% 100%;
}
.picker-card .swatches {
  position: absolute; left: 6%; bottom: 9%;
  display: flex; gap: 6px;
}
.picker-card .swatches i {
  width: clamp(10px, 1.6vw, 18px); aspect-ratio: 1; display: block;
}
.picker-card .chip {
  position: absolute; right: 6%; bottom: 9%;
  font-family: var(--mono); font-size: clamp(8px, 1.1vw, 12px);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

/* Off-centre cards sit behind, smaller and duller, the way a coverflow
   reads: the one you would land on is the only one fully lit. */
.picker-card[data-at="0"]  { transform: translateX(0) scale(1);          z-index: 10; opacity: 1; }
.picker-card[data-at="-1"] { transform: translateX(-30%) scale(.88);     z-index: 8;  opacity: .62; }
.picker-card[data-at="1"]  { transform: translateX(30%) scale(.88);      z-index: 8;  opacity: .62; }
.picker-card[data-at="-2"] { transform: translateX(-55%) scale(.78);     z-index: 6;  opacity: .34; }
.picker-card[data-at="2"]  { transform: translateX(55%) scale(.78);      z-index: 6;  opacity: .34; }
.picker-card[data-far]     { transform: translateX(0) scale(.7);         z-index: 1;  opacity: 0; pointer-events: none; }
.picker-card[data-at="-1"]:hover, .picker-card[data-at="1"]:hover,
.picker-card[data-at="-2"]:hover, .picker-card[data-at="2"]:hover { opacity: .85; }

.picker-name {
  position: relative;
  margin-top: clamp(18px, 3vw, 34px);
  font-family: var(--mono); font-size: clamp(18px, 2.4vw, 26px); font-weight: 700;
  color: var(--fg); letter-spacing: .02em;
}
.picker-hint {
  position: relative;
  margin-top: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .picker-card { transition: none; }
}

/* --------------------------------------------------------------- footer */

footer.site {
  margin-top: 64px; border-top: 1px solid var(--border);
  background: var(--t-field-bg); position: relative; isolation: isolate; overflow: hidden;
}
/* The footer wears the field as texture, not as a subject — the columns have
   to stay readable across the whole width, where the hero's clear core is no
   help. */
footer.site > canvas { opacity: .3; }
footer.site .inner { max-width: 72rem; margin: 0 auto; padding: 56px 16px; }
@media (min-width: 640px) { footer.site .inner { padding: 56px 24px; } }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site .about { flex: 1 1 320px; max-width: 24rem; }
footer.site .fmark { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
footer.site .about p { margin-top: 16px; font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--muted); }
footer.site .col { min-width: 140px; }
footer.site .col h2 { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
footer.site .col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--fg-2); }
footer.site .col a:hover { color: var(--fg); text-decoration: none; }
footer.site .legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px;
}
footer.site .legal a { color: var(--muted); }
footer.site .legal a:hover { color: var(--fg); text-decoration: none; }

/* ------------------------------------------------------- panel (compat) */

/* The admin, apply and review pages still mark their boxes up as the old
   fake window chrome. Rather than restyle three pages twice, the same markup
   is redrawn in the new language: a flat panel with a mono label strip, and
   no traffic lights. */
.win { background: var(--bg-soft); box-shadow: var(--t-elevation); }
.win.active { box-shadow: 0 0 0 1px var(--accent); }
.win-tb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 11px 16px;
  background: var(--bg-hard); border-bottom: 1px solid var(--border);
}
.win-tb .dots { display: none; }
.win-body { padding: 20px; }


/* --------------------------------------------------- the not-ready notice */
/* Under the hero buttons, because installing is the part that does not work
   yet -- a strip across every page said it louder than it needed to. The dot
   is inline rather than a flex item, so it stays against the first word
   instead of drifting off to the left when the text wraps. */
.hero-note {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}

.hero-note .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--yellow);
  vertical-align: middle;
}


/* ------------------------------------------------------ install by hand */
/* The steps under a design, for while the plugin's own install is not live.
   The copy button itself is the shared .cmd one, so this is only the list. */
.byhand {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: byhand;
  font-size: 13px;
  color: var(--fg-2);
}

.byhand li {
  counter-increment: byhand;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 4px 0;
}

.byhand li::before {
  content: counter(byhand);
  flex: none;
  width: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.byhand kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 6px;
  color: var(--fg);
  background: var(--surface-2);
  box-shadow: var(--t-elevation);
}

/* The filename row reuses .cmd; `open` sits beside the copy button. */
.cmd > a {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: var(--muted);
}

.cmd > a:hover { color: var(--accent); }
.cmd > a + .copy { margin-left: 0; }


/* Shown only when the clipboard refused, so the QML can still be selected. */
pre.revealed {
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--bg-hard);
  box-shadow: var(--t-elevation);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-2);
  white-space: pre;
  -webkit-user-select: all;
  user-select: all;
}
