/* ==========================================================================
   Ypsi Sound Check — site stylesheet
   A night-gig look: deep ink-blue stage, signal-yellow highlights,
   poster-weight headlines. One dark theme, used on every page.

   How to use
   1. Add the fonts in your page <head>:
      <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bowlby+One&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@400;500&display=swap">
   2. Add this file after it:
      <link rel="stylesheet" href="ypsi-sound-check.css">
   3. Plain HTML (headings, links, paragraphs, tables) is styled automatically.
      Use the .ysc-* classes below for buttons, cards, labels and so on.
   ========================================================================== */

/* ---------- 1. Tokens: change these to retune the whole site ---------- */
:root {
  /* Color */
  --ysc-stage:    #0b1120;  /* page background, the darkest layer */
  --ysc-bg:       #121a2b;  /* section / card background */
  --ysc-panel:    #1b2540;  /* raised surfaces: inputs, options, table heads */
  --ysc-line:     #2e3a5c;  /* borders and dividers */
  --ysc-fg:       #eef1f8;  /* main text */
  --ysc-muted:    #a3adc6;  /* secondary text, captions */
  --ysc-accent:   #f5c518;  /* signal yellow: buttons, links, highlights */
  --ysc-accent-ink:#121a2b; /* text that sits on yellow */
  --ysc-good:     #3ecf8e;  /* success, correct */
  --ysc-bad:      #ff6b5e;  /* error, wrong */

  /* Type */
  --ysc-display: "Bowlby One", "Arial Black", Impact, sans-serif;           /* headlines only */
  --ysc-body:    "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ysc-mono:    "DM Mono", ui-monospace, Menlo, Consolas, monospace;       /* labels, dates, numbers */

  /* Type scale (1.25 ratio, 17px base) */
  --ysc-text-xs: 0.75rem;   /* 12px labels */
  --ysc-text-sm: 0.875rem;  /* 14px captions */
  --ysc-text-md: 1.0625rem; /* 17px body */
  --ysc-text-lg: 1.375rem;  /* 22px lead */
  --ysc-text-xl: clamp(1.5rem, 4vw, 1.75rem);
  --ysc-text-2xl: clamp(1.75rem, 6vw, 2.5rem);
  --ysc-text-3xl: clamp(2.25rem, 9vw, 4rem);

  /* Spacing and shape */
  --ysc-space-1: 4px;  --ysc-space-2: 8px;  --ysc-space-3: 12px;
  --ysc-space-4: 16px; --ysc-space-5: 24px; --ysc-space-6: 32px; --ysc-space-7: 48px; --ysc-space-8: 72px;
  --ysc-radius:    10px;   /* options, inputs */
  --ysc-radius-lg: 14px;   /* cards */
  --ysc-radius-pill: 999px;/* buttons, chips */
  --ysc-measure: 65ch;     /* comfortable line length */

  color-scheme: dark;
}

/* ---------- 2. Base: plain HTML elements ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ysc-stage);
  color: var(--ysc-fg);
  font-family: var(--ysc-body);
  font-size: var(--ysc-text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--ysc-display); font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0 0 var(--ysc-space-4); }
h1 { font-size: var(--ysc-text-3xl); }
h2 { font-size: var(--ysc-text-2xl); }
h3, h4 { font-family: var(--ysc-body); font-weight: 700; line-height: 1.3; text-wrap: balance; margin: 0 0 var(--ysc-space-3); }
h3 { font-size: var(--ysc-text-xl); }
h4 { font-size: var(--ysc-text-lg); }

p, ul, ol { margin: 0 0 var(--ysc-space-4); max-width: var(--ysc-measure); }
small { font-size: var(--ysc-text-sm); color: var(--ysc-muted); }
strong, b { font-weight: 700; }

a { color: var(--ysc-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ysc-accent); outline-offset: 2px; }
::selection { background: var(--ysc-accent); color: var(--ysc-accent-ink); }

hr { border: 0; border-top: 1px solid var(--ysc-line); margin: var(--ysc-space-6) 0; }
img, video { max-width: 100%; height: auto; }

blockquote { margin: 0 0 var(--ysc-space-4); padding: var(--ysc-space-1) 0 var(--ysc-space-1) var(--ysc-space-4); border-left: 3px solid var(--ysc-accent); color: var(--ysc-muted); max-width: var(--ysc-measure); }

code, kbd, time { font-family: var(--ysc-mono); font-size: 0.92em; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--ysc-mono); font-size: var(--ysc-text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ysc-muted); font-weight: 500; }
th, td { padding: var(--ysc-space-3) var(--ysc-space-4) var(--ysc-space-3) 0; border-bottom: 1px solid var(--ysc-line); vertical-align: top; }

input, select, textarea {
  font: inherit; color: var(--ysc-fg); background: var(--ysc-panel);
  border: 1.5px solid var(--ysc-line); border-radius: var(--ysc-radius); padding: var(--ysc-space-3) var(--ysc-space-4); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ysc-accent); outline: none; }
label { display: block; font-weight: 700; margin-bottom: var(--ysc-space-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 3. Layout ---------- */
.ysc-container {           /* centered page column with a safe side gutter */
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ysc-section { padding-block: var(--ysc-space-8); }
.ysc-section + .ysc-section { border-top: 1px solid var(--ysc-line); }
.ysc-stack { display: grid; gap: var(--ysc-space-4); }
.ysc-row   { display: flex; flex-wrap: wrap; gap: var(--ysc-space-3); align-items: center; }
.ysc-grid  { display: grid; gap: var(--ysc-space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ---------- 4. Components ---------- */

/* Eyebrow: small yellow label above a headline */
.ysc-eyebrow { font-family: var(--ysc-mono); font-size: var(--ysc-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ysc-accent); margin: 0 0 var(--ysc-space-2); }

/* Lead: larger intro paragraph */
.ysc-lead { font-size: var(--ysc-text-lg); color: var(--ysc-muted); line-height: 1.45; }

/* Meta: dates, counts and other small mono text */
.ysc-meta { font-family: var(--ysc-mono); font-size: var(--ysc-text-sm); color: var(--ysc-muted); font-variant-numeric: tabular-nums; }

/* Buttons */
.ysc-btn {
  display: inline-flex; align-items: center; gap: var(--ysc-space-2);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--ysc-radius-pill); padding: 12px 22px;
  background: var(--ysc-accent); color: var(--ysc-accent-ink);
  transition: transform .12s ease, filter .12s ease;
}
.ysc-btn:hover { filter: brightness(1.08); }
.ysc-btn:active { transform: translateY(1px); }
.ysc-btn--ghost { background: transparent; color: var(--ysc-fg); border: 1.5px solid var(--ysc-line); }
.ysc-btn--ghost:hover { border-color: var(--ysc-accent); filter: none; }
.ysc-btn--sm { padding: 8px 16px; font-size: var(--ysc-text-sm); }

/* Card: a "record sleeve" box */
.ysc-card { background: var(--ysc-bg); border: 1px solid var(--ysc-line); border-radius: var(--ysc-radius-lg); padding: var(--ysc-space-5); min-width: 0; }
.ysc-card > :last-child { margin-bottom: 0; }

/* Card header with the spinning-record corner */
.ysc-card-head { position: relative; overflow: hidden; margin: calc(var(--ysc-space-5) * -1) calc(var(--ysc-space-5) * -1) var(--ysc-space-5); padding: var(--ysc-space-6) var(--ysc-space-5) var(--ysc-space-5); border-bottom: 1px solid var(--ysc-line); }
.ysc-card-head > * { position: relative; }

/* Record: decorative vinyl disc. Place inside .ysc-card-head, or anywhere position:relative */
.ysc-record {
  position: absolute !important; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--ysc-accent) 0 17%, var(--ysc-bg) 17.5% 19%, #0b1120 19.5% 100%);
  box-shadow: inset 0 0 0 10px #0d1424, inset 0 0 0 11px #1c2540, inset 0 0 0 26px #0d1424, inset 0 0 0 27px #1c2540, inset 0 0 0 44px #0d1424, inset 0 0 0 45px #1c2540;
}
.ysc-record--spin { animation: ysc-spin 2.4s linear infinite; }
@keyframes ysc-spin { to { transform: rotate(360deg); } }

/* Chip: genre or tag pill */
.ysc-chip { display: inline-flex; align-items: center; font-family: var(--ysc-mono); font-size: var(--ysc-text-xs); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--ysc-radius-pill); border: 1px solid var(--ysc-line); color: var(--ysc-muted); }
.ysc-chip--accent { border-color: var(--ysc-accent); color: var(--ysc-accent); }

/* Note: a callout with a yellow rule */
.ysc-note { border-left: 3px solid var(--ysc-accent); padding: var(--ysc-space-1) 0 var(--ysc-space-1) var(--ysc-space-4); }
.ysc-note--good { border-left-color: var(--ysc-good); }
.ysc-note--bad  { border-left-color: var(--ysc-bad); }

/* Option: big tappable choice row (as used in the quiz) */
.ysc-option { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--ysc-fg); background: var(--ysc-panel); border: 1.5px solid var(--ysc-line); border-radius: var(--ysc-radius); padding: 13px 16px; cursor: pointer; transition: border-color .15s; }
.ysc-option:hover { border-color: var(--ysc-accent); }
.ysc-option.is-good { border-color: var(--ysc-good); background: color-mix(in srgb, var(--ysc-good) 14%, var(--ysc-panel)); }
.ysc-option.is-bad  { border-color: var(--ysc-bad);  background: color-mix(in srgb, var(--ysc-bad) 14%, var(--ysc-panel)); }

/* Progress: row of track segments */
.ysc-progress { display: flex; gap: 4px; }
.ysc-progress > i { flex: 1; height: 6px; border-radius: 3px; background: var(--ysc-line); }
.ysc-progress > i.is-on { background: var(--ysc-accent); }
.ysc-progress > i.is-good { background: var(--ysc-good); }
.ysc-progress > i.is-bad { background: var(--ysc-bad); }

/* Big number: score or stat */
.ysc-bignum { font-family: var(--ysc-display); font-size: clamp(3.5rem, 14vw, 5.5rem); line-height: 1; color: var(--ysc-accent); font-variant-numeric: tabular-nums; margin: 0; }

/* Site header / nav */
.ysc-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ysc-space-4); padding-block: var(--ysc-space-4); border-bottom: 1px solid var(--ysc-line); }
.ysc-nav__brand { font-family: var(--ysc-display); font-size: var(--ysc-text-lg); color: var(--ysc-fg); text-decoration: none; }
.ysc-nav__links { display: flex; flex-wrap: wrap; gap: var(--ysc-space-5); list-style: none; margin: 0; padding: 0; }
.ysc-nav__links a { color: var(--ysc-muted); text-decoration: none; font-weight: 700; }
.ysc-nav__links a:hover, .ysc-nav__links a[aria-current="page"] { color: var(--ysc-accent); }

/* Footer */
.ysc-footer { padding-block: var(--ysc-space-6); border-top: 1px solid var(--ysc-line); color: var(--ysc-muted); font-size: var(--ysc-text-sm); }

/* Table wrapper: lets wide tables scroll on phones */
.ysc-table-wrap { overflow-x: auto; }
