/* Resonance Studio — site stylesheet (shared by the landing, help, packs and
 * credits pages; the app page adds studio.css on top of this).
 * Licensed GPL-2.0-or-later (see app/NOTICE.txt).
 */

:root {
  --bg: #0e0b09; --bg2: #16110d; --panel: #1b1510; --panel2: #241c15;
  --line: #3a2c20; --line2: #5a452c;
  --ink: #f2e6d8; --ink-dim: #b9a48c; --ink-faint: #8a7862;
  --acc: #e0b96f; --acc2: #f2ddb0; --acc-ink: #2a1a08;   /* champagne gold */
  --good: #93c793; --bad: #e0604f; --info: #82b3d8;
  --radius: 12px; --shadow: 0 12px 34px rgba(0,0,0,.5);
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1100px;
}
html[data-skin="nocturne"] {
  --bg: #070b12; --bg2: #0c121c; --panel: #101a26; --panel2: #16232f;
  --line: #1e3345; --line2: #2b4a63;
  --ink: #dceaf5; --ink-dim: #93aec2; --ink-faint: #6a8697;
  --acc: #45d6ff; --acc2: #b6ecff; --acc-ink: #04222b;
}
html[data-skin="paper"] {
  --bg: #f6f2ea; --bg2: #efe8dc; --panel: #fffdf8; --panel2: #f3ece0;
  --line: #d9cdb9; --line2: #b9a98f;
  --ink: #2b2419; --ink-dim: #5f5342; --ink-faint: #8a7c66;
  --acc: #b4610f; --acc2: #8a4a0b; --acc-ink: #fff8ef;
  --shadow: 0 8px 22px rgba(90,70,40,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: linear-gradient(180deg, var(--bg2), var(--bg) 65%);
  color: var(--ink); font: 16px/1.62 var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: var(--acc2); text-underline-offset: 2px; }
a:hover { color: var(--acc); }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); padding-bottom: .25em; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.1rem; }
code, kbd, .num { font-family: var(--mono); font-size: .92em; }
kbd { background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: .82em; }
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 70px; }
.wide { max-width: 1400px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
header.site .bar { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
header.site.wide .bar { max-width: 1400px; }
header.site .mark { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); text-decoration: none; }
header.site .sub { color: var(--ink-faint); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
header.site nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
header.site nav a { color: var(--ink-dim); text-decoration: none; font-size: .92rem; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--acc); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 30px;
  color: var(--ink-faint); font-size: .85rem;
}
footer.site .shell { padding-bottom: 0; }
footer.site a { color: var(--ink-dim); }

/* hero */
.hero { padding: 46px 0 10px; }
.hero .lede { font-size: 1.12rem; color: var(--ink-dim); max-width: 62ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none;
  background: var(--acc); color: var(--acc-ink); font-weight: 700; border: 1px solid transparent;
}
.btn:hover { background: var(--acc2); color: var(--acc-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); font-weight: 600; }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.kicker { letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: var(--acc); margin-bottom: 10px; }

/* cards / grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }

/* the landing page's screenshot gallery */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); margin-top: 18px; }
.shots figure { margin: 0; padding: 0; overflow: hidden; }
.shots img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shots figcaption { padding: 10px 14px 12px; font-size: .88rem; color: var(--ink-dim); }

.callout {
  border-left: 3px solid var(--acc); background: color-mix(in srgb, var(--acc) 7%, transparent);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0;
}
.callout.warn { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.callout.good { border-color: var(--good); background: color-mix(in srgb, var(--good) 7%, transparent); }
.callout p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .92rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-faint); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:hover { background: color-mix(in srgb, var(--acc) 6%, transparent); }
td.num, th.num { font-family: var(--mono); white-space: nowrap; }
.status { font-family: var(--mono); font-size: .74rem; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line2); white-space: nowrap; }
.status.established { color: var(--good); border-color: var(--good); }
.status.mixed { color: var(--acc); border-color: var(--acc); }
.status.tradition, .status.folk { color: var(--info); border-color: var(--info); }
.status.debunked { color: var(--bad); border-color: var(--bad); }
.status.physics { color: var(--info); border-color: var(--info); }
.status.practice { color: var(--ink-dim); }
.status.source { color: var(--acc2); border-color: var(--acc2); }

ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.small { font-size: .88rem; color: var(--ink-dim); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.toc { columns: 2; column-gap: 30px; }
@media (max-width: 640px) { .toc { columns: 1; } }
.toc a { text-decoration: none; }
script, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* -------------------------------------------------------- Marantz gold tinge
 * The same champagne language as the studio page (see app/studio.css): the
 * wordmark becomes an engraved serif print, panels catch a top light, and the
 * whole sub-site keeps its warm charcoal but reads in old-gold. Colors come
 * from the tokens above; nothing structural changes. */
:root { --gold: #e0b96f; --gold2: #f2ddb0; --gold-deep: #96723a; --gold-hi: #f8f4e9; }
body {
  background:
    radial-gradient(1100px 460px at 50% -8%, rgba(224, 185, 111, .07), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg) 65%);
}
header.site .mark {
  font: italic 600 1.16rem "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: .015em; text-transform: none;
  background: linear-gradient(180deg, #f6e7c4 8%, #d9b66f 55%, #ab8742 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.site { box-shadow: 0 1px 0 rgba(224, 185, 111, .10); }
.card { box-shadow: var(--shadow), inset 0 1px 0 rgba(248, 244, 233, .05); }
h2 { border-bottom-color: color-mix(in srgb, var(--gold) 24%, var(--line)); }
.btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 7px rgba(0, 0, 0, .35); }
.btn.ghost { box-shadow: none; }
kbd { color: var(--ink); }
