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

:root {
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-line: #e6e6e6;
  --color-surface: #f6f6f6;
  --color-background: #ffffff;
  --measure: 46rem;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

img {
  display: block;
  height: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

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

nav a:hover {
  color: var(--color-text);
}

/* Content */
main {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero img {
  width: 120px;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.125rem;
  color: var(--color-muted);
}

.block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-line);
}

.block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.cards li {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 1.25rem;
}

.cards h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.cards p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Long-form pages */
.prose h1 {
  margin-bottom: 0.25rem;
}

.prose .meta {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.4rem;
}

.prose p + p {
  margin-top: 0.75rem;
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50vh;
  text-align: center;
}

/* Footer */
footer {
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-muted);
}
