/* =========================================================
   THEME — "INNER BLOOM · NATURE OLIVE"
   Warm organic / botanical-editorial design system
   Warm cream · olive greens of nature · one harvest-gold detail
   ========================================================= */

/* Self-hosted fonts (Literata + Manrope, latin+greek) — no third-party requests */
@import url('/assets/fonts/fonts.css?v=20260702r');

:root {
  /* ── Palette — Inner Bloom ── */
  --bg:          #F4F1E8;   /* cream paper */
  --bg-alt:      #EAE6D8;   /* warm sand band */
  --surface:     #FCFBF5;   /* raised card plane */
  --surface-alt: #EFECDF;   /* highest / tinted plane */
  --line:        #DFDAC8;   /* hairline — soft, desaturated mint */
  --line-strong: #CDC7AC;   /* emphasized hairline / active borders */
  --card-bg:     #FCFBF5;   /* alias of surface (legacy name) */

  /* Greens & the bloom */
  --accent:      #5C6E33;   /* hunter green — primary brand accent */
  --accent-alt:  #5C6E33;   /* fern — secondary accents / icons */
  --accent-soft: rgba(92,110,51,0.10);    /* faint fills / focus tint */
  --accent-line: rgba(92,110,51,0.24);     /* recurring accent hairline */
  --accent-glow: rgba(92,110,51,0.28);     /* focus ring only */
  --accent-ink:  #49572A;   /* darker accent for small text on tinted fills */

  --sage:        #A8B27E;   /* sage — tints, illustration fills */
  --forest:      #333D21;   /* deep forest — dark bands, footer */
  --terra:       #A16207;   /* terracotta bloom — the ONE warm accent (CTA) */
  --terra-deep:  #854D0E;   /* hover / pressed terracotta */
  --gold:        #CA8A04;   /* soft gold — Mind pillar */

  /* Pillar colors — the cycle */
  --pillar-soul: #A16207;   /* ΨΥΧΗ — harvest gold */
  --pillar-mind: #3F7159;   /* ΝΟΥΣ — emerald */
  --pillar-body: #5C6E33;   /* ΣΩΜΑ — fresh green */

  /* Text */
  --text-primary: #333D21;  /* deep green-charcoal, never pure black */
  --text-main:    #333D21;  /* legacy alias */
  --text:         #333D21;  /* legacy alias */
  --text-muted:   #5C6549;  /* AA on cream */
  --text-faint:   #6E7757;  /* tertiary — still AA-safe if used as text */
  --text-on-dark: #F1EFE3;  /* text on forest bands / footer */
  --text-on-dark-muted: #C6CBAA;

  /* Scrims & weight */
  --scrim:       rgba(51,61,33,0.55);
  --shadow-flat: 0 24px 60px rgba(51,61,33,0.12);

  /* Borders (legacy names kept) */
  --border-subtle: var(--line);
  --border-accent: var(--accent-line);
  --max-width: 1200px;

  /* ── Corners — organic (arched, soft) ── */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --radius-2xl: 36px;
  --radius-portrait: 999px 999px 22px 22px;   /* arch crop for portraits */

  /* ── Shadows — soft warm lift (no harsh black) ── */
  --shadow-xs:       0 2px 10px rgba(51,61,33,0.06);
  --shadow-soft:     0 8px 32px rgba(51,61,33,0.08);
  --shadow-hover:    0 18px 44px rgba(51,61,33,0.13);
  --shadow-elevated: var(--shadow-flat);

  /* ── Motion, focus, depth tokens ── */
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:  .18s;
  --dur:       .26s;
  --dur-slow:  .5s;
  --breath:    8s;          /* calm breathing tempo for pulse animations */

  /* Focus — visible green ring for keyboard users (a11y critical) */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --focus-offset: 2px;

  /* Depth — layered shadow + soft green halo for hover states */
  --shadow-lift:  0 22px 50px -12px rgba(51,61,33,0.16);
  --glow-gold:    0 0 0 1px var(--accent-line), 0 18px 44px -16px rgba(92,110,51,0.25);
  --glow-gold-sm: 0 8px 24px -10px rgba(92,110,51,0.22);

  /* Refined radii */
  --r-xs:  8px;    /* chips, tags, small UI */
  --r-sm:  12px;   /* inputs, buttons */
  --r-md:  18px;   /* cards, panels */
  --r-lg:  26px;   /* modals, large surfaces */
  --r-pill: 999px;

  /* Spacing rhythm (8pt-based) */
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* ── Logo ── */
  --logo-gap: 0.55rem;
  --logo-letter-spacing: 0.16em;

  /* ── Layout ── */
  --page-padding-x: 2rem;
  --page-padding-x-mobile: 1.25rem;
  --section-gap: clamp(4.5rem, 9vw, 7rem);
  --section-header-gap: 0.5rem;
  --grid-gap: 1.5rem;
  --nav-gap: 2rem;
  --nav-height: 76px;

  /* ── Typography ── */
  --font-base:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-heading: 'Literata', Georgia, 'Times New Roman', serif;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     600;   /* keep serif weights gentle */

  --fs-xs:   0.78rem;
  --fs-sm:   0.90rem;
  --fs-base: 1.00rem;
  --fs-lg:   1.16rem;
  --fs-xl:   1.32rem;
  --fs-section-title: clamp(2.0rem, 3.4vw, 2.9rem);
  --fs-hero: clamp(2.2rem, 5.6vw, 4.4rem);

  /* eyebrow (the editorial signal) */
  --fs-eyebrow: 0.72rem;
  --ls-eyebrow: 0.18em;

  /* ── Buttons — fresh green fill + green ghost ── */
  --btn-radius-pill:  999px;
  --btn-font-size:    0.86rem;
  --btn-padding-y:    0.82rem;
  --btn-padding-x:    1.75rem;

  --btn-primary-bg:           var(--accent);
  --btn-primary-bg-hover:     #49572A;
  --btn-primary-text:         #F4F1E8;
  --btn-primary-shadow:       0 10px 26px -12px rgba(51,61,33,0.5);
  --btn-primary-shadow-hover: 0 14px 30px -12px rgba(51,61,33,0.55);
  --btn-primary-bg-from:      var(--accent);
  --btn-primary-bg-to:        #49572A;
  --btn-primary-border:       transparent;
  --btn-primary-border-hover: transparent;

  --btn-ghost-bg:           transparent;
  --btn-ghost-bg-hover:     var(--accent-soft);
  --btn-ghost-border:       var(--accent-line);
  --btn-ghost-border-hover: var(--accent);
  --btn-ghost-text:         var(--accent);
  --btn-ghost-text-hover:   #49572A;
  --btn-ghost-shadow:       none;
  --btn-ghost-shadow-hover: none;

  /* ── Footer — deep forest plane ── */
  --footer-bg:     #333D21;
  --footer-border: rgba(241,239,227,0.14);

  /* ── Pills ── */
  --pill-border:  var(--accent-line);
  --pill-bg:      rgba(168,178,126,0.14);
  --pill-text:    #49572A;
  --pill-shadow:  none;
  --pill-dot:     var(--terra);
  --pill-dot-glow: rgba(161,98,7,0.35);

  /* ── Inputs ── */
  --input-bg:     #FCFBF5;
  --input-border: var(--line);

  /* ── Nav ── */
  --header-bg:          rgba(244,241,232,0.88);
  --nav-link-color:     var(--text-muted);

  /* ── Mobile menu ── */
  --mobile-menu-bg:             rgba(244,241,232,0.98);
  --mobile-menu-border:         var(--line);
  --mobile-menu-text:           var(--text-muted);
  --mobile-menu-item-padding-y: 0.7rem;
  --mobile-menu-item-gap:       0.5rem;
  --mobile-menu-padding-x:      1.5rem;
  --mobile-menu-padding-y:      1.25rem;

  /* ── Cards ── */
  --card-bg-default:     var(--surface);
  --card-border-default: var(--line);
  --card-radius:   22px;
  --card-padding:  1.9rem;
  --card-shadow:       var(--shadow-soft);
  --card-shadow-hover: var(--shadow-hover);
  --card-transition-speed: 0.40s;

  --tilt-perspective: 700px;
  --tilt-rotate-max:  0deg;
  --tilt-enabled:     0;
  --card-tilt-lift:  0px;

  /* ── Filters ── */
  --filters-panel-bg:       var(--surface);
  --filters-panel-border:   var(--line);
  --filters-panel-radius:   18px;
  --filters-panel-padding-x: 1.4rem;
  --filters-panel-padding-y: 1.4rem;
  --filters-panel-gap:  1rem;
  --filters-label-font-size: 0.68rem;
  --filters-label-color:     var(--text-muted);
  --filters-field-radius:    12px;
  --filters-field-border:    var(--line);
  --filters-field-bg:        #FCFBF5;
  --filters-field-padding-y: 0.6rem;
  --filters-field-padding-x: 0.9rem;
  --filters-field-font-size: 0.84rem;
  --filters-field-text-color: var(--text-primary);
  --filters-focus-border: var(--accent);
  --filters-focus-shadow: 0 0 0 3px var(--accent-glow);

  /* ── Badges — green-outline tags ── */
  --badge-font-size:  0.66rem;
  --badge-radius:     999px;
  --badge-padding-y:  0.28rem;
  --badge-padding-x:  0.75rem;
  --badge-bg:         rgba(168,178,126,0.16);
  --badge-border:     var(--accent-line);
  --badge-text:       var(--accent);
  --badge-primary-bg:      var(--accent-soft);
  --badge-primary-border:  var(--accent);
  --badge-primary-text:    var(--accent);

  /* ── About / Team ── */
  --about-card-bg:       var(--surface);
  --about-card-radius:   22px;
  --about-card-padding:  1rem;
  --team-photo-spin-animation: none;
  --about-highlight-bg:      var(--surface-alt);
  --about-highlight-border:  var(--line);
  --about-highlight-radius:  22px;
  --about-highlight-padding-x: 1.6rem;
  --about-highlight-padding-y: 1.4rem;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: var(--fs-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip;   /* decorative rings may poke past the edge — never scroll */
}

/* ── Paper atmosphere: whisper of grain, no blend modes (GPU-light) ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.005em;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input,select,textarea,button { font: inherit; }

::selection { background: rgba(168,178,126,0.35); color: var(--text-primary); }

/* ── Focus visibility — keyboard users get a clear green ring (a11y) ── */
:focus-visible {
  /* outline (not box-shadow) so component shadows can never clobber it */
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.ib-philosophy :focus-visible,
.lt-divider :focus-visible,
footer :focus-visible { outline-color: var(--sage); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible { position: relative; z-index: 5; }
:focus:not(:focus-visible) { outline: none; }

/* ── Skip link — first tab stop jumps to content ── */
.skip-link {
  position: fixed;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 10000;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  padding: .65rem 1.25rem;
  font-family: var(--font-base);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ── Cursor GLOW — a soft patch of sunlight through leaves.
      Painted once, then moved by transform only → GPU-light, no blend mode. ── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 91;
  background:
    radial-gradient(circle at 50% 50%, rgba(168,178,126,0.22) 0%, rgba(168,178,126,0.10) 38%, rgba(168,178,126,0) 62%),
    radial-gradient(circle at 50% 50%, rgba(161,98,7,0.10) 0%, rgba(161,98,7,0.04) 30%, rgba(161,98,7,0) 56%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, cover;
  -webkit-mask: radial-gradient(circle, #000 0%, #000 24%, transparent 68%);
          mask: radial-gradient(circle, #000 0%, #000 24%, transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ── Leaf-shade trail — each move leaves a soft green wash that fades,
      like light through moving foliage. Positioned once; only opacity +
      scale animate (composited). ── */
.ink-blot {
  position: fixed;
  top: 0; left: 0;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  background:
    radial-gradient(circle at 50% 50%, rgba(168,178,126,0.20) 0%, rgba(168,178,126,0.08) 40%, rgba(168,178,126,0) 64%),
    radial-gradient(circle at 50% 50%, rgba(202,138,4,0.07) 0%, rgba(202,138,4,0) 54%);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 26%, transparent 70%);
          mask: radial-gradient(circle, #000 0%, #000 26%, transparent 70%);
  opacity: 0;
  will-change: opacity, transform;
  animation: inkBlot 1.6s var(--ease-out) forwards;
}
@keyframes inkBlot {
  0%   { opacity: 0;   transform: scale(.55); }
  14%  { opacity: .5;  }
  100% { opacity: 0;   transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow, .ink-blot { display: none !important; }
}

/* ── Scroll progress — thin green-to-terracotta seam at the very top ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--terra));
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* ── Imagery treatment — natural color, gentle warmth (duotone retired) ── */
.lt-about-photo img,
.team-photo-card__img,
.book-card-cover img,
.news-thumb img,
.article-image,
.profile-hero-avatar img,
.lt-team-photo img,
.hero-bg {
  filter: saturate(1.02) contrast(1.01);
}

/* ── Eyebrow (the core editorial signal) ── */
.eyebrow,
.section-label {
  display: inline-block;
  font-family: var(--font-base);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--accent-alt);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.eyebrow--muted,
.section-label--muted { color: var(--text-muted); }

/* ── Accent hairline (draws in on enter) ── */
.accent-rule {
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
  border: 0;
  margin: 0 0 1.2rem;
  transform-origin: left center;
}

/* ── News / Articles list ── */
.news-list   { margin-top: 2rem; }
.page-header { margin-top: 2rem; margin-bottom: 2.5rem; }

.news-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 0;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.news-item:first-child { padding-top: 0.5rem; }

.news-thumb { position: relative; flex-shrink: 0; }

.news-thumb img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
  display: block;
}

.news-info { flex: 1; min-width: 0; }

.news-date {
  font-family: var(--font-base);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--accent-alt);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-title a {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  display: block;
  margin-top: 0.5rem;
  transition: color .25s;
}
.news-title a:hover { color: var(--terra-deep); }

.news-excerpt {
  margin-top: 0.65rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: var(--fs-sm);
  max-width: 62ch;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  color: var(--accent);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  position: relative;
  transition: gap .25s;
}
.news-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.news-link:hover { gap: 0.6rem; }
.news-link:hover::after { width: 100%; }

/* Article meta */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.8rem 0 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.news-author a,
.news-author { color: var(--text-primary); font-weight: 600; transition: color .2s; }
.news-author a:hover { color: var(--terra-deep); }
.meta-separator { opacity: .45; color: var(--accent-alt); }

.article-wrapper { max-width: 760px; margin: 3.5rem auto; }

.article-image {
  width: 100%;
  max-width: 760px;
  height: 380px;
  object-fit: cover;
  border-radius: 22px;
  margin: 1.75rem auto 2.25rem;
  display: block;
}

.article-content p {
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
}

.article-image,
.article-wrapper h1,
.article-meta,
.article-content {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards;
}
.article-image      { animation-delay: .05s; }
.article-wrapper h1 { animation-delay: .12s; }
.article-meta       { animation-delay: .20s; }
.article-content    { animation-delay: .28s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Hero media (full-width, legacy markup) ── */
.hero-full {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(240,253,244,.92) 0%,
      rgba(240,253,244,.68) 38%,
      rgba(240,253,244,.25) 64%,
      transparent 100%
    ),
    linear-gradient(180deg, transparent 45%, rgba(240,253,244,.9) 100%);
}

.hero-shell {
  position: relative; z-index: 2;
  height: 100%; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(28px, 5vw, 80px);
}

.hero-left-copy {
  justify-self: start;
  max-width: 600px;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: var(--fs-hero);
  line-height: 1.08;
}

.hero-lock .section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1.85rem;
}

@media (max-width: 880px) {
  .hero-full { min-height: 480px; height: auto; }
  .hero-shell {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 480px;
    padding-inline: 1.25rem;
    padding-bottom: 2.5rem;
  }
  .hero-right-space { display: none; }
  .hero-left-copy { max-width: 100%; padding-top: 2.5rem; padding-bottom: 0; }
}

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 1rem; padding: 1.75rem 0; }
  .news-thumb img { width: 100%; height: 200px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-image,
  .article-wrapper h1,
  .article-meta,
  .article-content { transform: none; }
}


/* =========================================================
   INNOVATION LAYER — platform features (progressive)
   ========================================================= */

/* Cross-document View Transitions — soft page crossfade, header held stable.
   Chrome/Edge 126+, Safari 18.2+; other browsers simply ignore it. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .22s;
  animation-timing-function: ease;
}
body > header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Smarter text wrapping (no-op where unsupported) */
h1, h2, h3, .section-title, .lt-section-heading, .ib-hero-title { text-wrap: balance; }
.section-subtitle, .lt-about-desc, .ab-story p, .article-content p, .ib-philosophy-text { text-wrap: pretty; }
