/* Colors from src/constants/theme.ts, so the site looks like the app. */
:root {
  --text: #1e1b3a;
  --text-secondary: #6b6890;
  --background: #f6f4ff;
  --surface: #ffffff;
  --border: #e4e0fa;
  --primary: #6c5ce7;
  --warning-soft: #ffe3e8;
  --warning: #f0506e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3f1ff;
    --text-secondary: #a9a5cc;
    --background: #15132a;
    --surface: #221f3d;
    --border: #34305a;
    --primary: #8b7dff;
    --warning-soft: #44202c;
    --warning: #ff7a93;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

header.site img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

header.site a {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

h1,
h2,
a {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

h2 {
  font-size: 23px;
  font-weight: 900;
  margin: 40px 0 8px;
}

h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 4px;
}

p,
li {
  color: var(--text);
}

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

a {
  color: var(--primary);
  font-weight: 700;
}

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

.card.warning {
  background: var(--warning-soft);
  border-color: var(--warning);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px;
}

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

th {
  font-weight: 800;
}

tr:last-child td {
  border-bottom: none;
}

footer.site {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

footer.site a {
  margin-right: 16px;
}

.tagline {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 24px;
}
