/* =============================================================
   76 — THE JOURNAL: single post & blog sidebar
   The single post was the last template still wearing v2's boxy
   widgets and a saturated green promo card. This brings it onto
   the same editorial footing as the rest of the store: an article
   measure you can actually read, and a sidebar that is a rail
   rather than a stack of panels.
   ============================================================= */

/* --- The banner headline ---------------------------------------------
   20-page-header.css sizes .page-banner-title for one- or two-word page
   names ("Shop."). An article title is a sentence, so at that scale it
   ran ~900px tall and fell back to the body sans. Article titles get
   their own metrics: the display serif, a sane clamp, and a measure. */
body.single-post .page-banner-title,
body.single .page-banner-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
  text-transform: none;
}

@media (max-width: 768px) {
  body.single-post .page-banner-title,
  body.single .page-banner-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    max-width: none;
  }
}

/* --- Article column ------------------------------------------------ */

.single-post-layout > main { min-width: 0; }

.single-post .post-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* The category was a filled green block — the only saturated chip left
   on the site. Everything else states category as a hairline pill. */
.single-post .post-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.single-post .post-category:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.single-post .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.single-post .post-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.single-post .post-meta-item svg { width: 13px; height: 13px; opacity: 0.7; }
.single-post .post-meta a { color: var(--color-text-light); }
.single-post .post-meta a:hover { color: var(--color-accent); }

.single-post .post-featured-image {
  margin: 0 0 var(--space-9);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.single-post .post-featured-image img { display: block; width: 100%; height: auto; }

/* --- The read itself -------------------------------------------------
   Body copy was running the full 775px column. A measure near 68ch is
   the single biggest legibility gain available here. */
.single-post .post-content { max-width: 68ch; }

.single-post .post-content > * + * { margin-top: var(--space-6); }

.single-post .post-content p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--color-text);
}

/* Lead paragraph: the first line of the piece carries a little more voice. */
.single-post .post-content > p:first-of-type {
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--color-dark);
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--color-dark);
  text-wrap: balance;
}
.single-post .post-content h2 {
  margin-top: var(--space-11);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}
/* A hairline above each major section, the way the store's sections open. */
.single-post .post-content h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--color-border-strong);
  margin-bottom: var(--space-5);
}
.single-post .post-content h3 {
  margin-top: var(--space-9);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.2;
}
.single-post .post-content h4 {
  margin-top: var(--space-8);
  font-size: 1.05rem;
}

.single-post .post-content a:not(.button) {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}
.single-post .post-content a:not(.button):hover { text-decoration-color: var(--color-accent); }

.single-post .post-content ul,
.single-post .post-content ol { padding-left: 0; list-style: none; }
.single-post .post-content li {
  position: relative;
  padding-left: var(--space-6);
  margin-top: var(--space-3);
  line-height: 1.75;
}
.single-post .post-content ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--color-accent);
}
.single-post .post-content ol { counter-reset: post-ol; }
.single-post .post-content ol > li { counter-increment: post-ol; }
.single-post .post-content ol > li::before {
  content: counter(post-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.single-post .post-content blockquote {
  margin: var(--space-9) 0;
  padding: 0 0 0 var(--space-7);
  border-left: 1px solid var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}
.single-post .post-content blockquote p { font: inherit; color: inherit; }

.single-post .post-content img,
.single-post .post-content figure img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.single-post .post-content figcaption {
  margin-top: var(--space-3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.single-post .post-content hr {
  margin: var(--space-10) 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.single-post .post-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.single-post .post-content th,
.single-post .post-content td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.single-post .post-content th {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* --- Sidebar: a rail, not a stack of panels ------------------------- */

.single-post .blog-sidebar,
.blog-page .blog-sidebar { align-self: start; }

.single-post .sidebar-widget,
.blog-page .sidebar-widget {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-7) 0 0;
  margin-bottom: var(--space-8);
  box-shadow: none;
}
.single-post .sidebar-widget:first-child,
.blog-page .sidebar-widget:first-child { border-top: 0; padding-top: 0; }

.single-post .sidebar-widget-title,
.blog-page .sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 var(--space-5);
  border: 0;
  background: none;
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* The collapse chevrons were decorative on a page that never collapses. */
.single-post .sidebar-widget-title svg,
.blog-page .sidebar-widget-title svg { display: none; }

.single-post .sidebar-widget-body,
.blog-page .sidebar-widget-body { padding: 0; }

/* The promo card was a saturated green gradient — the loudest surface on
   the site. It becomes a quiet plate that states the offer and gets out. */
.single-post .sidebar-promo,
.blog-page .sidebar-promo {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 0;
}
.single-post .sidebar-promo .sidebar-promo-inner,
.blog-page .sidebar-promo .sidebar-promo-inner {
  padding: var(--space-7) var(--space-6);
  text-align: left;
}
.single-post .sidebar-promo svg,
.blog-page .sidebar-promo svg { color: var(--color-accent); }
.single-post .sidebar-promo h4,
.blog-page .sidebar-promo h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

@media (max-width: 1024px) {
  .single-post .post-content { max-width: none; }
}

@media (max-width: 768px) {
  .single-post .post-meta { gap: var(--space-4); font-size: 0.64rem; }
  .single-post .post-content > p:first-of-type { font-size: 1.06rem; }
  .single-post .post-content h2 { margin-top: var(--space-9); }
  .single-post .post-featured-image { margin-bottom: var(--space-7); }
}

/* --- Foot of the article: prev / next --------------------------------
   Rebuilt from an inline light-theme panel (#f8f8f8 under paper text). */
.single-post .post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin: var(--space-10) 0 0;
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.single-post .post-nav-side--next { text-align: right; }
.single-post .post-nav-link { display: inline-block; max-width: 34ch; }
.single-post .post-nav-dir {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.single-post .post-nav-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  transition: color 0.22s ease;
}
.single-post .post-nav-link:hover .post-nav-title { color: var(--color-accent); }

@media (max-width: 768px) {
  .single-post .post-nav { grid-template-columns: 1fr; gap: var(--space-6); }
  .single-post .post-nav-side--next { text-align: left; }
}
