/* VELVET & ROSE · journal.css
   The Journal, set like an online blog. Loaded after statement.css, on journal.html only.
   It has its own layout (unlike the paper sheets on the rest of the site) but keeps the
   house fonts, colors and textures: ivory paper, pink limewash, claret and ink.
   One new face is added for the Journal only: Bodoni Moda, for the masthead, headlines
   and post titles (--font-journal).

   1. The page          ivory paper, one column of content
   2. Masthead          the Journal's name on the pink limewash, then the section bar
   3. Section heads     a small capital label between two hairlines
   4. Post cards        photo, then a white box with the title, the series on the bottom rule
   5. Most read · The series
   6. Quizzes           a limewash band with all three quizzes
   7. On film
   8. The reader        one post at a time, in the same blog style
   9. Small screens */

/* 1. THE PAGE ---------------------------------------------------------------- */
body[data-page="journal"] {
  --font-journal: "Bodoni Moda", "Libre Caslon Condensed", Georgia, serif;
  --jb-w: min(100% - 2 * clamp(1rem, 5vw, 4rem), 74rem);
  --jb-line: rgb(38 10 20 / 0.16);
  --jb-card: #fffdf8;
  --color-text: var(--ink); --color-muted: #4f3a41; --color-line: var(--jb-line);
  --color-bg: #fbf8ef;
  --btn-bg: var(--burgundy); --btn-fg: var(--ivory); --btn-hover: var(--ink);
}
body[data-page="journal"] main {
  background: #fbf8ef url("images/scrap/paper-ivory.webp") 50% 0 / 900px auto repeat;
  color: var(--ink);
}
.jb-in { width: var(--jb-w); margin-inline: auto; }
.jb [id] { scroll-margin-top: calc(var(--header-h) + 4.5rem); }
.jb-sec { padding-block: clamp(2.75rem, 5vw, 4.25rem) 0; }
.jb-sec:last-child { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }

/* 2. MASTHEAD ---------------------------------------------------------------- */
.jb-mast {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.75rem, 5vw, 4.5rem));
  background: #d4b6ac url("images/scrap/wall-limewash.webp") 50% 50% / cover;
  text-align: center;
}
.jb-mast > .jb-in { padding-bottom: clamp(2.5rem, 4.5vw, 3.75rem); }
.jb-mast__kicker { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin: 0; font-family: var(--font-type); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.jb-mast__kicker span + span::before { content: "·"; margin-right: 1.1rem; color: var(--ochre); }
.jb-mast__title {
  margin: clamp(0.6rem, 1.4vw, 1rem) 0 0;
  font-family: var(--font-journal); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(3.6rem, 2rem + 6.4vw, 8.25rem); line-height: 0.92; letter-spacing: -0.015em; color: var(--ink);
}
.jb-mast__title em { font-style: italic; color: var(--ochre); }
.jb-mast__lede { margin: clamp(1rem, 2vw, 1.4rem) auto 0; max-width: 44ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.6; color: #3c2a31; }

/* the section bar: like a blog's category menu, it stays under the header while you scroll */
.jb-bar { position: sticky; top: var(--header-h); z-index: 20; background: #fbf8ef url("images/scrap/paper-ivory.webp") 50% 0 / 900px auto repeat; border-block: 1px solid var(--jb-line); box-shadow: 0 10px 18px -16px rgb(52 18 28 / 0.45); }
.jb-bar .jb-in { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(1.1rem, 2.6vw, 2.6rem); }
.jb-bar a { position: relative; display: inline-flex; align-items: center; min-height: 3.1rem; font-family: var(--font-type); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.jb-bar a::after { content: ""; position: absolute; left: 0; right: 0.2em; bottom: 0.75rem; height: 1px; background: var(--ochre); scale: 0 1; transform-origin: left; transition: scale 0.4s var(--ease); }
.jb-bar a:hover { color: var(--ochre); }
.jb-bar a:hover::after { scale: 1 1; }

/* 3. SECTION HEADS ----------------------------------------------------------- */
.jb-h { display: flex; align-items: center; gap: 1.2rem; margin: 0 0 clamp(1.4rem, 2.6vw, 2rem); font-family: var(--font-type); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.jb-h::before, .jb-h::after { content: ""; flex: 1; height: 1px; background: var(--jb-line); }
.jb-title { margin: 0.5rem 0 0; font-family: var(--font-journal); font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); line-height: 1; color: var(--ink); }
.jb-title em { font-style: italic; color: var(--ochre); }

/* 4. POST CARDS -------------------------------------------------------------- */
.jb-grid { margin: 0; padding: 0; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.1rem, 2.2vw, 2rem); }
.jb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bcard.jb-card a, .reader__more .bcard a { text-decoration: none; }
.bcard.jb-card .bcard__img, .reader__more .bcard__img { aspect-ratio: 4 / 3; background: #efe4d8; }
.bcard.jb-card--big .bcard__img { aspect-ratio: 3 / 2.1; }
.bcard.jb-card .bcard__box, .reader__more .bcard__box { background: var(--jb-card); border: 1px solid var(--jb-line); border-top: 0; text-align: center; }
.jb-card__meta { font-family: var(--font-type); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ochre); }
.bcard.jb-card .bcard__title, .reader__more .bcard__title { font-family: var(--font-journal); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); line-height: 1.15; color: var(--ink); }
.bcard.jb-card--big .bcard__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.bcard.jb-card .bcard__title em, .reader__more .bcard__title em { font-style: italic; color: var(--ink); }
.bcard.jb-card .bcard__dek { color: #4f3a41; }
.bcard.jb-card .bcard__read { font-family: var(--font-type); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--ink); }
.bcard.jb-card a:hover .bcard__title { color: var(--ochre); }
.bcard.jb-card .bcard__cat i, .reader__more .bcard__cat i { background: #fbf8ef; font-family: var(--font-type); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.2em; color: #6b5860; }

/* 5. MOST READ · THE SERIES -------------------------------------------------- */
.jb-duo__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.jb-most .bminis { margin: 0; padding: 0; border-top: 0; counter-reset: jm; }
.jb-most .bminis > li { counter-increment: jm; }
.jb-most .bmini { grid-template-columns: 2.6rem 5.2rem minmax(0, 1fr) auto; gap: 1.1rem; padding: 1rem 0; border-bottom: 1px solid var(--jb-line); color: var(--ink); text-decoration: none; }
.jb-most .bmini::before { content: counter(jm, decimal-leading-zero); font-family: var(--font-journal); font-style: normal; font-size: 1.9rem; line-height: 1; color: var(--ochre); }
.jb-most .bmini__img::after { content: none; }
.jb-most .bmini__text small { font-family: var(--font-type); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.16em; color: #6b5860; }
.jb-most .bmini__text b { font-family: var(--font-journal); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.jb-series__fig { margin: 0 0 1.25rem; }
.jb-series__fig img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 32%; }
.jb-series .jseries__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.jb-series .jseries__list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.15rem 0.6rem; padding: 0.85rem 0; border-bottom: 1px solid var(--jb-line); background: none; box-shadow: none; rotate: none; }
.jb-series .jseries__no { grid-row: 1 / span 2; font-family: var(--font-type); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ochre); padding-top: 0.3rem; }
.jb-series .jseries__list b { font-family: var(--font-journal); font-weight: 400; font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.jb-series .jseries__list li > span:last-child { font-size: 0.86rem; line-height: 1.45; color: #4f3a41; }

/* 6. QUIZZES ----------------------------------------------------------------- */
.jb-quiz { margin-top: clamp(3.5rem, 6vw, 5rem); padding-block: clamp(3rem, 5.5vw, 4.5rem); background: #d4b6ac url("images/scrap/wall-limewash.webp") 50% 50% / cover; text-align: center; }
.jb-quiz__lede { margin: 0.9rem auto 0; max-width: 46ch; color: #3c2a31; }
.jb-quiz__grid.quizcuts { margin-top: clamp(2rem, 3.6vw, 2.75rem); padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); text-align: left; }
.jb-quiz .quizcut { rotate: none; width: auto; margin: 0; padding: 1.75rem 1.5rem 1.5rem; border-radius: 4px; background: var(--jb-card); color: var(--ink); --qc-pop: var(--ochre); --qc-soft: #4f3a41; box-shadow: 0 0 0 1px var(--jb-line), 0 18px 26px -22px rgb(52 18 28 / 0.55); }
.jb-quiz .quizcut::before, .jb-quiz .quizcut::after, .jb-quiz .quizcut__seal { display: none; }
.jb-quiz .quizcut:hover { translate: 0 -0.2rem; }
.jb-quiz .quizcut__kicker { margin: 0 0 0.5rem; padding: 0; font-family: var(--font-type); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.2em; color: var(--ochre); }
.jb-quiz .quizcut__title { font-family: var(--font-journal); font-weight: 400; font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.85rem); line-height: 1.1; color: var(--ink); }
.jb-quiz .quizcut__title em { color: var(--ochre); }
.jb-quiz .quizcut__sub { margin-top: 0.6rem; font-size: 0.9rem; color: #4f3a41; }
.jb-quiz .quizcut__go { margin-top: 1.1rem; }
.jb-quiz .quizcut__go button { background: var(--ink); color: var(--ivory); box-shadow: none; }
.jb-quiz .quizcut__go button:hover { background: var(--ochre); color: var(--ivory); box-shadow: none; }

/* 7. ON FILM ----------------------------------------------------------------- */
.jb-film.film--wip { padding-top: clamp(5rem, 8vw, 6.5rem); background: none; color: var(--ink); }
.jb-film .chapter { justify-content: center; margin-bottom: 0.4rem; }
.jb-film .chapter .label { color: var(--ink); }
.jb-film .board__head { display: block; text-align: center; margin-bottom: clamp(1.75rem, 3.2vw, 2.5rem); }
.jb-film .board__head .muted { margin: 0.9rem auto 0; max-width: 56ch; color: #4f3a41; }
.jb-film .film__card h3 { font-family: var(--font-journal); color: var(--ink); }
.jb-film .film__card .label { color: var(--ochre); }
.jb-film .film__card p:last-child { color: #4f3a41; }
.jb-film .film__soon { justify-content: center; border-top-color: var(--jb-line); color: var(--ink); }

/* 8. THE READER -------------------------------------------------------------- */
body[data-page="journal"] .reader { padding-top: var(--header-h); }
body[data-page="journal"] .reader__bar { background: #fbf8ef url("images/scrap/paper-ivory.webp") 50% 0 / 900px auto repeat; border-bottom: 1px solid var(--jb-line); }
body[data-page="journal"] .reader__bar a { color: var(--ink); font-family: var(--font-type); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }
body[data-page="journal"] .reader .section { background: none; }
body[data-page="journal"] .piece__head { text-align: center; margin-inline: auto; max-width: 52rem; }
body[data-page="journal"] .piece__meta { justify-content: center; }
body[data-page="journal"] .piece__meta .label { font-family: var(--font-type); color: #6b5860; }
body[data-page="journal"] .piece__meta .label--accent { color: var(--ochre); }
body[data-page="journal"] .piece__title,
body[data-page="journal"] .reads .board__head h2 { font-family: var(--font-journal); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
body[data-page="journal"] .piece__title em,
body[data-page="journal"] .reads .board__head h2 em { font-family: var(--font-journal); font-style: italic; font-weight: 400; color: var(--ochre); }
body[data-page="journal"] .piece__dek { margin-inline: auto; margin-top: 1.4rem; color: #4f3a41; }
body[data-page="journal"] .piece__body h3,
body[data-page="journal"] .piece__list h3,
body[data-page="journal"] .reads__h { font-family: var(--font-journal); font-weight: 400; color: var(--ink); }
body[data-page="journal"] .piece__pull p { font-family: var(--font-journal); font-style: italic; color: var(--ochre); }
body[data-page="journal"] .reader .wax, body[data-page="journal"] .reader .deco { display: none; }
body[data-page="journal"] .reader__more .blog__h { display: flex; align-items: center; gap: 1.2rem; font-family: var(--font-type); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
body[data-page="journal"] .reader__more .blog__h::before, body[data-page="journal"] .reader__more .blog__h::after { content: ""; flex: 1; height: 1px; background: var(--jb-line); }

/* 9. SMALL SCREENS ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .jb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jb-duo__grid { grid-template-columns: minmax(0, 1fr); }
  .jb-quiz__grid.quizcuts { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
}
@media (max-width: 699px) {
  .jb-grid--2, .jb-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .jb-bar .jb-in { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 1.4rem; }
  .jb-bar .jb-in::-webkit-scrollbar { display: none; }
  .jb-bar a { flex: none; }
  .jb-series .jseries__list { grid-template-columns: minmax(0, 1fr); }
  .jb-most .bmini { grid-template-columns: 2rem 4rem minmax(0, 1fr); }
  .jb-most .bmini > i { display: none; }
}

/* On film sits flat on the paper like the rest of the blog, no lifted card. */
body[data-page="journal"] .blog-home > .film.jb-film { margin: 0; border-radius: 0; box-shadow: none; overflow: visible; background-color: transparent; }
body[data-page="journal"] .jb-film .film__wip { background: linear-gradient(rgb(38 10 20 / 0.35), rgb(38 10 20 / 0.55)); }
body[data-page="journal"] .jb-film .film__wip small { color: #f8f3ea; text-shadow: 0 1px 6px rgb(26 4 8 / 0.8); }

/* 10. Cutouts match the Home (Nov 25) ----------------------------------------
   Article cards and quiz cards use the Home paper cutout: ivory paper,
   10px corners and the same lifted shadow. Buttons use the swatch burgundy. */
.bcard.jb-card, .reader__more .bcard, .jb-quiz .quizcut {
  border-radius: 10px; overflow: hidden;
  background: #fbf8ef url("images/scrap/paper-ivory.webp") 50% 0 / 900px auto repeat;
  box-shadow: 0 0 0 1px rgb(60 24 30 / 0.07), 0 1px 0 rgb(255 255 255 / 0.7) inset,
              0 34px 44px -30px rgb(52 18 28 / 0.55), 0 4px 10px rgb(52 18 28 / 0.12);
}
.bcard.jb-card .bcard__box, .reader__more .bcard__box { background: transparent; border: 0; }
.jb-quiz .quizcut__go button { background: var(--burgundy); }
.jb-quiz .quizcut__go button:hover { background: var(--ink); }
.bcard.jb-card .bcard__cat, .reader__more .bcard__cat { display: none; }   /* repeated the kicker; it sat on the old card edge */

/* 11. Masthead: The Velvet & Rose Journal (Nov 25) -----------------------------
   A newspaper-style top line (studio · issue · read save design) between two
   burgundy rules, the title in the VELVET & Rose pairing with "Journal" in
   Bodoni italic, the lede, then a rule over the section bar. */
.jb-mast { padding-top: calc(var(--header-h) + clamp(1.5rem, 2.8vw, 2.4rem)); }
.jb-mast > .jb-in { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.jb-mast__strip {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin: 0; padding: 0.85rem 0; border-block: 1px solid rgb(74 10 19 / 0.45);
  font-family: var(--font-type); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--burgundy);
}
.jb-mast__strip span:first-child { text-align: left; }
.jb-mast__strip span:last-child { text-align: right; }
.jb-mast__title--vr {
  margin-top: clamp(1.1rem, 2.4vw, 2rem);
  font-family: var(--font-display); font-size: clamp(2.9rem, 1.2rem + 6.2vw, 8rem); line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--ink);
}
.jb-mast__title--vr .vr__v { letter-spacing: 0.01em; }
.jb-mast__title--vr .vr__r { font-family: var(--font-script); text-transform: none; font-size: 1.12em; color: var(--burgundy); letter-spacing: 0; }
.jb-mast__title--vr em { font-family: var(--font-journal); font-style: italic; font-weight: 400; text-transform: none; color: var(--burgundy); letter-spacing: -0.01em; }
.jb-mast__title--vr + .jb-mast__lede { max-width: 52ch; margin-top: clamp(0.9rem, 1.8vw, 1.3rem); }
.jb-mast .jb-bar { border-top: 1px solid rgb(74 10 19 / 0.45); }
@media (max-width: 640px) {
  .jb-mast__strip { grid-template-columns: 1fr 1fr; font-size: 0.62rem; letter-spacing: 0.14em; }
  .jb-mast__strip span:nth-child(2) { text-align: right; }
  .jb-mast__strip span:last-child { display: none; }
  .jb-mast__title--vr { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .jb-mast__title--vr em { display: block; }
}
.jb-mast__strip { width: 100%; max-width: none; }
.jb-mast__title--vr { font-size: clamp(2.6rem, 0.4rem + 5.1vw, 6.9rem); white-space: nowrap; }
@media (max-width: 900px) { .jb-mast__title--vr { white-space: normal; } .jb-mast__title--vr em { display: block; } }
@media (max-width: 640px) { .jb-mast__title--vr { font-size: clamp(2.1rem, 10vw, 3.2rem); } }
