/* CompareMonster. No web fonts and no framework: the whole stylesheet is the page's only CSS. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5d6670;
  --line: #e3e0d8;
  --accent: #2f6f4f;
  --accent-text: #ffffff;
  --highlight: #fff4d6;
  --draft: #b3261e;
  --radius: 10px;
  --wrap: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1d2125;
    --text: #e8e6e1;
    --muted: #9aa3ac;
    --line: #30363c;
    --accent: #7cc49d;
    --accent-text: #0f1a14;
    --highlight: #2c2a1f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 2rem; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs .sep { margin: 0 0.4rem; }

.draft-banner { background: var(--draft); color: #fff; text-align: center; padding: 0.4rem; font-weight: 600; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.92em; }

.hero { padding: 1.5rem 0 0.5rem; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.25rem; }

.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 0.6rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }

.badge { display: inline-block; margin-left: 0.5rem; padding: 0 0.45rem; border-radius: 4px; background: var(--draft); color: #fff; font-size: 0.75rem; vertical-align: middle; }

.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.article-link { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.article-list time { display: block; color: var(--muted); font-size: 0.85rem; }
.article-list p { margin: 0.3rem 0 0; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-block; padding: 0.2rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.92rem; }

.prose img { max-width: 100%; height: auto; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.byline { color: var(--muted); font-size: 0.92rem; margin-top: -0.5rem; }

.object-list { list-style: none; padding: 0; }
.object-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.object-list .muted { display: block; }
.category { text-transform: capitalize; }

.compare-list { padding-left: 1.2rem; }
.compare-list li { margin: 0.3rem 0; }

.sources { margin-top: 2.5rem; font-size: 0.92rem; }
.sources li { margin-bottom: 0.5rem; }

/* The comparison card: 1 big thing = many small things */
.cm-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--highlight);
  border: 1px solid var(--line);
}
.cm-side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.cm-count { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.cm-name { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cm-value { color: var(--muted); font-size: 0.85rem; }
.cm-eq { font-size: 2rem; font-weight: 700; color: var(--muted); }
.cm-card figcaption { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 520px) {
  .cm-card { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* Calculator */
.calculator { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 1.5rem 0; }
.calculator label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.calculator select { font: inherit; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%; }
.calculator-result { display: block; min-height: 4rem; }
