/* Shared styles for the static chart landing pages. No JS, no web fonts. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e5e8ec;
  --line-soft: #eff2f5;
  --text: #14171a;
  --muted: #5f6873;
  --faint: #8d959f;
  --accent: #a97a0d;
  --chip: #f4f6f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0c0e;
    --surface: #121417;
    --line: #23272d;
    --line-soft: #1b1f23;
    --text: #e7e8ea;
    --muted: #9aa1ab;
    --faint: #6d747d;
    --accent: #f0b429;
    --chip: #191d22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.brand svg { display: block; }

.topbar .explorer {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.topbar .explorer:hover { text-decoration: underline; }

h1 {
  margin: 28px 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 700;
}

.lede {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}

.lede p { margin: 0 0 10px; }

.stamp {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.2px;
  margin: 14px 0 22px;
}

h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--faint);
  font-weight: 600;
  margin: 34px 0 10px;
}

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 24px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.row .rank {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.row img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--chip);
  object-fit: cover;
  display: block;
}

.row .name {
  display: block;
  font-weight: 550;
  font-size: 14.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .meta {
  display: block;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .price {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

nav.cross { display: grid; gap: 8px; margin-top: 12px; }

nav.cross .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav.cross .links a {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  text-decoration: none;
  color: var(--muted);
}

nav.cross .links a:hover { border-color: var(--accent); color: var(--accent); }
nav.cross .links a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

footer a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 24px; margin-top: 22px; }
  .row { grid-template-columns: 20px 46px minmax(0, 1fr); gap: 10px; }
  .row img { width: 46px; height: 46px; border-radius: 11px; }
  .row .price { display: none; }
  .topbar { font-size: 12px; }
}
