/* ============================================================
   MUDWYMN — site.css
   Everything shared by every page: tokens, both themes, the
   lungta device, the single CTA, header, footer.
   Page-specific sections stay in each page's own <style>. One
   file to change a colour; no page reaches into another's rules.
   ============================================================ */
/* ============================================================
   MUDWYMN
   Light is the default and the intended experience.
   Dusk exists because someone reaching a grief practice at 2am
   should not be flashbanged. Same site at nightfall, not an
   inversion.
   ============================================================ */
:root{
  --bone:#F5F5F5;
  --bone-2:#EBEBEB;
  --ink:#1A1714;
  --ink-2:#544A40;
  --ink-3:#5A5149;   /* #7A6E62 → #6B6157 → here. Small text has to survive the aura, not just plain bone. */
  --gold:#B87F22;
  /* --gold is a GRAPHIC colour. As text on bone it measures 2.86:1,
     so anything set in it gets --gold-ink instead. */
  --gold-ink:#8A5E12;
  --green:#1F4A33;
  --earth:#3D2B1F;
  --ochre:#78491F;   /* #8F5C2E → #825023 → here. Same reason: labels sit in the corner the aura is thrown from. */
  --accent-ancestral:#7A4E28;
  --lung-blue:#2E5266;
  --lung-white:#C3B49B;
  --lung-red:#A63D2F;
  --lung-green:#1F4A33;
  --lung-gold:#C68B2C;
  --rule:rgba(26,23,20,.16);
  --rule-2:rgba(26,23,20,.09);
  --grain:.035;
  --disc:rgba(198,139,44,.15);
  --cta-bg:#1F4A33;
  --cta-fg:#F5F5F5;
  --focus:#B87F22;
  --serif:"EB Garamond",Georgia,"Times New Roman",serif;
  --sans:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --pad:clamp(1.25rem,5vw,5rem);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bone:#121212;--bone-2:#1C1C1C;
  --ink:#EDEDED;--ink-2:#B8AB9A;--ink-3:#8C8071;
  --gold:#E3AE55;--gold-ink:#E3AE55;--green:#5C9B75;--earth:#0E0B08;--ochre:#CFA06A;
  --accent-ancestral:#CFA06A;
  --lung-white:#EDEDED;--lung-blue:#4A7C96;--lung-red:#C4604E;
  --lung-green:#4E8A66;--lung-gold:#E0A94A;
  --rule:rgba(237,237,237,.18);--rule-2:rgba(237,237,237,.09);
  --grain:.05;--disc:rgba(224,169,74,.12);
  --cta-bg:#5C9B75;--cta-fg:#0E0B08;
  --focus:#E3AE55;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bone:#121212;--bone-2:#1C1C1C;
    --ink:#EDEDED;--ink-2:#B8AB9A;--ink-3:#8C8071;
    --gold:#E3AE55;--gold-ink:#E3AE55;--green:#5C9B75;--earth:#0E0B08;--ochre:#CFA06A;
    --accent-ancestral:#CFA06A;
    --lung-white:#EDEDED;--lung-blue:#4A7C96;--lung-red:#C4604E;
    --lung-green:#4E8A66;--lung-gold:#E0A94A;
    --rule:rgba(237,237,237,.18);--rule-2:rgba(237,237,237,.09);
    --grain:.05;--disc:rgba(224,169,74,.12);
    --cta-bg:#5C9B75;--cta-fg:#0E0B08;
    --focus:#E3AE55;
    color-scheme:dark;
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  background:var(--bone);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.65;font-weight:400;
  -webkit-font-smoothing:antialiased;position:relative;
  transition:background .45s ease,color .45s ease;
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;
  opacity:var(--grain);mix-blend-mode:multiply;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before{mix-blend-mode:screen}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body::before{mix-blend-mode:screen}
}
img{max-width:100%;display:block}
a{color:inherit}

/* accessibility ------------------------------------------------ */
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:1px}
.skip{
  position:absolute;left:var(--pad);top:.5rem;z-index:10000;
  background:var(--ink);color:var(--bone);padding:.7rem 1.1rem;
  font-size:14px;font-weight:600;text-decoration:none;
  transform:translateY(-160%);transition:transform .2s ease;
}
.skip:focus{transform:translateY(0)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ============================================================
   LUNGTA — the signature device
   Five colours strung on a line between two points. Every
   section boundary is that line. Never drawn as a flag.
   ============================================================ */
.lungta{
  height:2px;border:0;flex:none;
  background:linear-gradient(to right,
    var(--lung-blue) 0 20%, var(--lung-white) 20% 40%,
    var(--lung-red) 40% 60%, var(--lung-green) 60% 80%,
    var(--lung-gold) 80% 100%);
  opacity:.85;
}
.lungta--quiet{height:1px;opacity:.4}

.label{font-size:11.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ochre)}

/* the single CTA, one verb one colour sitewide ------------------ */
.cta{
  display:inline-block;font-size:15px;font-weight:600;letter-spacing:.04em;
  text-decoration:none;padding:1.05rem 2rem;
  background:var(--cta-bg);color:var(--cta-fg);
  transition:filter .2s ease;
}
.cta:hover{filter:brightness(1.14)}
/* everything else that navigates is a text link, never a button */
.tlink{
  font-size:14px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  text-decoration:none;display:inline-flex;gap:.55rem;align-items:center;
  padding-bottom:3px;border-bottom:1px solid currentColor;
}
.tlink .arw{transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.tlink:hover .arw{transform:translateX(4px)}

/* ---------- header ---------- */
header{display:flex;align-items:center;gap:1.5rem 2rem;padding:1.4rem var(--pad)}
/* Her real wordmark, lifted as vector from Mudwymn_flier3.ai. Painted as
   a mask over currentColor so ONE file serves the bone-on-photo header and
   the ink-on-bone header, and follows the Dusk theme for free.
   Only the WORDMARK is used site-wide. The afro-and-arrows symbol is hers
   for the ancestral side (her own instruction, TAVITA_VOICE_NOTES.md) and
   appears only there, in the full lockup. */
.wordmark{
  display:block;margin-right:auto;text-decoration:none;
  width:clamp(112px,11vw,138px);aspect-ratio:154/40;
  background-color:currentColor;
  -webkit-mask:url("assets/logo-wordmark.svg") no-repeat left center/contain;
          mask:url("assets/logo-wordmark.svg") no-repeat left center/contain;
}
nav{display:flex;gap:1.9rem;flex-wrap:wrap}
nav a{font-size:14px;text-decoration:none;letter-spacing:.05em;padding-bottom:3px;border-bottom:1px solid transparent;transition:border-color .2s ease}
nav a:hover{border-bottom-color:var(--ink)}
.dusk{
  background:none;border:1px solid var(--rule);color:var(--ink-2);cursor:pointer;
  font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;padding:.5rem .8rem;line-height:1;transition:color .2s,border-color .2s;
}
.dusk:hover{color:var(--ink);border-color:var(--ink)}


/* ---------- trust strip: answers "can I afford this" ---------- */
/* ---------- trust strip: answers "can I afford this" ---------- */
.trust{padding:1.15rem var(--pad);display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;align-items:baseline;font-size:14px;color:var(--ink-3)}
.trust b{font-weight:600;color:var(--ink-2);letter-spacing:.13em;text-transform:uppercase;font-size:11.5px}
.trust span{white-space:nowrap}


/* ---------- footer ---------- */
footer{padding:clamp(2.75rem,5vw,4rem) var(--pad) 3rem;font-size:15px}
.foot__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:2.5rem;margin-bottom:2.5rem}
.foot__grid h4{font-size:11.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ochre);margin-bottom:1rem}
.foot__grid a,.foot__grid span{display:block;text-decoration:none;margin-bottom:.5rem;color:var(--ink-2)}
.foot__grid a:hover{color:var(--ink)}
.foot__bottom{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:center;padding-top:1.9rem;font-size:13.5px;color:var(--ink-3)}

/* ---------- one interactive moment: sections settle in ---------- */
.rise{opacity:0;transform:translateY(18px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.rise.in{opacity:1;transform:none}


@media (max-width:900px){
  .trust{font-size:13.5px;gap:.4rem 1.1rem}

  /* header stacks: wordmark + dusk on one line, nav scrolls beneath.
     No hamburger — a person in distress should not have to find a menu. */
  header{
    display:grid;grid-template-columns:1fr auto;
    grid-template-areas:"brand dusk" "nav nav";
    gap:.85rem 1rem;padding-bottom:.85rem;align-items:center;
  }
  .wordmark{grid-area:brand;width:104px;margin-right:0}
  .dusk{grid-area:dusk;justify-self:end}
  nav{
    grid-area:nav;min-width:0;gap:1.35rem;flex-wrap:nowrap;overflow-x:auto;
    padding-bottom:.35rem;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    mask-image:linear-gradient(to right,#000 88%,transparent 100%);
  }
  nav::-webkit-scrollbar{display:none}
  nav a{font-size:13.5px;white-space:nowrap}
  .foot__grid{gap:1.9rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
  .rise{opacity:1;transform:none}
}

/* ============================================================
   INNER PAGE FURNITURE
   Shared by therapy / ancestors / teaching / about / contact so
   the five paths differ in temperature, not in structure. A page
   sets --path and --path-soft; everything else follows.
   ============================================================ */
/* ---------- quiet hero ---------- */
.phero{display:grid;grid-template-columns:1.05fr 1fr;align-items:stretch}
.phero__type{
  padding:clamp(2.5rem,5vw,4.5rem) var(--pad);
  display:flex;flex-direction:column;justify-content:center;gap:1.5rem;
}
.phero h1{
  font-family:var(--serif);font-weight:400;text-transform:uppercase;
  font-size:clamp(2rem,3.7vw,3.15rem);line-height:1.04;letter-spacing:.005em;
  max-width:18ch;text-wrap:balance;
}
.phero__lead{font-size:clamp(1.02rem,1.3vw,1.15rem);max-width:44ch;color:var(--ink-2)}
.phero__img{position:relative;min-height:clamp(320px,58vh,660px);overflow:hidden}
.phero__img img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.phero__actions{display:flex;flex-wrap:wrap;gap:1.1rem 1.6rem;align-items:center}
.phero__tel{font-size:15.5px;text-decoration:none;border-bottom:1px solid var(--rule);padding-bottom:3px;white-space:nowrap}
.phero__tel:hover{border-bottom-color:var(--ink)}

/* ---------- generic section furniture ---------- */
.sec{padding:clamp(3rem,6vw,5.5rem) var(--pad)}
.sec--tint{background:var(--path-soft)}
.sec__head{max-width:60ch;margin-bottom:2.6rem}
/* .sec__head h1 = page titles on pages without a photo hero (Contact). It
   had no rule and fell back to the sans at browser-default bold, the one
   title on the site not set in the serif. */
.sec__head h1{
  font-family:var(--serif);font-weight:400;text-transform:uppercase;
  font-size:clamp(2rem,3.7vw,3.15rem);line-height:1.04;letter-spacing:.005em;margin-top:.7rem;
}
.sec__head h2{
  font-family:var(--serif);font-weight:400;text-transform:uppercase;
  font-size:clamp(1.6rem,3.2vw,2.5rem);letter-spacing:.025em;line-height:1.08;margin-top:.7rem;
}
.sec__head p{margin-top:1rem;color:var(--ink-2)}

/* ---------- how she works: named modalities with real descriptions ---------- */
.mods{display:grid;gap:0;max-width:78ch}
.mods > div{padding:1.7rem 0;border-top:1px solid var(--rule-2)}
.mods > div:first-child{border-top:0;padding-top:0}
.mods h3{
  font-family:var(--serif);font-weight:400;font-size:1.35rem;
  letter-spacing:.01em;margin-bottom:.5rem;
}
.mods p{color:var(--ink-2);max-width:64ch}

/* ---------- credentials ---------- */
.creds{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:2.2rem}
.creds h3{font-size:11.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ochre);padding-bottom:.6rem;border-bottom:1px solid var(--rule-2);margin-bottom:.9rem}
.creds li{list-style:none;padding:.42rem 0;color:var(--ink-2);font-size:16px;line-height:1.5}

/* ---------- specialties ---------- */
.specs{display:flex;flex-wrap:wrap;gap:.7rem}
.specs li{
  list-style:none;border:1px solid var(--rule);padding:.62rem 1.1rem;
  font-size:15px;color:var(--ink-2);
}

/* ---------- fees ---------- */
.fees{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,4vw,4rem);align-items:start}
.fees h3{font-family:var(--serif);font-weight:400;font-size:1.35rem;margin-bottom:.7rem}
.fees p{color:var(--ink-2);max-width:52ch}
.fees ul{margin:.9rem 0 0;padding:0}
.fees li{list-style:none;padding:.4rem 0;color:var(--ink-2);border-bottom:1px solid var(--rule-2)}
.fees li:last-child{border-bottom:0}

/* ---------- closing ---------- */
.close{background:var(--close-bg,var(--green));color:#F5F5F5;padding:clamp(3.5rem,8vw,6rem) var(--pad);text-align:center}
:root[data-theme="dark"] .close{background:#12301F}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .close{background:#12301F}}
.close h2{font-family:var(--serif);font-weight:400;font-size:clamp(1.5rem,3vw,2.4rem);line-height:1.2;max-width:24ch;margin:0 auto 1rem;text-wrap:balance}
.close p{color:rgba(245,245,245,.82);max-width:46ch;margin:0 auto 2rem}
.close .cta{background:#F5F5F5;color:#12301F}


@media (max-width:900px){
  .phero{grid-template-columns:1fr}
  .phero__img{order:-1;min-height:38vh}
  .phero h1{font-size:clamp(1.7rem,7.4vw,2.3rem)}
  .phero__actions{flex-direction:column;align-items:stretch;gap:.9rem}
  .phero .cta{display:block;width:100%;text-align:center}
  .phero__tel{text-align:center;display:block}
  .fees{grid-template-columns:1fr}
  .sec__head{margin-bottom:1.9rem}
}

/* ============================================================
   ATMOSPHERE
   Two photographs cannot carry six pages, so colour and light do
   the work photography would normally do. Everything below is
   built from ONE per-path variable — --path-rgb — so a page
   changes its whole temperature by setting three numbers.

   Restraint is deliberate. DIRECTION.md's rule was "tint the
   ground 2–3%, felt not noticed"; this pushes past that because
   the alternative is six flat bone pages, but it stays under the
   threshold where a grief-and-death practice starts looking like
   a wellness brand.
   ============================================================ */
:root{ --path-rgb:26,23,20 }

/* Sections stop being flat bands. The tint enters, peaks off-centre
   and falls away, so consecutive sections read as light changing
   rather than as stacked rectangles. */
.sec--tint{
  background:linear-gradient(to bottom,
    rgba(var(--path-rgb),.014) 0%,
    rgba(var(--path-rgb),.085) 46%,
    rgba(var(--path-rgb),.028) 100%);
}

/* An aura: a soft field of the path's own colour, thrown from the
   corner the type is NOT in. Isolation + z-index:-1 keeps it above
   the section's background and below every word. */
.sec{position:relative;isolation:isolate}
.aura::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(78% 108% at 86% 6%,
    rgba(var(--path-rgb),.145) 0%, rgba(var(--path-rgb),.05) 40%, transparent 72%);
}
.aura--left::before{background:radial-gradient(78% 108% at 12% 100%,
    rgba(var(--path-rgb),.125) 0%, rgba(var(--path-rgb),.042) 42%, transparent 74%)}

/* The lungta bleeds. The rule stays crisp — it is the device — but
   its colour now falls into the section below it and fades out,
   so a boundary is a change of light rather than a drawn line. */
.lungta--bleed{position:relative;overflow:visible;z-index:2}
.lungta--bleed::after{
  content:"";position:absolute;left:0;right:0;top:1px;height:clamp(70px,9vw,130px);
  pointer-events:none;
  /* Soft stops, not the rule's hard bands. With hard 20% steps this
     read as five coloured RECTANGLES sitting on the dark hero — a
     wash is the point, so the colours have to bleed into each other
     as well as downward. */
  background:linear-gradient(to right,
    rgba(46,82,102,.14) 0%, rgba(195,180,155,.13) 26%,
    rgba(166,61,47,.14) 50%, rgba(31,74,51,.13) 74%,
    rgba(198,139,44,.15) 100%);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 0%,transparent 100%);
}
:root[data-theme="dark"] .lungta--bleed::after{opacity:.55}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .lungta--bleed::after{opacity:.55}}

/* The Nyima sun, off the hero and into the page. Her teaching name
   means Wisdom Sun; it was doing one job in one place. */
.sunrise{position:relative;isolation:isolate;overflow:hidden}
.sunrise::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:50%;bottom:-58%;width:min(112vw,1180px);aspect-ratio:1;border-radius:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle,
    rgba(224,163,46,.30) 0%, rgba(224,163,46,.13) 34%,
    rgba(214,132,40,.05) 56%, transparent 72%);
}
:root[data-theme="dark"] .sunrise::before{opacity:.7}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sunrise::before{opacity:.7}}

/* The closing block gets depth instead of a flat slab of colour. */
.close{position:relative;isolation:isolate;overflow:hidden}
.close::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(72% 96% at 50% 118%,
    rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 42%, transparent 70%);
}
