/* ============================================================================
   Fibonacci design system — Numerologist
   ----------------------------------------------------------------------------
   The site builds itself up the way numbers do: every spacing step is a
   Fibonacci number (8, 13, 21, 34, 55, 89, 144), and the type scale grows by
   the golden ratio φ (1.618) — the limit the Fibonacci sequence converges to.
   So the layout's rhythm literally follows the mathematics it's about.

   Shared by BOTH layouts (index.php/home.css and layout.php/style.css) so the
   design language is one, not two. Loaded before the page CSS so pages can
   still override; these are tokens + gentle global rhythm, not a hard reset.
   ============================================================================ */

:root {
  /* Fibonacci spacing scale (px) — the vertical & horizontal rhythm. */
  --fib-1: 8px;
  --fib-2: 13px;
  --fib-3: 21px;
  --fib-4: 34px;
  --fib-5: 55px;
  --fib-6: 89px;
  --fib-7: 144px;

  /* Golden ratio — the number the design grows by. */
  --phi: 1.618;

  /* Type scale, stepped by φ from a 1rem base (down one step, up four). */
  --text-xs:   0.618rem;   /* 1 / φ  */
  --text-sm:   0.786rem;   /* 1 / √φ */
  --text-base: 1rem;
  --text-md:   1.272rem;   /* √φ     */
  --text-lg:   1.618rem;   /* φ      */
  --text-xl:   2.058rem;   /* φ·√φ   */
  --text-2xl:  2.618rem;   /* φ²     */
  --text-3xl:  4.236rem;   /* φ³     */

  /* Line-height on φ for comfortable, golden reading rhythm. */
  --leading: 1.618;

  /* Container widths on Fibonacci-derived measures. */
  --measure-text: 34rem;   /* ~ideal reading width */
  --measure-wide: 55rem;

  /* Golden-ratio radius + a soft golden accent used studio-wide. */
  --radius-fib: var(--fib-2);
  --gold: #C9A42A;
}

/* Gentle global rhythm — applied lightly so existing page CSS still leads. */
.fib-section   { padding-block: var(--fib-6); }
.fib-stack > * + * { margin-top: var(--fib-3); }
.fib-stack-lg > * + * { margin-top: var(--fib-5); }
.fib-measure   { max-width: var(--measure-text); }
.fib-measure-wide { max-width: var(--measure-wide); }

/* Footer ethos line — the numbers+technology tagline, quietly golden. */
.l-footer-ethos, .footer-ethos {
  display: block;
  color: var(--gold);
  opacity: 0.82;
  font-size: var(--text-sm);
  line-height: var(--leading);
  max-width: var(--measure-wide);
  margin-block: 0 var(--fib-2);
}

/* A decorative golden-spiral divider some sections can opt into. */
.fib-spiral-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
  margin-block: var(--fib-5);
}

/* ============================================================================
   Unified site navigation (.l-nav)
   ----------------------------------------------------------------------------
   ONE menu across the whole site. The sub-pages (style.css) already use these
   classes; duplicating them here — with the palette inlined so they don't need
   style.css's :root — lets the FRONT page use the exact same menu, killing the
   "two different menus" split. Namespaced (.l-*) so it never touches other CSS.
   ============================================================================ */
/* Reset so the menu renders identically regardless of the page's own CSS. */
.l-nav, .l-nav * { box-sizing: border-box; }
.l-nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #c8e5d2; }
.l-nav .l-wrap, .l-wrap.l-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.l-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.l-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 700;
  color: #1e6644; text-decoration: none; flex-shrink: 0; letter-spacing: -.01em; line-height: 1; }
.l-brand em { font-style: normal; color: #2d8f60; }
.l-nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0; }
.l-nav-links li { list-style: none; margin: 0; padding: 0; display: flex; }
.l-nav-links a { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none;
  color: #4a6b55; font-size: .9rem; font-weight: 500; padding: .4rem .75rem; border-radius: 9999px;
  transition: color .2s, background .2s; }
.l-nav-links a:hover { color: #1e6644; background: #e4f3ec; }
.l-nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.l-btn-sm { display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: 9999px;
  font-size: .85rem; font-weight: 600; text-decoration: none; background: #2d8f60 !important; color: #fff !important; border: none; cursor: pointer; }
.l-btn-sm:hover { background: #1e6644 !important; }
.l-lang { display: flex; align-items: center; gap: 2px; border: 1px solid #c8e5d2; border-radius: 9999px; padding: 3px; }
.l-lang a { text-decoration: none; font-size: .76rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 9999px; color: #4a6b55; transition: background .2s, color .2s; }
.l-lang a.lang-active, .l-lang a.active { background: #2d8f60; color: #fff; }
.l-burger { display: none; background: none; border: 1px solid #c8e5d2; border-radius: 8px;
  padding: .38rem .5rem; color: #1a2e22; font-size: 1.05rem; line-height: 1; cursor: pointer; }
@media (max-width: 780px) {
  .l-nav-links { display: none; }
  .l-nav-links.is-open { display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #c8e5d2;
    padding: 1rem 1.25rem; gap: .1rem; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
  .l-nav-links li { width: 100%; }
  .l-nav-links.is-open a { padding: .55rem .7rem; width: 100%; }
  .l-burger { display: flex; align-items: center; }
}
