/* Yumi · shared base: fonts, tokens, the header, buttons and the CA pill.
   Every page loads this first; the landing adds site.css, the app pages app.css. */
@font-face { font-family: "Bricolage"; src: url("/fonts/BricolageGrotesque-Variable.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; 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; }

/* Yumi is dark: --paper is the page (near black), --ink the light foreground,
   --surface the raised cards and fields. */
:root {
  --paper: #050506;
  --paper-2: #111113;
  --paper-3: #1a1a1c;
  --surface: #0b0b0d;
  --surface-2: #121214;
  --surface-3: #19191c;
  --ink: #ededea;
  --ink-2: #d4d4cf;
  --ink-3: #a9a9a3;
  --mute: #84847e;
  --mute-2: #5b5b57;
  --line: rgba(237, 237, 234, 0.09);
  --line-2: rgba(237, 237, 234, 0.18);
  --d-line: rgba(237, 237, 234, 0.14);
  --d-mute: #84847e;
  --display: "Bricolage", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --gutter: clamp(16px, 3.2vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------- header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: color-mix(in srgb, var(--paper) 86%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); letter-spacing: -0.035em; font-stretch: 92%; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 26px; font: 500 14px/1 var(--sans); }
.nav-links a { opacity: 0.72; transition: opacity 0.2s; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-ca {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.02em; white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-ca:hover { border-color: currentColor; }
.nav-ca .ca-k { opacity: 0.55; letter-spacing: 0.12em; font-size: 10px; }
.nav-ca svg { width: 13px; height: 13px; opacity: 0.6; }
.nav-ca.is-copied { background: currentColor; }
.nav-ca.is-copied > * { color: var(--paper); opacity: 1; }

.nav-wallet {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px/1 var(--sans);
}
.nav-wallet:hover { border-color: currentColor; }
.led { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.wallet-connected .nav-wallet .led, .led.on { background: currentColor; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 13px/1 var(--sans); transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.2s, background-color 0.2s; }
.nav-x:hover { border-color: currentColor; background: rgba(237, 237, 234, 0.06); }
.nav-x svg { width: 14px; height: 14px; }
.nav-burger { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-burger i { width: 14px; height: 1.5px; background: currentColor; position: relative; display: block; }
.nav-burger i::before, .nav-burger i::after { content: ""; position: absolute; left: 0; width: 14px; height: 1.5px; background: currentColor; }
.nav-burger i::before { top: -5px; } .nav-burger i::after { top: 5px; }

@media (max-width: 980px) {
  .nav-ca { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 8px var(--gutter) 18px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links a { padding: 13px 0; font-size: 17px; opacity: 1; border-top: 1px solid var(--line); }
  .nav-wallet span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: 0.45; pointer-events: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: currentColor; }

/* the grade swatches every dev badge uses: white to black, flagged is striped */
.grade { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.grade i { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--ink); flex: none; }
.grade[data-g="white"] i { background: #fff; }
.grade[data-g="pale"] i { background: #d6d6d2; }
.grade[data-g="ash"] i { background: #a9a9a4; }
.grade[data-g="slate"] i { background: #77776f; }
.grade[data-g="graphite"] i { background: #4a4a46; }
.grade[data-g="onyx"] i { background: #262624; }
.grade[data-g="black"] i { background: #000; }
.grade[data-g="flagged"] i { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
