:root {
  color-scheme: light;
  --ink: #24331f;
  --muted: #65705f;
  --green: #557d3c;
  --pale: #edf3e6;
  --line: #d9e1d2;
  --paper: #fffefa;
}

* { box-sizing: border-box; }

html { font: 18px/1.65 system-ui, sans-serif; color: var(--ink); background: #f5f2e9; }
body { margin: 0; }
a { color: #315f24; text-underline-offset: .15em; }
img { max-width: 100%; height: auto; }

.site-header, main, footer { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font: 800 1.3rem/1.05 Georgia, serif; text-decoration: none; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font: 500 .7rem/1 system-ui, sans-serif; letter-spacing: .04em; }
.site-header nav { display: flex; gap: 1.2rem; font-size: .88rem; font-weight: 700; }
.site-header nav a { text-decoration: none; }

main { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 50px #41533112; }
.intro { display: grid; grid-template-columns: 1.5fr minmax(220px, .65fr); align-items: center; gap: 2rem; padding: clamp(2rem, 6vw, 5rem); background: linear-gradient(135deg, #fafff2, var(--pale)); }
.intro img { max-height: 290px; justify-self: center; mix-blend-mode: multiply; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.12; }
h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.04em; }
.eyebrow { margin: 0 0 .7rem; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 690px; color: var(--muted); font-size: 1.08rem; }

.post-list, .archive { padding: clamp(1.5rem, 5vw, 4rem); }
.post-list > h2 { font-size: 2rem; }
.post-list > article { display: grid; grid-template-columns: 125px 1fr; column-gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.post-list time, .archive-list time { color: var(--muted); font-size: .78rem; }
.post-list h3 { margin: 0 0 .4rem; font-size: 1.45rem; }
.post-list h3 a, .archive-list h2 a { color: var(--ink); text-decoration: none; }
.post-list p { grid-column: 2; margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tags a { padding: .12rem .5rem; border-radius: 999px; background: var(--pale); font-size: .7rem; font-weight: 700; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pagination a { display: block; min-width: 2.2rem; padding: .35rem .55rem; border: 1px solid var(--line); text-align: center; text-decoration: none; }
.pagination .active a { color: white; background: var(--green); }
.pagination .disabled { display: none; }

.post { max-width: 840px; margin-inline: auto; padding: clamp(1.5rem, 6vw, 5rem); }
.post > header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post > header h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); }
.post > header time { color: var(--muted); }
.post-content { overflow-wrap: anywhere; }
.post-content p { margin: 1.2em 0; }
.post-content img { display: block; margin: 1.5rem auto; }
.post-content .imgleft { float: left; max-width: 45%; margin: .3rem 1.4rem 1rem 0; }
.post-content .imgright { float: right; max-width: 45%; margin: .3rem 0 1rem 1.4rem; }
.post-content::after { content: ""; display: block; clear: both; }

.comments { clear: both; margin-top: 4rem; padding-top: 1rem; border-top: 3px solid var(--green); }
.comments h2 { font-size: 2rem; }
.comment { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--line); background: #f8f8f3; }
.comment header { color: var(--muted); font-size: .78rem; }
.comment p:last-child { margin-bottom: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.post-nav a:last-child { text-align: right; }

.archive h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.archive-list article { display: grid; grid-template-columns: 125px 1fr; align-items: baseline; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.archive-list h2 { margin: 0; font-size: 1.2rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.category-grid a { display: flex; justify-content: space-between; padding: 1rem; border: 1px solid var(--line); text-decoration: none; }
.category-grid span { color: var(--muted); font-size: .8rem; }

footer { padding: 2rem 0 4rem; color: var(--muted); font-size: .75rem; }

@media (max-width: 680px) {
  html { font-size: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .intro { grid-template-columns: 1fr; }
  .intro img { max-height: 180px; }
  .post-list > article, .archive-list article { grid-template-columns: 1fr; }
  .post-list p { grid-column: 1; }
  .post-content .imgleft, .post-content .imgright { float: none; max-width: 100%; margin: 1rem auto; }
}
