/* ---------------------------------------------------------------
   Self-hosted fonts — subset and axis-limited to the weights this
   site uses. No third-party requests, no IP logging by Google, and
   nothing render-blocking in the critical path.
---------------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plexsans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------
   davidboulay.com — hand-built, no framework
   Palette: deep violet slate, purple + amber accents
   Type: Bricolage Grotesque / IBM Plex Sans / JetBrains Mono
---------------------------------------------------------------- */

:root {
  --bg: #120f1a;
  --bg-raise: #191424;
  --bg-raise-2: #201a2e;
  --line: rgba(186, 166, 214, 0.14);
  --line-strong: rgba(186, 166, 214, 0.28);
  --ink: #ece9f2;
  --muted: #a79bb5;
  --faint: #8f84a3;   /* WCAG AA at 11.5px on cards (5.14:1) */
  --teal: #a98cf5;
  --teal-dim: rgba(169, 140, 245, 0.14);
  --amber: #f5a83c;
  --amber-dim: rgba(245, 168, 60, 0.12);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

/* themed scrollbars — slim purple thumb, invisible track, everywhere */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 140, 245, 0.3) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(169, 140, 245, 0.28);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(169, 140, 245, 0.5); }
*::-webkit-scrollbar-corner { background: transparent; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--teal); color: #191030; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--teal); }
.wordmark .logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.wordmark:hover .logo { transform: scale(1.08); border-color: var(--line-strong); }

.site-nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--teal); text-decoration: none; }

/* ---- hero ---- */

.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 36px;
  text-align: center;
}

.hero-atmosphere {
  position: absolute;
  top: -140px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(186, 166, 214, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 0%, transparent 70%);
}
.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.17;
}
.glow-teal { background: var(--teal); top: -180px; left: 12%; animation: drift-a 26s ease-in-out infinite alternate; }
.glow-amber { background: var(--amber); top: 60px; right: 8%; width: 420px; height: 420px; opacity: 0.10; animation: drift-b 32s ease-in-out infinite alternate; }

@keyframes drift-a { from { transform: translate(0, 0); } to { transform: translate(120px, 60px); } }
@keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(-140px, -40px); } }

.hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 5px rgba(169, 140, 245, 0.12),
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .sep { color: var(--amber); margin: 0 6px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px auto 0;
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-intro {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 17.5px;
}
.hero-intro strong { color: var(--ink); font-weight: 600; }

.stack {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 30px;
  text-align: left;
}
.stack-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.stack-row dt {
  width: 88px;
  flex-shrink: 0;
  text-align: right;
  color: var(--amber);
  letter-spacing: 0.06em;
}
.stack-row dd { color: var(--muted); }

/* ---- setup section ---- */

.setup-section { padding-bottom: 56px; }

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 720px) {
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
}
.setup-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.setup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.setup-head svg { width: 22px; height: 22px; color: var(--teal); fill: currentColor; flex-shrink: 0; }
.setup-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.setup-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 9px;
}
.setup-specs dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}
.setup-specs dd { color: var(--muted); font-size: 15px; }
.setup-wide { grid-column: 1 / -1; }
.why-list { list-style: none; }
.why-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--muted);
  font-size: 15px;
}
.why-list li::before {
  content: "\2022";
  position: absolute;
  left: 6px;
  color: var(--amber);
}
.why-list li strong { color: var(--ink); font-weight: 600; }

.setup-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

/* ---- typed headline (signature) ---- */

.type-headline { position: relative; }
.type-headline .sizer { visibility: visible; }
.type-headline.typing .sizer { visibility: hidden; }
.type-headline .typed {
  display: none;
  position: absolute;
  inset: 0;
}
.type-headline.typing .typed { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.caret {
  display: inline-block;
  width: 0.48ch;
  height: 0.92em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--amber);
  border-radius: 2px;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---- apps grid ---- */

.apps-section { padding-top: 20px; padding-bottom: 56px; }

.section-head { margin-bottom: 22px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.015em;
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.app-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(169, 140, 245, 0.5);
  background: var(--bg-raise-2);
}

.app-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--teal-dim);
  color: var(--teal);
  transition: background 0.25s ease, color 0.25s ease;
}
.card-icon svg { width: 24px; height: 24px; }
.app-card:hover .card-icon { background: var(--amber-dim); color: var(--amber); }
.card-icon.has-img { background: rgba(233, 239, 241, 0.06); }
.app-card:hover .card-icon.has-img { background: rgba(233, 239, 241, 0.1); }
.card-icon.has-img img { width: 30px; height: 30px; object-fit: contain; display: block; }
.card-icon.has-img.on-plate,
.app-card:hover .card-icon.has-img.on-plate { background: #f6f4f1; }
.card-icon.has-img.on-plate img { width: 26px; height: 26px; }

.card-arrow {
  color: var(--faint);
  transition: color 0.25s ease, transform 0.25s ease;
}
.app-card:hover .card-arrow { color: var(--teal); transform: translateX(3px); }

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.app-card .card-desc {
  color: var(--muted);
  font-size: 15px;
  flex-grow: 1;
}

.wip-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 168, 60, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 10px;
  vertical-align: 3px;
}
.app-title-row .wip-badge { font-size: 13px; padding: 3px 12px; vertical-align: 8px; }

.private-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
}
.private-note svg { width: 13px; height: 13px; flex-shrink: 0; }

.card-plats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plat {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 10px;
}
.plat svg {
  display: inline;
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 5px;
}
.plat .plat-detail {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: -0.01em;
}
.plat svg { width: 12px; height: 12px; flex-shrink: 0; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card-rel {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11.5px;
  color: var(--faint);
  text-align: right;
}
.card-rel .app-ver { color: var(--amber); }
.card-rel .app-upd:not(:empty)::before { content: "· "; }
.lang-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}
.lang-rust   { background: #dea584; }
.lang-python { background: #569cd6; }
.lang-shell  { background: #89e051; }
.lang-html   { background: #e34c26; }
.lang-js     { background: #f1e05a; }
.card-meta .stars { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .stars svg { width: 13px; height: 13px; color: var(--amber); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ---- live activity feed ---- */

.activity-section { padding-bottom: 56px; }
.activity-section[hidden] { display: none; }

.live-led {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4fd483;
  margin-right: 10px;
  vertical-align: 1px;
  animation: led-pulse 1.8s ease-out infinite;
}
@keyframes led-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 212, 131, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(79, 212, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 212, 131, 0); }
}

.activity-section .section-head { margin-bottom: 8px; }

.activity-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 13px 0;
}
.ticker-track {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track > span[aria-hidden] { display: inline-flex; align-items: baseline; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.activity-ticker:hover .ticker-track { animation-play-state: paused; }

.tick-item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.tick-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1.5px solid var(--teal);
  align-self: center;
  flex-shrink: 0;
}
.tick-item a { color: var(--ink); }
.tick-item a:hover { color: var(--teal); }
.tick-time { color: var(--faint); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  .activity-ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}

/* ---- app detail pages ---- */

.app-hero { padding-top: 44px; padding-bottom: 10px; }

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.back-link:hover { color: var(--teal); text-decoration: none; }

.app-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.app-title-row .card-icon { width: 62px; height: 62px; border-radius: 17px; }
.app-title-row .card-icon svg { width: 32px; height: 32px; }
.app-title-row .card-icon.has-img img { width: 42px; height: 42px; }
.app-title-row h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.app-tagline {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}

.app-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.meta-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-chip svg { width: 13px; height: 13px; color: var(--amber); }

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #1a1030;
  font-weight: 600;
}
.btn-primary:hover { background: #bfa7ff; border-color: #bfa7ff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-disabled {
  opacity: 0.45;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  user-select: none;
}
.app-actions { align-items: center; }

.app-body { padding-top: 44px; padding-bottom: 64px; }

.screenshot {
  margin: 0 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.screenshot img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  background: rgba(10, 7, 16, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(25, 20, 36, 0.85);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.lightbox-close:hover { background: var(--bg-raise-2); color: var(--teal); }
.lightbox img {
  max-width: 100%;
  max-height: 94vh;
  border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.screenshot figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.screenshot-narrow { max-width: 440px; }

.screenshot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 44px;
  align-items: start;
}
.screenshot-pair .screenshot { margin: 0; }

.app-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 56px;
  align-items: start;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose p strong { color: var(--ink); }
.prose ul {
  color: var(--muted);
  padding-left: 22px;
  margin-bottom: 14px;
}
.prose ul li { margin-bottom: 8px; }
.prose ul li strong { color: var(--ink); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raise-2);
  border-radius: 5px;
  padding: 1px 6px;
}
.prose-narrow { max-width: 720px; }

.highlights { list-style: none; }
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 11px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.highlights li:last-child { border-bottom: none; }
.highlights li > svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--teal);
}
.highlights li strong { color: var(--ink); font-weight: 600; }

.side-panel {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 22px;
}
.side-panel h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.side-panel dl { margin-bottom: 18px; }
.side-panel dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 14px;
}
.side-panel dd { color: var(--ink); font-size: 15px; margin-top: 3px; }
.side-panel .topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.side-panel .topics span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal);
  background: var(--teal-dim);
  border-radius: 999px;
  padding: 3px 10px;
}

.install-block { margin-top: 40px; }
.install-block h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 22px;
  margin-bottom: 14px;
}
pre.code {
  background: #0c0913;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d9d0e6;
}
pre.code .c { color: var(--faint); }
.install-note {
  font-size: 14px;
  color: var(--faint);
  margin-top: 10px;
}
.install-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.install-note a:hover { color: var(--teal); }

/* ---- release modal ---- */

.release-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(10, 7, 16, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.release-modal-overlay.open { opacity: 1; pointer-events: auto; }

.release-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 30px 32px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.release-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--faint);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.release-close:hover { color: var(--ink); }

.release-app {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.release-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.release-title-row h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 24px;
}
.release-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 168, 60, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
}
.release-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 6px;
}
.release-loading { color: var(--muted); }

.release-notes {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.release-notes h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink);
  margin: 14px 0 8px;
}
.release-notes h4:first-child { margin-top: 0; }
.release-notes p { margin-bottom: 8px; overflow-wrap: break-word; }
.release-notes ul { padding-left: 20px; margin-bottom: 8px; }
.release-notes li { margin-bottom: 5px; }
.release-notes code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raise-2);
  border-radius: 4px;
  padding: 1px 5px;
}

.release-dl {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink);
  margin: 22px 0 10px;
}
.release-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.release-asset:hover { text-decoration: none; border-color: var(--teal); }
.release-asset .asset-os {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.release-asset .asset-name {
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.release-asset .asset-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
}
.release-gh {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.release-install {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.release-install code {
  flex-grow: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d9d0e6;
  background: #0c0913;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
}
.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 0 16px;
  background: var(--teal);
  color: #1a1030;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.copy-btn:hover { background: #bfa7ff; }
.copy-btn.ok { background: #4fd483; }
.release-install-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--faint);
}
.release-install-note code {
  font-family: var(--font-mono);
  background: var(--bg-raise-2);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---- related apps ---- */

.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.related-row { overflow: hidden; }
.related-row.manual {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.related-row.manual .related-set[aria-hidden="true"] { display: none; }
.related-track {
  display: inline-flex;
  will-change: transform;
  animation: ticker-scroll 36s linear infinite;
}
.related-row:hover .related-track { animation-play-state: paused; }
.related-set {
  display: inline-flex;
  gap: 14px;
  padding: 4px 14px 4px 0;
}
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mini-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(169, 140, 245, 0.5);
}
.mini-card .card-icon { width: 40px; height: 40px; border-radius: 11px; }
.mini-card .card-icon svg { width: 21px; height: 21px; }
.mini-card .card-icon.has-img img { width: 26px; height: 26px; }
.mini-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
}
.mini-tag {
  font-size: 13px;
  color: var(--muted);
}

.mini-card { flex: 0 0 230px; }

@media (prefers-reduced-motion: reduce) {
  .related-row { overflow-x: auto; }
  .related-track { animation: none; }
}

.back-home {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .copyright {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  padding: 4px;
}
.footer-links a:hover { color: var(--teal); text-decoration: none; }
.footer-links svg { width: 19px; height: 19px; }
.footer-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.fr-flag {
  height: 11px;
  width: auto;
  border-radius: 2px;
  vertical-align: -1px;
  margin-left: 2px;
}

/* ---- responsive ---- */

@media (max-width: 860px) {
  .app-columns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side-panel { position: static; }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .screenshot-pair { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
}

/* ---- reduced motion ---- */

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