:root {
  --max-width: 900px;
  --accent: #2563eb;
  --text-color: #1a1a1a;
  --muted-color: #6b7280;
  --border-color: #e5e7eb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.site-header .wordmark {
  font-weight: 700;
  font-size: 1.125rem;
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: var(--muted-color);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Main content */

main {
  padding: 48px 0;
  min-height: 50vh;
}

.page h1,
.post h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.page p,
.post p {
  margin-bottom: 1em;
}

.page p a,
.post p a {
  color: var(--accent);
  text-decoration: underline;
}

.page p a:hover,
.post p a:hover {
  color: #1d4ed8;
}

.page h2,
.post h2 {
  font-size: 1.5rem;
  margin: 1.5em 0 0.5em;
}

.page h3,
.post h3 {
  font-size: 1.2rem;
  margin: 1.2em 0 0.5em;
}

.page blockquote,
.post blockquote {
  border-left: 3px solid var(--border-color);
  padding-left: 16px;
  color: var(--muted-color);
  margin: 1em 0;
}

.page ul,
.page ol,
.post ul,
.post ol {
  margin: 0 0 1em 1.5em;
}

.page code,
.post code {
  background: #f3f4f6;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.page pre,
.post pre {
  background: #f3f4f6;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}

.page pre code,
.post pre code {
  background: none;
  padding: 0;
}

/* Post */

.post .post-date {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}

/* Blog index */

.blog-year {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin: 2em 0 0.75em;
}

.blog-year:first-child {
  margin-top: 0;
}

.post-list {
  list-style: none;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.post-list a {
  font-weight: 500;
}

.post-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-list .post-date {
  color: var(--muted-color);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--muted-color);
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .copyright {
  color: var(--muted-color);
  font-size: 0.85rem;
}

/* Homepage hero */

.hero {
  padding: 8px 0 40px;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 18ch;
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 4px 0 28px;
}

.hero .lede {
  font-size: 1.125rem;
  max-width: 60ch;
  margin-bottom: 28px;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 6px;
}

.cta-button:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* Landing page sections */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
}

.section h2 {
  margin-bottom: 8px;
}

.section .section-intro {
  color: var(--muted-color);
  max-width: 60ch;
  margin-bottom: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-icon {
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step p {
  color: var(--muted-color);
  font-size: 0.95rem;
  margin: 0;
}

.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.example-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.example-card p {
  margin: 0;
  font-size: 0.95rem;
}

.examples-note {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 24px 0 0;
}

.contact-section p {
  color: var(--muted-color);
  max-width: 50ch;
}

/* Mobile */

@media (max-width: 700px) {
  .steps,
  .examples {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
    max-width: none;
  }


  .wrapper {
    padding: 0 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header nav {
    gap: 14px;
  }

  .post-list li {
    flex-direction: column;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
