/* Caslog theme — loaded only for the "caslog" profile (body.theme-caslog).
   Mirrors the website: flat paper surfaces, ink + signal red, Barlow Condensed /
   IBM Plex. Fonts are self-hosted because the CSP is default-src 'self'. */
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("/static/fonts/barlow-condensed-900-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-400-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

html:has(body.theme-caslog) { background: oklch(93.5% 0.013 78); }

body.theme-caslog {
  --accent: oklch(50% 0.2 25);
  --ink: oklch(13% 0.014 78);
  --muted: oklch(48% 0.011 75);
  --line: oklch(82% 0.008 75);
  --line-strong: oklch(79% 0.011 75);
  --surface: oklch(96% 0.01 78);
  --surface-soft: oklch(90% 0.015 78);
  --radius: 2px;
  --shadow: none;
  --font-display: "Barlow Condensed", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: oklch(93.5% 0.013 78);
  font-family: "IBM Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
}

.theme-caslog .brand { font-size: 1.7rem; }
.theme-caslog .brand-logo { display: block; width: auto; height: 2.4rem; }
.theme-caslog .brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.theme-caslog .card { border-color: var(--line-strong); background: var(--surface); }
.theme-caslog .brand-mark,
.theme-caslog .card,
.theme-caslog .button,
.theme-caslog button.slot,
.theme-caslog #details,
.theme-caslog #details input,
.theme-caslog #details textarea,
.theme-caslog .chosen-wrap,
.theme-caslog .event-card,
.theme-caslog .notice,
.theme-caslog .warn,
.theme-caslog #tzpicker { border-radius: var(--radius); }
.theme-caslog .lang { background: transparent; }
.theme-caslog .button.primary,
.theme-caslog button.slot:hover,
.theme-caslog button.slot.selected,
.theme-caslog .button:hover { box-shadow: none; }
.theme-caslog #details input,
.theme-caslog #details textarea,
.theme-caslog .chosen-wrap,
.theme-caslog .button.secondary { background: var(--surface); }
.theme-caslog #details input:focus,
.theme-caslog #details textarea:focus,
.theme-caslog #tzpicker:focus { box-shadow: 0 0 0 3px oklch(50% 0.2 25 / 0.12); }
.theme-caslog :focus-visible { outline-color: oklch(50% 0.2 25 / 0.5); }
.theme-caslog .event-dot { box-shadow: 0 0 0 4px oklch(50% 0.2 25 / 0.12); }
.theme-caslog .week span[aria-disabled="true"],
.theme-caslog .none,
.theme-caslog #details input::placeholder,
.theme-caslog #details textarea::placeholder { color: oklch(62% 0.01 75); }
.theme-caslog .lead,
.theme-caslog .day h2,
.theme-caslog #details label { color: var(--ink); }

.theme-caslog h1,
.theme-caslog #details > h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  max-width: 22ch;
  line-height: 1.02;
}
.theme-caslog h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.theme-caslog .eyebrow,
.theme-caslog .chosen-wrap span,
.theme-caslog .lang,
.theme-caslog .week {
  font-family: var(--font-mono);
  font-weight: 500;
}
.theme-caslog .day h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; }
.theme-caslog button.slot { font-family: var(--font-mono); font-weight: 500; }
.theme-caslog .button { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
