/* ================================================================
   sky-pages.css — brings every inner page (training, command center,
   about, onsite, blog) onto the "Sky" look of the homepage.
   Loaded LAST on those pages, after styles.css and each page's own
   <style>, so it re-maps the old tokens and overrides the old chrome.
   Homepage uses sky.css instead. Keep the tokens in both files in sync.
   ================================================================ */

:root {
  --sky-top:   oklch(0.69 0.115 247);
  --sky-mid:   oklch(0.79 0.085 240);
  --sky-pale:  oklch(0.91 0.04 232);
  --page:      oklch(0.985 0.006 232);
  --wash:      oklch(0.955 0.022 235);
  --ink-soft:  oklch(0.43 0.035 256);
  --ink-quiet: oklch(0.52 0.035 256);
  --line:      oklch(0.21 0.035 256 / 0.13);
  --sun:       oklch(0.91 0.15 96);
  --accent:    oklch(0.5 0.15 252);
  --serif: 'Ibarra Real Nova', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* old tokens, re-mapped */
  --bg:           var(--page);
  --ink:          oklch(0.21 0.035 256);
  --ink-dim:      var(--ink-quiet);
  --gold:         var(--sun);
  --gold-bg:      oklch(0.91 0.15 96 / 0.25);
  --white:        #fff;
  --dark:         var(--wash);
  --border:       var(--line);
  --border-light: var(--line);
  --font-display: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { overflow-x: visible; }
body {
  position: relative; z-index: 0;
  background: var(--page); color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::-webkit-scrollbar { width: auto; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.21 0.035 256 / 0.25); border-radius: 99px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* emphasis: italic serif in the text colour, same as the homepage */
body em {
  font-family: var(--serif) !important; font-style: italic !important; font-weight: 400 !important;
  color: inherit !important; letter-spacing: -0.01em;
}

/* ── Sky band behind the top of every page ───────────────── */
body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; z-index: -1;
  height: min(820px, 96vh);
  background:
    linear-gradient(to bottom, oklch(0.985 0.006 232 / 0.22) 0%, oklch(0.985 0.006 232 / 0.4) 42%, var(--page) 94%),
    url('/sky.jpg') center 30% / cover no-repeat;
  pointer-events: none;
}
.t-hero, .cc-hero { background: transparent !important; }
.t-hero::before, .cc-hero::before { display: none !important; }
.t-hero, .cc-hero { padding-top: 9.5rem !important; }
.blog-hero { padding-top: 9.5rem !important; }
.article-head { padding: 9.5rem 1.5rem 0 !important; }
.t-sub, .blog-hero p, .cc-hero p { color: var(--ink) !important; }
.t-pill, .cc-pill, .kicker {
  text-transform: none !important; letter-spacing: 0 !important; font-size: 0.95rem !important; font-weight: 500 !important;
  color: var(--ink) !important; border-color: oklch(0.21 0.035 256 / 0.25) !important;
  background: oklch(0.985 0.006 232 / 0.55);
}
.kicker { padding: 0.35rem 0.9rem; border: 1px solid oklch(0.21 0.035 256 / 0.25); border-radius: 999px; }
.t-pill .dot, .cc-pill .dot, .kicker::before { background: var(--ink) !important; }

/* the old section index labels ("/01 Why now") are dropped for air */
.corner { display: none !important; }

/* ── Old nav out, pill nav in ────────────────────────────── */
#nav, #mobile-nav { display: none !important; }
.pill {
  position: fixed; top: 1.1rem; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.3rem;
  background: oklch(0.19 0.03 256 / 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px oklch(0.21 0.035 256 / 0.55);
  white-space: nowrap;
}
.pill a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 450; text-decoration: none;
  color: oklch(0.86 0.02 240);
  padding: 0.42rem 0.85rem; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.pill a:hover { color: #fff; }
.pill a.on { background: oklch(0.91 0.15 96 / 0.2); color: var(--sun); }
.pill a.call { background: var(--page); color: var(--ink); font-weight: 500; margin-left: 0.2rem; }
.pill a.call:hover { background: var(--sun); color: var(--ink); }
@media (max-width: 760px) { .pill .wide { display: none; } }
@media (max-width: 620px) { .pill a { font-size: 0.9rem; padding: 0.42rem 0.7rem; } }
@media (max-width: 380px) { .pill a { font-size: 0.86rem; padding: 0.4rem 0.55rem; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-solid, .obtn, .btn-gold, .pbtn {
  background: var(--ink) !important; color: var(--page) !important;
  border-radius: 999px !important; font-weight: 500 !important;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s !important;
}
.btn-solid:hover, .obtn:hover, .btn-gold:hover, .pbtn:hover { background: var(--sun) !important; color: var(--ink) !important; transform: translateY(-2px); }
.btn-outline, .btn-outline-light { border-radius: 999px !important; border-color: var(--ink) !important; color: var(--ink) !important; }

/* ── Sections: more air, soft sky wash instead of black ──── */
section.t, section.cc { padding: clamp(6rem, 14vh, 10rem) 0 !important; border-top: 0 !important; }
.wcard, .step, .ocard, .pcard, .post-card, .qual { border-radius: 22px !important; }
.post-card:hover, .card:hover { border-color: oklch(0.21 0.035 256 / 0.35) !important; }
.tag, .tag-dark, .tag-gold { border-radius: 999px !important; color: var(--ink-soft) !important; background: oklch(0.21 0.035 256 / 0.05) !important; border-color: var(--line) !important; }

/* ── Closing sections: the sky comes back ────────────────── */
.t-final, .cc-final, .blog-footer {
  background:
    linear-gradient(to bottom, var(--page) 0%, oklch(0.985 0.006 232 / 0.55) 30%, oklch(0.985 0.006 232 / 0.2) 70%),
    url('/sky.jpg') center bottom / cover no-repeat !important;
}
.t-final, .cc-final { padding-top: clamp(8rem, 18vh, 12rem) !important; }
.t-final p, .cc-final p { color: var(--ink) !important; }
.foot-bottom { border-top-color: oklch(0.21 0.035 256 / 0.2) !important; }
.foot-bottom a, .foot-meta, .blog-footer a, .blog-footer p { color: var(--ink) !important; font-size: 0.95rem !important; font-weight: 450; }
.foot-bottom a:hover, .blog-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.blog-footer { padding: 9rem 0 2.2rem !important; margin-top: 6rem !important; }

/* ── Blog ────────────────────────────────────────────────── */
.blog-rule { display: none; }
.prose a, .author .bio a { border-bottom-color: var(--accent) !important; }
.prose a:hover { background: oklch(0.5 0.15 252 / 0.1) !important; }
.prose ul li::before { background: var(--accent) !important; }
.prose blockquote::before { color: var(--accent) !important; }
.author .ava { background: var(--ink) !important; color: var(--page) !important; }
.article-cta { border-radius: 26px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* articles: a shorter sky so long-form text sits on a clean page */
body:has(.article-head)::before {
  height: 430px;
  background:
    linear-gradient(to bottom, oklch(0.985 0.006 232 / 0.3) 0%, oklch(0.985 0.006 232 / 0.62) 50%, var(--page) 96%),
    url('/sky.jpg') center 22% / cover no-repeat;
}
.article-meta .tag, .post-card .tag { background: oklch(0.985 0.006 232 / 0.7) !important; }
.article-meta .meta-line { color: var(--ink) !important; }
.article-lede { color: var(--ink) !important; }
