/* schmayterling kit tokens (schmayterling-brand/kit/tokens.css v0.5) plus the chrome every page shares:
   the desktop-only screen. Loaded by the login page and the app. */
@font-face { font-family: "Schmayterling Sans"; src: url("/fonts/schmayterling-sans.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --ink: oklch(0.2316 0.0038 286);      /* #1d1d1f */
  --paper: oklch(1 0 0);                /* #ffffff */
  --surface: oklch(0.9707 0 0);         /* #f5f5f5 */
  --muted: oklch(0.49 0.008 286);       /* #606065, 6.25:1 on paper */
  --line: oklch(0.8652 0.003 286);      /* #d2d2d4 */
  --line-strong: oklch(0.62 0.006 286); /* control edges, 3:1 or more on paper */

  --font-display: "Schmayterling Sans", "Geist", -apple-system, system-ui, sans-serif;
  --font-sans: "Geist", -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --text-label: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-title: 1.5rem;
  --text-display: 2.5rem;
  --tracking-body: -0.02em;

  --radius-control: 6px;
  --radius-card: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: oklch(0.9707 0 0);
    --paper: oklch(0.2316 0.0038 286);
    --surface: oklch(0.27 0.004 286);
    --muted: oklch(0.72 0.008 286);
    --line: oklch(0.38 0.004 286);
    --line-strong: oklch(0.56 0.006 286);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-small) / 1.5 var(--font-sans);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* desktop only: on phones and tablets the whole screen asks for a desktop instead */
.desktop-only { display: none; }
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  body > :not(.desktop-only) { display: none !important; }
  .desktop-only {
    display: grid;
    place-content: center;
    gap: 16px;
    min-height: 100dvh;
    padding: 32px;
    text-align: center;
  }
  .desktop-only img { width: 56px; height: auto; justify-self: center; }
  .desktop-only h1 { margin: 0; font: 400 var(--text-title) / 1.2 var(--font-display); }
  .desktop-only p { margin: 0; color: var(--muted); max-width: 30ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
