/* A quiet place to find a guide, understand an idea, and try it. */
.journal-page { --reading-size: 1.125rem; }
.journal-shell { padding-bottom: 3rem; }
.journal-intro { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 3rem; align-items: center; padding-block: 3.5rem 2.5rem; }
.journal-intro h1 { font-size: clamp(2.5rem, 4.7vw, 4.7rem); line-height: 1.05; }
.journal-intro > div:first-child > p:not(.eyebrow) { max-width: 600px; font-size: 1.05rem; color: var(--muted); margin: 1.3rem 0 0; }
.journal-intro-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.journal-intro-art p { text-align: center; color: var(--muted); font-size: .72rem; }
.learning-path { padding: 1.5rem 0 2rem; border-block: 1px solid #d8d7cf; }
.path-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.path-heading h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.path-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.path-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.path-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .9rem; align-items: start; padding: .6rem 0; min-height: 44px; text-decoration: none; }
.path-number { color: #887039; font-size: .75rem; padding-top: .15rem; }
.path-list strong { display: block; font-size: .96rem; font-weight: 500; }
.path-list small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.6; margin-top: .4rem; }
.path-list a:hover strong { text-decoration: underline; text-underline-offset: .3em; }
.guide-browse { padding-top: 3rem; scroll-margin-top: 2rem; }
.browse-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.browse-heading h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.browse-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.guide-tools { border-block: 1px solid #d8d7cf; padding-block: 1.2rem; }
.guide-search-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; }
.guide-search { width: min(100%, 440px); }
.guide-search label { display: block; font-size: .8rem; margin-bottom: .65rem; }
.search-box { display: flex; align-items: center; gap: .5rem; border: 1px solid #a9a18d; border-radius: 4px; padding-inline: .85rem .35rem; }
.search-box:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.search-box input { width: 100%; min-width: 0; flex: 1; min-height: 46px; font: inherit; font-size: .9rem; background: transparent; border: 0; color: var(--ink); padding: .7rem 0; }
.search-box input:focus-visible { outline: 0; }
.clear-search { flex-shrink: 0; white-space: nowrap; border: 0; min-height: 44px; padding: .4rem .6rem; font: inherit; font-size: .75rem; color: var(--muted); background: transparent; cursor: pointer; }
.topic-filters { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1.2rem; }
.topic-button { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; border: 1px solid transparent; border-radius: 999px; padding: .6rem 1rem; background: transparent; color: #57554d; font: inherit; font-size: .8rem; cursor: pointer; }
.topic-button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.topic-button span { font-size: .7rem; opacity: .8; }
.reset-filters { min-height: 44px; border: 0; padding: .5rem .2rem; background: transparent; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .3em; }
.guide-result-count { font-size: .8rem; color: var(--muted); margin: 1.2rem 0 0; min-height: 1.5em; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1rem; }
.guide-card { min-width: 0; padding-block: 1rem 2rem; border-bottom: 1px solid #d8d7cf; }
.guide-card-art { display: block; margin-bottom: 1.5rem; border-bottom: 1px solid #e0dccf; }
.guide-card-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.guide-card .eyebrow { margin-bottom: .7rem; }
.guide-card h3 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.25; }
.guide-card h3 a { display: block; min-height: 44px; text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.guide-card > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.guide-card-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; color: var(--muted); font-size: .73rem; margin-top: 1.25rem; }
.guide-card .text-link { margin-top: .7rem; }
.guide-outcome { border-left: 2px solid #b89b50; padding-left: .85rem; }
.guide-outcome strong { display: block; color: #494538; font-weight: 500; font-size: .74rem; margin-bottom: .25rem; }
.guide-empty { padding: 2.5rem 0; max-width: 600px; }
.guide-empty h3 { font-size: 1.4rem; }
.guide-empty p { color: var(--muted); }
.guide-empty button { margin-top: .5rem; }
.journal-footer { padding-block: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.journal-footer h2 { font-size: 1.7rem; }
.journal-footer p { color: var(--muted); margin: .7rem 0 0; }
.reading-progress { position: fixed; z-index: 30; inset: 0 0 auto; height: 3px; background: #e2ddd0; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #92732d; }
.guide-header { display: grid; grid-template-columns: minmax(0, 800px) minmax(100px, 200px); gap: 3rem; align-items: center; padding-block: 2.5rem; }
.guide-header h1 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.08; }
.guide-header .guide-deck { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: 680px; margin-top: 1.4rem; }
.guide-header-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.guide-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .78rem; margin-top: 1.5rem; }
.reader-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.reader-action { min-height: 44px; padding: .6rem .9rem; border: 1px solid #c8c1ae; border-radius: 3px; font: inherit; font-size: .78rem; color: #48463e; background: transparent; cursor: pointer; }
.reader-action[aria-pressed=true] { color: var(--ink); background: #ebe6d7; border-color: #958354; }
.copy-status { min-height: 1.4em; font-size: .76rem; color: var(--muted); margin: .75rem 0 0; }
.copy-fallback { margin-top: .75rem; }
.copy-fallback label { display: block; font-size: .8rem; margin-bottom: .5rem; }
.copy-fallback input { width: 100%; max-width: 580px; padding: .7rem; border: 1px solid #aaa18a; border-radius: 3px; background: transparent; font: inherit; font-size: .85rem; color: var(--ink); }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 740px); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: 1.5rem 3rem; border-top: 1px solid #d8d7cf; }
.guide-sidebar { position: sticky; top: 2rem; }
.guide-contents { border-bottom: 1px solid #d8d7cf; }
.guide-contents summary { min-height: 44px; padding: .6rem 0; font-size: .8rem; cursor: pointer; }
.guide-contents summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.guide-outline { display: grid; gap: .2rem; margin-block: .8rem 1.3rem; }
.guide-outline a { min-height: 44px; padding: .65rem .7rem; border-left: 2px solid transparent; color: var(--muted); font-size: .8rem; line-height: 1.55; text-decoration: none; }
.guide-outline a[aria-current=location] { border-color: #a2853d; background: #efebdd; color: var(--ink); }
.guide-sidebar > p { color: var(--muted); font-size: .76rem; margin-top: 1.2rem; }
.guide-content { min-width: 0; max-width: 68ch; font-size: var(--reading-size); line-height: 1.85; }
.guide-content p, .guide-content li { color: #41413a; font-size: 1em; line-height: 1.85; }
.guide-content p { margin: 1.2em 0; }
.guide-content > section { margin-bottom: 2.6rem; }
.guide-content h2 { font-size: 1.65em; line-height: 1.25; margin: 2.5rem 0 1rem; }
.guide-content h3 { font-size: 1.15em; line-height: 1.35; margin-top: 1.6rem; }
.guide-content h2:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.guide-content li { margin-block: .6rem; padding-left: .2rem; }
.guide-content ul, .guide-content ol { padding-left: 1.4em; }
.guide-summary { padding: 1.3rem 1.5rem; border-left: 2px solid #b29343; background: #f1eee1; margin-bottom: 2.3rem; }
.guide-summary h2 { margin: 0 0 .8rem; font-size: 1.15em; }
.guide-summary ul { margin-block: 0; }
.guide-summary li { font-size: .95em; margin-block: .5rem; }
.worked-example { padding: 1.2rem 1.4rem; border: 1px solid #d3ccb9; margin-block: 1.6rem; }
.worked-example .eyebrow { font-size: .65em; color: #78643b; }
.worked-example p:last-child { margin-bottom: 0; }
.worked-example p:first-child { margin-top: 0; }
.guide-pitfall { padding: 1rem 0 1rem 1.1rem; border-left: 2px solid #a79d80; margin: 1.5rem 0; }
.guide-pitfall strong { display: block; font-size: .85em; margin-bottom: .5rem; }
.guide-pitfall p { margin: 0; font-size: .95em; }
.guide-takeaway { border-block: 1px solid #cfc6ad; padding-block: 1.2rem; font-size: 1.15em; line-height: 1.65; margin: 2.5rem 0; }
.guide-next { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid #d8d7cf; text-decoration: none; color: inherit; }
.guide-next .eyebrow { margin: 0 0 .7rem; }
.guide-next h2 { margin: 0; font-size: 1.4em; }
.guide-next p { font-size: .85em; color: var(--muted); margin: .8rem 0 0; }
.guide-next > span { align-self: center; font-size: 1.7rem; }
.guide-next:hover h2 { text-decoration: underline; text-underline-offset: .2em; }
.guide-end-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1rem; }
.journal-page.reader-large { --reading-size: 1.375rem; }
.journal-page .header-cta { white-space: normal; }

@media (max-width: 56em) {
  .journal-intro { grid-template-columns: minmax(0, 1fr) 150px; gap: 1.5rem; }
  .guide-header { grid-template-columns: minmax(0, 1fr) 130px; gap: 1.5rem; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guide-sidebar { position: static; }
  .guide-sidebar > p { display: none; }
  .guide-content { max-width: 68ch; width: 100%; margin-inline: auto; }
  .guide-grid { gap: 1.3rem; }
}
@media (max-width: 42em) {
  .journal-intro { grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 2rem; }
  .journal-intro-art { display: none; }
  .journal-intro h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .path-list { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .path-heading, .browse-heading, .journal-footer { align-items: start; flex-direction: column; gap: .6rem; }
  .learning-path { padding-block: 1.3rem; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card { display: grid; grid-template-columns: minmax(0, 1fr); }
  .guide-card-art { max-width: 380px; }
  .guide-header { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 1.2rem; }
  .guide-header-art { display: none; }
  .guide-header h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .guide-header .guide-deck { font-size: 1rem; }
  .guide-summary, .worked-example { padding: 1rem; }
  .guide-content h2 { font-size: 1.45em; }
  .guide-next { gap: .8rem; }
  .guide-next h2 { font-size: 1.25em; }
  .topic-button { padding: .6rem .8rem; }
}
@media print {
  .journal-page .site-header, .journal-page .site-footer, .guide-sidebar,
  .reader-actions, .reading-progress, .copy-status, .guide-next, .guide-end-links { display: none !important; }
  .guide-header, .guide-layout { display: block; padding: 0; border: 0; }
  .guide-header-art { display: none; }
  .guide-content { max-width: none; }
  .guide-content h2 { break-after: avoid; }
}
