:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #eeeeee;
  --accent: #333333;
  --accent-dark: #111111;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1rem;
}

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

.site-nav a:hover,
.site-title:hover,
a:hover {
  color: var(--muted);
}

.site-main {
  padding: 3rem 0;
}

.hero,
.content,
.post-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

.post-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-card h2,
.post-card h3 {
  margin-top: 0;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--muted);
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 3rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f6f6f6;
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
}

pre {
  overflow-x: auto;
  background: #f6f6f6;
  padding: 1rem;
  border-radius: 0.5rem;
}

pre code {
  background: transparent;
  padding: 0;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  .site-header {
    display: block;
    padding-top: 1.25rem;
  }

  .site-nav {
    margin-top: 0.75rem;
  }

  .site-main {
    padding: 2rem 0;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}