:root {
  color-scheme: light;
  --background: #fafaf8;
  --text: #202124;
  --muted-text: #5f6368;
  --link: #3f5f86;
  --focus: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

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

.site-shell {
  position: relative;
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.post-home-link {
  position: absolute;
  top: 0.5rem;
  right: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--link);
  text-decoration: none;
}

.post-home-link svg {
  width: 1.5rem;
  height: 1.5rem;
}

.post-home-link:hover {
  color: var(--text);
}

.site-header {
  margin-bottom: 3.5rem;
}

.site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

main {
  display: block;
}

h1,
h4,
p {
  margin-top: 0;
}

h1,
h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

p {
  margin-bottom: 1.25rem;
}

article section {
  margin-bottom: 2.5rem;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li + li {
  margin-top: 1.5rem;
}

.post-list a {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 4rem;
  color: var(--muted-text);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  .site-shell {
    padding-top: 4rem;
  }
}
