:root {
  color-scheme: light;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #171a18;
  --muted: #606762;
  --line: #cbd1cd;
  --green: #176747;
  --blue: #245f96;
  --red: #a63c32;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
}

.intro {
  padding: 72px 0 64px;
  max-width: 760px;
}

.eyebrow,
time {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 8px 0 16px;
  font-family: ui-serif, Georgia, serif;
  font-size: 3.5rem;
  line-height: 1.08;
  font-weight: 650;
}

h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

h3 {
  margin: 8px 0 12px;
  font-size: 1.55rem;
  line-height: 1.25;
}

h3 a {
  color: var(--ink);
}

.lede {
  color: var(--muted);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.55;
}

.writing {
  padding: 36px 0 88px;
  border-top: 1px solid var(--line);
}

.post-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 40px;
}

.post-preview + .post-preview {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.cover-link,
.post-cover {
  display: block;
}

.cover-link img,
.post-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.post-summary p {
  color: var(--muted);
}

.post {
  padding: 64px 0 88px;
}

.post-header {
  max-width: 820px;
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 3.15rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-cover {
  margin-bottom: 48px;
}

.post-body {
  max-width: 720px;
  margin-inline: auto;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.08rem;
}

.post-body h2 {
  margin: 48px 0 12px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

pre {
  overflow-x: auto;
  margin: 32px 0;
  padding: 20px;
  border-left: 3px solid var(--green);
  background: #202522;
  color: #f4f7f5;
  font-size: 0.92rem;
}

blockquote {
  margin: 40px 0;
  padding-left: 24px;
  border-left: 3px solid var(--red);
  color: #3e4641;
  font-size: 1.22rem;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  nav {
    gap: 18px;
  }

  .intro {
    padding: 52px 0 44px;
  }

  h1,
  .post-header h1 {
    font-size: 2.4rem;
  }

  .post-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post {
    padding-top: 44px;
  }
}
