/* gimmejamz — one column like a record sleeve's back cover: totals strip, era tracklist with run times, then the social half (card + compare). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff") format("woff");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #eef1f4; --panel: #ffffff; --ink: #14202b; --muted: #5b6875; --line: #d3dae1;
  --accent: #b3246b; --accent-soft: #f6dfea; --second: #0f7a78; --second-soft: #d9efee;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c; --panel: #18212a; --ink: #e6ebf0; --muted: #98a5b2; --line: #2b3742;
    --accent: #f06aa6; --accent-soft: #3a1c2b; --second: #4cc2bd; --second-soft: #153331; color-scheme: dark;
  }
}

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 60rem; margin: 0 auto; padding-block: 28px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 36px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: .95; letter-spacing: -.02em; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1rem; font-weight: 600; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.hero { display: flex; flex-direction: column; gap: 12px; }
.hero p.lede { font-size: 1.1rem; max-width: 36em; }
.drop { border: 2px dashed var(--line); border-radius: 14px; background: var(--panel); padding: 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop > div { flex: 1 1 16rem; min-width: 0; }
.btn { font: inherit; font-weight: 600; color: var(--panel); background: var(--ink); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--second-soft); color: var(--second); }
.status.err { background: var(--accent-soft); color: var(--accent); }

section { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; flex-direction: column; gap: 4px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.totals div { box-shadow: 0 0 0 .5px var(--line); padding: 14px 16px; min-width: 0; }
.totals b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }

.months { display: flex; align-items: flex-end; gap: 1px; height: 150px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0; background: var(--accent); }
.bar.alt { background: var(--second); }
.bar:hover, .bar:focus { filter: brightness(1.25); }
.yearrow { display: flex; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: 4px; }
.yearrow span { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 3px; }
.readout { font-family: var(--mono); font-size: .8rem; color: var(--muted); min-height: 1.5em; margin-top: 8px; }

.tracklist { list-style: none; padding: 0; display: flex; flex-direction: column; }
.tracklist li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tracklist li:first-child { border-top: 0; }
.tracklist .no { font-family: var(--mono); color: var(--accent); }
.tracklist li.alt .no { color: var(--second); }
.tracklist .run { font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.tracklist .sub { grid-column: 2 / 4; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 16px; align-items: start; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: .9rem; }
.row .name { overflow-wrap: anywhere; }
.row .val { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.row .meter { grid-column: 1 / 3; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.row .meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.row .meter i.s { background: var(--second); }

.tablebox { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 10px; }

label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 4px; }
input[type=text], textarea { font: inherit; width: 100%; box-sizing: border-box; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
textarea { font-family: var(--mono); font-size: .75rem; height: 5.5rem; resize: vertical; overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.score { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--second-soft); color: var(--second); border-radius: 999px; padding: 3px 10px; font-size: .85rem; overflow-wrap: anywhere; }
.chips.a span { background: var(--accent-soft); color: var(--accent); }
.cardimg { display: block; width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; border-radius: 16px; background: #14202b; }

.steps { padding-left: 1.5em; display: flex; flex-direction: column; gap: 10px; max-width: 44em; }
.steps li::marker { font-family: var(--mono); color: var(--accent); }
.wrap a { color: var(--accent); text-underline-offset: 2px; }
.tip { margin-top: 14px; }
.notes { border-top: 1px solid var(--line); padding-top: 20px; }
.notes ul { padding-left: 1.2em; color: var(--muted); font-size: .88rem; max-width: 46em; display: flex; flex-direction: column; gap: 4px; }

/* privacy page and footer */
.hero .eyebrow a { color: inherit; text-decoration: none; }
.prose { max-width: 44em; gap: 10px; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.site-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
