/* guide-visualize.css — Visualize gentle guide, Oneness brand palette.
   Palette tokens are byte-identical to the frozen reference
   (captures/site/styles.css). WCAG adjustments over the site CSS: every
   text size stays >= 18px, touch targets >= 44px, visible focus,
   reduced-motion honored. */

/* ---------- Brand palette (from owlifestylesfoundation.org) ---------- */
:root {
  --brand-blue: #283890;   /* deep blue — primary (theme-color) */
  --brand-green: #6dbc45;  /* vibrant lime green — accent CTA */
  --brand-sand: #c1a178;   /* warm sand — accent */
  --brand-teal: #25c4b8;   /* fun accent */
  --brand-pink: #ff4d8d;   /* fun accent */
  --bg: #f7faff;           /* page background */
  --surface: #ffffff;      /* cards / surfaces */
  --text: #141414;         /* body text */
  --text-2: #3f3f3f;       /* secondary text */
  --line: #dfe5f6;         /* soft blue-grey divider */

  /* WCAG-safe derivations (frozen tokens above are unchanged) */
  --brand-green-deep: #5fae3d;  /* green pill hover (from reference CSS) */
  --brand-green-text: #357a24;  /* link green, >= 4.5:1 on white/surface */
  --brand-sand-light: #e0cbaa;  /* footer link sand, >= 4.5:1 on brand blue */
}

/* ---------- Base / reset ---------- */
* {
  box-sizing: border-box;
}

html {
  font-size: 18px;   /* WCAG: root 18px so 1rem = 18px and no text falls below the floor */
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;   /* WCAG: base text >= 18px */
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Accessibility: visible focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

.site-footer :focus-visible {
  outline-color: var(--brand-sand-light);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  background-color: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus-visible {
  left: 0;
  outline-offset: 0;
}

/* ---------- Layout container ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background-color: var(--surface);
  border-bottom: 4px solid var(--brand-sand);
}

.site-name {
  margin: 1em 0;
}

.site-name a {
  display: inline-block;
  min-height: 44px;   /* WCAG: touch target >= 44px */
  line-height: 44px;
  color: var(--brand-blue);
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-name a:hover,
.site-name a:focus-visible {
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 196, 184, 0.28), transparent 55%),
    linear-gradient(180deg, #eef2ff 0%, var(--brand-blue) 100%);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Living hero (batch 26): the image softens, like closing
   your eyes ----------
   The photo eases into a hazy soft-focus, then back to clear — the
   sensation of letting your vision go gently inward (11s cycle).
   Content sits on its own z-layer above the motion; nothing moves but
   the photo. Motion runs only when the reader has not asked for
   reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .page-hero-img {
    transform-origin: 50% 50%;
    animation: soft-focus 11s ease-in-out infinite;
  }

  @keyframes soft-focus {
    0% {
      transform: scale(1);
      filter: blur(0);
    }
    50% {
      transform: scale(1.03);
      filter: blur(2.5px);
    }
    100% {
      transform: scale(1);
      filter: blur(0);
    }
  }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.86) 0%, var(--bg) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 24px 32px;
}

.page-hero-heading {
  margin: 0 0 8px;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--brand-blue);
}

.page-hero-kicker {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

/* ---------- Section ---------- */
main {
  display: block;
}

.section {
  padding: 48px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.section p {
  margin: 0 0 18px;
  color: var(--text-2);
}

/* ---------- Gentle navigation between the six guides ---------- */
.guide-nav {
  margin: 28px 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-nav-heading {
  margin: 0 0 12px;
  color: var(--text-2);   /* 9.3:1 on white */
  font-size: 1rem;   /* 18px */
}

.guide-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;   /* WCAG: touch target >= 44px */
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--brand-green-text);   /* 5.3:1 on white */
  font-weight: bold;
  font-size: 1rem;   /* 18px */
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.guide-link:hover,
.guide-link:focus-visible {
  background-color: var(--bg);
}

.guide-link.is-current {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;   /* 10.2:1 on brand blue */
}

/* ---------- Buttons (brand lime green — dark text for readable contrast) ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  min-height: 44px;   /* WCAG: touch target >= 44px */
  border-radius: 999px;
  background-color: var(--brand-green);
  color: var(--text);   /* 7.8:1 on brand green */
  font-weight: bold;
  text-decoration: none;
  font-size: 1.125rem;   /* ~20px */
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--brand-green-deep);  /* slightly deeper lime for hover */
}

/* ---------- Link back to home ---------- */
.link-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* WCAG: touch target >= 44px */
  padding: 8px 4px;
  color: var(--brand-green-text);   /* 5.3:1 on white */
  font-weight: bold;
  font-size: 1rem;   /* 18px */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small print: the gentle medical note at the foot of the page. */
.site-footer p.footer-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--brand-sand-light);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 24px;
  background-color: var(--brand-blue);
  color: #e7ebfa;   /* 8.5:1 on brand blue */
  text-align: center;
  font-size: 1rem;   /* 1rem = 18px (html root is 18px); >= WCAG floor */
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  min-height: 44px;   /* WCAG: touch target >= 44px */
  line-height: 44px;
  padding: 0 2px;
  color: var(--brand-sand-light);   /* 6.4:1 on brand blue */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive (mobile-first; text never below 18px) ---------- */
@media (min-width: 1024px) {
  .page-hero {
    min-height: 420px;
  }
  .page-hero-content {
    padding: 64px 24px 48px;
  }
  .page-hero-heading {
    font-size: 2.8rem;   /* ~50px */
  }
  .page-hero-kicker {
    font-size: 1.05rem;
  }
  .section {
    padding: 60px 0;
  }
}

/* ---------- JS reveal (only active when JS is on) ---------- */
.js-enabled .reveal {
  opacity: 0;
  transition: opacity 1s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal {
    opacity: 1;
    transition: none;
  }
}
