:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --accent: #f472b6;
  --muted: #a3a3a3;
  --bg: #0a0a0a;
  --surface: #171717;
  --border: #262626;
  --font: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  margin-bottom: 40px;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-header h1 a {
  text-decoration: none;
}

.site-header.small {
  margin-bottom: 32px;
  font-size: 1rem;
}

/* Bio */
.site-header:has(+ .bio) {
  margin-bottom: 16px;
}

.bio {
  margin-bottom: 48px;
}

.bio p {
  margin: 0 0 12px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 20px;
}

/* Post list */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 4px 0;
}

.posts .date {
  font-size: 0.95rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.posts .title {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

/* Post page */
.post h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
}

.post-date {
  color: var(--muted);
  margin: 0 0 32px;
}

.post h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 40px 0 16px;
}

.post h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 32px 0 12px;
}

.post p,
.post ul,
.post ol {
  margin: 0 0 20px;
}

.post blockquote {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.post figure {
  margin: 0 0 24px;
}

.post figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.post code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 4px;
}

.post pre {
  background: var(--surface);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
}

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

.post hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 32px 18px 64px;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .posts li {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }

  .posts .date {
    font-size: 0.8rem;
    color: var(--muted);
  }

  .posts .title {
    font-size: 1.15rem;
  }

  .post h1 {
    font-size: 2rem;
  }

  .post h2 {
    font-size: 1.5rem;
  }
}
