/* ==========================================================================
   Single long-form article — the reading experience.
   Mobile-first: stacks from 3-column grid to 1-column, scales type via clamp().
   ========================================================================== */

/* ========= HERO ========= */
.ll-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1000px) {
  .ll-hero { grid-template-columns: 200px 1fr 200px; gap: 48px; padding: 56px 0 40px; }
}

.ll-hero .lhs,
.ll-hero .rhs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.8;
}
/* RHS = stacked data chips (read time, word count) — quiet details in the
   site's chip vocabulary, not a second headline. */
.ll-hero .rhs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
@media (min-width: 1000px) { .ll-hero .rhs { align-items: flex-end; text-align: right; } }
.ll-hero .rhs > div {
  border: 1px solid var(--rule);
  padding: 6px 10px;
  line-height: 1.4;
}

.ll-hero .tag {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 500;
}
.ll-hero .lhs b { color: var(--ink); }

.ll-hero .center h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw + 0.5rem, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.ll-hero .center h1 em { font-weight: 800; font-style: normal; color: inherit; }

.ll-hero .center .dek {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.875rem);
  line-height: 1.3;
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.ll-hero .center .meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ll-hero .center .meta > div { min-width: 120px; }
.ll-hero .center .meta strong {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-top: 4px;
}

.ll-hero .rhs .big {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.12em;
  margin: 0;
}
.ll-hero .rhs .big span { margin-left: 4px; }   /* "4 MIN", not "4MIN" */

/* ========= FEATURED IMAGE (plain image fallback when no cover-art plate) ========= */
.ll-featured {
  margin: 40px 0;
  /* No hairlines — the hero's bottom rule sits just above, and the image
     bounds itself. */
}
.ll-featured img { display: block; width: 100%; height: auto; }

/* ========= BODY GRID ========= */
.ll-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ink);
  align-items: start;
}
@media (min-width: 1000px) {
  .ll-body-grid { grid-template-columns: 220px 1fr 220px; gap: 48px; padding: 48px 0; }
}
/* Legacy embeds carry fixed width="" attributes; without this the prose
   column's min-content width blows past the viewport on small screens. */
.ll-body-grid > * { min-width: 0; }

.ll-body-grid .col-left,
.ll-body-grid .col-right {
  font-family: var(--sans);
  font-size: 14px;
}
@media (min-width: 1000px) {
  .ll-body-grid .col-left { position: sticky; top: 20px; }
  .ll-body-grid .col-right { position: sticky; top: 20px; }
}

.ll-body-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

.ll-body-grid .col-left .share {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ll-body-grid .col-left .share-btns { display: flex; gap: 6px; margin-top: 10px; }
.ll-body-grid .col-left .share-btns a {
  border: 1px solid var(--ink);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ========= RELATED (right rail) ========= */
.ll-rel-list { list-style: none; margin: 0 0 24px; padding: 0; }
.ll-rel-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ll-rel-list a { display: block; }
.ll-rel-list .k {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.ll-rel-list .t {
  font-family: var(--sans);
  font-weight: 600; font-size: 16px; line-height: 1.25;
  letter-spacing: -0.01em;
}
.ll-rel-list .t em { font-style: normal; font-weight: 600; color: inherit; }
.ll-rel-list .m {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ========= AUTHOR CARD ========= */
.ll-author-card {
  background: var(--paper-2);
  padding: 24px;
  margin-top: 24px;
  border: 1px solid var(--ink);
}
.ll-author-card .role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 12px;
}
.ll-author-card .name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px; line-height: 1;
  letter-spacing: -0.025em; margin: 0 0 10px;
}
.ll-author-card p {
  font-family: var(--sans); font-size: 13px;
  line-height: 1.5; color: var(--ink-soft); margin: 0;
}

/* ========= PROSE (the reading surface) ========= */
article.prose {
  font-family: var(--serif);                      /* Times New Roman */
  font-size: clamp(1.0625rem, 0.5vw + 0.9rem, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  max-width: var(--prose-max);
  margin: 0 auto;
}
article.prose > :first-child { margin-top: 0; }

article.prose p { margin: 0 0 22px; text-wrap: pretty; }

/* Intro / lede — first paragraph gets a drop cap and italic treatment.
   Applied automatically to the first <p> via :first-of-type so Trevor's
   content doesn't have to opt in per-post. */
article.prose > p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.625rem);
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
article.prose > p:first-of-type::first-letter {
  font-family: var(--serif);                      /* dropcap stays in the reading face */
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.82;
  float: left;
  margin: 8px 14px -8px 0;
  color: var(--ink);
  font-style: normal;
}

/* Headings inside the prose are "smaller headings" per Trevor's rule —
   Times New Roman, bold where needed. Section H2 gets a bit more visual
   weight via bold + tight letter-spacing. */
article.prose h2,
article.prose h3,
article.prose h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  text-wrap: balance;
}
article.prose h2 { font-size: clamp(1.875rem, 2vw + 1rem, 3rem); }
article.prose h3 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); margin-top: 44px; }
article.prose h4 { font-size: 1.25rem; margin-top: 36px; }
article.prose h2 em,
article.prose h3 em,
article.prose h4 em { font-weight: 400; font-style: italic; color: inherit; }
article.prose h2[data-num]::before {
  content: attr(data-num);
  display: block;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 12px;
  font-weight: 500;
}

/* Inline links — subtle accent-colour underline */
article.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
article.prose a:hover { text-decoration-thickness: 3px; }

/* Inline emphasis */
article.prose strong, article.prose b { font-weight: 700; }
article.prose em, article.prose i { font-style: italic; }

/* Blockquote — the mockup's rule-top/rule-bottom treatment */
article.prose blockquote {
  margin: 40px 0;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (min-width: 1000px) {
  article.prose blockquote { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
}
article.prose blockquote b { font-style: normal; font-weight: 700; }
article.prose blockquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-style: normal;
  color: var(--ink-mute);
}

/* Lists */
article.prose ul, article.prose ol {
  margin: 0 0 22px 24px; padding: 0;
}
article.prose li { margin: 0 0 8px; line-height: 1.5; }
article.prose ul li { list-style: disc; }
article.prose ol li { list-style: decimal; }

/* Figures + images */
article.prose img {
  display: block; width: 100%; height: auto;
  margin: 32px 0;
}
article.prose figure { margin: 32px 0; }
article.prose figure img { margin: 0 0 12px; }
article.prose figcaption {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Separators — use them sparingly; mockup style */
article.prose hr {
  border: 0; border-top: 1px solid var(--ink);
  margin: 48px auto; max-width: 120px;
}

/* Buttons (carried through from shortcode migration) */
article.prose .wp-block-button__link,
article.prose a.wp-block-button__link {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  margin: 12px 0;
}
article.prose a.wp-block-button__link:hover {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}

/* oEmbed blocks (YouTube facade comes later — for now, native responsive iframe) */
article.prose .wp-block-embed,
article.prose .wp-block-embed__wrapper,
article.prose iframe {
  max-width: 100%;
  margin: 32px 0;
}
article.prose .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
article.prose .wp-block-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  margin: 0; border: 1px solid var(--rule);
}

/* (Old rail CTA removed — see template-parts/global/speaking-cta.php +
   .ll-speaking-cta in chrome.css for the universal full-width replacement.) */

/* Legacy content buttons — old posts contain bare
   <a class="wp-block-button__link"> anchors WITHOUT the .wp-block-button
   wrapper (artifact of the shortcode conversion), so core button styles
   never attach. Give them the theme button treatment wherever prose renders. */
article.prose a.wp-block-button__link {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 18px;
  margin: 4px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;   /* core injects a pill radius on button links; keep the theme's square look */
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
article.prose a.wp-block-button__link:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* ========= AUTHOR BLOCK (full-width, below keep-going) ========= */
.ll-author-block {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .ll-author-block { grid-template-columns: 220px 1fr; gap: 56px; }
}

.ll-author-block .portrait {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}
.ll-author-block .portrait.has-photo::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px;
  width: 100%; height: 100%;
  background: var(--accent);
  border-radius: 50%;
  z-index: 0;
}
.ll-author-block .portrait.has-photo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  border: 1px solid var(--ink);
  z-index: 2;
  display: block;
}
.ll-author-block .portrait:not(.has-photo) {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.ll-author-block .portrait .mark {
  font-family: var(--sans);
  font-weight: 800; font-style: normal;
  font-size: 96px; letter-spacing: -0.03em;
  color: var(--ink);
}

.ll-author-block .body { max-width: 640px; }
.ll-author-block .role {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.ll-author-block h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 2vw + 1rem, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.ll-author-block h3 em { font-style: normal; font-weight: 800; color: inherit; }
.ll-author-block p {
  font-family: var(--serif);
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.ll-author-block .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ll-author-block .actions .link {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  text-decoration: none;
}
.ll-author-block .actions .link:hover { opacity: 0.7; }

/* ========= KEEP GOING — 3-up at bottom ========= */
.ll-more {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.ll-more-head {
  margin-bottom: 40px;
}
.ll-more-head h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.ll-more-head h2 em {
  font-style: normal;
  font-weight: 800;
  color: inherit;
  display: inline-block;
  line-height: 0.98;
}
.ll-more-head .small {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4px;
  border-top: 1px solid var(--rule);
  display: inline-block;
}
.ll-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .ll-more-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.ll-more-grid article {
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
}
.ll-more-grid article:hover { background: var(--accent); }
.ll-more-grid .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 12px;
}
.ll-more-grid h3 {
  font-family: var(--sans);
  font-weight: 700; font-size: 22px; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.ll-more-grid h3 em { font-style: normal; font-weight: 700; color: inherit; }
.ll-more-grid h3 a { text-decoration: none; color: inherit; }
.ll-more-grid p {
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  color: var(--ink-soft); margin: 0 0 16px;
}
.ll-more-grid .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Note: pull-quote "Learner Lab" style CSS is registered inline via
   register_block_style() in inc/block-styles.php so it auto-loads in both
   the front-end and the Gutenberg editor iframe (for WYSIWYG preview). */
