:root{
    color-scheme:only light;
    /* four colours, sampled from the reference, plus one ink */
    --cream:#F7F3EA;      /* page ground — carries most of the page */
    --sand:#F0E9DC;       /* a deeper cream for quiet fills: not a brown */
    --shell:#EDEDE3;      /* the cream with ~4% pine washed through it */
    --clay:#CAAE96;        /* sparing accent: a pill, a dot, never a surface */
    --clay-hover:#C0A288;
    --clay-pale:#EDE3D5;   /* legacy tint, kept for the forced-dark fallback */
    --pine:#204138;        /* display type, primary buttons, marks, one panel */
    --pine-dark:#17302A;
    --pine-wash:rgba(32,65,56,.07);
    --white:#FFFFFF;

    --ink:#2A2520;        /* warm near-black body copy: 13.7:1 on cream */
    --ink-muted:#5A5048;  /* captions and form notes only: 7.1:1 */
    --rule:#DFD2C1;

    --measure:62ch;
    --page-pad:clamp(2.5rem,6vw,4.5rem);
    --radius-s:12px;
    --radius-m:20px;
    --radius-l:28px;
    --gutter:clamp(1.25rem, 5vw, 3rem);
    --header-h:4.75rem;
  }

  *,*::before,*::after{box-sizing:border-box}

  /* This site is light-only. Without this, forced dark mode in
     in-app browsers blacks out the backgrounds but keeps the
     authored text colours, which makes the whole page unreadable. */
  @media (prefers-color-scheme: dark){
    html,body,main,.page,.hero,header.site,footer.site{background:var(--cream);color:var(--ink)}
    .panel,.price{background:var(--white)}
    .cta-band{background:var(--pine);color:var(--cream)}
  }

  html{scroll-behavior:smooth;background:var(--cream);color-scheme:only light}

  body{
    margin:0;
    background:var(--cream);
    forced-color-adjust:none;
    color:var(--ink);
    font-family:"Nunito",system-ui,-apple-system,"Segoe UI",sans-serif;
    font-size:1.0625rem;
    line-height:1.7;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3,.wordmark,.price-figure,.btn{
    font-family:"Quicksand","Nunito",system-ui,sans-serif;
  }

  h1{
    font-size:clamp(2rem,5.5vw,3.25rem);
    line-height:1.15;
    font-weight:600;
    letter-spacing:-0.015em;
    margin:0 0 1rem;
  }
  h2{
    color:var(--pine);
    font-size:clamp(1.5rem,3.2vw,2.125rem);
    line-height:1.25;
    font-weight:600;
    letter-spacing:-0.01em;
    margin:0 0 1rem;
  }
  h3{
    font-size:1.1875rem;
    line-height:1.35;
    font-weight:600;
    margin:0 0 .5rem;
  }
  p{margin:0 0 1.15rem;max-width:var(--measure)}
  ul{max-width:var(--measure)}
  a{color:var(--pine);text-underline-offset:.2em;text-decoration-thickness:1px}
  a:hover{color:var(--pine-dark)}

  :focus-visible{
    outline:3px solid var(--pine);
    outline-offset:3px;
    border-radius:4px;
  }

  .skip{
    position:absolute;left:-9999px;top:0;
    background:var(--pine);color:var(--cream);
    padding:.75rem 1.25rem;border-radius:0 0 var(--radius-s) 0;z-index:100;
  }
  .skip:focus{left:0}

  .wrap{
    width:min(72rem,100%);
    margin-inline:auto;
    padding-inline:var(--gutter);
  }

  /* ---------- Header ---------- */
  header.site{
    position:sticky;top:0;z-index:50;
    background:var(--cream);
    border-bottom:1px solid var(--rule);
  }
  .bar{
    display:flex;align-items:center;gap:1rem;
    height:var(--header-h);
    position:relative;
    z-index:2;            /* keeps the bar above the sliding overlay */
  }
  .sr-only{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
  }
  .wordmark{
    font-weight:700;font-size:1.25rem;letter-spacing:-.01em;
    color:var(--pine);text-decoration:none;
    display:inline-flex;align-items:baseline;gap:.4rem;
    margin-right:auto;
  }
  .wordmark span{font-weight:500;color:var(--pine)}

  nav.primary ul{
    list-style:none;display:flex;align-items:center;gap:.25rem;
    margin:0;padding:0;
  }
  nav.primary a{
    display:block;padding:.5rem .7rem;
    color:var(--ink);text-decoration:none;font-weight:600;font-size:.9375rem;
    position:relative;
  }
  /* every nav item carries the same marker; hover and current page are the
     same gesture at two strengths. Nothing here is filled — a pill would
     read as an action button, which is a different thing entirely. */
  nav.primary a::after{
    content:"";position:absolute;
    left:.7rem;right:.7rem;bottom:.1rem;
    height:2px;border-radius:2px;background:var(--pine);
    opacity:0;transition:opacity .15s ease;
  }
  nav.primary a:hover::after{opacity:.35}
  /* must follow the hover rule: identical specificity, so source order is
     what keeps the current page solid while the pointer is over it */
  /* The current page is bold, and bold is wider — so without this the item
     for whichever page you are on widens and shunts every item after it
     along, and the nav sits somewhere different on each page. This lays a
     bold copy of the label underneath, zero-height and hidden from both eye
     and screen reader, purely so every item is always as wide as its own
     bold state. */
  nav.primary a::before{
    content:attr(data-label);
    display:block;height:0;overflow:hidden;
    font-weight:700;visibility:hidden;pointer-events:none;
  }
  nav.primary a[aria-current="page"]{color:var(--pine);font-weight:700}
  nav.primary a[aria-current="page"]::after{opacity:1}

  .btn{
    display:inline-block;border:0;cursor:pointer;
    font-weight:600;font-size:1rem;line-height:1.2;
    padding:.85rem 1.4rem;border-radius:999px;
    text-decoration:none;text-align:center;
    transition:background-color .15s ease,color .15s ease;
  }
  .btn-primary{background:var(--pine);color:var(--cream)}
  .btn-primary:hover{background:var(--pine-dark);color:var(--cream)}
  .btn-secondary{background:transparent;color:var(--pine);box-shadow:inset 0 0 0 1.5px var(--pine)}
  .btn-secondary:hover{background:rgba(32,65,56,.08);color:var(--pine)}
  .btn-sm{padding:.6rem 1.1rem;font-size:.9375rem}

  .menu-toggle{
    display:none;
    width:2.75rem;height:2.75rem;flex:0 0 auto;
    align-items:center;justify-content:center;padding:0;
    background:var(--cream);border:1.5px solid var(--rule);
    border-radius:999px;cursor:pointer;
  }
  .burger{display:block;width:1.125rem;height:.75rem;position:relative}
  .burger span{
    position:absolute;left:0;right:0;height:2px;border-radius:2px;
    background:var(--pine);
    transition:transform .2s ease,opacity .15s ease;
  }
  .burger span:nth-child(1){top:0}
  .burger span:nth-child(2){top:50%;margin-top:-1px}
  .burger span:nth-child(3){bottom:0}
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(1){transform:translateY(5px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(2){opacity:0}
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

  .nav-cta{display:none} /* header button covers this on desktop */

  /* ---------- Pages ---------- */
  main{display:block;background:var(--cream)}
  .page{
    background:var(--cream);
    padding-block:var(--page-pad) clamp(2rem,4vw,3rem);
  }
  /* a band already closes the page; trailing cream under it just gaps */
  .page > .band:last-child{margin-bottom:calc(-1 * clamp(2rem,4vw,3rem))}
  /* the hero carries its own top spacing; without this the two stack and
     leave a dead band between the header and the artwork */
  .page > .hero:first-child{margin-top:calc(-1 * var(--page-pad))}
  .page > .wrap > h1{margin-top:0;color:var(--pine)}
  .lede{font-size:1.1875rem;color:var(--pine);max-width:58ch;font-weight:600}

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    background:var(--cream);
    overflow:hidden;
    padding-block:clamp(2.5rem,7vw,4.5rem) clamp(3rem,8vw,5.5rem);
    margin-bottom:clamp(2rem,5vw,3.5rem);
    border-bottom:1px solid var(--rule);
  }
  /* one quiet echo of the badge rings in the reference */
  .hero::before{
    content:"";position:absolute;pointer-events:none;
    right:-7rem;top:-5rem;
    width:28rem;height:28rem;border-radius:50%;
    border:1.25rem solid var(--sand);
  }
  /* the one spot of clay up here, like the small dot in the reference */
  .hero::after{
    content:"";position:absolute;pointer-events:none;
    right:4.5rem;top:3.5rem;
    width:2.75rem;height:2.75rem;border-radius:50%;
    background:var(--clay);
  }
  .hero .wrap{position:relative}
  .hero h1{
    max-width:17ch;color:var(--pine);font-weight:700;
    font-size:clamp(2.25rem,6.4vw,4.25rem);
    letter-spacing:-.028em;line-height:1.06;
  }
  /* the practice's name, picked out of the sentence it opens */
  .hero h1 .name{color:var(--clay)}
  .hero p{color:var(--ink);max-width:44ch;font-size:1.125rem}
  .hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

  /* the pitch contour — one continuous line, the page's single bold gesture */
  .contour{display:block;width:100%;max-width:34rem;height:auto;margin-bottom:2rem;overflow:visible}
  .contour path{
    fill:none;stroke:var(--pine);stroke-width:2.5;stroke-linecap:round;
    stroke-dasharray:1400;stroke-dashoffset:1400;
    animation:draw 2.4s cubic-bezier(.33,.9,.36,1) .25s forwards;
  }
  @keyframes draw{to{stroke-dashoffset:0}}

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto}
    .contour path{animation:none;stroke-dashoffset:0}
    *{transition-duration:.01ms !important}
  }

  /* ---------- Blocks ---------- */
  .section{margin-block:clamp(2.25rem,5vw,3.5rem)}
  /* the page's own bottom padding closes the last section; its margin
     on top of that is what opened the gap under the content */
  .wrap > .section:last-child{margin-bottom:0}

  .split{
    display:grid;gap:clamp(1.5rem,4vw,3rem);
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    align-items:start;
  }
  .split.reverse{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}

  .panel{
    position:relative;
    background:var(--pine);color:var(--cream);
    border-radius:var(--radius-l);
    padding:clamp(1.5rem,4vw,2.5rem);
  }
  .panel h2{color:var(--cream)}
  /* the copy already carries a 62ch measure, so the right of the panel is
     free — the icon sits in it rather than crowding the text */
  .panel-icon{
    position:absolute;
    right:clamp(1.5rem,4vw,2.5rem);
    top:50%;transform:translateY(-50%);
    width:clamp(3.25rem,7vw,5rem);height:auto;
    fill:none;stroke:currentColor;stroke-width:2.25;
    stroke-linecap:round;stroke-linejoin:round;
    opacity:.5;pointer-events:none;
  }
  /* the page's one solid green block — the standing invitation to get in touch */
  /* a full-bleed tonal band: gives a section its own ground without a border */
  .band{
    background:var(--shell);
    padding-block:clamp(2.5rem,6vw,4rem);
  }
  /* the band supplies the separation the hero's margin was providing */
  .hero + .band{margin-top:calc(-1 * clamp(2rem,5vw,3.5rem))}

  /* the standing invitation, edge to edge above the footer on every page */
  .cta-band{
    background:var(--pine);color:var(--cream);
    padding-block:clamp(2.5rem,6vw,4rem);
  }
  .cta-band h2{color:var(--cream)}
  .cta-band p{color:var(--cream);max-width:54ch}
  .cta-band .btn-secondary{
    color:var(--cream);box-shadow:inset 0 0 0 1.5px var(--cream);
  }
  .cta-band .btn-secondary:hover{background:rgba(247,243,234,.14);color:var(--cream)}
  .cta-band :focus-visible{outline-color:var(--cream)}

  /* photo left, credentials right, both on the band */
  .bio{
    --photo-w:300px;
    display:grid;
    grid-template-columns:minmax(0,var(--photo-w)) minmax(0,1fr);
    gap:clamp(1.5rem,4vw,2.75rem);
    align-items:start;
    margin-top:clamp(1.75rem,4vw,2.75rem);
  }
  .bio figure{width:min(var(--photo-w),100%)}
  .bio .photo{background:none}

  .bio-text h3{color:var(--pine);font-size:1.375rem;margin-bottom:.1rem}
  .bio-role{color:var(--ink-muted);font-size:.9375rem;margin-bottom:1.15rem}
  .bio .cred{margin-top:0}

  figure{margin:0}
  .photo{
    border-radius:10px;
    overflow:hidden;
    background:var(--sand);
    display:block;
  }
  .photo img{
    display:block;width:100%;height:auto;
    aspect-ratio:1/1;object-fit:cover;
    color:var(--ink-muted);font-size:.875rem;
  }
  figcaption{
    font-size:.875rem;color:var(--ink-muted);
    margin-top:.6rem;max-width:40ch;
  }

  .cred{
    list-style:none;margin:1.25rem 0 0;padding:0;
    display:grid;gap:.6rem;max-width:var(--measure);
  }
  .cred li{
    padding-left:1.6rem;position:relative;
  }
  .cred li::before{
    content:"";position:absolute;left:0;top:.65em;
    width:.6rem;height:.6rem;border-radius:50%;
    background:var(--pine);
  }

  /* the sentence that introduces a list: set apart from the paragraph
     before it so the two lists read as separate invitations */
  .list-lead{
    font-weight:700;
    margin-top:clamp(1.75rem,3.5vw,2.5rem);
    margin-bottom:.9rem;
  }

  ul.marks{list-style:none;padding:0;margin:0 0 1.25rem;display:grid;gap:.7rem}
  ul.marks li{padding-left:1.6rem;position:relative}
  ul.marks li::before{
    content:"";position:absolute;left:.15rem;top:.72em;
    width:.55rem;height:.55rem;border-radius:50%;
    background:var(--pine);
  }

  /* ---------- Pricing ---------- */
  .prices{
    display:grid;gap:1rem;margin:1.5rem 0 2.5rem;
    grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
    /* side by side they share a row and stretch to match; stacked they each
       get their own, so the rows have to be told to keep in step */
    grid-auto-rows:1fr;
    max-width:44rem;
  }
  .price{
    background:var(--pine);color:var(--cream);
    border-radius:var(--radius-m);
    padding:1.5rem;
  }
  .price-figure{
    display:block;font-size:2.5rem;font-weight:600;
    color:var(--cream);line-height:1;margin-bottom:.4rem;
  }
  .price p{margin:0;font-size:1rem;color:var(--cream)}

  .form-note{font-size:.875rem;color:var(--ink-muted);margin:.25rem 0 1.25rem}

  /* My Therapy Suite renders its forms in a cross-origin iframe. What is
     inside belongs to them and no stylesheet here can reach it — that is the
     same-origin policy, not a selector we have not found yet. Their side is
     themed through --cw-* custom properties.

     The frame itself is ours. It arrives carrying a 1px #E3E8EF border and a
     14px radius as inline styles, which is why these need !important. Height
     is deliberately left alone: their script sets it as the form grows. */
  .widget{max-width:36rem;min-height:18rem;margin-bottom:1rem}
  .widget iframe{
    border:1.5px solid var(--rule) !important;
    border-radius:var(--radius-m) !important;
  }

  /* ---------- Footer ---------- */
  footer.site{
    background:var(--cream);color:var(--ink);
    padding-block:clamp(2.5rem,5vw,3.5rem);
    font-size:.9375rem;
  }
  footer.site a{color:var(--pine);text-decoration-thickness:1px}
  footer.site a:hover{color:var(--pine-dark)}
  footer.site .wordmark{color:var(--pine);margin-bottom:1rem}
  footer.site .wordmark span{color:var(--ink-muted)}
  .foot-grid{
    display:grid;gap:1.75rem;
    grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));
  }
  footer.site ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
  .foot-heading{font-size:1rem}
  footer.site p{max-width:34ch}
  /* selector has to outrank `footer.site p`, which sets the 34ch measure
     that would otherwise cut the rule off a third of the way across */
  footer.site .foot-rule{
    max-width:none;
    margin-top:2.5rem;padding-top:1.25rem;
    border-top:1px solid var(--rule);
    font-size:.875rem;
  }

  /* ---------- Responsive ---------- */
  @media (max-width:52rem){
    .bio{grid-template-columns:1fr}
    .panel-icon{display:none}
    .hero::before{width:17rem;height:17rem;right:-6rem;top:-3.5rem;border-width:.9rem}
    /* the dot sits on top of the contour once the hero narrows */
    .hero::after{display:none}
  }

  @media (max-width:60rem){
    .split,.split.reverse{grid-template-columns:1fr}
    .split figure{max-width:22rem}
  }

  /* 65.625rem is 1050px at the default root size, below which the nav
     starts wrapping onto a second line. Kept in rem so it also switches
     early for a reader who has scaled their text up — which is exactly
     when the row runs out of width. */
  @media (max-width:65.625rem){
    :root{--header-h:4rem}
    .menu-toggle{display:inline-flex}
    .bar .btn-primary{display:none}
    .wordmark{white-space:nowrap;font-size:1.125rem}

    /* nav is a fixed frame that starts at the header's bottom edge and
       clips everything above it, so the panel can only ever emerge from
       underneath the header — it never travels across it */
    nav.primary{
      display:block;
      position:fixed;
      top:var(--header-h);left:0;right:0;bottom:0;
      z-index:1;
      background:transparent;
      padding:0;
      overflow:hidden;
      visibility:hidden;
    }
    /* Transitions exist only once the menu has been used. Without this, a
       resize past the breakpoint applies the hidden transform for the first
       time and the panel animates itself out unprompted. */
    nav.primary.is-ready{transition:visibility 0s linear .2s}
    nav.primary.is-open{visibility:visible}
    nav.primary.is-ready.is-open{transition:visibility 0s linear 0s}

    /* the panel itself is what slides, inside that clip */
    nav.primary ul{
      flex-direction:column;align-items:stretch;gap:.4rem;
      background:var(--cream);
      height:100%;
      /* the global ul measure is 62ch of prose width — it was capping the
         panel at ~670px, which only became visible once the burger ran
         up to 1050px */
      max-width:none;
      padding:1.5rem var(--gutter) 2rem;
      overflow-y:auto;
      overscroll-behavior:contain;
      transform:translateY(-100%);
    }
    /* closing: linear and quicker than the open — dismissing should feel
       immediate, not like watching the open run backwards */
    nav.primary.is-ready ul{transition:transform .2s linear}
    nav.primary.is-open ul{transform:translateY(0)}
    /* opening: eased */
    nav.primary.is-ready.is-open ul{transition:transform .34s cubic-bezier(.32,.72,.3,1)}
    nav.primary a{
      padding:1rem 1.1rem;border-radius:var(--radius-m);
      font-size:1.25rem;
    }
    .nav-cta{display:block}
    nav.primary .nav-cta{margin-top:1.25rem}
    nav.primary .nav-cta a{
      background:var(--pine);color:var(--cream);text-align:center;
      border-radius:999px;padding:1.1rem;
    }
    nav.primary .nav-cta a:hover{background:var(--pine-dark)}
    /* rows are full-width here, so an underline would stretch the whole
       panel — mark down the leading edge instead */
    nav.primary a::after{
      left:0;right:auto;top:.7rem;bottom:.7rem;
      width:3px;height:auto;
    }
    /* the CTA is a filled button, so it keeps button behaviour and no marker */
    nav.primary .nav-cta a::after{display:none}
    nav.primary .nav-cta a[aria-current="page"]{color:var(--cream)}

    body.menu-open{overflow:hidden}
  }
