:root {
  color-scheme: light;
  --page-bg: #e6e6e6;
  --site-bg: #ffffff;
  --ink: #444444;
  --heading: #333333;
  --muted: #757575;
  --line: #e9e9e9;
  --soft: #f3f3f3;
  --accent: #16a1e7;
  --accent-dark: #0776bb;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 90.5%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: #0b91ea;
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-header,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--site-bg);
}

.site-header {
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.site-title {
  padding: 20px 0 18px;
}

.brand {
  display: inline-block;
  color: var(--ink);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: 0.1px 1px 2px #888888;
}

.brand:hover {
  color: #111111;
  text-decoration: none;
}

.tagline {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
  text-shadow: 0.1px 1px 2px #cccccc;
}

nav {
  display: flex;
  flex-wrap: wrap;
  background: var(--soft);
  border-top: 1px solid #ededed;
  border-bottom: 5px solid var(--accent);
}

nav a {
  display: inline-block;
  padding: 0 20px;
  color: #6a6a6a;
  font-size: 12px;
  line-height: 3.692307692;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

main {
  padding: 0 24px 24px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 400;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 10px;
  color: #636363;
  font-size: 11px;
  font-weight: 700;
  line-height: 2.181818182;
  text-transform: uppercase;
}

.hero,
.section,
.article-body {
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom: 2px double #f3f3f3;
}

.hero {
  padding: 30px 24px 28px;
  border-top: 1px solid var(--line);
}

.hero h1,
.lede {
  max-width: 760px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.lede {
  margin: 18px 0 0;
}

.section {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 34px;
  padding: 30px 24px;
}

.section-heading h2 {
  font-size: 24px;
}

.item-list {
  display: grid;
  gap: 18px;
}

.item-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.item-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.item-list h3,
.prose h3 {
  font-size: 16px;
  line-height: 1.8;
}

.item-list p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
}

.prose {
  max-width: 720px;
}

.prose h3:not(:first-child) {
  margin-top: 24px;
}

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

.prose ul,
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 0;
}

.prose ul,
.article-body ul {
  list-style: square outside;
}

.article-body ol {
  list-style: decimal outside;
}

.prose li,
.article-body li {
  margin-left: 36px;
}

.article-header {
  padding: 30px 24px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.article-header h1 {
  font-size: 28px;
}

.article-body {
  max-width: 760px;
  padding: 24px;
}

.article-body h2,
.article-body h3 {
  margin: 24px 0 10px;
}

.article-body h2 {
  font-size: 18px;
  line-height: 1.6;
}

.article-body p {
  margin: 0 0 20px;
}

.site-footer {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #f2f2f2;
  color: #686868;
  font-size: 14px;
  line-height: 2;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 767px) {
  body {
    background: var(--site-bg);
  }

  .site-header {
    margin-top: 0;
    border: 0;
    text-align: center;
  }

  .site-title {
    padding: 12px 0 0;
  }

  .brand {
    font-size: 30px;
  }

  .tagline {
    display: inline-block;
    padding: 0 12px;
  }

  nav {
    margin: 20px 0;
    background: #555555;
    border-bottom: 0;
  }

  nav a {
    flex: 1 1 100%;
    border-bottom: 1px solid #333333;
    color: #ffffff;
    font-size: 14px;
    line-height: 2;
  }

  main {
    padding: 0;
    border: 0;
  }

  .hero,
  .section,
  .article-header,
  .article-body {
    border-left: 0;
    border-right: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-header h1 {
    font-size: 22px;
  }

  .site-footer {
    margin-bottom: 0;
    text-align: center;
  }
}
