:root {
  --background: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #d9dee3;
  --link: #174ea6;
  --link-hover: #0b3d91;
  --surface: #f7f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.site-title {
  color: var(--text);
  font-size: 21px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.content {
  padding: 48px 0 64px;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 650;
}

h2 {
  margin: 38px 0 12px;
  font-size: 23px;
  font-weight: 650;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 650;
}

p {
  margin: 0 0 18px;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  padding-left: 24px;
}

li {
  margin: 8px 0;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.article-list,
.repository-list,
.contact-list,
.timeline-list {
  list-style: none;
  padding: 0;
}

.article-list > li,
.repository-list > li,
.contact-list > li,
.timeline-list > li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.compact-list > li {
  padding: 16px 0;
}

.article-list h2,
.repository-list h2,
.timeline-list h2 {
  margin-top: 0;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  margin-bottom: 8px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

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

.tag-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  padding: 6px 10px;
}

.button-link {
  display: inline-block;
  border: 1px solid var(--link);
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: 600;
}

.button-link.secondary {
  border-color: var(--border);
  color: var(--text);
}

.button-link:hover,
.button-link:focus {
  background: var(--surface);
  text-decoration: none;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 22px 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .content {
    padding-top: 36px;
  }

  h1 {
    font-size: 29px;
  }
}
