/* Founders of Oulu brand, shared by vibe and spar. Palette, type and shadows follow
   foundersofoulu.com (app/globals.css there): warm paper by day, aurora night sky in
   the dark. Font files are served by each app from /brand/. */

@font-face { font-family: "DM Sans"; font-weight: 400 700; font-display: swap; src: url("/brand/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap; src: url("/brand/young-serif.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/brand/jetbrains-mono.woff2") format("woff2"); }
@font-face { font-family: "Dote"; font-weight: 400; font-display: swap; src: url("/brand/dote.woff2") format("woff2"); }

:root {
  --fo-aurora-midnight: #0b1f33;
  --fo-aurora-deep: #123a52;
  --fo-aurora-teal: #1b6b7a;
  --fo-aurora-glow: #2fb4a8;
  --fo-aurora-green: #3fd1a3;

  --bg: #fbf9f3;
  --surface: #ffffff;
  --sunken: #f3f0e6;
  --text: #0e0e0c;
  --muted: #55554f;
  --faint: #8c8c84;
  --line: #e6e4dc;
  --accent: var(--fo-aurora-teal);
  --accent-text: #fbf9f3;
  --ok: #1b8a6b;
  --warn: #e8a23a;
  --bad: #c84a3a;

  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 14, 12, 0.06), 0 1px 1px rgba(14, 14, 12, 0.04);
  --shadow-md: 0 2px 4px rgba(14, 14, 12, 0.06), 0 8px 24px rgba(14, 14, 12, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Young Serif", ui-serif, Georgia, serif;
  --display: "Dote", "Young Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--fo-aurora-midnight);
    --surface: #132b3f;
    --sunken: #0a1a2a;
    --text: #fbf9f3;
    --muted: #bfcad3;
    --faint: #8496a5;
    --line: rgba(255, 255, 255, 0.1);
    --accent: var(--fo-aurora-glow);
    --accent-text: var(--fo-aurora-midnight);
    --ok: var(--fo-aurora-green);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
/* Any display rule on a class would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection { background: color-mix(in oklab, var(--fo-aurora-teal) 30%, transparent); }

a { color: inherit; text-decoration: none; }
code, kbd, pre { font-family: var(--mono); font-size: 13px; }

/* Wordmark: the star mark next to the product name in the dotted display face. */
.brand { display: inline-flex; align-items: center; gap: 8px; font: 400 24px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 22px; height: 22px; }

button, .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 14px/1.5 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 120ms var(--ease), background 120ms var(--ease), transform 120ms var(--ease);
}
button:hover, .button:hover { border-color: var(--faint); }
button:active, .button:active { transform: translateY(1px); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover, .button.primary:hover { filter: brightness(1.08); }
button.ghost, .button.ghost { border-color: transparent; background: none; color: var(--muted); }
button.ghost:hover, .button.ghost:hover { background: var(--sunken); }
button.danger { color: var(--bad); }
button:disabled { opacity: 0.5; cursor: default; }

input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  outline-offset: 1px;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
/* Small caps label in mono, as used for tags and captions on the main site. */
.tag { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
