/* Colours follow the app's theme (src/ui/theme/tokens.ts). */
:root {
  --background: #f2f4f7;
  --surface: #ffffff;
  --border: #d5dbe4;
  --text: #0e1116;
  --text-secondary: #465160;
  --accent: #bce52e;
  --on-accent: #11150a;
  --accent-text: #476200;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0c10;
    --surface: #141920;
    --border: #2a323e;
    --text: #f4f6fa;
    --text-secondary: #a3adbb;
    --accent: #c8f03c;
    --on-accent: #11150a;
    --accent-text: #c8f03c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.15em;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 64px;
}

header.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

header.bar a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

header.bar img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

header.bar nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 15px;
}

header.bar nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

header.bar nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 40px 0 8px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 40px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

.muted {
  color: var(--text-secondary);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 24px 0;
}

.table {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 56px 0 16px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

.hero h1 {
  margin-top: 20px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.brands li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.card > :first-child {
  margin-top: 20px;
}
