/* BlackCopper Journal, post 8 only - "Ribbon, or no ribbon".
   The split piece: a light violet-tinted page whose comparison section runs as two halves, one pale
   and one near-black, so the choice is the layout. Everything is namespaced under .jr8.

   Colour: ink #191a24 on #f6f5fb (15.3:1), body #3a3b4a (9.6:1), violet #5a48d6 on the light page
   (5.9:1) and #a99cf7 on the dark half (7.6:1). The bright #7c6bf0 is used only for solid blocks
   and rules - on white it is 4.0:1, which is under the line for text.

   These CMS pages have no #content wrapper, so the theme paragraph colour arrives as a plain `p` rule;
   every paragraph colour here carries the body#cms prefix so it outranks that rule. */

.jr8{
  --bg:#f6f5fb; --bg2:#ecebf7; --line:#dcd9ee;
  --ink:#191a24; --tx:#3a3b4a; --tx2:#60627a;
  --vi:#7c6bf0; --vi-d:#5a48d6; --vi-l:#a99cf7;
  --dark:#171426; --dark2:#201c33; --dline:#332c52;
  background:var(--bg); color:var(--tx);
  margin-inline:calc(50% - 50vw); width:100vw; max-width:100vw;
  overflow-x:clip;
  font-size:17px; line-height:1.74;
}
.jr8 *{box-sizing:border-box}
body#cms .jr8 p{color:var(--tx)}
.jr8-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------------------------------------------------------------- hero */
/* This post's picture is a bright high-key studio shot, so there is no type over it: a white veil
   would simply erase it. The hero is a full-bleed band with the title block underneath. */
.jr8-hero{display:block;padding:0}
.jr8-hero__img{display:block;position:relative;height:min(46vh,430px)}
.jr8-hero__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}
.jr8-hero__text{width:100%;max-width:1120px;margin:0 auto;padding:48px 24px 8px}

.jr8-kicker{margin:0 0 14px!important;font-size:12.5px;font-weight:700;letter-spacing:2.6px;text-transform:uppercase}
body#cms .jr8 .jr8-kicker{color:var(--vi-d)}
.jr8-title{margin:0 0 20px;font-size:clamp(40px,7.2vw,84px);line-height:1.02;font-weight:800;letter-spacing:-.035em;color:var(--ink)}
.jr8-title span{color:var(--vi-d)}
.jr8-dek{margin:0 0 22px!important;max-width:600px;font-size:clamp(18px,2.1vw,22px);line-height:1.5}
body#cms .jr8 .jr8-dek{color:var(--ink)}
.jr8-meta{display:flex;flex-wrap:wrap;gap:10px;margin:0!important;font-size:13.5px}
body#cms .jr8 .jr8-meta{color:var(--tx2)}

/* ---------------------------------------------------------------- body */
.jr8-body{padding:0 24px 90px}
.jr8-col{max-width:680px;margin:0 auto}
.jr8-col--wide{max-width:1040px}
.jr8-body p{margin:0 0 20px}
.jr8-lede{font-size:21px;line-height:1.6}
body#cms .jr8 .jr8-lede{color:var(--ink)}

.jr8-sec{margin:0 0 76px}
.jr8 h2{margin:58px 0 16px;font-size:clamp(25px,3.3vw,35px);line-height:1.18;font-weight:800;letter-spacing:-.025em;color:var(--ink)}
.jr8 h2::before{content:"";display:block;width:58px;height:10px;margin:0 0 18px;border-radius:5px;
  background:linear-gradient(90deg,var(--vi) 0 50%,var(--line) 50% 100%)}
.jr8 h3{margin:0 0 10px;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.jr8 a{color:var(--vi-d)}

/* ---------------------------------------------------------------- the split */
.jr8-split{margin:0 0 76px}
.jr8-split__h{max-width:680px;margin-left:auto!important;margin-right:auto!important}
.jr8-split__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:0;
  max-width:1040px;margin:30px auto 0;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.jr8-half{padding:30px 28px 28px}
.jr8-half--dt{background:#fff}
.jr8-half--tt{background:var(--dark);color:#e9e7f5}
.jr8-half--tt h3{color:#fff}
.jr8-half__k{margin:0 0 8px!important;font-size:12px;font-weight:800;letter-spacing:2.6px;text-transform:uppercase}
body#cms .jr8 .jr8-half--dt .jr8-half__k{color:var(--vi-d)}
body#cms .jr8 .jr8-half--tt .jr8-half__k{color:var(--vi-l)}
.jr8-half p{font-size:15.5px;line-height:1.64}
body#cms .jr8 .jr8-half--tt p{color:#c9c6e0}
.jr8-half__use{margin:16px 0 0!important;padding:14px 16px;border-radius:12px;font-size:14.5px}
.jr8-half--dt .jr8-half__use{background:var(--bg2)}
.jr8-half--tt .jr8-half__use{background:var(--dark2)}
.jr8--anim .jr8-half.reveal{opacity:0;transform:translateY(20px)}
.jr8--anim .jr8-half.reveal.is-in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease}
.jr8-split__grid .jr8-half:nth-child(2).is-in{transition-delay:.12s}

/* the printhead / ribbon / label stack, drawn rather than photographed */
.jr8-dia{position:relative;height:104px;margin:0 0 18px;border-radius:12px;overflow:hidden}
.jr8-half--dt .jr8-dia{background:var(--bg2)}
.jr8-half--tt .jr8-dia{background:var(--dark2)}
.jr8-dia span{position:absolute;left:12%;width:76%;border-radius:3px}
.jr8-dia__head{top:16px;height:14px;background:linear-gradient(90deg,#4b4f66,#8a90ad)}
.jr8-dia__head::after{content:"";position:absolute;left:50%;bottom:-7px;width:26px;height:7px;margin-left:-13px;
  border-radius:0 0 4px 4px;background:var(--vi)}
.jr8-dia__ribbon{top:46px;height:9px;background:repeating-linear-gradient(90deg,#6f5fd6 0 9px,#8f82ea 9px 18px)}
.jr8-dia__label{bottom:18px;height:22px;background:#fff;border:1px solid #c9c6e0}
.jr8-dia__mark{left:44%;width:12%;bottom:24px;height:10px;border-radius:2px}
.jr8-dia__mark--dt{background:#6b6b78}
.jr8-dia__mark--tt{background:#1b1730}

.jr8-ticks{list-style:none;margin:14px 0 0;padding:0}
.jr8-ticks li{position:relative;padding:0 0 0 24px;margin:0 0 8px;font-size:15px;line-height:1.56}
.jr8-half--dt .jr8-ticks li{color:var(--tx)}
.jr8-half--tt .jr8-ticks li{color:#c9c6e0}
.jr8-ticks li::before{content:"";position:absolute;left:0;top:8px;width:9px;height:9px;border-radius:50%;background:var(--vi)}
.jr8-split__note{max-width:1040px;margin:22px auto 0!important;font-size:15.5px;line-height:1.68}
body#cms .jr8 .jr8-split__note{color:var(--tx2)}

/* ---------------------------------------------------------------- the four ribbon families */
.jr8-steps{counter-reset:s;list-style:none;margin:30px 0 0;padding:0;display:grid;gap:12px}
.jr8-steps li{counter-increment:s;display:grid;grid-template-columns:54px 190px 1fr;gap:18px;align-items:baseline;
  padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:14px}
.jr8-steps li::before{content:counter(s,decimal-leading-zero);font-size:14px;font-weight:800;color:var(--vi-d)}
.jr8-steps b{font-size:19px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.jr8-steps span{font-size:15.5px;line-height:1.62;color:var(--tx)}
.jr8--anim .jr8-steps li.reveal{opacity:0;transform:translateX(-18px)}
.jr8--anim .jr8-steps li.reveal.is-in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.2,.75,.25,1)}
.jr8-steps li:nth-child(2).is-in{transition-delay:.08s}
.jr8-steps li:nth-child(3).is-in{transition-delay:.16s}
.jr8-steps li:nth-child(4).is-in{transition-delay:.24s}

/* ---------------------------------------------------------------- the printer table */
.jr8-tablewrap{margin:30px 0 22px;overflow-x:auto}
.jr8-table{width:100%;border-collapse:collapse;font-size:15px;background:#fff;border:1px solid var(--line);border-radius:14px}
.jr8-table caption{caption-side:top;text-align:left;padding:0 0 12px;font-size:13.5px;color:var(--tx2)}
.jr8-table th,.jr8-table td{padding:12px 15px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.jr8-table thead th{font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--vi-d);
  border-bottom:2px solid var(--vi);white-space:nowrap}
.jr8-table tbody th{font-weight:700;color:var(--ink);white-space:nowrap}
.jr8-table tbody th a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.jr8-table tbody th a:hover{color:var(--vi-d)}
.jr8-table td{color:var(--tx)}
.jr8-table tbody tr:last-child th,.jr8-table tbody tr:last-child td{border-bottom:0}
.jr8-table tbody tr:hover th,.jr8-table tbody tr:hover td{background:var(--bg2)}
.jr8-note{font-size:15.5px;line-height:1.68}
body#cms .jr8 .jr8-note{color:var(--tx2)}

/* ---------------------------------------------------------------- quote */
.jr8-quote{margin:46px 0 30px;padding:0 0 0 26px;border-left:6px solid var(--vi)}
.jr8-quote p{margin:0!important;font-size:clamp(21px,2.9vw,30px);line-height:1.3;font-weight:800;letter-spacing:-.025em}
body#cms .jr8 .jr8-quote p{color:var(--ink)}
.jr8--anim .jr8-quote.reveal{opacity:0}
.jr8--anim .jr8-quote.reveal.is-in{opacity:1;transition:opacity .8s ease}

/* ---------------------------------------------------------------- end */
.jr8-sec--end{margin:0;padding:46px 0 0;border-top:1px solid var(--line)}
.jr8-help{display:flex;flex-wrap:wrap;gap:20px;margin:0!important}
.jr8-help a{color:var(--vi-d);text-decoration:underline;text-underline-offset:4px;font-weight:700;font-size:15.5px}
.jr8-help a:hover{color:var(--ink)}

@media (max-width:860px){
  .jr8-steps li{grid-template-columns:40px 1fr;gap:10px}
  .jr8-steps span{grid-column:2}
}
@media (max-width:700px){
  .jr8{font-size:16.5px}
  .jr8-hero__img{height:min(34vh,260px)}
  .jr8-hero__text{padding:34px 20px 6px}
  .jr8-body{padding:0 20px 70px}
  .jr8-half{padding:24px 20px}
}

@media (prefers-reduced-motion:reduce){
  .jr8--anim .reveal,.jr8--anim .reveal.is-in{opacity:1;transform:none;transition:none}
}

/* a link inside running text must not rely on colour alone (WCAG 1.4.1) */
.jr8 p a{text-decoration:underline;text-underline-offset:3px}
