/*
 * One hand-written stylesheet, for both sites.
 *
 * NO WEB FONT. musotown.com loads Space Grotesk over two extra origins with a
 * render-blocking stylesheet, and pays for it with 'unsafe-inline' in its CSP.
 * That is a fair trade for a cinematic front door and a bad one for a page
 * whose entire argument is that it is fast text. The system stack below costs
 * nothing, renders on the first paint, and never shifts.
 *
 * NO INLINE STYLE ANYWHERE, which is what lets `_headers` say
 * `style-src 'self'` with no escape hatch. Everything that varies between the
 * two sites varies through one custom property block.
 *
 * Colours are declared once, at the top, and the dark scheme is the default
 * because most of this audience reads at night with a DAW open.
 */

:root {
  --bg: #101418;
  --panel: #171c22;
  --panel-2: #1e242c;
  --line: #2a323c;
  --ink: #e7ecf2;
  --ink-dim: #a3aebc;
  --ink-faint: #74808f;
  --accent: #4fd1c5;
  --accent-ink: #06231f;
  --warn: #f0b429;
  --bad: #f2777a;
  --good: #7ddba3;

  --measure: 46rem;
  --radius: 10px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #f5f7fa;
    --panel-2: #eef1f6;
    --line: #d9e0e8;
    --ink: #15191e;
    --ink-dim: #4a5563;
    --ink-faint: #6b7686;
    --accent: #0f766e;
    --accent-ink: #ffffff;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
}
a:hover {
  text-decoration-thickness: 2px;
}

img,
picture,
audio {
  max-width: 100%;
}
img {
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
}

/* --- chrome ------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.primary ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
.primary a {
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.primary a:hover,
.primary a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--ink-faint);
}
.crumbs a {
  color: var(--ink-dim);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 2rem 1rem 1.5rem;
}
.finner {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.fcol h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}
.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.fbase {
  max-width: 62rem;
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.fine {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}

/* --- headings and prose -------------------------------------------------- */

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}
.eyebrow a {
  color: var(--ink-faint);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin: 0 0 1rem;
}

.byline {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem;
}
.byline .sep {
  margin: 0 0.45rem;
}
.byline .upd {
  color: var(--ink-dim);
}

.prose > * + * {
  margin-top: 1.1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--ink-dim);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--panel-2);
  padding: 0.1rem 0.32rem;
  border-radius: 5px;
}
.prose pre {
  background: var(--panel-2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
}

.aff::after {
  content: ' \2197';
  font-size: 0.8em;
  color: var(--ink-faint);
}

.embed a {
  display: inline-block;
  padding: 0.7rem 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.embed-host {
  color: var(--ink-faint);
  font-size: 0.85em;
}

figure.shot {
  margin: 1.75rem 0;
}
figure.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* --- the verdict block --------------------------------------------------- */

.glance {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.glance h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.rating {
  color: var(--warn);
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}
.rating.big {
  font-size: 1.3rem;
}
.rating .num {
  color: var(--ink-dim);
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-left: 0.5rem;
}
.verdict {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.proscons {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.proscons h3 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.proscons div:first-child h3 {
  color: var(--good);
}
.proscons div:last-child h3 {
  color: var(--bad);
}
.proscons ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

/*
 * The disclosure sits INSIDE the verdict box, not in the footer. The FTC's
 * guidance is that a disclosure must be "very close to, or -- even better --
 * part of, the endorsement", and that a home-page disclosure "won't be
 * sufficient". So it is styled to be read, not to be survivable.
 */
.provenance {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.provenance strong {
  color: var(--ink);
}

/* --- evidence ------------------------------------------------------------ */

.evidence {
  margin: 2rem 0;
}
.rig {
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.rig h3 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.rig dl {
  margin: 0;
  display: grid;
  gap: 0.4rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.rig dl div {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 0.3rem;
}
.rig dt {
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.rig dd {
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}
caption {
  caption-side: top;
  text-align: left;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
th,
td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  color: var(--ink-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
td.num,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
/* A measured value is one token. "0 samples" breaking after the 0 reads as a
   missing figure. The table scrolls sideways already, so nothing is lost. */
td.num {
  white-space: nowrap;
}
td.how {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.clips {
  margin-top: 1.5rem;
}
figure.clip {
  margin: 0 0 1rem;
}
figure.clip figcaption {
  margin: 0 0 0.35rem;
  color: var(--ink-dim);
}
audio {
  width: 100%;
}

.tail {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* --- listings ------------------------------------------------------------ */

.hero {
  padding: 1.5rem 0 2rem;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.btn.ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cards {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card a {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card a:hover {
  border-color: var(--accent);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.card .rating {
  margin-top: 0.6rem;
}

/* Loud on purpose. A draft that looks like a live page on localhost is how an
   unfinished verdict ends up quoted back at you. */
.draftbar {
  margin: 0 0 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--warn);
  color: #201a06;
  font-size: 0.92rem;
}
.draftbar code {
  background: rgba(0, 0, 0, 0.14);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.empty {
  color: var(--ink-faint);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

@media (max-width: 30rem) {
  .nav {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  main {
    padding: 1.25rem 1rem 3rem;
  }
}
