/* SPDX-License-Identifier: GPL-3.0-only */
/* KLINGKLANG's pages: dark, the red of its screens, the amber of the FM-1's lit buttons */
:root {
  --bg: #0b0b0e; --panel: #15151b; --line: #26262f; --ink: #ececf1; --dim: #a3a3b0; --red: #e61e1e; --amber: #ffb347;
  --green: #62d36e; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
body { margin: 0; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.04em; margin: 0 0 0.5em; }
h2 { font-size: 1.7rem; text-transform: uppercase; }
h2::after { content: ""; display: block; width: 70px; height: 5px; background: var(--red); margin-top: 0.35em; }
h3 { font-size: 1.15rem; text-transform: uppercase; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
kbd { border: 1.5px solid var(--amber); color: var(--amber); border-radius: 6px; padding: 0 0.4em; background: #1d1d24; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section { padding: 64px 0; border-top: 1px solid var(--line); }

/* the top bar */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bar .name { font-weight: 800; letter-spacing: 0.12em; color: var(--ink); }
.bar nav a { color: var(--dim); margin-left: 22px; font-size: 0.95rem; }
.bar nav a:hover, .bar nav a.on { color: var(--ink); text-decoration: none; }
.bar.solid { position: static; border-bottom: 1px solid var(--line); }

/* the hero: the FM-1 in 3D, the VOCODER singing KLING KLANG; the words over its dark right side */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center;
  background: #0e0e12 url(media/hero.jpg) left center / cover no-repeat; border-bottom: 6px solid var(--red); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,14,0) 38%, rgba(11,11,14,0.85) 66%, rgba(11,11,14,0.96) 100%); }
.hero .wrap { position: relative; width: 100%; display: flex; justify-content: flex-end; }
.hero .copy { max-width: 470px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: 0.06em; line-height: 1; margin-bottom: 0.3em; }
.hero h1::after { content: ""; display: block; width: 110px; height: 7px; background: var(--red); margin-top: 0.3em; }
.hero .lead { font-size: 1.2rem; color: #d8d8e0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn { display: inline-block; padding: 0.7em 1.2em; border-radius: 8px; font-weight: 600; border: 2px solid var(--amber);
  color: var(--amber); background: transparent; font: 600 1rem var(--sans); cursor: pointer; }
.btn:hover { background: rgba(255,179,71,0.1); text-decoration: none; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: #ff3030; }
.btn:disabled { opacity: 0.4; cursor: default; }

/* the four synths: each its screen */
.synths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 28px; }
.synth { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.synth img { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; border-bottom: 1px solid var(--line); }
.synth div { padding: 16px 18px 18px; }
.synth h3 { margin-bottom: 0.2em; }
.synth .ch { color: var(--dim); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.synth p { color: #cfcfd8; font-size: 0.95rem; margin: 0.6em 0 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.two img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.two img.screen { image-rendering: pixelated; max-width: 420px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } .hero { background-position: 30% center; }
  .hero::before { background: rgba(11,11,14,0.72); } .hero .copy { max-width: none; } }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: 0.8em; }
ol.steps li::marker { color: var(--red); font-weight: 700; }
.note { color: var(--dim); font-size: 0.92rem; }
footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--dim); font-size: 0.9rem; }

/* the song-words page */
.tool { padding-top: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
select, input[type=text] { font: 1rem var(--sans); background: #1b1b22; color: var(--ink); border: 1px solid #3a3a46;
  border-radius: 8px; padding: 0.55em 0.7em; }
input[type=text] { width: 100%; font: 600 1.05rem var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
input[type=text]:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.lines td { padding: 8px 8px; vertical-align: middle; }
.lines td.i { color: var(--dim); font: 0.9rem var(--mono); width: 3.2em; }
.lines td.n { color: var(--dim); font-size: 0.85rem; width: 6.5em; }
.lines td.st { width: 15em; font-size: 0.88rem; }
.ok { color: var(--green); }
.bad { color: #ff6b6b; }
.code { font: 0.8rem var(--mono); color: #8d8d9c; display: block; margin-top: 2px; word-break: break-all; }
.status { min-height: 1.6em; font-size: 0.95rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
