/* Deliberately self-contained: system fonts, no build step, no dependencies.
   Shares the palette with TenUp so the two read as the same hand. */

:root {
  color-scheme: light dark;
  --bg: #eef0f8;
  --surface: #ffffff;
  --line: rgba(30, 34, 56, 0.09);
  --text: #1e2238;
  --muted: #616881;
  --brand: #5a6be0;
  --accent: #ffb673;
  --accent-ink: #35200a;
  --good: #6fe0b8;
  --good-ink: #0b2e23;
  --shadow: 0 1px 2px rgba(30, 34, 56, 0.06), 0 3px 8px rgba(30, 34, 56, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --surface: #191e33;
    --line: rgba(255, 255, 255, 0.08);
    --text: #eceffa;
    --muted: #949cbc;
    --brand: #8b9cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 56px 20px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 620px;
  margin-inline: auto;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lede {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 17px;
}

h2 {
  margin: 48px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--brand);
}

.card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.card:hover {
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card__mark {
  display: flex;
  gap: 5px;
  flex: none;
}

.tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
}

.tile.a {
  background: var(--accent);
  color: var(--accent-ink);
}

.tile.b {
  background: var(--good);
  color: var(--good-ink);
}

.go {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

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

footer a {
  margin-right: 16px;
  color: var(--muted);
  text-decoration: none;
}

/* Site navigation. Sits under the header on every page. */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand);
}

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

/* Running text. Shared by the landing page and the article pages; only the
   heading treatment differs, which is what .article below changes. */

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  text-underline-offset: 2px;
}

/* Article pages: headings become real headings rather than section labels. */

.article h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.article h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  color: var(--text);
}

/* A claim worth pulling out of the flow of the argument. */

.rule {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  font-weight: 600;
}

.note {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

/* The five pairing families, as rows of tiles. */

.families {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.families li {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.scoring {
  width: 100%;
  margin: 18px 0 22px;
  border-collapse: collapse;
  font-size: 15px;
}

.scoring caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.scoring th,
.scoring td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.scoring th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.scoring td:last-child,
.scoring th:last-child {
  width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cta {
  margin-top: 32px;
  font-size: 17px;
  font-weight: 600;
}

.cta a {
  text-decoration: none;
}

@media (max-width: 420px) {
  .card {
    flex-direction: column;
  }
}
