/* RackAudioSuite — thème clair, une page.
   Fond clair cassé, contours noirs 2 px arrondis, titres condensés gras,
   police « écran » monospace, vert = actif, rouge = bypass. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --bg: #f2eee4;
  --panel: #fbf9f3;
  --ink: #141414;
  --muted: #4a4740;
  --active: #1f8a3c;
  --bypass: #c62828;
  --focus: #2457d6;
  --todo-bg: #fff3b0; --todo-ink: #3a3000; --todo-line: #8a7300;
  --radius: 10px;
  --border: 2px solid var(--ink);
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-screen: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 920px; margin: 0 auto; padding-inline: 16px; }

h1, h2 { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
p { margin: 0 0 1em; }
code { font-family: var(--font-screen); font-size: .88em; background: var(--panel); border: 1px solid var(--ink); border-radius: 5px; padding: 0 4px; word-break: break-word; }

/* En-tête */
.site-header { border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-family: var(--font-title); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 28px; height: 28px; }
.lang { font-family: var(--font-screen); font-size: .85rem; text-decoration: none; border: var(--border); border-radius: var(--radius); padding: 3px 9px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; font-family: var(--font-title); font-weight: 800;
  font-size: 1.25rem; text-transform: uppercase; text-decoration: none; border: var(--border);
  border-radius: var(--radius); padding: 10px 20px; background: var(--panel); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--active); color: #fff; }
.btn-small { font-size: 1rem; padding: 7px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Contenu */
main > * + * { margin-top: 48px; }
.hero { padding-top: 48px; }
.kicker { font-family: var(--font-screen); font-size: .85rem; color: var(--muted); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

.shots { display: grid; gap: 16px; }
.shot { margin: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.shot img { width: 100%; }
.shot figcaption { border-top: var(--border); padding: 6px 12px; font-size: .9rem; color: var(--muted); }
.demo { border: var(--border); border-radius: var(--radius); width: 100%; }

.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feats li { position: relative; padding-left: 26px; }
.feats li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: .7em; height: .7em;
  border-radius: 50%; background: var(--active); border: 2px solid var(--ink);
}
.limit { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.led { display: inline-block; width: .7em; height: .7em; border-radius: 50%; border: 2px solid var(--ink); margin-right: 8px; vertical-align: -1px; }
.led-off { background: var(--bypass); }

.panel { background: var(--panel); border: var(--border); border-radius: var(--radius); padding: 24px; }
.download .meta { font-family: var(--font-screen); font-size: .9rem; margin: 0 0 .3em; }
.download .note { color: var(--muted); font-size: .95rem; margin: 0; }

details { border: var(--border); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
details > div { padding: 0 16px 4px; }

.todo { font-family: var(--font-screen); font-size: .85em; background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed var(--todo-line); border-radius: 4px; padding: 0 4px; }

/* Pied de page */
.site-footer { border-top: var(--border); margin-top: 56px; padding-block: 24px 40px; font-size: .9rem; color: var(--muted); }
.site-footer a { color: var(--ink); }
.legal { margin-top: 16px; background: transparent; border-width: 1px; }
.legal summary { font-weight: 500; }
.legal p { font-size: .85rem; }
