/* Member item and section pages. Copied from the draft essays styles in
   docs/membership/preview-mock.html (journal header, reading column, index),
   keeping the class names so public preview pages on cmdinsmore.com can share
   them. Colors and fonts come from the main site's style.css. */

/* ── Header ── */
.journal-head {
  max-width: 760px; margin: 0 auto;
  padding: calc(var(--nav-h) + 4.5rem) 1.5rem 2.6rem;
  border-bottom: 1px solid var(--gold-dim);
}
.journal-series {
  font-family: var(--font-display); font-size: .72rem;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.journal-series a { color: inherit; text-decoration: none; }
.journal-series a:hover { color: var(--gold-light); }
.journal-title {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.08;
  color: var(--parchment); margin: 0 0 1.2rem;
}
.journal-standfirst {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.38rem; line-height: 1.55; color: var(--aged);
  margin: 0 0 1.8rem;
}
.journal-byline {
  font-family: var(--font-display); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light);
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
}
.journal-byline span + span::before { content: '·'; margin-right: 1.1rem; color: var(--gold-dim); }
.members-tag { color: var(--parchment); border: 1px solid var(--gold-dim); padding: .15em .55em; margin-left: .2em; }

/* ── Body ── */
.essay-body {
  max-width: 680px; margin: 0 auto; padding: 3.2rem 1.5rem 1rem;
  font-family: var(--font-body);
}
.essay-body p, .essay-body li {
  font-size: 1.2rem; line-height: 1.85; color: var(--aged);
  hyphens: auto; -webkit-hyphens: auto;
}
.essay-body p { margin: 0 0 1.35rem; }
.essay-body ul, .essay-body ol { margin: 0 0 1.35rem 1.4rem; }
.essay-body p em, .essay-body li em { color: var(--parchment); }
.essay-body > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display);
  font-size: 4.1em; line-height: .82; padding: .32rem .55rem 0 0;
  color: var(--gold);
}
.essay-body h2 {
  font-family: var(--font-body); font-weight: 600; font-variant: small-caps;
  font-size: 1.32rem; letter-spacing: .06em; color: var(--parchment);
  margin: 2.8rem 0 1rem;
}
/* Links in the text only, so the Join box's buttons keep the site's button styles. */
.essay-body p a, .essay-body li a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-dim); }
.essay-body img { max-width: 100%; height: auto; display: block; margin: 2rem auto; }
.essay-body figure { margin: 2rem 0; }
.essay-body figcaption { font-size: .95rem; font-style: italic; color: var(--aged); opacity: .8; text-align: center; }
.essay-body audio { width: 100%; margin: 1rem 0 1.6rem; }

/* ── Terms and privacy ── */
.m-legal > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.m-legal ul { list-style: disc; }
.m-legal code { font-size: .9em; color: var(--parchment); }
.m-draft { border: 1px dashed var(--gold-dim); padding: .8rem 1rem; font-family: var(--font-display); font-size: .75rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light) !important; }

/* ── After the body ── */
.back-matter { max-width: 680px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.essay-return {
  margin-top: 2.6rem; font-family: var(--font-display); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.essay-return a { color: var(--gold-light); text-decoration: none; }
.essay-return a:hover { color: var(--parchment); }

/* ── Section index ── */
.members-wide { min-height: 60vh; }
.toc { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.5rem 4rem; }
.toc-entry { padding: 1.8rem 0; border-bottom: 1px solid rgba(184,146,74,.12); }
.toc-title {
  font-family: var(--font-body); font-size: 1.75rem; line-height: 1.2;
  margin: 0 0 .5rem; font-weight: 400;
}
.toc-title a { color: var(--parchment); text-decoration: none; }
.toc-title a:hover { color: var(--gold-light); }
.toc-standfirst { font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--aged); margin: 0 0 .7rem; }
.toc-meta {
  font-family: var(--font-display); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-light); opacity: .85;
}
.m-locked { color: var(--aged); opacity: .75; }

@media (max-width: 900px) {
  .journal-head { padding: calc(var(--nav-h) + 2.5rem) 1rem 2rem; }
  .essay-body, .back-matter, .toc { padding-left: 1rem; padding-right: 1rem; }
  .essay-body p, .essay-body li { font-size: 1.12rem; }
}

/* Black artwork on a transparent or white background (book icons, laurels):
   shown light on the dark page. */
.essay-body .m-invert img { filter: invert(1); mix-blend-mode: screen; }
.essay-body .m-symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem 1.5rem; margin: 2rem 0; }
.essay-body .m-symbols figure { margin: 0; }
.essay-body .m-symbols img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0 0 .8rem; box-sizing: border-box; padding: .5rem; }
/* A note to the reader above an item (for example, a spoiler warning). */
.essay-body .m-note { font-size: 1rem; font-style: italic; opacity: .8; border-left: 2px solid var(--gold-dim); padding-left: 1rem; }
.essay-body .m-notes li { font-size: 1rem; }
.essay-body > p.m-note:first-of-type::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.essay-body blockquote { margin: 1.6rem 0 1.6rem 1.5rem; padding-left: 1.2rem; border-left: 2px solid var(--gold-dim); font-style: italic; }
