/* The public Journal uses the site's existing paper/charcoal/teal palette and
   Georgia headings. journal_base.html loads this after style.css and landing.css.
   Every new selector begins with journal- to avoid moving the practice room.
   The author sign-off uses one locally served font; essays need no scripts,
   animation or frontend build. */

/* Serve the signature font from our own app so reading an essay makes no
   third-party font request. Swap keeps the author's name visible while it loads.
   The original font and its licence live together in vendor/allura/. */
@font-face {
  font-family: "Allura";
  src: url("/static/vendor/allura/Allura-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Journal index: a short masthead, generous essay cards, then a useful
   next action. The site-wide landing-width sets the same outer gutters. */
.journal-index { padding-block: 65px 74px; }
.journal-introduction { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 46px; }
.journal-introduction .landing-kicker { margin-bottom: 15px; }
.journal-introduction h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.12; letter-spacing: -2.3px; margin: 0 0 15px; }
.journal-introduction h1 em { color: var(--teal-strong); }
.journal-introduction > div > p:last-child { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.journal-margin-mark { color: var(--ochre); font: 82px/1 var(--serif); padding-right: 17px; }

/* The featured essay looks like a small publication spread. Keeping the text
   and drawing in separate columns prevents an image from competing with copy. */
.journal-feature { display: grid; grid-template-columns: 1.25fr 1fr; border-block: 1px solid var(--line-strong); }
/* Separate complete essays so the index reads as two deliberate invitations. */
.journal-feature + .journal-feature { margin-top: 36px; }
.journal-feature-copy { padding: 47px 54px 43px 0; }
.journal-feature-copy .landing-kicker { margin-bottom: 20px; }
.journal-feature-copy h2 { font-size: clamp(36px, 3.7vw, 48px); line-height: 1.12; letter-spacing: -1.7px; max-width: 530px; margin-bottom: 24px; }
.journal-feature-copy h2 a:hover { color: var(--teal-strong); }
.journal-feature-excerpt { max-width: 440px; color: var(--body-text); font-size: 15px; line-height: 1.8; margin-bottom: 26px; }
.journal-byline { display: grid; gap: 4px; font-size: 12px; }
.journal-byline > span:last-child { color: var(--muted); font-size: 11px; }
.journal-read-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(100%, 235px); color: var(--teal-strong); border-bottom: 1px solid var(--teal-line); padding-block: 24px 10px; font-size: 13px; }
.journal-read-link > span { font-size: 22px; line-height: 1; }
.journal-read-link:hover { border-color: var(--teal-strong); }

/* This static vector is a metaphor for selecting a helpful next intervention,
   not data or a learner map. Accent colours remain decoration; text uses strong
   ivory-on-charcoal contrast. The vector sizes itself to the available column. */
.journal-feature-art { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 30px 25px; background: var(--ink); color: var(--paper); }
.journal-art-eyebrow { position: absolute; top: 28px; left: 28px; font-size: 8px; letter-spacing: 2px; color: var(--ochre-mid); }
.journal-branch-drawing { width: min(100%, 400px); height: auto; margin-top: 16px; }
.journal-art-orbit { stroke: var(--paper); stroke-opacity: .12; stroke-width: 1; }
.journal-art-orbit.inner-orbit { stroke-dasharray: 2 7; }
.journal-art-path, .journal-art-choice { stroke: var(--ochre-mid); stroke-width: 2; stroke-linecap: round; }
.journal-art-option { stroke: var(--teal-line); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-opacity: .6; }
.journal-art-start, .journal-art-chosen { fill: var(--ochre-mid); }
.journal-art-end { stroke: var(--teal-line); stroke-width: 1.5; }
.journal-art-center { fill: var(--ink); stroke: var(--ochre-mid); }
.journal-art-spark { stroke: var(--ochre-mid); stroke-width: 1.5; stroke-linecap: round; }
.journal-feature-art > p { text-align: center; font: 27px/1.3 var(--serif); margin: -9px 0 10px; }
.journal-feature-art > p em { color: var(--ochre-mid); }

/* The closing line stays quiet after the complete essays, without empty cards
   or a newsletter form that cannot accept signups. */
.journal-index-signoff { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 40px; }
.journal-index-signoff > p { margin: 0; font: 22px/1.4 var(--serif); }
.journal-index-signoff > p em { color: var(--teal-strong); }
.journal-index-signoff > a { font-size: 13px; }

/* Article headline and byline occupy a generous width. The reading text below
   stays capped near 700px; long lines make a sustained essay harder to follow. */
.journal-article { padding-block: 37px 78px; }
.journal-back-link { display: inline-flex; align-items: center; gap: 11px; color: var(--teal-strong); font-size: 12px; }
.journal-back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal-article-header { max-width: 930px; padding-bottom: 35px; margin: 0 auto 47px; border-bottom: 1px solid var(--line-strong); }
.journal-article-header > .journal-back-link { margin-bottom: 38px; }
.journal-article-header .landing-kicker { margin-bottom: 18px; }
.journal-article-header h1 { max-width: 900px; margin: 0 0 21px; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -2.8px; }
.journal-article-subtitle { font: italic 24px/1.4 var(--serif); color: var(--teal-strong); margin: 0 0 32px; }
.journal-article-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; font-size: 13px; }
.journal-article-byline > div { display: flex; align-items: center; gap: 12px; }
.journal-article-byline small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.journal-article-byline > span { color: var(--muted); font-size: 11px; text-align: right; line-height: 1.8; }
.journal-author-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--teal-line); color: var(--teal-strong); border-radius: 50%; font: italic 16px/1 var(--serif); }

/* A small contents rail provides orientation on large screens. Sticky keeps it
   within this article, rather than covering the site header or footer. */
.journal-article-layout { display: grid; grid-template-columns: 184px minmax(0, 690px); align-items: start; gap: 56px; max-width: 930px; margin: 0 auto; }
.journal-contents { position: sticky; top: 28px; padding-top: 8px; }
.journal-contents > p { font-size: 9px; color: var(--muted); letter-spacing: 1.6px; margin-bottom: 14px; }
.journal-contents nav { display: grid; gap: 16px; }
.journal-contents a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 11px; line-height: 1.6; }
.journal-contents a > span { color: var(--ochre-strong); font: italic 12px/1.6 var(--serif); }
.journal-contents a:hover { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 4px; }

/* Comfortable reading rhythm: sans-serif body, serif section headings and one
   emphasized thesis. Section IDs receive space above when an anchor is opened. */
.journal-prose { min-width: 0; font-size: 17px; line-height: 1.85; color: var(--body-text); }
.journal-prose p { margin-bottom: 22px; }
.journal-prose .journal-lead { font: 27px/1.45 var(--serif); letter-spacing: -.4px; color: var(--ink); margin-bottom: 26px; }
.journal-prose strong { color: var(--ink); font-weight: 650; }
.journal-prose section { scroll-margin-top: 30px; margin-top: 47px; }
.journal-prose h2 { font: 33px/1.22 var(--serif); letter-spacing: -.8px; color: var(--ink); margin-bottom: 25px; }
.journal-prose .journal-pull-line { padding: 21px 0 21px 25px; margin: 32px 0; border-left: 2px solid var(--teal); color: var(--teal-strong); font: 27px/1.4 var(--serif); letter-spacing: -.3px; }

/* A quiet, left-aligned signature closes the founder's argument before the
   product invitation. Only the name is cursive; the role stays easy to read.
   The fluid size fits phone widths, with natural wrapping at large text zoom. */
.journal-signoff { margin-top: 34px; padding-block: 8px; }
.journal-prose .journal-signature { margin: 0; color: var(--teal-strong); font: 400 clamp(34px, 4vw, 46px)/1.3 "Allura", "Snell Roundhand", "Apple Chancery", cursive; }
.journal-prose .journal-signature-role { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Author links inherit each context's typography, including the cursive
   sign-off. Underlining on hover or keyboard focus reveals the link without
   permanently drawing a line through the handwritten signature. */
.journal-page a.journal-author-link { color: inherit; font: inherit; text-decoration: none; }
.journal-page a.journal-author-link:hover,
.journal-page a.journal-author-link:focus-visible { text-decoration: underline; text-underline-offset: .15em; }

/* The invitation names the existing public challenge and remains a normal link.
   This is not a hidden signup wall or an automatically started coach session. */
.journal-article-cta { margin-top: 50px; padding: 31px 26px; text-align: center; background: var(--surface-soft); border: 1px solid var(--line); }
.journal-cta-star { color: var(--ochre); font-size: 30px; }
.journal-article-cta > p { font: 29px/1.25 var(--serif); color: var(--ink); margin: 12px 0 23px; }
.journal-article-cta > p em { color: var(--teal-strong); }
.journal-article-cta .landing-button { font-size: 12px; }
.journal-article-cta > small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; }
.journal-back-bottom { margin-top: 31px; }

/* Tablets put the contents above the text; phones stack the feature and reduce
   headline sizes. No fixed minimum width forces horizontal page scrolling. */
@media (max-width: 950px) {
  .journal-feature-copy { padding-right: 30px; }
  .journal-feature-art { padding-inline: 18px; }
  .journal-article-layout { display: block; max-width: 690px; }
  .journal-article-header { max-width: 690px; }
  .journal-contents { position: static; padding: 0 0 23px; margin-bottom: 31px; border-bottom: 1px solid var(--line); }
  .journal-contents nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
  .journal-contents a { display: flex; }
}
@media (max-width: 650px) {
  .journal-index { padding-block: 37px 45px; }
  .journal-introduction { margin-bottom: 30px; }
  .journal-introduction h1 { font-size: 42px; letter-spacing: -1.6px; }
  .journal-introduction > div > p:last-child { font-size: 13px; max-width: 285px; }
  .journal-margin-mark { display: none; }
  .journal-feature { grid-template-columns: minmax(0, 1fr); }
  .journal-feature-copy { padding: 30px 0; }
  .journal-feature-copy h2 { font-size: 38px; letter-spacing: -1.2px; }
  .journal-feature-excerpt { font-size: 14px; }
  .journal-feature-art { min-height: 260px; padding: 25px; }
  .journal-art-eyebrow { top: 20px; left: 20px; }
  .journal-branch-drawing { max-width: 280px; margin-top: 3px; }
  .journal-feature-art > p { font-size: 23px; margin-top: -23px; }
  .journal-index-signoff { padding-top: 29px; }
  .journal-article { padding-block: 24px 45px; }
  .journal-article-header { margin-bottom: 28px; padding-bottom: 25px; }
  .journal-article-header > .journal-back-link { margin-bottom: 28px; }
  .journal-article-header h1 { font-size: 43px; line-height: 1.09; letter-spacing: -1.5px; }
  .journal-article-subtitle { font-size: 21px; margin-bottom: 25px; }
  .journal-article-byline > span { text-align: left; }
  .journal-contents nav { display: grid; gap: 10px; }
  .journal-prose { font-size: 16px; line-height: 1.85; }
  .journal-prose .journal-lead { font-size: 25px; }
  .journal-prose h2 { font-size: 29px; }
  .journal-prose .journal-pull-line { padding-left: 20px; font-size: 25px; }
  .journal-prose section { margin-top: 37px; }
  .journal-article-cta { padding: 27px 16px; }
  .journal-article-cta .landing-button { max-width: 100%; padding-inline: 15px; }
}

/* The credit page reuses the reading column. Native disclosures keep the long
   attribution list compact and usable with a keyboard, without JavaScript. */
.journal-licences { max-width: 760px; margin-inline: auto; }
.journal-licences details { padding-block: 14px; border-bottom: 1px solid var(--line-strong); }
.journal-licences summary { cursor: pointer; font-weight: 600; }
.journal-licences details p { margin: 12px 0; }
.journal-licences a { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 3px; }
