:root {
  --bg: #0e1218;
  --bg-deep: #0a0d12;
  --text: #e6ebf2;
  --text-soft: #a2acba;
  --text-faint: #6e7888;
  --accent: #5ab0f0;
  --line: #232c38;
  --mono: ui-monospace, "Cascadia Code", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header,
main,

footer {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header {
  display: flex;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Space Grotesk", var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

/* Hero */

.hero {
  padding-top: 56px;
  padding-bottom: 8px;
  text-align: center;
}

h1 {
  max-width: 836px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  text-wrap: balance;
}

.hero p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero .lead {
  font-size: 17px;
  color: var(--text);
}

/* Animated chart */

.chart {
  padding-top: 16px;
}

.chart-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

/* Section headings, shared by How it works and Tested strategies */

.process h2,
.tests h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

/* How it works */

.process {
  padding-top: 56px;
  text-align: center;
}

.process ol {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.process h3 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

.process li p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-soft);
}

/* Tested strategies */

.tests {
  padding-top: 48px;
  text-align: center;
}

.tests > p {
  margin-top: 8px;
  color: var(--text-soft);
}

.test {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  background: var(--bg-deep);
  transition: border-color 0.2s;
}

.test:hover {
  border-color: var(--accent);
}

.test img {
  display: block;
  width: 100%;
  height: auto;
}

.test-body {
  padding: 20px;
}

.test h3 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
}

.test-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.test-stats {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
}

.test-stats div {
  display: grid;
  grid-template-columns: 84px 1fr;
}

.test-stats dt {
  color: var(--text-faint);
}

.test-stats dd {
  margin: 0;
}

.test-result {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
}

.test .test-button {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
}

.test .test-button:hover {
  background: rgba(90, 176, 240, 0.1);
  text-decoration: none;
}

/* Footer */

footer {
  margin-top: 80px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-heading {
  font-size: 16px;
  color: var(--text);
}

.footer-contact p + p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-contact a {
  font-family: var(--mono);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  font-size: 20px;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.disclaimer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Wider screens. These must stay at the bottom of the file. */

@media (min-width: 640px) {
  .process ol {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 720px) {
  .test {
    grid-template-columns: 1.1fr 1fr;
  }

  .test img {
    height: 100%;
    object-fit: contain;
  }
}

@media (min-width: 900px) {
  header,
  main,
  footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    padding-top: 80px;
  }

  h1 {
    font-size: 40px;
  }

  .hero .lead {
    font-size: 19px;
  }
}