@font-face {
  font-family: "et-book";
  src: url("/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"),
       url("/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "et-book";
  src: url("/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"),
       url("/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "et-book";
  src: url("/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"),
       url("/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f3;
  --text: #111111;
  --muted: #6b6255;
  --rule: #e4ddd0;
  --link: #1a1a1a;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  font-family: "et-book", Palatino, "Palatino Linotype", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 0.75rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #000; }

/* Intro + links block */
.intro { margin-bottom: 3rem; }
.intro .links { margin-top: 1.75rem; }
.intro .links p { margin: 0 0 0.6rem; color: var(--muted); }
.intro .links a { color: var(--link); }

/* Post index */
.posts h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
}

/* Single post */
.post .back, article .back { margin-bottom: 2rem; }
.post > time, article > time { display: block; color: var(--muted); margin-bottom: 2rem; }
.post h1 { margin-bottom: 0.25rem; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #efe9dd;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre { overflow-x: auto; background: #efe9dd; padding: 1rem; border-radius: 5px; }
pre code { background: none; padding: 0; }

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

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); }

@media (max-width: 480px) {
  main { padding-top: 2.5rem; }
  .post-list li { flex-direction: column; gap: 0.15rem; }
}
