:root {
  --bg: #faf7f1;
  --ink: #2f2b26;
  --muted: #7c756b;
  --accent: #6f8f6b;
  --accent-dark: #4f6b4c;
  --card: #fffdf9;
  --line: #e8e1d5;
  --chip: #eef1e8;
  --maxw: 60rem;
  --prosew: 44rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.site-nav a { margin-left: 1.25rem; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-nav a:hover { color: var(--accent-dark); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 1rem; }

/* hero */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.hero-text { flex: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--accent-dark); margin: 0 0 .6rem; }
.hero h1 { font-size: 2.7rem; margin: 0 0 .8rem; }
.lede { color: var(--muted); font-size: 1.12rem; margin: 0 0 1.2rem; max-width: 34rem; }
.hero-link { font-weight: 500; }
.hero-portrait {
  width: 190px; height: 190px; flex: none;
  border-radius: 50%;
  background-size: cover; background-position: center top;
  border: 5px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

/* category chips */
.cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.chip {
  display: inline-block;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--accent-dark);
  font-size: .82rem;
  line-height: 1.4;
  border: 1px solid transparent;
}
a.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-active { background: var(--accent-dark); color: #fff; }
.chip-sm { font-size: .72rem; padding: .2rem .6rem; }

/* post grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.6rem;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(79,107,76,.12); text-decoration: none; }
.card-img { height: 168px; background-size: cover; background-position: center; background-color: var(--chip); }
.card-img-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e9efe2, #f3ede1); }
.card-img-empty span { font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--accent); font-style: italic; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.card-body h3 { font-size: 1.24rem; margin: .2rem 0 0; }
.card .meta { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.card .summary { color: var(--ink); font-size: .95rem; line-height: 1.55; margin: .3rem 0 0; }
.card .chip-sm { align-self: flex-start; }

/* single post / page */
.post, .page { max-width: var(--prosew); margin: 0 auto; }
.crumb { margin: 0 0 1.4rem; font-size: .85rem; }
.post h1, .page h1, .cat-head h1 { font-size: 2.3rem; margin: 0 0 .5rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 2rem; }
.post-meta .meta { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.prose { font-size: 1.08rem; }
.prose p { margin: 0 0 1.3rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: .5rem 0 1rem; }
.prose blockquote { margin: 1.6rem 0; padding: .6rem 1.3rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose em { color: var(--accent-dark); }
.prose a { border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--accent); text-decoration: none; }
.back { margin-top: 2.5rem; }

.cat-head { max-width: var(--maxw); }
.cat-head .lede { margin-bottom: 1.4rem; }

/* footer */
.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 2rem;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.site-footer .tagline { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.05rem; margin: 0 0 .4rem; }
.site-footer .fine { font-size: .82rem; margin: 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 1.4rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-portrait { width: 128px; height: 128px; }
}
