/* Inner pages in the homepage style (WEB-014). Loaded after styles.css or session.css, after tokens.css. */

/* Header: the homepage's white bar, mark and wordmark, links and Enter the garden. */
.topbar { position: relative; z-index: 2; background: var(--site-bg); font-family: var(--site-body); }
.topbar__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 20px; max-width: 1280px; margin: 0 auto; padding: 24px 32px; }
.topbar__brand { display: flex; align-items: center; gap: 12px; color: var(--site-ink); font: 30px/1.2 var(--site-display); letter-spacing: -.025em; text-decoration: none; }
.topbar__brand img { width: 40px; height: 40px; }
.topbar__links { order: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; width: 100%; }
.topbar__links a { display: flex; align-items: center; min-height: 44px; color: var(--site-muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.topbar__links a:hover, .topbar__links a[aria-current] { color: var(--site-ink); }
.topbar__links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.topbar__cta { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 999px; background: var(--site-accent); color: var(--site-on-accent); font-size: 14px; text-decoration: none; transition: transform .2s; }
.topbar__cta:hover { background: var(--site-accent-hover); transform: scale(1.03); }
/* The menu sits inline only when all six items fit beside the brand and button. */
@media (min-width: 1180px) {
  .topbar__links { order: 0; width: auto; gap: 32px; }
}

/* Footer: the homepage footer. */
.footer { display: flex; flex-direction: column; align-items: center; padding: 64px 32px 40px; border-top: 1px solid var(--site-line); background: var(--site-bg); color: var(--site-ink); font-family: var(--site-body); text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--site-ink); font: 32px/1.2 var(--site-display); text-decoration: none; }
.footer-brand img { width: 40px; height: 40px; }
.footer p { max-width: 540px; margin: 24px 0; color: var(--site-muted); font: italic 28px/1.3 var(--site-display); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 10px 0 30px; font-size: 13px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--site-muted); text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: var(--site-ink); }
.footer small { color: var(--site-muted); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 640px) {
  .topbar__nav { padding-inline: 24px; }
  .footer { padding-inline: 24px; }
  .footer nav { gap: 4px 24px; }
}

/* CoJourner, the Planted. hub and the 404 page (body class "inner"), restyling styles.css. */
.inner {
  --olive: var(--site-ink); --ink: var(--site-ink); --paper: var(--site-bg); --clay: var(--site-ink);
  background: var(--site-bg); color: var(--site-ink); font-family: var(--site-body); font-size: 16px; line-height: 1.8;
}
.inner :is(h1, h2, h3) { font-family: var(--site-display); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; color: var(--site-ink); }
.inner h1 { font-size: clamp(3.4rem, 8vw, 6.5rem); }
.inner h2 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
.inner :is(h1, h2) em { color: var(--site-soft); }
.inner :is(p, li, small) { color: var(--site-muted); }
.inner strong { color: var(--site-ink); }
.inner a:focus-visible, .inner summary:focus-visible { outline: 2px solid var(--site-ink); outline-offset: 5px; }
.inner :is(.serif, .lines, .pull, blockquote, .summary-line, .way-note, .available-list strong, .chapter summary, .session-card a, .session-card strong) { font-family: var(--site-display); }
.inner :is(cite, .eyebrow, .arc-step, .chapter-number, .chapter-status, .passage, .badge, .button, .story-arc small, .journey-note) { font-family: var(--site-body); }
.inner .chapter summary::after { font-family: var(--site-body); }
.inner :is(.eyebrow, .arc-step) { font-size: 12px; font-weight: 500; letter-spacing: .18em; line-height: 1.7; color: var(--site-muted); }
.inner cite { color: var(--site-muted); font-weight: 500; letter-spacing: .14em; }

/* Heroes: black type over the mountain still faded to white, as on the homepage. */
.inner :is(.page-hero, .planted-hero) { color: var(--site-ink); background: linear-gradient(var(--site-bg) 0%, color-mix(in srgb, var(--site-bg) 85%, transparent) 40%, color-mix(in srgb, var(--site-bg) 70%, transparent) 75%, var(--site-bg) 100%), url('/images/hero-still.jpg') center 60% / cover; }
.inner .planted-hero h1 { font-size: clamp(5rem, 12vw, 10rem); }
.inner .planted-hero h1 span { color: var(--site-highlight); }
.inner :is(.page-hero, .planted-hero) .serif { color: var(--site-ink); font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.inner .page-hero blockquote, .inner .page-hero blockquote p { color: var(--site-muted); }
.inner .planted-hero .quiet-link { color: var(--site-ink); }

/* Surfaces, rules and cards. */
.inner :is(.band, .way) { background: var(--site-surface); }
.inner .story-section { background: var(--site-surface-alt); }
.inner .start-study { background: var(--site-surface); color: var(--site-ink); }
.inner .start-study h2 { color: var(--site-ink); }
.inner .movement-cards article { background: var(--site-bg); border: 1px solid var(--site-line); border-radius: 20px; }
.inner .movement-cards blockquote { border-top-color: var(--site-line); }
.inner .pull { border-left: 1px solid var(--site-ink); }
.inner .contrasts li::marker { color: var(--site-muted); }
.inner .available-list a { background: var(--site-bg); border: 1px solid var(--site-line); border-radius: 20px; transition: border-color .2s, transform .2s; }
.inner .available-list a:hover { background: var(--site-bg); border-color: var(--site-hover-line); transform: translateY(-2px); }
.inner .available-list small { color: var(--site-muted); }
/* Draw the story grid with cell borders so an empty last cell stays white. */
.inner .story-arc { gap: 0; background: none; border: 0; border-top: 1px solid var(--site-line); border-left: 1px solid var(--site-line); }
.inner .story-arc li { background: var(--site-bg); border-right: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
.inner :is(.principles, .study-rhythm) { border-color: var(--site-line); }
.inner :is(.chapter, .road-end) { border-color: var(--site-line); }
.inner .chapter li { background: var(--site-surface); border-radius: 16px; }
.inner :is(.chapter-number, .chapter-status, .passage, .story-arc small, .journey-note, .session-line, .status) { color: var(--site-muted); }
.inner .session-card strong { color: var(--site-muted); }
.inner .pathways .small { color: var(--site-muted); }

/* Buttons, links and badges. */
.inner :is(.button, .button.cream) { gap: 12px; min-height: 0; padding: 16px 28px; border: 1px solid var(--site-accent); border-radius: 999px; background: var(--site-accent); color: var(--site-on-accent); font-size: 14px; font-weight: 400; transition: transform .2s, background .2s; }
.inner :is(.button, .button.cream):hover { background: var(--site-accent-hover); transform: scale(1.03); }
.inner :is(.text-link, .quiet-link) { color: var(--site-ink); font-weight: 500; }
.inner .badge { border: 1px solid var(--site-accent); border-radius: 999px; background: var(--site-accent); color: var(--site-on-accent); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.inner .badge.pending { border-color: var(--site-line-strong); background: var(--site-bg); color: var(--site-quiet); }

/* styles.css sets these lines in Playfair Display with a more specific selector; keep them in the site's display face. */
.inner .prose > p.summary-line:not(.eyebrow) { font-family: var(--site-display); }

/* CoJourner movement icons from the source document (decorative). */
.inner .movement-icon { margin-right: 6px; font-size: 18px; letter-spacing: 0; }

/* Planted. hub: keep the roadmap and the pathways note clear of the neighbouring bands' waves, which paint outside each band (waves.css). */
.inner .journey { padding-top: calc(var(--wave-height) + 25px); }
.inner .pathways { padding-bottom: calc(var(--wave-height) + 24px); }

/* 404 page: space the two actions apart. */
.inner .closing .text-link { margin-left: 16px; }

@media (prefers-reduced-motion: reduce) {
  .topbar__cta, .inner .button, .inner .available-list a { transition: none; }
  .topbar__cta:hover, .inner .button:hover, .inner .available-list a:hover { transform: none; }
}
