@font-face { font-family:"Geist"; src:url("../fonts/geist.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
@font-face { font-family:"Geist Mono"; src:url("../fonts/geist-mono.woff2") format("woff2"); font-weight:100 900; font-display:swap; }

:root {
  color-scheme: dark;
  --bg: #08090a;
  --bg-1: #0c0d0f;
  --panel: #101114;
  --panel-2: #15171b;
  --panel-3: #1b1e23;
  --line: #1e2126;
  --line-2: #2a2e35;
  --line-3: #3a3f47;
  --ink: #f3f4f6;
  --ink-2: #a3a8b1;
  --ink-3: #6c727c;
  --accent: #f3f4f6;
  --accent-2: #ffffff;
  --accent-ink: #08090a;
  --accent-wash: #ffffff0c;
  --accent-line: #ffffff38;
  --violet: #8d929b;
  --violet-wash: #ffffff10;
  --up: #f3f4f6;
  --down: #7a8089;
  --amber: #a3a8b1;
  --glass: #08090acc;
  --shadow-lg: 0 40px 120px -40px #000;
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --grid-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
  --grid-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23ffffff' stroke-opacity='.045'/%3E%3C/svg%3E");
}
/* Light theme */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa; --bg-1: #ffffff; --panel: #f4f4f5; --panel-2: #eeeef0; --panel-3: #e5e5e8;
  --line: #e6e6e9; --line-2: #d9d9de; --line-3: #c2c3c9;
  --ink: #0b0c0e; --ink-2: #4b5058; --ink-3: #7c818a;
  --accent: #0b0c0e; --accent-2: #000000; --accent-ink: #ffffff; --accent-wash: #0000000a; --accent-line: #00000030;
  --violet: #6b7079; --violet-wash: #0000000d; --up: #0b0c0e; --down: #8a8f98; --amber: #5c616a;
  --glass: #fafafacc; --shadow-lg: 0 40px 100px -50px #00000030;
  --grid-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23000000' fill-opacity='.08'/%3E%3C/svg%3E");
  --grid-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23000000' stroke-opacity='.05'/%3E%3C/svg%3E");
}
.theme-switching *,.theme-switching *::before,.theme-switching *::after { transition:background-color .35s, color .35s, border-color .35s, fill .35s !important; }
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
img,svg,canvas { display:block; }
h1,h2,h3,h4,p,dl,dd,figure { margin:0; }
::selection { background:var(--accent); color:var(--accent-ink); }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.mono { font-family:var(--mono); }
.dim { color:var(--ink-3); }
.up { color:var(--up); }
.down { color:var(--down); }
kbd { font:500 11px var(--mono); padding:2px 6px; border-radius:5px; background:var(--panel-3); border:1px solid var(--line-2); color:var(--ink-2); }

.btn {
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:38px; padding:0 16px; border-radius:999px; border:1px solid transparent;
  font-size:14px; font-weight:550; letter-spacing:-.01em; white-space:nowrap;
  transition:transform .35s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn span[aria-hidden] { transition:transform .3s var(--ease); }
.btn:hover span[aria-hidden] { transform:translateX(3px); }
.btn-solid { background:var(--accent); color:var(--accent-ink); }
.btn-solid:hover { background:var(--accent-2); }
.btn-line { border-color:var(--line-2); background:var(--panel); }
.btn-line:hover { border-color:var(--line-3); background:var(--panel-2); }
.btn-ghost { color:var(--ink-2); }
.btn-ghost:hover { color:var(--ink); }
.btn-lg { min-height:48px; padding:0 22px; font-size:15px; }

.pulse-dot { position:relative; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--up); flex:none; }
.pulse-dot::after { content:""; position:absolute; inset:0; border-radius:50%; background:var(--up); animation:pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform:scale(1); opacity:.7; } to { transform:scale(3.2); opacity:0; } }

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

/* Brand logos: monochrome at rest, full colour on hover or selection */
img.logo { display:block; flex:none; border-radius:24%; object-fit:cover; background:var(--panel-2); filter:grayscale(1) contrast(1.05); opacity:.92; transition:filter .4s var(--ease), opacity .4s var(--ease), transform .5s var(--ease-spring); }
:hover > img.logo,:hover > * > img.logo,.selected img.logo,.on img.logo { filter:none; opacity:1; }

/* Monogram tiles and theme toggle */
svg.mono rect { fill:var(--panel-2); stroke:var(--line-2); }
svg.mono text { fill:var(--ink); }
.theme-toggle { display:grid; place-items:center; width:38px; height:38px; border-radius:999px; border:1px solid var(--line-2); background:var(--panel); color:var(--ink-2); transition:color .2s, border-color .2s, transform .5s var(--ease-spring); }
.theme-toggle:hover { color:var(--ink); border-color:var(--line-3); transform:rotate(-20deg); }
.theme-toggle svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.theme-toggle .i-moon { display:none; }
:root[data-theme="light"] .theme-toggle .i-sun { display:none; }
:root[data-theme="light"] .theme-toggle .i-moon { display:block; }
