/* Lonestar Labs look for the sister portal (portal.lonestarlabs.io, 2026-11-09). Loaded last, only when the request's
   host is the Lonestar address (src/shared/brand.ts). Same pages and markup as AdametherzLab; only tokens and a few
   component rules change. Taken from the lonestarlabs.io homepage: bone paper, navy ink, rust accents, Roboto Slab
   headings, IBM Plex Sans body, IBM Plex Mono labels, square buttons and ticket cards with hard navy offset shadows.
   Light only: a dark Lonestar page reads as the video look, not the web brand. */

@font-face {
  font-family: "Roboto Slab";
  src: url("/static/fonts/roboto-slab.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root[data-brand="lonestar"] {
  color-scheme: light;
  --night: #0B1726; --night-2: #142133; --night-ink: #F4EFE6; --night-muted: #c9c0ae;
  --teal: #E8835C; --gold: #E8835C; --magenta: #C2502B;
  --pattern: url("/static/img/lonestar/pattern.svg");
  --brand-line: repeating-linear-gradient(90deg, #C2502B 0 26px, #9A3E20 26px 52px);
  --bg: #F4EFE6; --surface: #FBF8F1; --surface-2: #EFE8DA; --ink: #0B1726; --muted: #46536a;
  --line: #d6cbb5; --line-strong: #8f8572;
  --accent: #0B1726; --accent-hover: #C2502B; --accent-ink: #F4EFE6; --accent-soft: #EAE3D4; --accent-text: #9A3E20;
  --good: #1d6a43; --good-soft: #dfeadb; --warn: #845000; --warn-soft: #f5e6c6; --bad: #a3271b; --bad-soft: #f6ded6;
  --info: #0B1726; --info-soft: #EAE3D4; --focus: #C2502B;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Roboto Slab", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 4px; --radius-sm: 2px;
  --shadow: 6px 6px 0 0 #0B1726;
  --shadow-lift: 8px 8px 0 0 #C2502B;
}
@media (prefers-color-scheme: dark) {
  :root[data-brand="lonestar"] {
    --bg: #F4EFE6; --surface: #FBF8F1; --surface-2: #EFE8DA; --ink: #0B1726; --muted: #46536a;
    --line: #d6cbb5; --line-strong: #8f8572;
    --accent: #0B1726; --accent-hover: #C2502B; --accent-ink: #F4EFE6; --accent-soft: #EAE3D4; --accent-text: #9A3E20;
    --good: #1d6a43; --good-soft: #dfeadb; --warn: #845000; --warn-soft: #f5e6c6; --bad: #a3271b; --bad-soft: #f6ded6;
    --info: #0B1726; --info-soft: #EAE3D4; --focus: #C2502B;
    --shadow: 6px 6px 0 0 #0B1726;
    --shadow-lift: 8px 8px 0 0 #C2502B;
  }
}

/* Type */
[data-brand="lonestar"] h1, [data-brand="lonestar"] h2, [data-brand="lonestar"] h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; }
[data-brand="lonestar"] .eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.18em; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
[data-brand="lonestar"] .eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* Header: a navy band, the rust star, the name in slab capitals, a rust ticker stripe under it */
[data-brand="lonestar"] .site-header::after { height: 4px; }
[data-brand="lonestar"] .brand-mark { border-radius: 8px; }
[data-brand="lonestar"] .brand-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; }
[data-brand="lonestar"] .brand-sub { font-family: var(--mono); font-weight: 500; letter-spacing: 0.16em; }
[data-brand="lonestar"] .footer-brand { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }

/* Cards: tickets with a hard navy edge */
[data-brand="lonestar"] .card { border: 2px solid var(--ink); }
[data-brand="lonestar"] .session-card { border-left: 6px solid var(--magenta); }

/* Buttons: square, mono capitals, navy that turns rust */
[data-brand="lonestar"] .btn, [data-brand="lonestar"] .btn-signout {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem;
}
[data-brand="lonestar"] .btn { border-width: 2px; border-color: var(--ink); }
[data-brand="lonestar"] .btn-primary { box-shadow: none; }
[data-brand="lonestar"] .btn:active { transform: translateY(1px); }
[data-brand="lonestar"] .btn-danger { border-color: var(--bad); }
[data-brand="lonestar"] .btn-link { font-family: inherit; text-transform: none; letter-spacing: 0; }
/* The big dashboard tiles keep readable sentence case; only their frame changes. */
[data-brand="lonestar"] .big-buttons .btn-big { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: var(--text-lg); font-weight: 600; }
[data-brand="lonestar"] .big-buttons .btn-big > .icon:first-child { border-radius: 2px; }
[data-brand="lonestar"] .big-buttons .btn-big:hover { transform: translate(-2px, -2px); }

/* Fields */
[data-brand="lonestar"] input[type="text"], [data-brand="lonestar"] input[type="email"], [data-brand="lonestar"] input[type="password"],
[data-brand="lonestar"] input[type="tel"], [data-brand="lonestar"] input[type="url"], [data-brand="lonestar"] input[type="number"],
[data-brand="lonestar"] input[type="datetime-local"], [data-brand="lonestar"] input[type="search"],
[data-brand="lonestar"] select, [data-brand="lonestar"] textarea { border-width: 1.5px; background: #FFFDF8; }

/* Pills, progress and icon tiles go square */
[data-brand="lonestar"] .pill { border-radius: 2px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
[data-brand="lonestar"] progress.bar, [data-brand="lonestar"] progress.bar::-webkit-progress-bar { border-radius: 0; height: 10px; }
[data-brand="lonestar"] progress.bar::-webkit-progress-value { background: var(--brand-line); border-radius: 0; }
[data-brand="lonestar"] progress.bar::-moz-progress-bar { background: var(--brand-line); border-radius: 0; }
[data-brand="lonestar"] h1 > .icon:first-child, [data-brand="lonestar"] h2 > .icon:first-child { border-radius: 2px; }

/* Sign-in panel: navy with the star outline and a low rust glow instead of the teal and magenta */
[data-brand="lonestar"] .auth-hero {
  background-image: var(--pattern), radial-gradient(110% 90% at 100% 0%, rgba(194, 80, 43, 0.28), transparent 60%);
  background-size: 360px 360px, auto;
  background-position: right -120px bottom -120px, 0 0;
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 0 #C2502B;
}
[data-brand="lonestar"] .hero-points .icon { border-radius: 2px; }
/* On navy the eyebrow is the light rust, not the paper rust. */
[data-brand="lonestar"] .auth-hero .eyebrow { color: var(--gold); }
[data-brand="lonestar"] .auth-hero h2 { max-width: 16ch; }
