/* ============================================================
   Permanent Fixes — modernized presentation (sample)
   Text-first, responsive, no JavaScript, no external assets.
   His words, titles, categories, and images are unchanged;
   only the presentation around them is new.
   Palette is taken verbatim from his own theme customizer:
     slate blue #335676  (his body + header + design-credit background)
     cream      #eeeecc  (his .entry post cards + menu background)
     green      #568767  (his footer + widget background)
   Applied here in the same roles — slate frames the page and header,
   cream is the reading/card surface, green is the footer/accent.
   ============================================================ */

:root {
  --ink:        #211d18;   /* body text */
  --ink-soft:   #5c5348;   /* meta / muted */
  --frame:      #335676;   /* HIS slate blue — page frame + header band */
  --frame-dk:   #26425c;   /* darker slate for hover/edges */
  --paper:      #f7f5e7;   /* light cream — small chips/pills on the card */
  --card:       #eeeecc;   /* HIS cream — content panel + post cards */
  --rule:       #d8d2b4;   /* hairlines that sit on the cream */
  --accent:     #335676;   /* links — HIS slate blue */
  --accent-dk:  #26425c;   /* link hover */
  --green:      #568767;   /* HIS muted green — footer + tag accents */
  --green-dk:   #46704f;   /* darker green for hover */
  --measure:    44rem;     /* comfortable reading width (~68-73 chars) */

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
           Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--frame);   /* HIS slate blue frames the whole page */
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.22rem);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- links ---- */
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dk); }

/* ---- shared layout wrapper ---- */
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.wrap--wide { max-width: 58rem; }
.wrap--read { max-width: 48rem; }   /* reading pages (single post, About) */
/* keep long-form article prose at a comfortable measure inside its panel */
.prose { max-width: 44rem; }

/* ============================================================
   Site masthead — modernized (layout free-handed; his photo + words
   are what's fixed). His clean text-free photograph (Alligator.jpg)
   is CROPPED to a calm horizontal strip; his title + tagline sit as
   crisp live text in the CLEAR WATER at lower-left, deliberately kept
   OFF the alligator (the subject) — a caption to the photo, not a
   cover over it (echoing how his original kept text in the corners).
   Legibility comes from an EDGE-ONLY gradient (darkening just the
   lower-left where the text sits) + a text-shadow; the centre/right,
   where the alligator is, stays clear. No white boxes.
   The photo is set in CSS (decorative); the live text is the content.
   url() is relative to style.css (site root), so the SAME rule
   resolves correctly for pages at any folder depth.
   ============================================================ */
.site-masthead {
  position: relative;
  min-height: clamp(11rem, 27vw, 20rem);   /* a strip, not a full image */
  background-image: url(images/Alligator.jpg);
  background-size: 158%;                    /* zoom in so the alligator reads as the subject */
  background-position: 47% 52%;             /* alligator featured centre-right; open water lower-left */
  background-repeat: no-repeat;
  overflow: hidden;
}
/* edge-only scrim: darken ONLY the lower-left corner (behind title/tagline)
   plus a gentle bottom edge (behind the corner caption); fade to fully clear
   before the centre so the featured alligator is unobstructed */
.site-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg, rgba(10,16,22,0.72) 0%, rgba(10,16,22,0.40) 24%, rgba(10,16,22,0) 52%),
    radial-gradient(74% 135% at 100% 100%, rgba(9,14,20,0.66) 0%, rgba(9,14,20,0.24) 34%, rgba(9,14,20,0) 60%),
    linear-gradient(to top, rgba(10,16,22,0.52) 0%, rgba(10,16,22,0) 28%);
}
.site-masthead__inner {
  position: absolute;
  left: clamp(1.1rem, 3.8vw, 3.25rem);
  bottom: clamp(1rem, 3vw, 2.3rem);
  z-index: 1;
  max-width: min(28rem, 50%);            /* stays in the left; never reaches the alligator */
  text-align: left;
}
/* small, unobtrusive photo caption in HIS words — lower-right corner,
   over clear water, opposite the title so it never competes with it */
.site-masthead__caption {
  position: absolute;
  /* more clearance from the right edge at wide widths so the full caption is never
     tight against (or clipped by) the edge; box stays comfortably inside the masthead */
  right: clamp(1.2rem, 3.2vw, 3.5rem);
  bottom: clamp(0.7rem, 1.8vw, 1.35rem);
  z-index: 1;
  margin: 0;
  max-width: min(24rem, 46%);
  text-align: right;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: rgba(250,247,241,0.96);
  font-size: clamp(0.76rem, 1.05vw, 0.92rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.92), 0 1px 10px rgba(0,0,0,0.72);
}
.site-masthead__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.03;
  color: #fbf9f4;
  font-size: clamp(1.9rem, 5.4vw, 3.9rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.62), 0 1px 3px rgba(0,0,0,0.6);
}
.site-masthead__title a { color: inherit; text-decoration: none; }
.site-masthead__title a:hover { color: #ffffff; }
/* thin divider between title and tagline — quiet, classic */
.site-masthead__tagline {
  margin: 0.7rem 0 0;
  max-width: 32rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(251,249,244,0.5);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.4;
  color: #f1ece2;
  font-size: clamp(0.82rem, 1.55vw, 1.12rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
/* narrow screens: feature the alligator in the upper strip; stack the
   title, tagline, then caption along the clear foreground water at the
   bottom over a bottom-only gradient. Still never over the subject. */
@media (max-width: 34rem) {
  .site-masthead {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: 175%;
    background-position: 50% 38%;
    min-height: clamp(12.5rem, 54vw, 17rem);
    padding: 0 0 0.9rem;
  }
  .site-masthead::before {
    background: linear-gradient(to top, rgba(8,13,18,0.80) 0%, rgba(8,13,18,0.42) 38%, rgba(8,13,18,0) 66%);
  }
  .site-masthead__inner {
    position: static;
    left: auto; right: auto; bottom: auto;
    max-width: none;
    padding: 0 1rem;
  }
  .site-masthead__caption {
    position: static;
    right: auto; bottom: auto;
    max-width: none;
    text-align: left;
    padding: 0.45rem 1rem 0;
    font-size: 0.8rem;
  }
}

/* ---- primary nav — slate blue "behind the menu" (his framing color),
       wraps on small screens, no JS ---- */
.site-nav {
  background: var(--frame);
  border-top: 1px solid var(--frame-dk);
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  max-width: 75rem;
  padding: 0.35rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.96rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  color: #dbe4ee;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--card);   /* cream underline on slate */
}

/* ============================================================
   Main — his cream "content" surface, framed by the slate page.
   (Mirrors his original: slate body background, cream .entry cards.)
   ============================================================ */
main { padding: 1.75rem 0 2.5rem; }
main > .wrap {
  background: var(--card);            /* HIS cream */
  border-radius: 10px;
  padding: clamp(1.5rem, 1rem + 3vw, 2.9rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
/* on the narrowest screens, let the cream panel run edge-to-edge */
@media (max-width: 32rem) {
  main > .wrap { border-radius: 0; }
}

.page-heading {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}
.page-heading .eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.lede {
  color: var(--ink-soft);
  font-size: 1rem;
  font-family: var(--sans);
  margin: 0 0 2rem;
}

/* ============================================================
   Post listing (homepage + category)
   ============================================================ */
.post-list { list-style: none; margin: 0; padding: 0; }

.post-card {
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
}
.post-card:first-child { border-top: 0; padding-top: 0.5rem; }

.post-card__date {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}
.post-card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt { margin: 0 0 0.9rem; }

.readmore {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.readmore::after { content: " \2192"; }

/* ---- category tag pills ---- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}
.tags li { margin: 0; }
.tags a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--green);
  text-decoration: none;
}
.tags a:hover { border-color: var(--green); color: #fff; background: var(--green); }

.tags-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  align-self: center;
  margin-right: 0.1rem;
}

/* ============================================================
   Single post (article)
   ============================================================ */
.post-full__header { margin-bottom: 1.8rem; }
.post-full__date {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.post-full__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}
.post-full__byline {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.post-full__byline .handle {
  color: var(--ink-soft);
}
.post-full__byline .handle::before { content: "\2014\00a0"; } /* em dash + nbsp */

/* the article body — his words, verbatim */
.prose > p { margin: 0 0 1.35rem; }
.prose > p:first-of-type { margin-top: 0; }

.prose a { color: var(--accent); }

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--green);
  color: var(--ink-soft);
  font-style: italic;
}
.prose blockquote p { margin: 0 0 1rem; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Images are his content — reproduced as-is, but shown responsively.
   The original theme floated some left/right; for a clean, phone-friendly
   read they are centered as blocks. */
.prose img {
  height: auto;
  max-width: 100%;
}
.prose p > img,
.prose figure {
  display: block;
  margin: 1.8rem auto;
}
.prose img {
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(33, 29, 24, 0.10);
  background: #fff;
}
.prose figure { margin: 1.8rem auto; max-width: 100%; text-align: center; }
.prose figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

/* the WordPress "Tweet" share button — inert offline; keep it unobtrusive */
.twitter-share { margin: 1.5rem 0 0; font-family: var(--sans); font-size: 0.9rem; }

.post-full__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* previous / next navigation */
.post-nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  font-family: var(--sans);
}
.post-nav a { text-decoration: none; display: block; }
.post-nav .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.post-nav .next { text-align: right; }

/* ============================================================
   Pager (feed pagination)
   ============================================================ */
.feed-pageinfo {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
}
.pager__edge {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pager__edge.is-disabled { color: var(--rule); }
.pager__nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}
.pager__nums li { margin: 0; }
.pager__nums a,
.pager__nums span {
  display: inline-block;
  min-width: 2.1rem;
  text-align: center;
  padding: 0.35rem 0.4rem;
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
}
.pager__nums a:hover { border-color: var(--accent); }
.pager__nums .is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   All Posts archive
   ============================================================ */
.year-group { margin: 0 0 2.2rem; }
.year-heading {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--green);
}
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item {
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}
.archive-item:first-child { border-top: 0; }
.archive-item__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  color: var(--ink);
}
.archive-item__title:hover { color: var(--accent); }
.archive-item__meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.archive-item__meta a { color: var(--ink-soft); text-decoration: none; }
.archive-item__meta a:hover { color: var(--accent); text-decoration: underline; }
.archive-item__excerpt {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 44rem;
}
.archive-item { padding: 1rem 0; }

/* ============================================================
   Topics grid
   ============================================================ */
.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--card);
  font-family: var(--sans);
}
.topic a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.topic a:hover { color: var(--accent); }
.topic:hover { border-color: var(--accent); }
.topic__count {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* subject tiers (Browse by Subject) */
.subject-tier-heading {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 2rem 0 0.9rem;
}
.subject-tier-heading:first-of-type { margin-top: 0.5rem; }

/* lighter, denser presentation for the smaller categories */
.subject-more {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.subject-more li { margin: 0; }
.subject-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  background: var(--card);
}
.subject-more a:hover { border-color: var(--accent); color: var(--accent); }
.subject-more .topic__count { padding: 0.05rem 0.5rem; }

/* ============================================================
   A preserved personal note (his exact words)
   ============================================================ */
.personal-note {
  margin: 2rem 0 0;
  padding: 1.3rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}
.personal-note p { margin: 0 0 0.6rem; font-style: italic; }
.personal-note p:last-child { margin-bottom: 0; }
.personal-note cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 0;
  background: var(--green);           /* HIS muted green (his footer color) */
  color: #e7efe8;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer a { color: #ffffff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0.8rem; }

/* a small note marking placeholder links in this sample build */
.sample-note {
  margin: 2.5rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  background: var(--card);
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* his editorial note heading the curated topic index (his own words) */
.curator-note {
  margin: 0 0 1.9rem;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.curator-note p { margin: 0; }
.curator-note cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

/* About page: Darryl's obituary portrait (dignified, never upscaled past ~280px). */
/* About page: his obituary portrait laid out like his original business card —
   floated right beside the opening paragraph, his text wrapping around it on the left.
   ~14rem on wide screens (about the business-card size); ~40% of the text width on
   phones (never full width). */
.prose img.about-portrait {
  float: right;
  width: 14rem;
  max-width: 40%;
  height: auto;
  margin: 0.4rem 0 0.9rem 1.5rem;   /* gap below + comfortable space to the wrapping text */
}
/* About page: Curator's note — a thin rule above + the quiet note box. Clears the
   floated portrait so the note always starts below it. */
.curator-rule {
  clear: both;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0 1.6rem;
}
.curator-note__heading {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.curator-note--about p { margin: 0 0 0.85rem; }
.curator-note--about p:last-child { margin-bottom: 0; }

/* surfaced original-publication date (a date he himself recorded) */
.post-card__origin,
.post-full__origin {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.1rem 0 0.55rem;
}

@media (max-width: 34rem) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* ============================================================
   All Posts — search + sort controls (progressive enhancement;
   injected by JS, so they only appear when they actually work).
   Styled to match the site: sans labels, cream-framed fields.
   ============================================================ */
.pf-search {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  margin: 0 0 0.6rem;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.pf-field { display: flex; flex-direction: column; gap: 0.3rem; }
.pf-field:first-child { flex: 1 1 16rem; }   /* let the search box grow */
.pf-search label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}
.pf-search input[type="search"],
.pf-search select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  width: 100%;
}
.pf-search input[type="search"]:focus,
.pf-search select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.pf-count {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

/* ============================================================
   home-sample.html (UNDER REVIEW) — combined All Posts + subjects.
   Phone: single column, collapsible "Browse by Subject" above search.
   Wide (>=52rem): two columns, subjects in a right side column.
   ============================================================ */
/* combined home uses a wider cream panel on big screens; the side column keeps the
   post-list main column at a comfortable reading measure (~42rem). */
.wrap--home2 { max-width: 72rem; }
.home2__grid { display: block; }
.home2__side { display: none; }                 /* phone: hidden (collapsible is used instead) */

/* phone-only collapsible Browse by Subject (closed by default), holding his note + subjects */
.browse-collapse {
  margin: 0 0 1.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.browse-collapse > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.browse-collapse > summary::-webkit-details-marker { display: none; }
.browse-collapse > summary::after { content: "\25be"; color: var(--ink-soft); }  /* down triangle */
.browse-collapse[open] > summary::after { content: "\25b4"; }                     /* up triangle */
.browse-collapse .curator-note { margin: 0 1rem 1rem; }
.browse-collapse .subject-compact { padding: 0 1rem 0.9rem; }

/* compact subjects list (used in both the phone collapsible and the wide side column) */
.subject-compact { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.95rem; }
.subject-compact li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
  padding: 0.32rem 0; border-bottom: 1px solid var(--rule);
}
.subject-compact li:last-child { border-bottom: 0; }
.subject-compact a { text-decoration: none; }
.subject-compact a:hover { text-decoration: underline; }

.side-heading { font-size: 1.2rem !important; margin: 1.4rem 0 0.7rem; }
.home2__side .curator-note { font-size: 0.9rem; }

@media (min-width: 52rem) {
  .home2__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 2.4rem;
    align-items: start;
  }
  .browse-collapse { display: none; }           /* wide: collapsible hidden, side column shown */
  .home2__side { display: block; }
}
