:root {
  --paper: #f6f1e7;
  --paper-2: #efe6d4;
  --ink: #2b2620;
  --ink-soft: #6b6152;
  --frame: #7a4f2c;
  --frame-dark: #553519;
  --line: #ddd0b8;
  --accent: #a3532b;
  --max: 46rem;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--frame-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
header.site { border-bottom: 1px solid var(--line); background: var(--paper-2); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-size: 1.35rem; font-weight: bold;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: .75rem; font-weight: normal; color: var(--ink-soft); }
nav.main a {
  margin-left: 1.1rem; color: var(--ink); text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .9rem;
}
nav.main a:first-child { margin-left: 0; }
nav.main a:hover, nav.main a[aria-current] { color: var(--accent); }
main { padding: 2rem 0 3rem; }
.hero { display: grid; grid-template-columns: 1fr 150px; gap: 1.5rem; align-items: center; margin-bottom: 2.2rem; }
.hero h1 { margin: 0 0 .5rem; font-size: 1.9rem; line-height: 1.2; }
.hero p { margin: 0; color: var(--ink-soft); }
.hero svg { width: 150px; height: auto; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.posts h3 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover { color: var(--accent); }
.posts p { margin: .2rem 0 0; color: var(--ink-soft); }
.meta { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .8rem; color: var(--ink-soft); }
.tag {
  display: inline-block; padding: 0 .45rem; margin-left: .4rem;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2);
}
article h1 { font-size: 1.8rem; margin: .3rem 0 .4rem; }
article .lead { font-size: 1.08rem; color: var(--ink-soft); }
article figure {
  margin: 1.5rem 0; padding: 1rem; background: var(--paper-2);
  border: 1px solid var(--line); text-align: center;
}
article figure svg { max-width: 100%; height: auto; }
article figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); }
article ul, article ol { padding-left: 1.3rem; }
article li { margin: .25rem 0; }
.note { margin: 1.5rem 0; padding: .8rem 1rem; border-left: 4px solid var(--frame); background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
th, td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .8rem; color: var(--ink-soft); }
.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem;
}
footer.site {
  border-top: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .8rem;
}
footer.site .wrap { padding-top: 1.2rem; padding-bottom: 1.6rem; }
footer.site p { margin: .2rem 0; }
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero svg { width: 110px; }
  nav.main a { margin-left: .8rem; }
}
/* images */
.hero { grid-template-columns: 1fr 260px; }
.hero-img { width: 260px; height: auto; display: block; border-radius: 4px; box-shadow: 0 14px 30px -12px rgba(40, 25, 10, .55); }
.posts li.with-thumb { display: grid; grid-template-columns: 170px 1fr; gap: 1.1rem; align-items: center; }
.thumb img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 16px -8px rgba(40, 25, 10, .5); transition: transform .2s; }
.thumb:hover img { transform: translateY(-2px); }
article figure.cover { padding: 0; border: 0; background: none; margin: 1.2rem 0 1.6rem; }
article figure.cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(40, 25, 10, .6); }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { width: 100%; max-width: 320px; margin: 0 auto; }
  .posts li.with-thumb { grid-template-columns: 110px 1fr; gap: .8rem; }
}
