:root {
  --ink: #252521;
  --muted: #77766e;
  --paper: #f8f7f3;
  --line: #deddd5;
  --photo: #d8d1c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

header,
article,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

header > a {
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

header a,
footer a {
  text-decoration: none;
}

header > a:hover {
  color: var(--muted);
}

header nav a:hover,
footer a:hover {
  color: var(--ink);
}

header nav a,
footer {
  color: var(--muted);
}

header nav a + a {
  margin-left: 16px;
}

article {
  padding-top: 48px;
  padding-bottom: 72px;
}

footer {
  padding-top: 16px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer a + a {
  margin-left: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 1.75em 0 0.7em;
}

h1 {
  max-width: 16em;
  margin: 0 0 0.55em;
  font-size: clamp(30px, 3.3vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

h4,
h5,
h6 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.15em;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.15s ease;
}

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

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

blockquote {
  margin: 1.6em 0 1.8em;
  padding: 0 0 0 1.1em;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

blockquote p {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 28px;
  background: var(--photo);
}

.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 36px;
}

.post img {
  margin: 0 0 12px;
}

.post p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.post .description {
  font-size: 16px;
  font-style: italic;
}

.post .date {
  font-size: 16px;
  opacity: 0.6;
}

.post p + p {
  margin-top: 0.2em;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #eeeae2;
  padding: 0.12em 0.35em;
}

pre {
  margin: 0 0 1.4em;
  padding: 20px 24px;
  overflow: auto;
  background: #eeeae2;
  border: 1px solid var(--line);
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.92em;
}

@media (max-width: 760px) {
  header,
  article,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  article {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .posts {
    grid-template-columns: 1fr;
  }
}
