@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/branding/SchibstedGrotesk-Bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Semantic aliases come from the supplied Foxo design system, including dark mode. */
html:root {
  --font-sans: var(--fx-font-text);
  --font-mono: var(--fx-font-mono);
  --radius: var(--fx-r-md);
  font-family: var(--fx-font-text);
}
html:root:not([data-foxo-platform]) {
  --background: var(--fx-ground);
  --dialog: var(--fx-surface-raised);
  --foreground: var(--fx-ink);
  --card: var(--fx-surface);
  --card-foreground: var(--fx-ink);
  --popover: var(--fx-surface-raised);
  --popover-foreground: var(--fx-ink);
  --primary: var(--fx-action);
  --primary-foreground: var(--fx-on-action);
  --primary-hover: var(--fx-action-hover);
  --primary-disabled: var(--fx-action-tint);
  --secondary: var(--fx-surface-sunken);
  --secondary-foreground: var(--fx-ink);
  --muted: var(--fx-surface-sunken);
  --muted-foreground: var(--fx-muted);
  --faint-foreground: var(--fx-faint);
  --accent: var(--fx-action-tint);
  --accent-foreground: var(--fx-ink);
  --destructive: var(--fx-red);
  --destructive-fill: var(--fx-red);
  --destructive-foreground: #fff;
  --border: var(--fx-border);
  --input: var(--fx-border-strong);
  --ring: var(--fx-focus);
  --sidebar: var(--fx-surface);
  --sidebar-foreground: var(--fx-ink);
  --sidebar-border: var(--fx-border);
  --sidebar-accent: var(--fx-action-tint);
  --sidebar-accent-foreground: var(--fx-action);
  --link: var(--fx-link);
  --success: var(--fx-green);
  --warning: var(--fx-amber);
  --status-working: var(--fx-action);
  --unread: var(--fx-action);
}
html:root[data-foxo-platform] {
  --bg: var(--fx-ground);
  --surface: var(--fx-surface);
  --ink: var(--fx-ink);
  --muted: var(--fx-muted);
  --line: var(--fx-border);
  --nav: var(--fx-surface-sunken);
  --good: var(--fx-green);
  --good-bg: var(--fx-green-tint);
  --warn: var(--fx-amber);
  --warn-bg: var(--fx-amber-tint);
  --bad: var(--fx-red);
  --bad-bg: var(--fx-red-tint);
  --focus: var(--fx-focus);
  background: var(--fx-ground);
  color: var(--fx-ink);
}
[data-foxo-platform] h1,
[data-foxo-platform] h2,
[data-rakazo-surface="auth"] h1 {
  font-family: var(--fx-font-display);
  font-weight: var(--fx-weight-display);
  letter-spacing: var(--fx-track-display);
  line-height: var(--fx-lh-snug);
}
[data-foxo-platform] h1 { font-size: var(--fx-fs-2xl); }
[data-foxo-platform] .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--fx-sp-2);
  padding-top: var(--fx-sp-2);
}
[data-foxo-platform] .brand small { margin: 0; }
[data-foxo-platform] .brand [data-foxo-wordmark] { width: 128px; }
.foxo-wordmark { display: block; width: 100%; height: auto; color: var(--fx-ink); }
.foxo-logo-accent { fill: var(--fx-action); }
[data-foxo-platform] .button:not(.secondary) {
  background: var(--fx-action);
  border-color: var(--fx-action);
  color: var(--fx-on-action);
}
[data-foxo-platform] .button:not(.secondary):hover {
  background: var(--fx-action-hover);
  border-color: var(--fx-action-hover);
  filter: none;
}
[data-foxo-platform] .button.secondary:hover { background: var(--fx-surface-sunken); filter: none; }
[data-foxo-platform] .nav.active { color: var(--fx-action); background: var(--fx-action-tint); }
[data-foxo-platform] input,
[data-foxo-platform] select { border-color: var(--fx-border-strong); }
[data-foxo-platform] dialog { background: var(--fx-surface-raised); box-shadow: var(--fx-shadow-3); }
[data-foxo-platform] dialog::backdrop { background: var(--fx-scrim); }
[data-rakazo-surface="auth"] { background: var(--fx-ground); color: var(--fx-ink); }
[data-rakazo-surface="auth"] form {
  padding: var(--fx-sp-10);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-r-lg);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow-1);
}
[data-rakazo-surface="auth"] [data-foxo-wordmark] {
  display: block;
  width: 184px;
  height: auto;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  margin: var(--fx-sp-2) var(--fx-sp-8) 0;
}
[data-rakazo-surface="auth"] [data-foxo-wordmark] > span { display: none; }
[data-rakazo-surface="auth"] h1 { font-size: var(--fx-fs-2xl); margin-top: var(--fx-sp-8); margin-bottom: var(--fx-sp-8); }
[data-rakazo-surface="auth"] input { background: var(--fx-surface); border-color: var(--fx-border-strong); }
[data-rakazo-surface="auth"] a { color: var(--fx-link); }
::selection { background: var(--fx-selection); }
@media (max-width: 600px) {
  [data-rakazo-surface="auth"] form { padding: var(--fx-sp-8) var(--fx-sp-6); }
  [data-rakazo-surface="auth"] h1 { font-size: var(--fx-fs-xl); }
  [data-rakazo-surface="auth"] [data-foxo-wordmark] { width: 160px; }
  [data-foxo-platform] .brand { padding: 0; }
  [data-foxo-platform] .brand small { display: none; }
  [data-foxo-platform] .brand [data-foxo-wordmark] { width: 104px; }
}
