:root{
  --ink:#3b3834;
  --muted:#786f66;
  --line:#ddd4ca;
  --paper:#fffdf9;
  --wash:#f5efe7;
  --accent:#995b45;
  --accent-dark:#744331;
  --max:760px;
  --wide:1040px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;color:var(--ink);background:var(--paper);line-height:1.68}
a{color:var(--accent-dark)}
a:hover{color:var(--accent)}
.site-header{border-bottom:1px solid var(--line);padding:1.8rem 1rem 1.35rem;background:rgba(255,253,249,.97)}
.site-header .inner,.site-footer .inner{max-width:var(--wide);margin:auto}
.header-row{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}
.brand{font-size:1.7rem;letter-spacing:.015em;font-weight:650;color:var(--ink);text-decoration:none}
.strap{margin:.2rem 0 0;color:var(--muted);font-size:.96rem}
.site-nav{display:flex;gap:1.3rem;flex-wrap:wrap}
.site-nav a{color:var(--ink);text-decoration:none;font-size:.95rem;padding-bottom:.15rem;border-bottom:1px solid transparent}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:var(--accent-dark);border-bottom-color:var(--accent)}
main{max-width:var(--wide);margin:auto;padding:2.6rem 1rem 4.5rem}
.post{max-width:var(--max);margin:auto}
.post h1{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-weight:500;font-size:clamp(2.15rem,5vw,3.35rem);line-height:1.08;margin:.2rem 0 .7rem;color:#332f2b}
.post h2,.post h3{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-weight:500;line-height:1.25}
.meta{color:var(--muted);margin-bottom:2.2rem;font-size:.94rem}
.meta a{text-decoration:none}
.meta .sep{padding:0 .35rem;color:#aaa096}
.post p{margin:1.15rem 0}
.post > figure.wp-block-image{max-width:680px;margin:1.8rem auto}
.post > figure.wp-block-image img{display:block;width:auto;max-width:100%;max-height:680px;height:auto;margin:0 auto}
.post figure figcaption{font-size:.88rem;color:var(--muted);margin:.5rem auto 0;max-width:680px;line-height:1.45}
.post img{height:auto}
.wp-block-gallery{max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:2rem 0}
.wp-block-gallery figure{margin:0}
.wp-block-gallery img{width:100%;height:auto;display:block}
.video-embed{position:relative;padding-top:56.25%;margin:2rem 0}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-embed figcaption{position:absolute;top:100%;left:0}
.post-tags{max-width:var(--max);margin:2.7rem auto 0;padding-top:1.2rem;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}
.post-tags a{display:inline-block;margin:.18rem .28rem .18rem 0;padding:.18rem .5rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--muted);background:#fff}
.post-nav{max-width:var(--max);margin:2rem auto 0;padding-top:1.5rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem}
.post-nav a{text-decoration:none;color:var(--ink)}
.post-nav strong{font-weight:600}
.page{max-width:900px;margin:auto}
.page h1{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-size:clamp(2.1rem,5vw,3rem);font-weight:500;line-height:1.15;margin:.15rem 0 1rem}
.intro{color:var(--muted);max-width:720px;margin-bottom:2rem}
.home-list,.post-list{list-style:none;padding:0;margin:0}
.home-list li,.post-list li{padding:1.15rem 0;border-bottom:1px solid var(--line)}
.home-list a.title,.post-list a.title{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-size:1.35rem;font-weight:500;color:var(--ink);text-decoration:none}
.home-list a.title:hover,.post-list a.title:hover{color:var(--accent-dark)}
.entry-meta{display:flex;gap:.5rem;flex-wrap:wrap;color:var(--muted);font-size:.88rem;margin-top:.2rem}
.entry-excerpt{margin:.55rem 0 0;max-width:760px;color:#544f49}
.more-link{display:inline-block;margin-top:1.75rem;text-decoration:none;font-weight:600}
.search-tools{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:.75rem;margin:1.5rem 0 1.8rem}
.search-tools input,.search-tools select{width:100%;font:inherit;padding:.72rem .8rem;border:1px solid #cfc4b8;border-radius:4px;background:#fff;color:var(--ink)}
.search-status{font-size:.9rem;color:var(--muted);margin:-.75rem 0 1rem}
.year-heading{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-weight:500;font-size:1.7rem;margin:2.2rem 0 .2rem;color:#443d37}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1.5rem}
.category-card{border:1px solid var(--line);padding:1.1rem 1.15rem;background:#fff;text-decoration:none;color:var(--ink)}
.category-card:hover{border-color:#c5b4a5;color:var(--accent-dark)}
.category-card strong{display:block;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;font-size:1.25rem;font-weight:500}
.category-card span{color:var(--muted);font-size:.88rem}
.site-footer{background:var(--wash);border-top:1px solid var(--line);padding:2rem 1rem;color:var(--muted);font-size:.9rem}
.site-footer a{color:inherit}
@media(max-width:720px){
  .header-row{display:block}.site-nav{margin-top:1rem;gap:1rem}.search-tools{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  main{padding-top:2rem}.wp-block-gallery{grid-template-columns:1fr}.post-nav{display:block}.post-nav div+div{margin-top:1rem}.post > figure.wp-block-image{margin:1.5rem auto}
}


/* v0-4 refinements */
h1, h2, h3, h4, h5, h6,
.site-title, .post-title, .entry-title, .archive-title, .page-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, .post-title, .entry-title, .page-title {
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

h2, h3, .archive-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Keep list/search excerpts compact */
.excerpt, .post-excerpt, .entry-excerpt, .summary, .search-excerpt,
article .excerpt, .entries-list p, .search-results p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Consistent article-media presentation */
article figure,
.post-content figure,
.entry-content figure {
  margin: 1.75rem auto;
  text-align: center;
}

article figure img,
.post-content figure img,
.entry-content figure img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}

/* When WordPress groups several images, give them a coherent visual rhythm */
.wp-block-gallery,
.gallery,
.image-group,
figure.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
  margin: 1.75rem auto;
  max-width: 920px;
}

.wp-block-gallery figure,
.gallery figure,
.image-group figure,
figure.wp-block-gallery figure {
  margin: 0 !important;
}

.wp-block-gallery img,
.gallery img,
.image-group img,
figure.wp-block-gallery img {
  width: 100% !important;
  height: 320px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (max-width: 700px) {
  article figure img,
  .post-content figure img,
  .entry-content figure img {
    max-width: 100%;
    max-height: none;
  }

  .wp-block-gallery,
  .gallery,
  .image-group,
  figure.wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .wp-block-gallery img,
  .gallery img,
  .image-group img,
  figure.wp-block-gallery img {
    height: auto !important;
  }
}


/* v0-4 keyword index */
.keyword-az {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin: 1.5rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.keyword-az a {
  text-decoration: none;
  font-weight: 600;
}
.keyword-letter {
  margin: 2.5rem 0;
}
.keyword-letter > h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.keyword-item {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.keyword-item h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 650;
}
.keyword-item ul {
  margin: 0;
  padding-left: 1.2rem;
}
.keyword-item li {
  margin: .2rem 0;
}



/* v0-6 homepage thumbnails */
.home-list {
  list-style: none;
  padding: 0;
}

.home-list .home-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.home-list .home-entry.no-thumb {
  grid-template-columns: 1fr;
}

.home-list .entry-thumb {
  display: block;
  width: 160px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0,0,0,.04);
}

.home-list .entry-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-list .entry-main {
  min-width: 0;
}

@media (max-width: 640px) {
  .home-list .home-entry {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: .8rem;
  }

  .home-list .home-entry.no-thumb {
    grid-template-columns: 1fr;
  }

  .home-list .entry-thumb {
    width: 112px;
  }
}

/* v0-8 homepage introduction */
.home-intro {
  max-width: 760px;
  margin: 1.25rem 0 2rem;
  line-height: 1.65;
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
