:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f5f5f3;
  --text: #20201f;
  --muted: #686863;
  --accent: #5b3f8c;
  --border: #deded9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171716;
    --surface: #222220;
    --text: #f2f2ee;
    --muted: #b5b5ae;
    --accent: #c5a7f2;
    --border: #3a3a36;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-size: 100%;
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

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

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

img,
video {
  height: auto;
}

.skip-link {
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  background: var(--background);
  top: 1rem;
}

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

.site-header__inner,
.page-shell,
.site-footer {
  margin-inline: auto;
  max-width: 46rem;
  padding-inline: 1.25rem;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 4.5rem;
}

.site-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

.page-shell {
  min-height: calc(100vh - 10rem);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.page-header,
.post__header {
  margin-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.45rem;
}

time,
.site-footer {
  color: var(--muted);
}

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

.post-list li {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.post-list h2 {
  margin: 0 0 0.25rem;
}

.post-list p {
  margin-bottom: 0;
}

.post__body {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

.post__body > * + * {
  margin-top: 1.4em;
}

.post__body blockquote {
  border-left: 0.2rem solid var(--border);
  color: var(--muted);
  margin-inline: 0;
  padding-left: 1.25rem;
}

.post__body code {
  background: var(--surface);
  border-radius: 0.2rem;
  font-size: 0.9em;
  padding: 0.1em 0.25em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}
