/**
 * site.css — LimoAudio (limoaudio.com).
 *
 * Quiet and light: white page, thin black nav, one wide row per product, real
 * screenshots instead of illustrations. Product accents come from products.js
 * (--acc) and are used sparingly — the bold half of a wordmark and the price
 * button. System fonts, no dependencies.
 */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --ink: #1d1d1f;
  --ink-2: #4b4b52;
  --muted: #7a7a83;
  --line: #e6e6e9;
  --nav: #101012;
  --footer: #1a1a1d;
  --accent: #00a3a3; /* house teal, used only where no product accent applies */

  --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Inter, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --radius: 6px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

strong,
b {
  font-weight: 600;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* Author display rules (.cols, .row-actions, …) outrank the UA sheet's
   [hidden] { display: none } — without !important, el.hidden = true leaves the
   element on screen. */
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.skip:focus {
  left: 12px;
}

/* ---- Wordmark: Limo<b>Synth</b> ---- */
.wordmark {
  font-weight: 300;
  letter-spacing: -0.02em;
}

.wordmark b {
  font-weight: 700;
  color: var(--acc, var(--ink));
}

.wordmark a {
  text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1 var(--font);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-price {
  color: #fff;
  background: var(--acc, var(--accent));
}

.btn-price:hover {
  filter: brightness(0.92);
}

.btn-price[disabled],
.btn-price.is-soon {
  color: var(--muted);
  background: var(--bg-alt);
  border-color: var(--line);
  cursor: default;
  filter: none;
}

.btn-quiet {
  color: var(--ink);
  background: #fff;
  border-color: #cfcfd4;
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.link-more {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.link-more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---- Screenshots + placeholders ---- */
.shot {
  margin: 0;
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.shot-placeholder {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 8px;
  border: 1px dashed #c9c9cf;
  background:
    linear-gradient(135deg, #f8f8f9 0%, #eeeef1 100%);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.shot-placeholder strong {
  display: block;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.shot-placeholder code {
  font: 12px var(--font-mono);
  color: #9a9aa3;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- Intro band (home) ---- */
.intro {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
  text-align: center;
}

.intro h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 22ch;
  margin-inline: auto;
}

.intro p {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 18px;
}

.intro .meta {
  margin-top: 22px;
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Product rows (home) ---- */
.product-row {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 84px) 0;
}

.row-inner {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}

.row-media {
  text-decoration: none;
}

@media (min-width: 900px) {
  .row-inner {
    grid-template-columns: 1.15fr 1fr;
  }
  .row-inner.flip .row-media {
    order: 2;
  }
}

.row-copy {
  text-align: center;
}

.row-copy .wordmark {
  font-size: clamp(38px, 5.2vw, 62px);
}

.row-tagline {
  margin-top: 8px;
  font-size: 20px;
  color: var(--ink-2);
}

.row-summary {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 16px;
  color: var(--ink-2);
}

.row-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.row-formats {
  margin-top: 18px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-pill {
  display: inline-block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 14px;
}

/* ---- Generic sections ---- */
.section {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.section .lede {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-2);
}

.cols {
  /* minmax(min(300px, 100%), …): below ~348px the container is narrower than
     the track, and a bare 300px minimum overflows the page instead of shrinking. */
  display: grid;
  gap: 36px 40px;
  margin-top: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.cols h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.cols p {
  font-size: 15.5px;
  color: var(--ink-2);
}

/* Facts (compatibility) */
.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.fact {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}

.fact dt {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.fact dd small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-2);
}

/* ---- Product page ---- */
.p-hero {
  padding: clamp(36px, 5vw, 64px) 0 0;
  text-align: center;
}

.crumbs {
  font: 400 13px/1 var(--font-mono);
  color: var(--muted);
  margin-bottom: 22px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.p-hero .wordmark {
  font-size: clamp(44px, 6.5vw, 76px);
}

.p-tagline {
  margin-top: 8px;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--ink-2);
}

.p-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.p-formats {
  margin-top: 16px;
  font: 400 12px/1.8 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.p-hero-shot {
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: 1080px;
}

.subnav {
  position: sticky;
  top: 52px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-block: 1px solid var(--line);
  margin-top: clamp(32px, 5vw, 56px);
}

.subnav .container {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 400;
}

.subnav a {
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--ink);
}

.subnav .subnav-name {
  color: var(--ink);
  font-weight: 600;
  margin-right: auto;
}

.overview .headline {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 24ch;
}

.overview .summary {
  margin-top: 20px;
  max-width: 70ch;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
}

.overview .points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 8px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  color: var(--ink-2);
  font-size: 15.5px;
}

.overview .points li {
  position: relative;
  padding-left: 16px;
}

.overview .points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc, var(--ink));
}

.gallery {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.spec-table {
  margin: clamp(24px, 3vw, 40px) 0 0;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.spec-row dt {
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* More products list */
.more-list {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.more-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.more-item .wordmark {
  font-size: 24px;
}

.more-item .more-tag {
  font-size: 15px;
  color: var(--ink-2);
}

.more-item .more-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.more-item:hover .more-tag {
  color: var(--ink);
}

/* ---- Footer ---- */
footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--footer);
  color: #b9b9c0;
  padding: 52px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.footer-grid a {
  display: block;
  color: #b9b9c0;
  text-decoration: none;
  margin-bottom: 7px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  color: #9a9aa3;
  line-height: 1.55;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2c2c31;
  font-size: 13px;
  color: #8a8a93;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--nav);
  color: #fff;
  font-size: 14.5px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Sound packs (preset-set round) ---- */
.packs-grid { align-items: stretch; }
.pack-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--bg-2, rgba(255,255,255,0.02));
}
.pack-card.is-focus { outline: 2px solid var(--acc, #6cf); }
.pack-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--line); }
.pack-cover-empty { display: grid; place-items: center; color: var(--ink-2); font-size: 22px; }
.pack-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pack-name { margin: 0; font-size: 20px; }
.pack-by { margin: 0; font-size: 13px; }
.pack-desc { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.pack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-tags .status-pill { margin: 0; }
.pack-card .row-actions { justify-content: flex-start; margin-top: 10px; }
.notice {
  margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2, rgba(255,255,255,0.03)); color: var(--ink-2); font-size: 15px;
}
.notice[hidden] { display: none; }

/* ── Downloads (downloads.html + the product page's Download block) ─────── */
.dl-card .pack-name { font-size: 1.35rem; }
.dl-sha { font-size: 0.75rem; font-family: ui-monospace, Menlo, monospace; margin: 6px 0 0; }
.dl-notes .dl-release { max-width: 760px; padding: 18px 0; border-top: 1px solid var(--line, #e6e6e6); }
.dl-notes .dl-release:first-child { border-top: 0; padding-top: 0; }
.dl-notes h2 { font-size: 1.25rem; margin: 0 0 6px; }
.dl-notes h3 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #666); margin: 14px 0 4px; }
.dl-notes ul { margin: 4px 0; padding-left: 20px; }
.dl-notes li { margin: 3px 0; }
.download-block .row-actions { justify-content: flex-start; margin-top: 8px; }
.download-block .dl-notes { margin-top: 14px; }

/* ── Manuals (/manuals/ index + reader) ─────────────────────────────────────
   The prose rules mirror ln-help-panel's .md block in limo-core so a manual
   reads the same in the plugin and on the site — translated to the site's
   light tokens. Accent stays sparing (active contents entry + links only);
   headings keep --ink, per the palette note at the top of this file. */
.overview-manual { margin-top: 22px; }
.manual-hero .p-tagline { max-width: 720px; margin-inline: auto; }
.manual-area .muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.manual-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.manual-body { min-width: 0; }

/* contents rail */
.manual-toc { position: sticky; top: 68px; display: flex; flex-direction: column; gap: 10px;
              max-height: calc(100vh - 96px); min-height: 0; min-width: 0; }
.manual-toc .filter {
  font: 400 14px var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 11px; outline: none; width: 100%;
}
.manual-toc .filter:focus { border-color: var(--acc, var(--ink)); }
.manual-toc nav { overflow-y: auto; min-height: 0; padding-bottom: 10px; }
.manual-toc a {
  display: block; padding: 5px 12px; font-size: 14px; line-height: 1.35; color: var(--muted);
  text-decoration: none; border-left: 2px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.manual-toc a.l3 { padding-left: 24px; font-size: 13px; }
.manual-toc a:hover { color: var(--ink); }
.manual-toc a.active { color: var(--acc, var(--ink)); border-left-color: var(--acc, var(--ink)); }
.manual-toc a[hidden] { display: none; }   /* the display rules above would defeat [hidden] */
.manual-toc .toc-empty { padding: 6px 12px; font-size: 13px; color: var(--muted); }

/* the manual itself */
.md { max-width: 760px; font-size: 16.5px; line-height: 1.62; color: var(--ink-2); }
.md h1 { font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 6px; color: var(--ink); }
.md h1 + p { font-size: 18px; color: var(--ink-2); margin-top: 0; }
.md > p:first-child { font-size: 18px; color: var(--ink-2); }
.md h2 { font-size: 23px; color: var(--ink); margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.md h3 { font-size: 18px; color: var(--ink); margin: 26px 0 6px; }
.md h4 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
         color: var(--muted); margin: 20px 0 6px; }
/* Anchored headings settle under the sticky header via html's own
   scroll-padding-top (64px) — a scroll-margin here would ADD to it and push
   every deep link below the contents rail's reading line. */
.md p { margin: 10px 0; }
.md ul, .md ol { margin: 10px 0; padding-left: 24px; }
.md li { margin: 5px 0; }
.md li > ul, .md li > ol { margin: 4px 0; }
.md strong { font-weight: 600; color: var(--ink); }
.md a { color: var(--acc, var(--accent)); text-decoration: none; border-bottom: 1px solid var(--line); }
.md a:hover { border-color: currentColor; }
.md code { font: 400 0.86em var(--font-mono); background: var(--bg-alt);
           border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.md pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
          padding: 12px 14px; overflow-x: auto; }
.md pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.5; }
.md blockquote {
  margin: 16px 0; padding: 12px 16px; color: var(--ink-2);
  border-left: 3px solid var(--acc, var(--accent)); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.md blockquote p:first-child { margin-top: 0; }
.md blockquote p:last-child { margin-bottom: 0; }
/* Wide parameter tables scroll in their own box — never the page body. */
.md .table-wrap { overflow-x: auto; margin: 16px 0; }
.md table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.md th {
  text-align: left; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.md td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.md tr:last-child td { border-bottom: none; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.md img { max-width: 100%; border-radius: var(--radius); }

/* index cards + cross-manual search */
.manual-card .pack-body { gap: 10px; }
.manual-card .status-pill { align-self: flex-start; margin-bottom: 0; }
.manual-card .pack-desc { font-size: 14.5px; }
.manual-meta { margin: 0; font: 400 12px/1.6 var(--font-mono); letter-spacing: 0.05em;
               text-transform: uppercase; color: var(--muted); }
.manual-search { max-width: 640px; margin: 26px auto 0; }
.manual-search input {
  width: 100%; font: 300 18px var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 22px; outline: none;
}
.manual-search input:focus { border-color: var(--ink); }
.search-results { margin-top: 30px; }
.search-count { font: 400 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
                color: var(--muted); margin: 0 0 14px; }
.search-hit { display: block; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.search-hit:hover { background: var(--bg-alt); }
.search-hit h3 { margin: 0; font-size: 17px; font-weight: 400; color: var(--ink); }
.search-hit .hit-where { font: 400 11px/1 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase;
                         color: var(--acc, var(--muted)); margin: 0 0 5px; }
.search-hit p { margin: 5px 0 0; font-size: 15px; color: var(--ink-2); }
.search-hit mark { background: color-mix(in srgb, var(--acc, var(--accent)) 22%, transparent); color: inherit; }

@media (max-width: 900px) {
  .manual-layout { grid-template-columns: 1fr; gap: 18px; }
  .manual-toc { position: static; max-height: none; }
  .manual-toc .filter { display: none; }
  .manual-toc nav { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .manual-toc a { flex: 0 0 auto; border-left: none; border: 1px solid var(--line);
                  border-radius: 999px; padding: 5px 13px; font-size: 13px; }
  .manual-toc a.l3 { display: none; }
  .manual-toc a[hidden] { display: none; }
  .manual-toc a.active { border-color: var(--acc, var(--ink)); }
}

@media print {
  limo-site-header, .manual-toc, .crumbs, .manual-cta, footer, .skip { display: none !important; }
  .manual-layout { display: block; }
  .md { max-width: none; font-size: 11pt; color: #000; }
  .md h2 { page-break-after: avoid; }
  .md table, .md blockquote, .md li { page-break-inside: avoid; }
}
