/*
Theme Name: Carver Journal — Modern
Theme URI: https://carverjournal.com/
Author: Nick Mossman
Description: A modern custom block theme for The Carver Journal.
Version: 0.11.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: carver-journal-modern
*/

:root{
  --cj-ink:#151515;
  --cj-paper:#fbf8f3;
  --cj-paper-2:#f2ece7;
  --cj-muted:#706a65;
  --cj-line:#d6cec8;
  --cj-cranberry:#8b2345;
  --cj-cranberry-deep:#65162f;
  --cj-cranberry-bright:#b63562;
  --cj-blush:#f3dfe6;
  --cj-white:#fffdfa;
  --cj-max:1180px;
  --cj-serif:Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;
  --cj-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--cj-paper);color:var(--cj-ink);font-family:var(--cj-sans);line-height:1.45}
a{color:inherit;text-decoration:none}
.wp-site-blocks{padding:0}
::selection{background:var(--cj-cranberry);color:#fff}

/* HEADER */
.cj-masthead-shell{
  position:relative;
  background:var(--cj-paper);
  border-top:4px solid var(--cj-cranberry);
}
.cj-masthead-shell::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:var(--cj-line);
}
.cj-masthead-grid{
  max-width:1360px;
  margin:auto;
  padding:1.55rem 2rem 1.3rem;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:2rem!important;
}
.cj-date-panel{
  justify-self:start;
  display:flex;
  align-items:center;
  gap:0;
  color:var(--cj-ink);
  font-family:var(--cj-sans);
  font-size:.74rem;
  font-weight:750;
  letter-spacing:.035em;
  text-transform:uppercase;
  line-height:1;
}
.cj-date-panel .wp-block-shortcode{
  margin:0;
}
.cj-masthead{padding:0;text-align:center}
.cj-masthead .wp-block-site-title{
  margin:0;
  font-family:var(--cj-serif);
  font-size:clamp(3rem,6.1vw,5.45rem);
  font-weight:700;
  line-height:.88;
  letter-spacing:-.055em
}
.cj-masthead .wp-block-site-title a{color:var(--cj-ink)}
.cj-masthead .wp-block-site-tagline{
  margin:.68rem 0 0;
  color:var(--cj-muted);
  font-family:var(--cj-serif);
  font-size:.94rem;
  font-style:italic
}
.cj-header-actions{
  justify-self:end;
  gap:.55rem!important;
}
.cj-header-actions p{margin:0}
.cj-header-actions a{
  display:inline-block;
  padding:.48rem .78rem;
  border:1px solid var(--cj-cranberry);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.cj-header-tip a{
  background:var(--cj-cranberry);
  color:#fff;
  box-shadow:4px 4px 0 rgba(101,22,47,.17);
}
.cj-header-newsletter a{
  background:transparent;
  color:var(--cj-cranberry);
}
.cj-header-actions a:hover{
  transform:translate(-1px,-1px);
  box-shadow:5px 5px 0 rgba(101,22,47,.14);
}
.cj-header-newsletter a:hover{background:var(--cj-blush);color:var(--cj-cranberry-deep)}
.cj-nav-shell{
  background:rgba(251,248,243,.96);
  border-bottom:3px solid var(--cj-cranberry);
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(12px)
}
.cj-nav-inner{
  max-width:var(--cj-max);
  margin:auto;
  padding:0 1.2rem;
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr) 190px;
  align-items:center;
  gap:1rem!important;
  min-height:54px
}
.cj-main-nav{
  justify-self:center;
  grid-column:2;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.065em
}
.cj-main-nav .wp-block-navigation__container{gap:1.05rem;justify-content:center}
.cj-main-nav .wp-block-navigation-item__content{
  position:relative;
  padding:.95rem 0 .8rem;
  transition:color .28s cubic-bezier(.22,.61,.36,1)
}
.cj-main-nav .wp-block-navigation-item__content::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:.48rem;
  height:3px;
  background:var(--cj-cranberry);
  transform:scaleX(0);
  transform-origin:center;
}
.cj-main-nav .wp-block-navigation-item__content:hover{color:var(--cj-cranberry)}
.cj-main-nav .wp-block-navigation-item__content:hover::after,
.cj-main-nav .is-current>.wp-block-navigation-item__content::after,
.cj-main-nav .current-menu-item>.wp-block-navigation-item__content::after{
  transform:scaleX(1);
}
.cj-main-nav .is-current>.wp-block-navigation-item__content,
.cj-main-nav .current-menu-item>.wp-block-navigation-item__content,
.cj-main-nav [aria-current="page"]{color:var(--cj-cranberry)}
.cj-search{grid-column:3;justify-self:stretch;border-left:1px solid var(--cj-line);padding-left:.75rem}
.cj-search .wp-block-search__inside-wrapper{border:0;padding:0;background:transparent}
.cj-search .wp-block-search__input{border:0;background:transparent;padding:.55rem .2rem;font-size:.8rem}
.cj-search .wp-block-search__button{background:transparent;color:var(--cj-ink);border:0;padding:.35rem}

/* SHARED */
.cj-main{max-width:var(--cj-max);margin:auto;padding:1.7rem 1.2rem 3.6rem}
.cj-post-cats,.cj-post-cats a,.cj-eyebrow{color:var(--cj-cranberry)!important;font-size:.67rem!important;font-weight:900;letter-spacing:.105em;text-transform:uppercase}
.cj-post-cats{margin-bottom:.32rem}
.cj-post-cats a{
  display:inline-block;
  margin-right:.25rem;
  padding:.18rem .38rem;
  background:var(--cj-blush);
  color:var(--cj-cranberry-deep)!important;
  border-left:3px solid var(--cj-cranberry);
}
.cj-meta{gap:.3rem!important;margin-top:.5rem;color:#69635f;font-size:.67rem;font-weight:750;letter-spacing:.035em;text-transform:uppercase}
.cj-meta p{margin:0}.cj-meta .wp-block-post-author-name{color:var(--cj-ink)}
.cj-deck{margin:.3rem 0 .7rem;color:#4f4945;font-family:var(--cj-serif);font-size:.98rem;line-height:1.35}
.cj-featured-media{margin-top:.65rem}
.cj-featured-media>.wp-block-post-featured-image{margin:0}
.cj-featured-caption{margin:.38rem 0 0;color:#736c67;font-size:.69rem;line-height:1.35;font-style:italic}
.wp-block-post-featured-image{overflow:hidden}
.wp-block-post-featured-image img{transition:transform .48s cubic-bezier(.22,.61,.36,1);display:block}
article:hover .wp-block-post-featured-image img,.cj-story:hover .wp-block-post-featured-image img{transform:scale(1.012)}
.wp-block-post-title{
  position:relative;
  width:fit-content;
  max-width:100%;
  padding-bottom:.3rem;
}
.wp-block-post-title a{
  display:inline;
  background:none;
  transition:color .28s cubic-bezier(.16,1,.3,1);
}
.wp-block-post-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:124px;
  height:2px;
  border-radius:99px;
  background:var(--cj-cranberry);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .38s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
.wp-block-post-title:hover a{
  color:var(--cj-cranberry);
}
.wp-block-post-title:hover::after{
  transform:scaleX(1);
}

/* HERO */
.cj-hero{gap:1.45rem!important;padding:.4rem 0 2rem;border-bottom:1px solid #222}
.cj-lead-card,.cj-side-post{position:relative}
.cj-lead-card::before{content:"";position:absolute;left:-1.2rem;top:0;width:5px;height:68px;background:var(--cj-cranberry)}
.cj-lead-card .wp-block-post-title{margin:.2rem 0 .35rem;font-family:var(--cj-serif);font-size:clamp(2.25rem,4.25vw,3.75rem);line-height:.96;letter-spacing:-.045em}
.cj-lead-card .wp-block-post-featured-image img{width:100%;min-height:350px;aspect-ratio:16/9;object-fit:cover}
.cj-side-post{padding-bottom:1.1rem}
.cj-side-post+.cj-side-post{border-top:1px solid var(--cj-line);padding-top:1rem}
.cj-side-post .wp-block-post-title{margin:.16rem 0 .28rem;font-family:var(--cj-serif);font-size:1.48rem;line-height:1.02;letter-spacing:-.025em}
.cj-side-post .wp-block-post-featured-image img{width:100%;aspect-ratio:16/9;object-fit:cover}

/* LATEST */
.cj-latest-layout{padding-top:2.25rem;gap:2.2rem!important}
.cj-section-head{border-bottom:3px solid var(--cj-ink);padding-bottom:.45rem;margin-bottom:.3rem}
.cj-section-head h2{margin:0;color:var(--cj-ink);font-family:var(--cj-sans);font-size:1.75rem;font-weight:950;letter-spacing:-.04em}
.cj-section-head a{color:var(--cj-cranberry);font-size:.67rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.cj-latest-grid .wp-block-post-template{display:grid;grid-template-columns:1fr 1fr;gap:0 1.35rem}
.cj-latest-card{padding:1.05rem 0 1.25rem;border-bottom:1px solid var(--cj-line)}
.cj-latest-card .wp-block-post-title{margin:.16rem 0 .3rem;font-family:var(--cj-serif);font-size:1.38rem;line-height:1.03;letter-spacing:-.022em}
.cj-latest-card .wp-block-post-featured-image img{width:100%;aspect-ratio:16/10;object-fit:cover}
.cj-newsletter{background:var(--cj-cranberry);color:#fff;padding:1.2rem;border-top:5px solid var(--cj-cranberry-deep)}
.cj-newsletter .cj-eyebrow{color:#fff!important;opacity:.8}
.cj-newsletter h3{margin:.15rem 0 .35rem;color:#fff;font-family:var(--cj-serif);font-size:1.75rem}
.cj-newsletter>p{color:#fff;margin:.25rem 0 .85rem}
.cj-newsletter iframe{display:block;width:100%;min-height:315px;border:0;background:#fff}
.cj-tip{margin-top:1.4rem;padding-top:.9rem;border-top:2px solid var(--cj-ink)}
.cj-tip h3{margin:.2rem 0 .4rem;font-family:var(--cj-serif);font-size:1.42rem;line-height:1.05}
.cj-tip p{color:var(--cj-muted);font-size:.87rem}
.cj-tip a{color:var(--cj-cranberry);font-weight:900}

/* SINGLE ARTICLE */
.cj-article{max-width:820px;margin:auto;padding:2.3rem 1.2rem 4rem}
.cj-article .wp-block-post-title{margin:.2rem 0 .5rem;font-family:var(--cj-serif);font-size:clamp(2.15rem,4vw,3.65rem);line-height:.98;letter-spacing:-.042em}
.cj-article .cj-deck{font-size:1.12rem;max-width:720px}
.cj-article .wp-block-post-featured-image img{width:100%;max-height:560px;object-fit:cover}
.cj-article .cj-meta{padding-bottom:1rem;border-bottom:1px solid var(--cj-line)}
.cj-article-content{margin-top:1.6rem;font-family:var(--cj-serif);font-size:1.08rem;line-height:1.72}
.cj-article-content>p,.cj-article-content>h2,.cj-article-content>h3,.cj-article-content>ul,.cj-article-content>ol,.cj-article-content>blockquote{max-width:700px;margin-left:auto;margin-right:auto}

/* ARCHIVES / LATEST PAGE */
.cj-archive,.cj-search-results,.cj-latest-page,.cj-page{max-width:var(--cj-max);margin:auto;padding:2.4rem 1.2rem 4rem}
.cj-archive-title,.cj-page-title{font-family:var(--cj-serif);font-size:clamp(2.2rem,4vw,3.45rem);letter-spacing:-.04em;margin-bottom:1.1rem}
.cj-archive-grid .wp-block-post-template,.cj-latest-page .wp-block-post-template{display:grid;grid-template-columns:1fr 1fr;gap:0 1.5rem}
.cj-archive-card{padding:1rem 0 1.35rem;border-bottom:1px solid var(--cj-line)}
.cj-archive-card .wp-block-post-title{margin:.15rem 0 .3rem;font-family:var(--cj-serif);font-size:1.5rem;line-height:1.04}
.cj-archive-card .wp-block-post-featured-image img{width:100%;aspect-ratio:16/9;object-fit:cover}
.cj-query-pagination{margin-top:1.6rem;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}

/* FOOTER */
.cj-footer{margin-top:0;background:#171717;color:#eee}
.cj-footer-inner{max-width:var(--cj-max);margin:auto;padding:2.8rem 1.2rem}
.cj-footer-grid{display:grid!important;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem!important}
.cj-footer-brand{margin:0 0 .55rem;font-family:var(--cj-serif);font-size:2rem}
.cj-footer p{color:#bbb;font-size:.84rem}.cj-footer h4{margin:0 0 .65rem;color:#999;font-size:.67rem;letter-spacing:.09em;text-transform:uppercase}.cj-footer a{color:#eee}.cj-footer a:hover{color:#e7a8bd}
.cj-footer-bottom{max-width:var(--cj-max);margin:auto;padding:1rem 1.2rem 1.4rem;border-top:1px solid #333;color:#888;font-size:.73rem}

/* MOBILE */
@media(max-width:980px){
  .cj-nav-inner{grid-template-columns:1fr auto;padding:.2rem 1rem}
  .cj-main-nav{justify-self:start}
  .cj-search{grid-column:2;border-left:0}
  .cj-hero,.cj-latest-layout{flex-wrap:wrap!important}
  .cj-hero>.wp-block-column,.cj-latest-layout>.wp-block-column{flex-basis:100%!important}
  .cj-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .cj-topbar-inner,.cj-masthead,.cj-nav-inner,.cj-main,.cj-explore-inner,.cj-article,.cj-archive,.cj-search-results,.cj-latest-page,.cj-page,.cj-footer-inner,.cj-footer-bottom{padding-left:.9rem;padding-right:.9rem}
  .cj-masthead .wp-block-site-title{font-size:3.35rem}
  .cj-nav-inner{display:flex!important;justify-content:space-between}
  .cj-main-nav .wp-block-navigation__container{gap:.8rem}
  .cj-search{display:none}
  .cj-lead-card::before{display:none}
  .cj-latest-grid .wp-block-post-template,.cj-archive-grid .wp-block-post-template,.cj-latest-page .wp-block-post-template{grid-template-columns:1fr}
  .cj-footer-grid{grid-template-columns:1fr}
}


/* MODERN INTERACTION LAYER */
.cj-story{
  transition:transform .34s cubic-bezier(.22,.61,.36,1),background-color .34s cubic-bezier(.22,.61,.36,1);
}
.cj-latest-card{
  position:relative;
  margin-left:-.6rem;
  margin-right:-.6rem;
  padding-left:.6rem;
  padding-right:.6rem;
}
.cj-latest-card::before{
  content:"";
  position:absolute;
  left:0;
  top:.75rem;
  bottom:.75rem;
  width:3px;
  background:var(--cj-cranberry);
  transform:scaleY(0);
  transform-origin:center;
  transition:transform .34s cubic-bezier(.22,.61,.36,1);
}
.cj-latest-card:hover{
  transform:translateX(2px);
  background:rgba(139,35,69,.035);
}
.cj-latest-card:hover::before{transform:scaleY(1)}
.cj-lead-card:hover,.cj-side-post:hover{transform:translateY(-1px)}
.wp-block-post-featured-image img{border-radius:6px}
.cj-lead-card .wp-block-post-featured-image,
.cj-side-post .wp-block-post-featured-image,
.cj-latest-card .wp-block-post-featured-image,
.cj-archive-card .wp-block-post-featured-image{
  position:relative;
}
.cj-lead-card .wp-block-post-featured-image::after,
.cj-side-post .wp-block-post-featured-image::after,
.cj-latest-card .wp-block-post-featured-image::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(21,21,21,.08);
  border-radius:6px;
  pointer-events:none;
}
.cj-section-head{
  position:relative;
  padding-left:.75rem;
}
.cj-section-head::before{
  content:"";
  position:absolute;
  left:0;
  top:.18rem;
  bottom:.18rem;
  width:4px;
  background:var(--cj-cranberry);
}
.cj-newsletter{
  box-shadow:9px 9px 0 var(--cj-blush);
}

.cj-article .cj-featured-caption{
  margin:.42rem 0 0;
  padding-left:.55rem;
  border-left:3px solid var(--cj-cranberry);
  color:#6c6560;
  font-family:var(--cj-sans);
  font-size:.72rem;
  font-style:normal;
  line-height:1.4;
}

@media(max-width:980px){
  .cj-masthead-grid{
    grid-template-columns:1fr;
    gap:.8rem!important;
    padding-top:1rem;
  }
  .cj-date-panel{
    justify-self:center;
    text-align:center;
    padding:0;
  }
  .cj-header-actions{justify-self:center}
}
@media(max-width:760px){
  .cj-header-actions a{padding:.42rem .58rem;font-size:.63rem}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}

@media(max-width:1080px){
  .cj-nav-inner{
    grid-template-columns:140px minmax(0,1fr) 140px;
  }
  .cj-main-nav .wp-block-navigation__container{
    gap:.9rem;
  }
}


/* SMOOTHER MOTION */
.cj-story,
.cj-lead-card,
.cj-side-post,
.cj-latest-card,
.wp-block-post-featured-image img,
.cj-header-actions a,
.cj-main-nav .wp-block-navigation-item__content::after{
  backface-visibility:hidden;
  -webkit-font-smoothing:antialiased;
}

.cj-story,
.cj-lead-card,
.cj-side-post,
.cj-latest-card{
  transform:translate3d(0,0,0);
  will-change:transform;
  transition:
    transform .42s cubic-bezier(.16,1,.3,1),
    background-color .35s ease;
}

.wp-block-post-featured-image img{
  transform:translate3d(0,0,0) scale(1);
  will-change:transform;
  transition:transform .62s cubic-bezier(.16,1,.3,1);
}

article:hover .wp-block-post-featured-image img,
.cj-story:hover .wp-block-post-featured-image img{
  transform:translate3d(0,0,0) scale(1.009);
}

.cj-latest-card:hover{
  transform:translate3d(2px,0,0);
}

.cj-lead-card:hover,
.cj-side-post:hover{
  transform:translate3d(0,-1px,0);
}

.cj-main-nav .wp-block-navigation-item__content::after{
  transition:transform .38s cubic-bezier(.16,1,.3,1);
}


/* STORY NEWSLETTER CTA */
.cj-story-newsletter{
  position:relative;
  margin-top:3.2rem;
  margin-bottom:.55rem;
  padding:1.75rem 1.8rem 1.8rem;
  background:var(--cj-cranberry-deep);
  color:#fff;
  border:1px solid var(--cj-cranberry-deep);
  border-top:6px solid var(--cj-cranberry-bright);
  border-radius:4px;
  overflow:visible;
}
.cj-story-newsletter::after{
  content:"";
  position:absolute;
  right:1.25rem;
  top:1.25rem;
  width:34px;
  height:34px;
  border:2px solid rgba(255,255,255,.16);
  border-radius:50%;
  pointer-events:none;
}
.cj-story-newsletter .cj-eyebrow{
  margin:0 0 .4rem;
  color:#f1c8d5!important;
}
.cj-story-newsletter h2{
  margin:0 0 .55rem;
  color:#fff;
  font-family:var(--cj-serif);
  font-size:2rem;
  line-height:1.02;
  letter-spacing:-.03em;
}
.cj-story-newsletter p{
  max-width:610px;
  margin:.2rem 0;
  color:#f4e8ec;
  font-family:var(--cj-sans);
  font-size:.93rem;
  line-height:1.5;
}
.cj-story-newsletter-link{
  display:inline-block;
  margin-top:1rem;
  padding:.68rem .95rem;
  background:#fff;
  color:var(--cj-cranberry-deep)!important;
  font-family:var(--cj-sans);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:1px solid #fff;
  border-radius:2px;
  transition:
    transform .28s cubic-bezier(.16,1,.3,1),
    background-color .28s ease,
    color .28s ease;
}
.cj-story-newsletter-link:hover{
  transform:translate3d(0,-1px,0);
  background:var(--cj-blush);
  color:var(--cj-cranberry-deep)!important;
}
@media(max-width:760px){
    
}


/* FINAL POLISH PASS */
.cj-lead-card .wp-block-post-title,
.cj-side-post .wp-block-post-title,
.cj-latest-card .wp-block-post-title,
.cj-archive-card .wp-block-post-title{
  margin-bottom:.42rem;
}

.cj-lead-card .cj-deck,
.cj-side-post .cj-deck,
.cj-latest-card .cj-deck,
.cj-archive-card .cj-deck{
  margin-top:.05rem;
}

.cj-meta{
  align-items:center;
  row-gap:.18rem!important;
}

.cj-post-cats{
  line-height:1.45;
}

.cj-post-cats a{
  margin-bottom:.18rem;
}

.cj-featured-media,
.cj-lead-card .wp-block-post-featured-image,
.cj-side-post .wp-block-post-featured-image,
.cj-latest-card .wp-block-post-featured-image,
.cj-archive-card .wp-block-post-featured-image{
  margin-top:.72rem;
}

.cj-latest-grid .wp-block-post-template{
  align-items:start;
}

.cj-newsletter{
  align-self:start;
}

.cj-tip{
  margin-top:1.65rem;
}

.cj-footer p{
  margin:.42rem 0;
}

.cj-footer h4{
  margin-bottom:.8rem;
}

.cj-footer-grid > .wp-block-group{
  align-self:start;
}

/* Make story hover movement subtle enough not to disturb layout. */
.cj-story,
.cj-lead-card,
.cj-side-post,
.cj-latest-card{
  contain:layout paint;
}

/* Consistent image presentation. */
.cj-lead-card .wp-block-post-featured-image img,
.cj-side-post .wp-block-post-featured-image img,
.cj-latest-card .wp-block-post-featured-image img,
.cj-archive-card .wp-block-post-featured-image img{
  background:#e8e2dc;
}

/* Clean link focus without shifting geometry. */
.wp-block-post-title a:focus-visible{
  outline:2px solid var(--cj-cranberry-bright);
  outline-offset:4px;
  border-radius:2px;
}

/* Correct tablet navigation rules after earlier responsive layers. */
@media (min-width:761px) and (max-width:1080px){
  .cj-nav-inner{
    grid-template-columns:120px minmax(0,1fr) 120px!important;
    gap:.7rem!important;
  }
  .cj-main-nav{
    grid-column:2!important;
    justify-self:center!important;
    min-width:0;
  }
  .cj-main-nav .wp-block-navigation__container{
    gap:.62rem!important;
    flex-wrap:nowrap!important;
  }
  .cj-main-nav .wp-block-navigation-item__content{
    font-size:.69rem;
    letter-spacing:.045em;
  }
  .cj-search{
    grid-column:3!important;
    min-width:0;
    padding-left:.45rem;
  }
  .cj-search .wp-block-search__input{
    min-width:0;
  }
}

/* Mobile header/nav should not inherit desktop grid placement. */
@media (max-width:760px){
  .cj-nav-inner{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:.75rem!important;
  }
  .cj-main-nav{
    grid-column:auto!important;
    justify-self:auto!important;
  }
  .cj-search{
    grid-column:auto!important;
  }
  .cj-main{
    padding-top:1.25rem;
  }
  .cj-hero{
    padding-top:.2rem;
  }
  .cj-lead-card .wp-block-post-title{
    line-height:1;
  }
}

/* Slightly airier article body transitions into the newsletter CTA. */
.cj-article-content{
  padding-bottom:.15rem;
}
.cj-story-newsletter{
  margin-bottom:.35rem;
}


/* IN-STORY IMAGE CAPTIONS */
.cj-article-content figure{
  margin-top:1.6rem;
  margin-bottom:1.8rem;
}
.cj-article-content figure img{
  display:block;
  max-width:100%;
  height:auto;
}
.cj-article-content figcaption,
.cj-article-content .wp-element-caption,
.cj-article-content .wp-block-image figcaption,
.cj-article-content .wp-block-gallery figcaption,
.cj-article-content .blocks-gallery-caption{
  margin:.42rem 0 0;
  padding:0;
  color:#756e68;
  font-family:var(--cj-sans);
  font-size:.72rem;
  font-style:normal;
  font-weight:450;
  line-height:1.4;
  letter-spacing:.005em;
}
.cj-article-content .wp-block-image.alignwide figcaption,
.cj-article-content .wp-block-image.alignfull figcaption{
  padding-left:.25rem;
  padding-right:.25rem;
}


/* ARTICLE LINKS */
.cj-article-content a{
  color:var(--cj-cranberry);
  text-decoration:underline;
  text-decoration-color:rgba(139,35,69,.42);
  text-decoration-thickness:1.5px;
  text-underline-offset:.16em;
  transition:
    color .24s cubic-bezier(.16,1,.3,1),
    text-decoration-color .24s ease,
    background-size .34s cubic-bezier(.16,1,.3,1);
}
.cj-article-content a:hover{
  color:var(--cj-cranberry-deep);
  text-decoration-color:var(--cj-cranberry-deep);
}
.cj-article-content a[href^="mailto:"]{
  color:var(--cj-cranberry);
  font-weight:650;
  text-decoration-color:rgba(139,35,69,.5);
}
.cj-article-content a[href^="mailto:"]:hover{
  color:var(--cj-cranberry-deep);
  text-decoration-color:var(--cj-cranberry-deep);
}
.cj-article-content a:focus-visible{
  outline:2px solid var(--cj-cranberry-bright);
  outline-offset:3px;
  border-radius:2px;
}

/* Footer email/phone/social links get the same cranberry-adjacent hover cue. */
.cj-footer a{
  transition:color .22s ease,text-decoration-color .22s ease;
}
.cj-footer a:hover{
  color:#e7a8bd;
  text-decoration:underline;
  text-decoration-color:#e7a8bd;
  text-underline-offset:.18em;
}

.cj-masthead{
  justify-self:center;
  width:auto;
  max-width:none;
}
.cj-date-panel{
  justify-self:start;
  white-space:nowrap;
}
.cj-header-actions{
  justify-self:end;
  white-space:nowrap;
}


/* No headline hover treatment on individual story pages. */
.cj-article > .wp-block-post-title::after{
  display:none!important;
}
.cj-article > .wp-block-post-title:hover{
  color:inherit!important;
}
.cj-article > .wp-block-post-title a,
.cj-article > .wp-block-post-title a:hover{
  color:inherit!important;
}

.cj-meta .wp-block-post-author-name a{
  transition:
    color .26s cubic-bezier(.16,1,.3,1),
    border-color .26s ease;
}
.cj-meta .wp-block-post-author-name a:hover{
  color:var(--cj-cranberry)!important;
  border-bottom-color:var(--cj-cranberry)!important;
}
.cj-article .cj-meta .wp-block-post-author-name a:hover{
  color:var(--cj-cranberry)!important;
}

.cj-masthead .wp-block-site-title,
.cj-masthead .wp-block-site-title a{
  white-space:nowrap;
}
.cj-masthead .wp-block-site-title{
  font-size:clamp(3rem,5.35vw,5.15rem);
}

.cj-date-panel{
  justify-self:start!important;
  padding-left:.15rem;
}
.cj-header-actions{
  justify-self:end!important;
  padding-right:.15rem;
}

@media (max-width:1120px){
  .cj-masthead-grid{
    grid-template-columns:1fr!important;
    gap:.8rem!important;
    padding:1rem 1.2rem 1.1rem!important;
  }
  .cj-masthead{
    grid-row:1;
    justify-self:center!important;
  }
  .cj-date-panel{
    grid-row:2;
    justify-self:center!important;
    padding-left:0;
  }
  .cj-header-actions{
    grid-row:3;
    justify-self:center!important;
    padding-right:0;
  }
  .cj-masthead .wp-block-site-title{
    font-size:clamp(3rem,8vw,4.7rem);
  }
}

.cj-lead-card .wp-block-post-title,
.cj-side-post .wp-block-post-title,
.cj-latest-card .wp-block-post-title,
.cj-archive-card .wp-block-post-title{
  padding-bottom:.36rem;
}

/* RELEASE-CANDIDATE POLISH */

/* A little more editorial breathing room around the hero. */
.cj-hero{
  padding-top:.55rem;
  padding-bottom:2.15rem;
}

/* Keep story metadata quiet and consistent. */
.cj-meta{
  line-height:1.35;
}

/* Prevent tiny visual jumps from category labels wrapping. */
.cj-post-cats{
  min-height:1.35em;
}

/* Make headline cards feel deliberate, not floaty. */
.cj-latest-card:hover{
  background:rgba(139,35,69,.028);
}

/* Search feels more like part of the navigation rather than a separate widget. */
.cj-search{
  transition:box-shadow .24s ease;
}
.cj-search .wp-block-search__input::placeholder{
  color:#8a837e;
  opacity:1;
}

/* Footer spacing and touch targets. */
.cj-footer a{
  display:inline-block;
  padding:.05rem 0;
}

/* Give the final homepage section a clean landing into the footer. */
.cj-latest-layout{
  padding-bottom:.25rem;
}

/* Single-story hierarchy stays intentionally quiet and readable. */
.cj-article .wp-block-post-title{
  max-width:780px;
}

/* Don't let very long links overflow article copy. */
.cj-article-content a{
  overflow-wrap:anywhere;
}

/* Mobile: keep the title on one line as long as the screen reasonably permits. */
@media (max-width:560px){
  .cj-masthead .wp-block-site-title{
    font-size:clamp(2.55rem,12vw,3.5rem);
    letter-spacing:-.05em;
  }
  .cj-masthead-grid{
    padding-left:.85rem!important;
    padding-right:.85rem!important;
  }
}

/* Very narrow phones may need the title to scale further rather than wrap. */
@media (max-width:390px){
  .cj-masthead .wp-block-site-title{
    font-size:2.35rem;
  }
}

@media(max-width:760px){
  .cj-story-newsletter{
    padding:1.4rem 1.25rem 1.45rem;
    border-top-width:5px;
  }
  .cj-story-newsletter::after{
    width:26px;
    height:26px;
    right:.9rem;
    top:.9rem;
  }
  .cj-story-newsletter h2{
    max-width:85%;
  }
}
