:root {
  color-scheme: light;
  --text: #222;
  --muted: #666;
  --link: #0645ad;
  --line: #ddd;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

.page,
.article-shell {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  color: #fff;
  background: var(--text);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

main {
  padding: 2.5rem 0 1rem;
}

section {
  margin: 0 0 3.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

.intro {
  max-width: 620px;
  margin-bottom: 1.5rem;
  font-size: 1.22rem;
}

.small,
.article-meta,
.site-footer {
  color: var(--muted);
  font-size: 0.86rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

.link-list {
  padding: 0;
  list-style: none;
}

.link-list li {
  margin-bottom: 1rem;
}

.link-list span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.book-list {
  padding-left: 0;
  list-style: none;
}

cite {
  font-style: normal;
}

.site-footer {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.ideas-page .site-header,
.article-page .site-header {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
}

.ideas-hero,
.article-hero {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
}

.ideas-intro,
.article-dek {
  color: var(--muted);
}

.idea-list {
  margin-top: 2rem;
}

.article-hero {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.article-title {
  max-width: 680px;
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.article-dek {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1rem;
}

.article-body {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.article-body h2 {
  margin-top: 2.25rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.article-end {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

  .page,
  .article-shell,
  .site-footer,
  .ideas-page .site-header,
  .article-page .site-header,
  .ideas-hero,
  .article-hero {
    width: min(100% - 2rem, 720px);
  }

  .site-header {
    display: block;
  }

  .site-header nav {
    margin-top: 0.55rem;
  }

  main,
  .ideas-hero,
  .article-hero {
    padding-top: 2rem;
  }

  section {
    margin-bottom: 2.75rem;
  }

  .article-end {
    display: block;
  }

  .article-end a {
    display: block;
    margin-bottom: 0.5rem;
  }
}
