/* lilbee for Obsidian site
   Obsidian dark mode. Same neutral near-black surfaces and violet accent as
   the plugin in dark theme, so the site and the tutorial reels read as one piece.
   Off-white body on near-black, violet accent, green for the local/trust note.
   No purple-tinted background, no heavy glow: easy on the eyes. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

:root {
  /* surfaces (Obsidian default dark: neutral, near-black, faint cool cast) */
  --bg: #18181a;          /* background-primary */
  --bg-elev: #141416;     /* background-secondary */
  --bg-card: #202023;     /* raised surface: cards, modals */
  --bg-sunken: #161618;   /* recessed: titlebars, tutorial letterbox */

  /* text */
  --ink: #e3e3e7;         /* text-normal */
  --ink-2: #9a9aa3;       /* text-muted */
  --ink-3: #6a6a73;       /* text-faint / metadata */

  /* rules */
  --rule: #29292e;        /* hairline border */
  --rule-2: #3a3a41;      /* stronger border */

  /* accents */
  --accent: #a78bfa;      /* readable violet: links, headings */
  --accent-hot: #c4b5fd;  /* lighter violet: hover */
  --accent-deep: #7c3aed; /* Obsidian brand violet: glow, left borders */
  --green: #5ed68a;       /* the "Installed" green from the catalog: trust accent */

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', monospace;

  --content-w: 760px;
  --gutter: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: var(--bg); }

body {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
  min-height: 100vh;
  padding: 2.5rem var(--gutter) 4rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* one very soft violet wash, kept off the copy column and low-opacity so it
   adds depth without the eye-strain of a saturated glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 82% -15%, rgba(124, 58, 237, 0.06), transparent 60%),
    radial-gradient(700px 520px at -10% 100%, rgba(124, 58, 237, 0.04), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms, border-color 140ms;
}
a:hover {
  color: var(--accent-hot);
  border-bottom-color: var(--accent-hot);
}

pre { font: inherit; white-space: pre; }

h1.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}

/* page-load: one quiet staggered settle, top to bottom ---------------- */
@keyframes lb-rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lb-fade {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .topstrip,
  .main > section { animation: lb-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .topstrip                       { animation-delay: 0ms; }
  .main > section:nth-of-type(1)  { animation-delay: 90ms; }
  .main > section:nth-of-type(2)  { animation-delay: 150ms; }
  .main > section:nth-of-type(3)  { animation-delay: 210ms; }
  .main > section:nth-of-type(4)  { animation-delay: 270ms; }
  .main > section:nth-of-type(5)  { animation-delay: 330ms; }
  .main > section:nth-of-type(6)  { animation-delay: 390ms; }
  .main > section:nth-of-type(7)  { animation-delay: 450ms; }
  .bee-art { animation: lb-fade 1100ms ease 260ms both; }
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--content-w)) auto;
  gap: 3.5rem;
  align-items: flex-start;
}

.main { min-width: 0; }

/* top strip ---------------------------------------------------------- */
.topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.topstrip .badge {
  color: var(--ink-2);
  font-weight: 500;
}
.topstrip .pill {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  margin-right: 6px;
  color: var(--ink-2);
}

/* hero --------------------------------------------------------------- */
.hero { margin: 2.2rem 0 2.4rem; }

.wordmark {
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.22);
  margin-bottom: 0.5rem;
  display: block;
}
.wordmark-sub {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  display: block;
}

.tagline {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 0.9rem;
}
.tagline strong {
  color: var(--accent);
  font-weight: 500;
}
.tagline strong a { color: inherit; }
.tagline + .sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 56ch;
  line-height: 1.65;
}
.tagline + .sub strong { color: var(--ink); font-weight: 500; }

.surfaces {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.surfaces-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 0.3rem;
}
.surface {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  padding: 2px 9px;
  transition: color 140ms, border-color 140ms;
}
.surface:hover { color: var(--accent-hot); border-color: var(--accent-hot); }

.trust {
  margin-top: 1rem;
  padding-left: 0.95rem;
  border-left: 2px solid var(--green);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 54ch;
}
.trust strong { color: var(--green); font-weight: 500; }

.dl-note {
  margin-top: 0.8rem;
  padding-left: 0.95rem;
  border-left: 2px solid #d8a657;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 54ch;
}
.dl-note strong { color: #d8a657; font-weight: 500; }

/* section labels ----------------------------------------------------- */
.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 3rem 0 1.1rem;
}
.label::before { content: ""; width: 12px; height: 1px; background: var(--rule-2); }
.label::after  { content: ""; flex: 1; height: 1px; background: var(--rule); }

.lede {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1rem;
}
.lede kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 0.35rem;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  color: var(--ink-2);
  background: var(--bg-card);
  margin: 0 0.05rem;
  vertical-align: 1px;
}

/* tutorial reel ---------------------------------------------------------- */
.tutorial { margin: 0.3rem 0 1.4rem; }

.tutorialtabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 1rem;
}
.tutorialtabs .tutorialtab {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
  color: var(--ink-3);
  padding: 0.5rem 0.9rem;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 140ms, background-color 140ms, border-color 140ms;
}
.tutorialtabs .tutorialtab:hover {
  color: var(--ink);
  background: rgba(124, 58, 237, 0.08);
}
.tutorialtabs .tutorialtab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tutorialtabs .tutorialtab[aria-selected="true"] {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.14);
  border-color: var(--rule-2);
  border-bottom-color: var(--accent);
}

.tutorialpane[hidden] { display: none; }

.tutorial-frame {
  background: var(--bg-sunken);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 60px -26px rgba(0, 0, 0, 0.85);
  /* hold the box at the recording's shape (1200x749) while the GIF streams
     in, so a click never lands on an empty void */
  aspect-ratio: 1200 / 749;
  position: relative;
}
.tutorial-frame::before {
  content: "loading recording.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  background:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.014) 8px 16px),
    var(--bg-sunken);
}
.tutorial-frame img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
/* Video clip (crisp, full-resolution webm) — same box as .tutorial-frame but
   without the loading overlay, so the video isn't hidden behind it. */
.tutorial-clip {
  background: #000;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 60px -26px rgba(0, 0, 0, 0.85);
  aspect-ratio: 1200 / 749;
}
.tutorial-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tutorial-caption {
  margin-top: 0.8rem;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 64ch;
}
.tutorial-caption code {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 0 0.35rem;
  border-radius: 3px;
  color: var(--ink);
  font-size: 12.5px;
}
.tutorial-caption em { color: var(--accent); font-style: normal; font-weight: 500; }

.tutorial-watch {
  text-align: center;
  margin-bottom: 1.3rem;
}
.tutorial-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tutorial-cta:hover {
  border-color: var(--accent-deep);
  background: rgba(124, 58, 237, 0.10);
  color: var(--accent-hot);
}

/* install ------------------------------------------------------------ */
.install {
  margin-top: 0.4rem;
  display: flex;
  gap: 0;
  align-items: stretch;
  font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  overflow: hidden;
}
.install .prompt { color: var(--green); padding: 0.7rem 0.6rem 0.7rem 1.05rem; font-weight: 500; }
.install .cmd {
  flex: 1;
  padding: 0.7rem 0.4rem;
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}
.install a.cmd { color: var(--accent); }
.install a.cmd:hover { color: var(--accent-hot); }

.steps { margin-top: 1rem; display: grid; gap: 0.55rem; }
.step { display: flex; gap: 0.8rem; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.step .n {
  flex: none;
  width: 1.5em; height: 1.5em;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  color: var(--accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.step em { color: var(--ink); font-style: normal; }

.extras { font-size: 13px; margin-top: 0.9rem; color: var(--ink-3); }
.extras a { color: var(--ink-2); }

/* the difference: two-column comparison ----------------------------- */
.shape { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shape-box {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
}
.shape-box.one { border-left: 2px solid var(--accent-deep); }
.shape-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.shape-box.many .shape-h { color: var(--ink-3); }
.shape-box.one .shape-h { color: var(--accent); }
.shape-box ul { list-style: none; }
.shape-box li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 1.1em;
  position: relative;
  margin: 0.4rem 0;
}
.shape-box li::before { content: "·"; position: absolute; left: 0; color: var(--ink-3); }
.shape-box.one li::before { content: "→"; color: var(--accent); font-size: 0.85em; }
.shape-note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}

/* features grid ------------------------------------------------------ */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent-deep);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  transition: border-color 160ms, transform 160ms;
}
.cap:hover { border-color: var(--rule-2); border-left-color: var(--accent-hot); transform: translateY(-1px); }
.cap h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.55em;
}
.cap h3 .exp {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  padding: 0 0.4em;
}
.cap p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.cap p code { background: var(--bg); border: 1px solid var(--rule); padding: 0 0.35rem; border-radius: 3px; color: var(--ink); }

/* go-deeper links ---------------------------------------------------- */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 2.5rem; font-size: 14px; }
.links a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 6px 0;
  border-bottom: none;
  color: var(--ink);
}
.links a .num { color: var(--accent); width: 2.6em; flex: none; }
.links a .dots {
  color: var(--rule-2);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.12em;
}
.links a .desc {
  color: var(--ink-3);
  font-size: 12.5px;
}
.links a:hover .num { color: var(--accent-hot); }
.links a:hover .desc { color: var(--ink); }

/* footer ------------------------------------------------------------- */
footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
footer a { color: var(--ink-2); }
footer pre {
  font-size: 10.5px;
  line-height: 1.15;
  color: var(--ink-2);
  white-space: pre;
}
footer .meta { text-align: right; font-size: 12px; }

/* bee aside ---------------------------------------------------------- */
.bee-art {
  position: sticky;
  top: 2rem;
  color: var(--ink-3);
  user-select: none;
  opacity: 0.85;
}
.bee-art pre {
  font-size: 7.5px;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.18);
}

/* responsive --------------------------------------------------------- */
@media (max-width: 1060px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .bee-art { display: none; }
}
@media (max-width: 720px) {
  body { padding: 1.4rem 1.1rem 3rem; font-size: 14.5px; }
  .wordmark, .wordmark-sub { font-size: 9px; }
  .caps, .links, .shape { grid-template-columns: 1fr; }
  .tagline { font-size: 18px; }
  .tutorialtabs .tutorialtab { padding: 0.45rem 0.6rem; font-size: 12px; }
}
