/* 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); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; }
header.top { display: flex; align-items: center; gap: 10px; padding: 18px 0 28px; }
header.top .brand { margin-right: auto; }
.lang { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 11px/1.4 var(--mono); text-transform: uppercase; }
.lang a { padding: 3px 7px; border-radius: 999px; color: var(--muted); }
.lang a.active { background: var(--sunken); color: var(--text); }
.home-hero { padding: clamp(38px, 8vw, 84px) 0 clamp(52px, 9vw, 92px); }
.home-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.home-kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.home-hero h1 { max-width: 790px; font: 400 clamp(48px, 9vw, 92px)/.98 var(--display); letter-spacing: -.035em; }
.home-lead { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.home-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.home-note > div { padding: 20px; border-top: 1px solid var(--line); }
.home-note strong { display: block; margin-bottom: 5px; font: 400 20px/1.25 var(--serif); }
.home-note p { margin: 0; color: var(--muted); font-size: 14px; }
.drops-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.drops-head h2 { margin: 0; font: 400 clamp(28px, 4vw, 42px)/1.1 var(--serif); text-transform: none; letter-spacing: -.02em; color: var(--text); }
.drops-head p { max-width: 430px; margin: 0; color: var(--muted); }
.drop-search { display: flex; gap: 8px; margin-bottom: 18px; }
.drop-search input[type="search"] { flex: 1; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin: 0 0 2px; font: 400 18px/1.25 var(--serif); }
.card p { margin: 0; color: var(--muted); font-size: 13px; min-height: 20px; }
.card .meta { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); align-items: center; }
.card .meta .who { margin-left: auto; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.narrow { max-width: 380px; margin: 8vh auto 0; }
h1 { font: 400 30px/1.1 var(--serif); letter-spacing: -0.02em; margin: 0; }
h2 { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 32px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
pre { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.bad { color: var(--bad); border-color: currentColor; }
.flash { padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--accent); margin-bottom: 18px; word-break: break-all; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
form.inline { display: inline; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .off { color: var(--line); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.code-big { font: 600 28px var(--mono); letter-spacing: 0.12em; text-align: center; padding: 14px; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
label.check input { width: auto; }
.zone { display: grid; place-items: center; gap: 14px; padding: 56px 20px; border: 2px dashed var(--line); border-radius: 24px; background: var(--surface); text-align: center; transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.zone.over { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.zone h1 { font: 400 clamp(28px, 4vw, 40px)/1.1 var(--display); }
.zone .arrow { font-size: 34px; line-height: 1; color: var(--accent); }
.zone input[type="file"] { display: none; }
.staged { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.staged .slugrow { display: flex; align-items: center; gap: 6px; }
.staged .slugrow input { flex: 1; font-family: var(--mono); font-size: 14px; }
.bar { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 150ms linear; }
.findings { margin: 0; padding: 0; list-style: none; font-size: 13px; display: grid; gap: 6px; }
.findings li { padding-left: 10px; border-left: 2px solid var(--warn); }
.findings.bad li { border-left-color: var(--bad); }
.live { font: 400 22px/1.3 var(--serif); word-break: break-all; }
.prompt { max-height: 240px; overflow: auto; white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; }
details > summary { cursor: pointer; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 32px 0 12px; list-style: none; }
details > summary::before { content: "+ "; }
details[open] > summary::before { content: "− "; }
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  header.top { flex-wrap: wrap; }
  header.top .brand { min-width: 0; }
  .home-note { grid-template-columns: 1fr; }
  .home-note > div { padding-inline: 0; }
  .drops-head { align-items: start; flex-direction: column; }
}
