/*
  01-base.css
  Base typography, page background and the shared layout primitives:
  the full width band and the 1200px container used by every section.
  Edit here for global font sizes or the default section rhythm.
*/

body {
  font-family: var(--tm-font);
  background: var(--tm-bg);
  color: var(--tm-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dark mode insurance for the page canvas: the plain body rule above
   can lose to Astra's own body and container backgrounds, which left
   white side margins beside the content column in the first live
   dark mode check on 2026-11-20. The blog restyle check on
   2026-11-21 found the same problem one level deeper, in Astra's
   separate container article wrapper and the primary content column
   on the single post page, so both are pinned here too. The article
   selector must include .ast-separate-container to win: Astra's own
   rule adds a :not() class, which outranks a plainer selector.
   Scoped to dark mode only, so light mode output is unchanged. */
html[data-theme="dark"] body,
html[data-theme="dark"] #content,
html[data-theme="dark"] .ast-container,
html[data-theme="dark"] #primary,
html[data-theme="dark"] .ast-separate-container .ast-article-single {
  background-color: var(--tm-bg);
}

h1, h2, h3, h4 {
  font-family: var(--tm-font);
  color: var(--tm-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

p { line-height: 1.65; }

a { color: var(--tm-primary); text-decoration: none; }
a:hover { color: var(--tm-primary-dark); }

::selection { background: var(--tm-primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--tm-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Full width band: the background stretches edge to edge. */
.tm-band {
  width: 100%;
  padding: 76px 0;
  background: var(--tm-bg);
}
/* Alternating bands carry a soft gradient into the primary tint so
   long pages feel richer than flat colour. Both stops are tokens, so
   dark mode gets its own deep version automatically. */
.tm-band-soft { background: linear-gradient(170deg, var(--tm-bg-soft) 55%, var(--tm-primary-tint)); }
.tm-band-tint { background: linear-gradient(170deg, var(--tm-bg-band) 45%, var(--tm-primary-tint)); }

/* Contained content: everything inside a band aligns on this grid. */
.tm-container {
  max-width: var(--tm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

.tm-section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.tm-section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 12px;
}
.tm-section-head p {
  color: var(--tm-ink-soft);
  font-size: 1.06rem;
  margin: 0;
}
.tm-section-head-left { margin-left: 0; text-align: left; }

.tm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-primary);
  background: var(--tm-primary-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Standard page body copy, used by page.php for About and Contact */
.tm-page-body { font-size: 1.03rem; }
.tm-page-body p { color: var(--tm-ink-soft); margin: 0 0 1.25em; }
.tm-page-body h2 { font-size: 1.45rem; margin: 1.5em 0 0.5em; }
.tm-page-body h2:first-child { margin-top: 0; }
.tm-page-body ul, .tm-page-body ol { color: var(--tm-ink-soft); line-height: 1.7; margin: 0 0 1.25em; padding-left: 1.3em; }
.tm-page-body strong { color: var(--tm-ink); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
