/* Direction: atelier de luthier — papier crème, bois d'érable, rouge brique, un serif expressif */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f6efe3;
  --surface: #fffaf1;
  --surface-2: #ebe4d8;
  --border: #dccdb6;
  --border-strong: #b4aaa1;
  --ink: #261a12;
  --muted: #6b5a4c;
  --accent: #b2432a;
  --accent-hover: #973924;
  --accent-ink: #ffffff;
  --accent-text: #9b3822;
  --accent-strong: #7d2b18;
  --accent-soft: #f1dccb;
  --accent-border: #d7a290;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dbe2cf;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #eedcc9;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #efd6cb;
  --danger-strong: #b91c1c;
  --chart-1: #b2432a;
  --chart-2: #a08402;
  --chart-3: #0f6639;
  --chart-4: #1e8fa5;
  --chart-5: #3c46a4;
  --chart-6: #b85da8;

  --x-band: #20170f;
  --x-on-photo: #f6efe4;
  --x-wood: #c98a4b;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #120704;
  --surface: #2a201d;
  --surface-2: #1e1311;
  --border: #332a27;
  --border-strong: #59514f;
  --ink: #f6efe3;
  --muted: #9b928a;
  --accent: #b2432a;
  --accent-hover: #be5f4a;
  --accent-ink: #ffffff;
  --accent-text: #c87966;
  --accent-strong: #c87966;
  --accent-soft: #35140c;
  --accent-border: #5a2215;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #132211;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #361805;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #370c09;
  --danger-strong: #d16969;
  --chart-1: #b94930;
  --chart-2: #a68a12;
  --chart-3: #029954;
  --chart-4: #0a97ae;
  --chart-5: #6676d9;
  --chart-6: #bf63af;
}

/* J'apprends la guitare — textures and the vibrating string */
.strings {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 22px,
    color-mix(in srgb, var(--border) 70%, transparent) 22px,
    color-mix(in srgb, var(--border) 70%, transparent) 23px
  );
}

.string-line {
  height: 2px;
  background: var(--x-wood);
  transform-origin: left center;
  animation: string-hum 2.8s ease-in-out infinite;
}
.string-line:nth-child(2) { animation-delay: .25s; height: 2.5px; }
.string-line:nth-child(3) { animation-delay: .5s; height: 3px; }

@keyframes string-hum {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.9); }
}

.big-num {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .8;
  color: var(--accent-text);
}

.chord-card { transition: transform .25s ease, border-color .25s ease; }
.chord-card:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--x-wood); }

details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; }

html.reduced-motion .string-line,
html.reduced-motion .chord-card { animation: none; transition: none; }
