/* MyBlueBerry — myblueberrylabs.com
   Palette mirrors MyBlueBerry/DesignSystem/Colors.swift (committed tokens).
   Dark is the brand default — the app is dark-mode-first by design —
   with a light variant for prefers-color-scheme: light.
   Fonts: Fraunces + IBM Plex Mono, self-hosted under fonts/ (SIL OFL 1.1,
   license files alongside). Body text uses the system sans stack. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d28;
  --surface-hi: #23273a;
  --text: #efece6;
  --text-secondary: #797c8e;
  --text-tertiary: #4a4d5e;
  --accent: #e8a99a;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fdfcfa;
    --surface: #f2f0ec;
    --surface-hi: #e9e6e0;
    --text: #1c1f2e;
    --text-secondary: #6b6e7e;
    --text-tertiary: #9a9daa;
    --accent: #b5654d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 680px;
  padding: 48px 20px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.1em; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.3em; margin-top: 2em; }

a { color: var(--accent); }

.eyebrow {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.muted { color: var(--text-secondary); }

ul { padding-left: 1.2em; }
li { margin: 0.3em 0; }

img.screenshot {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 1.2em auto;
  border-radius: 16px;
  border: 1px solid var(--surface-hi);
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 1.2em 0;
}
.card h2, .card h3 { margin-top: 0.2em; }

.badge {
  display: inline-block;
  margin-top: 1.2em;
  padding: 12px 22px;
  border: 1px solid var(--text-tertiary);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.badge .muted { font-size: 0.8em; display: block; font-weight: 400; }

footer {
  margin-top: 4em;
  padding-top: 1.5em;
  border-top: 1px solid var(--surface-hi);
  font-size: 0.85em;
  color: var(--text-secondary);
}
footer a { color: var(--text-secondary); }

nav.home { margin-bottom: 1em; }
nav.home a {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-secondary);
}
