/* ==========================================================================
   Guide pages: /about, /introduction, /exercises/, /meditations/*.
   Reading pages that sit beside the app. Colour and type come from
   tokens.css; the header and footer echo the home page's wordmark, nav and
   quiet footer so moving between the two doesn't feel like a different site.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink-80);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

/* --- Header: wordmark + nav, same voice as the home hero --- */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.7);
  text-decoration: none;
}
.wordmark:hover { color: var(--night-ink); }
header nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
header nav a {
  font-size: 12.5px;
  color: var(--ink-62);
  text-decoration: none;
  transition: color 0.2s ease;
}
header nav a:hover, header nav a[aria-current] { color: var(--night-ink); }

/* --- Type --- */
main { padding: 56px 0 64px; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--night-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 20px; }
h2 { font-size: 30px; margin: 52px 0 12px; }
h3 { font-size: 22px; }
p, li { overflow-wrap: anywhere; text-wrap: pretty; }
.lead { font-size: 19px; line-height: 1.6; color: var(--night-ink); max-width: 38em; }
.small { font-size: 13px; color: var(--ink-55); }

a {
  color: var(--night-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { border-bottom-color: var(--amber); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
header a, .action, .directory a { border-bottom: 0; }

/* --- Primary action: the home page's amber pill --- */
.action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 12px 0 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--amber);
  color: #14151A;
  font-size: 14px;
  font-weight: 600;
}
.action:hover { background: var(--amber-hover); color: #14151A; }

/* Session facts line: reads like the home page's kicker */
.facts {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* --- Directory lists (exercises, meditations, related tools) --- */
.directory {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--rule-strong);
}
.directory li {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.directory a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--night-ink);
}
.directory a:hover { color: var(--amber-hover); }
.dir-meta {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-45);
}
.directory p { margin: 4px 0 0; font-size: 15px; color: var(--ink-62); }

/* --- Transcript: the spoken lines, spaced like pauses --- */
.transcript {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--rule-strong);
}
.transcript p {
  margin: 1.2rem 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--night-ink);
}

details { margin: 20px 0; }
summary { cursor: pointer; padding: 12px 0; }
dt { font-weight: 600; color: var(--night-ink); }
dd { margin: 0 0 16px; }

/* --- Footer: the home page's quiet small print --- */
footer {
  padding: 20px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(242, 241, 238, 0.4);
}
footer p { margin: 0 0 8px; max-width: 68ch; }
footer .small { font-size: inherit; color: rgba(242, 241, 238, 0.5); }

@media (max-width: 700px) {
  main { padding: 40px 0 48px; }
  h2 { font-size: 26px; }
  .directory a { font-size: 22px; }
  .transcript p { font-size: 19px; }
}
