/* Colours and fonts used across the whole site */
:root {
  --paper: #EEF0F2;
  --surface: #FFFFFF;
  --ink: #1E2328;
  --graphite: #5B6470;
  --rule: #C9CED4;
  --signal: #3949AB;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Spectral", Georgia, serif;
}

/* The whole page */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

/* Keeps content in a comfortable column in the middle */
header, main, footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
header {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover,
nav a.current {
  color: var(--ink);
}
nav a.current {
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #8A939E;
  text-decoration: none;
}
.brand span {
  color: var(--ink);
}

/* Headings */
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 7vw, 68px);
  max-width: 14ch;
  margin: 48px 0 24px;
}
h2 {
  font-size: 32px;
  margin: 0 0 24px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

/* Intro text and button */
.lede {
  font-size: 21px;
  color: var(--graphite);
  max-width: 56ch;
}
.button {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.button:hover {
  background: var(--signal);
}
.note {
  font-size: 15px;
  color: var(--graphite);
}

/* The three topics */
.topics {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid p {
  color: var(--graphite);
  margin: 0;
}

/* Bottom bar */
footer {
  margin-top: 96px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--graphite);
}
footer a {
  color: var(--graphite);
}

/* On phones: stack the three topics on top of each other */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* Text pages: About, Research */
.page h1 {
  font-size: clamp(36px, 6vw, 56px);
}
.page h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 12px;
}
.page p {
  max-width: 64ch;
}
.page a {
  color: var(--signal);
}
/* What you'll get, on the home page */
.benefits {
  margin: 40px 0 8px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  max-width: 640px;
}
.benefits-intro {
  margin: 0 0 12px;
  font-weight: 500;
}
.benefits ul {
  margin: 0;
  padding-left: 20px;
}
.benefits li {
  margin-bottom: 12px;
  color: var(--graphite);
}
.benefits li:last-child {
  margin-bottom: 0;
}
.benefits strong {
  color: var(--ink);
}