/* Páginas estáticas (s/<id>/, c/<cat>/, licencia/, desarrolladores/). Mismos colores que la biblioteca. */
:root {
  --bg: #13110e; --panel: #1d1b16; --raise: #272419; --ink: #f0e4cc; --muted: #a9a08b; --faint: #6f6958;
  --line: #2d2a22; --accent: #d9683c; --accent2: #9fb283; --accent-ink: #1a0e07; --wave: #3a3629;
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3ecdd; --panel: #fbf6ea; --raise: #f0e7d4; --ink: #241d14; --muted: #6d6552; --faint: #a39a82;
    --line: #e0d5bd; --accent: #b94f26; --accent2: #6f8456; --accent-ink: #ffffff; --wave: #d6cbb2;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--head); }
.btn { display: inline-block; text-decoration: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
.migas { font-size: 13px; color: var(--faint); margin: 8px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { color: var(--ink); text-decoration: underline; }
.cab { display: flex; gap: 20px; align-items: center; }
.cab .thumb { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; flex: none; background: var(--raise); }
h1 { font: 800 clamp(28px, 5vw, 44px)/1.05 var(--head); letter-spacing: -.03em; margin: 0 0 8px; }
.desc { font-size: 17px; margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.tomas { list-style: none; padding: 0; margin: 28px 0 18px; display: grid; gap: 10px; }
.toma { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.toma .play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer; display: grid; place-items: center; flex: none; }
.toma .play svg { width: 20px; height: 20px; fill: var(--accent-ink); }
.toma .i-pause, .toma.on .i-play { display: none; }
.toma.on .i-pause { display: inline; }
.tn { font-size: 13px; color: var(--muted); width: 52px; flex: none; }
.wv { position: relative; flex: 1; height: 40px; cursor: pointer; min-width: 60px; }
.wv svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w0 path, .w1 path { stroke-width: .7; stroke-linecap: round; vector-effect: none; }
.w0 { stroke: var(--wave); }
.fill { position: absolute; inset: 0; width: 0; overflow: hidden; }
.fill .w1 { stroke: var(--accent); width: var(--full, 100%); }
.d { font-size: 13px; color: var(--muted); width: 64px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.dl { flex: none; text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.dl:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tag { font-size: 12.5px; color: var(--muted); text-decoration: none; background: var(--raise); border-radius: 999px; padding: 4px 10px; }
.tag:hover { color: var(--ink); }
.lic { color: var(--muted); font-size: 14px; }
.dev { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 14px; }
.dev summary { cursor: pointer; color: var(--ink); font-weight: 600; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 13px/1.5 ui-monospace, monospace; color: var(--ink); white-space: pre; }
code { font: 13px ui-monospace, monospace; background: var(--raise); padding: 1px 6px; border-radius: 5px; }
.rel { margin: 44px 0 10px; }
h2 { font: 700 22px var(--head); margin: 0 0 14px; }
h2 small { font: 500 13px var(--body); color: var(--faint); margin-left: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 18px; }
.card { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.card:hover { border-color: var(--accent); }
.card img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; background: var(--raise); }
.card span { display: grid; min-width: 0; }
.card strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card small { color: var(--faint); font-size: 12px; }
.tcat { margin-top: 10px; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 30px; max-width: 640px; }
.lead a { color: var(--accent); }
.sub { margin-bottom: 26px; }
.texto { max-width: 720px; }
.texto h2 { margin-top: 34px; }
.texto a { color: var(--accent); }
.foot { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 20px; padding-bottom: 40px; color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); }
@media (max-width: 640px) {
  .cab { flex-direction: column; align-items: flex-start; }
  .cab .thumb { width: 96px; height: 96px; }
  .toma { flex-wrap: wrap; }
  .tn { display: none; }
  .wv { flex-basis: calc(100% - 140px); }
  .dl { margin-left: auto; }
  .top .btn { padding: 8px 12px; }
}
