/* Shared styles for dev.velorabot.lol */
:root {
  --bg: #0c0a12; --card: #13101b; --chip: #16131f;
  --border: rgba(196, 186, 240, .08); --border-2: rgba(196, 186, 240, .15);
  --text: #ece9f5; --muted: #9d97b0; --faint: #66607a; --icon: #b5b1e5;
  --accent: #8e82d6; --accent-2: #c3baf0; --accent-line: rgba(142, 130, 214, .4);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Faint violet light from the top and a fine vertical grain, drawn once on a fixed layer. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70rem 40rem at 50% -16rem, rgba(142, 130, 214, .1), transparent 70%),
    repeating-linear-gradient(90deg, rgba(196, 186, 240, .014) 0 1px, transparent 1px 3px);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(142, 130, 214, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
svg.i { width: 15px; height: 15px; flex: none; }

/* ── side nav ── */
.side {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: rgba(19, 16, 27, .8); border: 1px solid var(--border); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.side a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--faint); transition: color .2s, background .2s, box-shadow .2s; }
.side a:hover { color: var(--text); }
.side a.on { color: #fff; background: rgba(142, 130, 214, .16); box-shadow: inset 0 0 0 1px var(--accent-line); }
.side svg { width: 16px; height: 16px; }
.side-sep { height: 1px; margin: 3px 7px; background: var(--border-2); }
.side a[href^="https://www.velorabot.lol"]:hover { color: var(--accent-2); }
@media (max-width: 760px) {
  .side { left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); flex-direction: row; }
  .side-sep { width: 1px; height: auto; margin: 7px 3px; }
}

/* ── layout ── */
/* One section per page, centred in the window; long pages simply grow. */
main { width: 100%; max-width: 700px; min-height: 100vh; margin: 0 auto; padding: 88px 24px 110px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 0 0 6px; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--accent); opacity: .7; }
h1, h2 { margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 26px; }
h3 { margin: 30px 0 12px; font-size: 13px; font-weight: 400; color: var(--faint); }
.lead { color: var(--muted); margin: 12px 0 0; max-width: 540px; }

/* ── home ── */
.handle { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--faint); font: 400 12.5px var(--mono); }
.handle img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-2); }
.bio { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(196, 186, 240, .02); color: var(--muted); }
.bio a { color: var(--text); font-weight: 600; transition: color .2s; }
.bio a:hover { color: var(--accent-2); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--border-2); border-radius: 9px; background: var(--chip); font-size: 13.5px; color: #d9d4ea;
  transition: border-color .2s, color .2s;
}
.pill svg { width: 14px; height: 14px; color: var(--icon); }
.pill:hover { color: #fff; border-color: var(--accent-line); }
.pill.accent { flex: 1 1 160px; justify-content: center; color: #fff; border-color: var(--accent-line); background: rgba(142, 130, 214, .16); }
.pill.accent svg { color: #fff; }
.pill.accent:hover { background: rgba(142, 130, 214, .24); }

/* ── projects ── */
.project { display: block; margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: border-color .25s; }
.project:hover { border-color: var(--border-2); }
.project .shot { overflow: hidden; border-bottom: 1px solid var(--border); }
.project .shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.project:hover .shot img { transform: scale(1.02); }
.project .meta { padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.project .name { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; }
.project .name img, .project .name svg { width: 20px; height: 20px; border-radius: 5px; color: var(--icon); }
.project p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.project .go { margin-left: auto; flex: none; color: var(--faint); transition: color .2s, transform .2s; }
.project:hover .go { color: var(--accent-2); transform: translateX(2px); }

/* ── chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px;
  border: 1px solid var(--border-2); border-radius: 8px; background: var(--chip); font-size: 13.5px; color: #d9d4ea;
}
.chip svg { width: 14px; height: 14px; color: var(--icon); }
.chip small { color: var(--faint); font-size: 12.5px; }
.chip small::before { content: "·"; margin-right: 6px; }

/* ── setup cards ── */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--card); }
.card .tile { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #1d1928; color: var(--icon); }
.card .tile svg { width: 20px; height: 20px; }
.card b { display: block; font-size: 15px; font-weight: 600; }
.card span { color: var(--faint); font-size: 13px; }

/* ── links ── */
.links { display: grid; gap: 8px; margin-top: 22px; }
.link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.link:hover { border-color: var(--border-2); background: rgba(196, 186, 240, .025); }
.link .tile { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #1a1724; color: var(--icon); }
.link .tile svg { width: 16px; height: 16px; }
.link b { display: block; font-weight: 500; }
.link span { color: var(--faint); font: 400 12px var(--mono); }
.link .go { margin-left: auto; color: var(--faint); transition: color .2s, transform .2s; }
.link:hover .go { color: var(--text); transform: translateX(2px); }

/* ── contact ── */
.contact { margin-top: 22px; padding: 20px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--card); }
.contact p { margin: 0; color: var(--muted); }
.contact p b { color: var(--text); font-weight: 600; }

.views { position: fixed; right: 16px; bottom: 14px; z-index: 10; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.views b { color: #d9d4ea; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .views { bottom: 70px; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translate(-50%, 12px); opacity: 0;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: #1a1624;
  font-size: 13.5px; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 76px; } }

.in { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.in.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .in { opacity: 1; transform: none; transition: none; } }

/* Lenis smooth scrolling (from lenis/dist/lenis.css 1.3.25). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Soft cross-fade between pages (Chrome, Edge, Safari 18+); the side nav stays put. */
@view-transition { navigation: auto; }
.side { view-transition-name: side; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

