/* ==================================================================
   PLASMA SOLAR — BLOG STYLES
   Loads only on posts, the blog index, archives and search.
   Inherits every token from plasma.css.
   ================================================================== */

.ps-blog{background:var(--canvas)}

/* ------------------------------------------------------------------
   ACCESSIBILITY BASELINE
   plasma.css sets a{text-decoration:none} globally and defines no
   focus state. Both are fixed here for reading contexts.
   ------------------------------------------------------------------ */
.ps-blog a:focus-visible,
.ps-blog button:focus-visible,
.ps-blog input:focus-visible{
  outline:3px solid var(--sun);
  outline-offset:3px;
  border-radius:3px;
}
.ps-skip{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:var(--sun);color:var(--ink);padding:12px 20px;
  font-family:var(--font-h);font-weight:700;border-radius:0 0 6px 0;
}
.ps-skip:focus{left:0}

@media (prefers-reduced-motion:reduce){
  .ps-blog *,.ps-blog *::before,.ps-blog *::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ------------------------------------------------------------------
   POST HEADER
   ------------------------------------------------------------------ */
.ps-posthead{background:var(--ink);color:#fff;padding:64px 0 56px}
.ps-posthead .pswrap{max-width:820px}
.ps-posthead h1{
  font-size:clamp(30px,5vw,50px);
  color:#F4F0E8;margin:18px 0 20px;font-weight:900;letter-spacing:-.03em;
}
.ps-meta{
  display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
  font-family:var(--font-h);font-weight:600;font-size:14px;color:var(--muted-dark);
}
.ps-meta time{color:var(--muted-dark)}

.ps-featured{max-width:960px;margin:-36px auto 0;padding:0 24px;position:relative;z-index:2}
.ps-featured img{width:100%;height:auto;border-radius:14px;box-shadow:0 24px 52px rgba(0,0,0,.18)}

/* ------------------------------------------------------------------
   ARTICLE BODY
   Line length capped at 68ch — the single most important readability
   setting on the page.
   ------------------------------------------------------------------ */
.ps-prose{
  max-width:68ch;margin:0 auto;padding:56px 24px 72px;
  font-size:18px;line-height:1.75;color:#2A2E36;
}
.ps-prose > * + *{margin-top:1.25em}

.ps-prose h2{font-size:30px;margin-top:2em;margin-bottom:.5em;letter-spacing:-.02em}
.ps-prose h3{font-size:22px;margin-top:1.7em;margin-bottom:.4em}
.ps-prose h4{font-size:18px;margin-top:1.5em;margin-bottom:.3em}

.ps-prose p{margin-bottom:0}
.ps-prose strong{font-weight:700;color:var(--ink)}

/* Inline links must be visible without hovering. */
.ps-prose a{
  color:#9A6E00;text-decoration:underline;
  text-decoration-thickness:1.5px;text-underline-offset:3px;
}
.ps-prose a:hover{color:var(--ink);background:rgba(247,181,0,.22)}

.ps-prose ul,.ps-prose ol{padding-left:1.4em}
.ps-prose li{margin-bottom:.5em}
.ps-prose ul li::marker{color:var(--sun-dark)}
.ps-prose ol li::marker{color:var(--sun-dark);font-family:var(--font-h);font-weight:700}

.ps-prose blockquote{
  border-left:4px solid var(--sun);
  padding:4px 0 4px 24px;margin-left:0;
  font-family:var(--font-h);font-weight:600;font-size:21px;line-height:1.45;
  color:var(--ink);
}
.ps-prose blockquote p{margin:0}

.ps-prose img,.ps-prose figure img{border-radius:12px;width:100%;height:auto}
.ps-prose figcaption{
  font-size:14px;color:var(--muted);margin-top:10px;text-align:center;
}

.ps-prose hr{border:none;border-top:1px solid var(--line-light);margin:2.5em 0}

.ps-prose code{
  background:var(--canvas-2);border:1px solid var(--line-light);
  border-radius:4px;padding:2px 6px;font-size:.88em;
}
.ps-prose table{width:100%;border-collapse:collapse;font-size:16px}
.ps-prose th,.ps-prose td{
  border:1px solid var(--line-light);padding:12px 14px;text-align:left;
}
.ps-prose th{background:var(--canvas-2);font-family:var(--font-h);font-weight:700}

/* ------------------------------------------------------------------
   END-OF-ARTICLE CTA
   ------------------------------------------------------------------ */
.ps-cta{background:var(--ink);color:#fff;padding:60px 0}
.ps-cta .pswrap{max-width:820px;text-align:center}
.ps-cta h2{font-size:clamp(26px,4vw,36px);color:#fff;margin-bottom:14px}
.ps-cta p{color:#C4C8D0;font-size:17px;max-width:520px;margin:0 auto 28px}
.ps-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ------------------------------------------------------------------
   POST INDEX / ARCHIVE
   ------------------------------------------------------------------ */
.ps-archhead{background:var(--ink);color:#fff;padding:60px 0 54px}
.ps-archhead .pswrap{max-width:760px}
.ps-archhead h1{font-size:clamp(32px,5vw,46px);color:#F4F0E8;margin:16px 0 12px}
.ps-archhead p{color:#C4C8D0;font-size:17px}

.ps-index{padding:64px 0 80px}
.ps-index-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;
}
.ps-card{
  background:#fff;border:1px solid var(--line-light);border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .2s ease,box-shadow .2s ease;
}
.ps-card:hover{transform:translateY(-5px);box-shadow:0 22px 44px rgba(0,0,0,.09)}
.ps-card-img{aspect-ratio:16/10;overflow:hidden;background:var(--canvas-2)}
.ps-card-img img{width:100%;height:100%;object-fit:cover}
.ps-card-body{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1}
.ps-card .cat{
  font-family:var(--font-h);font-weight:700;font-size:11px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--sun-dark);
  margin-bottom:10px;display:block;
}
.ps-card h2{font-size:20px;line-height:1.25;margin-bottom:10px}
.ps-card h2 a:hover{color:var(--sun-dark)}
.ps-card p{font-size:14.5px;color:var(--muted);line-height:1.6;margin-bottom:18px}
.ps-card .ps-meta{
  margin-top:auto;padding-top:16px;border-top:1px solid var(--line-light);
  color:var(--muted);font-size:13px;
}

.ps-empty{
  max-width:560px;margin:0 auto;text-align:center;padding:40px 24px 0;
}
.ps-empty h2{font-size:26px;margin-bottom:12px}
.ps-empty p{color:var(--muted);margin-bottom:24px}

/* Pagination */
.ps-pager{margin-top:52px;display:flex;justify-content:center}
.ps-pager .page-numbers{
  display:inline-grid;place-items:center;min-width:44px;height:44px;
  padding:0 12px;margin:0 4px;border:1px solid var(--line-light);
  border-radius:8px;background:#fff;font-family:var(--font-h);font-weight:700;
  font-size:15px;color:var(--ink);
}
.ps-pager .page-numbers:hover{border-color:var(--sun);color:var(--sun-dark)}
.ps-pager .page-numbers.current{background:var(--sun);border-color:var(--sun);color:var(--ink)}

/* ------------------------------------------------------------------
   RELATED POSTS
   ------------------------------------------------------------------ */
.ps-related{background:var(--canvas-2);padding:70px 0}
.ps-related .ps-index-grid{margin-top:36px}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media(max-width:980px){
  .ps-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ps-posthead{padding:44px 0 40px}
  .ps-featured{margin-top:-24px}
}
@media(max-width:560px){
  .ps-index-grid{grid-template-columns:minmax(0,1fr)}
  .ps-prose{font-size:17px;padding:40px 20px 56px}
  .ps-prose h2{font-size:25px}
  .ps-prose h3{font-size:20px}
  .ps-prose blockquote{font-size:19px;padding-left:18px}
  .ps-cta-btns{flex-direction:column}
  .ps-cta-btns .btn{width:100%;justify-content:center}
  .ps-index{padding:44px 0 60px}
  .ps-blog .psfooter{padding-bottom:96px}
}

/* ==================================================================
   NAV FIT — blog pages only
   The blog nav carries one more item than the homepage nav (Blog),
   which pushed "Cold Rooms" onto two lines. Scoped to .ps-blog so
   the homepage nav is never affected.
   ================================================================== */
.ps-blog nav.psmenu{gap:24px}
.ps-blog nav.psmenu a{white-space:nowrap}
.ps-blog .brand img{height:38px}

@media(max-width:1240px) and (min-width:981px){
  .ps-blog .nav-phone{display:none}
  .ps-blog nav.psmenu{gap:20px}
  .ps-blog nav.psmenu a{font-size:14.5px}
}
