/*
Theme Name: Mason Anglin Therapy
Theme URI: https://masonanglintherapy.com/
Author: Mason Anglin
Description: Personal hub for Mason Anglin, PsyD, LMFT. Cousin to Advantage Mental Health and West Roseville Counseling.
Version: 1.0.2
Text Domain: mason-anglin-therapy
*/

    :root {
      --paper: #F3EEE4;
      --paper-2: #E8E0D2;
      --cream: #FAF6EE;
      --ink: #1B2117;
      --ink-soft: #3A4134;
      --muted: #5A6152;
      --clay: #B2462E;
      --clay-dark: #8C3622;
      --olive: #656A41;
      --olive-soft: #8A8E68;
      --rule: #D2C8B6;
      --forest: #222A1E;
      --max: 1120px;
      --ease: cubic-bezier(.2,.7,.2,1);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
      font-size: 1.125rem;
      line-height: 1.65;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 400;
      opacity: 0.045;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    }

    ::selection { background: #E4C4B6; color: var(--ink); }

    a { color: var(--clay); text-underline-offset: 0.18em; }
    a:hover { color: var(--clay-dark); }
    img { max-width: 100%; display: block; }
    h1, h2, h3 { font-family: Fraunces, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; color: var(--ink); }
    p { margin: 0 0 1em; }
    p:last-child { margin-bottom: 0; }

    .skip {
      position: absolute; left: -999px; top: 0;
      background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; z-index: 500;
    }
    .skip:focus { left: 1rem; top: 1rem; }

    .wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
    @media (max-width: 640px) { .wrap { width: min(var(--max), calc(100% - 2rem)); } }

    .eyebrow {
      display: inline-flex; align-items: center; gap: 0.7rem;
      font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--olive); margin: 0 0 1rem;
    }
    .eyebrow::before {
      content: ""; width: 18px; height: 2px; background: var(--clay); flex: 0 0 auto;
    }

    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 0.45rem; min-height: 2.85rem; padding: 0.65rem 1.2rem;
      background: var(--clay); color: #fff; border: 1px solid var(--clay);
      border-radius: 2px; font: 600 0.95rem/1 "Source Sans 3", sans-serif;
      text-decoration: none; letter-spacing: 0.01em;
      transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
    }
    .btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; transform: translateY(-1px); }
    .btn:focus-visible, .nav a:focus-visible, .menu-btn:focus-visible, .wordmark:focus-visible, .phone-link:focus-visible, .hub-card:focus-visible, .close-meta a:focus-visible {
      outline: 2px solid var(--clay); outline-offset: 3px;
    }

    /* Header */
    .site-header {
      position: sticky; top: 0; z-index: 50;
      background: var(--paper);
      border-bottom: 1px solid var(--rule);
    }
    .header-inner {
      width: min(var(--max), calc(100% - 3rem));
      margin-inline: auto;
      display: flex; align-items: center; justify-content: space-between;
      gap: 1.5rem; min-height: 4.35rem;
    }
    .wordmark { text-decoration: none; color: inherit; line-height: 1.05; }
    .wordmark .wm-a {
      display: block; font-family: Fraunces, serif; font-size: 1.35rem; font-weight: 500;
      letter-spacing: -0.02em; color: var(--ink);
    }
    .wordmark .wm-b {
      display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--olive); margin-top: 0.15rem;
    }
    .nav { display: flex; align-items: center; gap: 1.05rem; }
    .nav a {
      color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
    }
    .nav a:hover { color: var(--clay); }
    .nav a[aria-current="page"] { color: var(--clay); }
    .header-cta { flex: 0 0 auto; }
    .nav .btn { display: none; }
    .nav-toggle { display: none; }

    .menu-btn {
      display: none; background: none; border: 0; color: var(--ink);
      font: 600 0.95rem/1 "Source Sans 3", sans-serif; cursor: pointer; padding: 0.4rem 0;
    }

    @media (max-width: 1100px) {
      .header-inner { width: min(var(--max), calc(100% - 2rem)); min-height: 4rem; }
      .menu-btn { display: inline-flex; }
      .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--rule);
        padding: 0.6rem 1rem 1.1rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
      }
      .nav a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }
      .nav .btn { display: inline-flex; margin-top: 0.85rem; width: 100%; }
      .header-cta { display: none; }
      .nav-toggle:checked ~ .nav { display: flex; }
    }

    /* Hero */
    .hero { padding: 4.75rem 0 3.25rem; }
    .hero-kicker { margin-bottom: 1.15rem; }
    .hero h1 {
      font-size: clamp(2.35rem, 5.4vw, 4.35rem);
      font-optical-sizing: auto;
      max-width: 16ch;
      margin: 0 0 1.4rem;
    }
    .hero h1 em { font-style: italic; font-weight: 400; color: var(--ink); }
    .hero-lead {
      max-width: 38rem; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55;
      margin: 0 0 1.85rem;
    }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.4rem; }
    .phone-link {
      color: var(--ink); font-weight: 600; text-decoration: none;
      border-bottom: 1px solid var(--rule); padding-bottom: 0.1rem;
    }
    .phone-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

    /* Sections */
    section { padding: 5rem 0; scroll-margin-top: 4.6rem; }
    .section-head { margin-bottom: 2.4rem; max-width: 38rem; }
    .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0 0 0.7rem; }
    .section-head p { color: var(--ink-soft); }

    /* Hub cards */
    #work {
      background: var(--cream);
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
    }
    .hub-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.15rem;
    }
    .hub-card {
      display: flex;
      flex-direction: column;
      padding: 1.55rem 1.6rem 1.6rem;
      border: 1px solid var(--rule);
      background: var(--paper);
      border-radius: 2px;
      text-decoration: none;
      color: inherit;
      transition: border-color .18s var(--ease), transform .18s var(--ease);
    }
    a.hub-card:hover {
      border-color: var(--clay);
      transform: translateY(-1px);
      color: inherit;
    }
    .hub-card .num {
      font-family: Fraunces, serif; font-style: italic; font-size: 1.15rem;
      color: var(--clay); margin: 0 0 0.65rem;
    }
    .hub-card h3 { font-size: 1.5rem; margin: 0 0 0.55rem; }
    .hub-card p { color: var(--ink-soft); font-size: 1.05rem; }
    .hub-card .go {
      margin-top: auto;
      padding-top: 1.15rem;
      font-weight: 600;
      color: var(--clay);
      font-size: 0.98rem;
    }
    a.hub-card:hover .go { color: var(--clay-dark); }
    .hub-card .go-sub {
      display: block;
      margin-top: 0.35rem;
      font-weight: 500;
      color: var(--ink-soft);
      font-size: 0.92rem;
    }

    .hub-also {
      margin: 1.5rem 0 0;
      color: var(--muted);
      font-size: 1.02rem;
    }
    .hub-also a { font-weight: 600; }

    /* Coming soon */
    #soon { border-bottom: 1px solid var(--rule); }
    .soon-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem 2.25rem;
    }
    .soon-card { padding-top: 1.15rem; border-top: 1px solid var(--rule); }
    .soon-card h3 { font-size: 1.45rem; margin: 0 0 0.45rem; }
    .soon-label {
      display: inline-block;
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--olive); margin: 0 0 0.55rem;
    }
    .soon-card .domain { color: var(--muted); font-size: 0.98rem; }

    /* Contact */
    #contact { background: var(--cream); border-top: 0; }
    .band + #contact { border-top: 1px solid var(--rule); }
    .close-inner { max-width: 38rem; }
    #contact h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.9rem; }
    #contact p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 1.4rem; }
    .close-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.3rem; font-size: 1.02rem; }
    .close-meta a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
    .close-meta a:hover { color: var(--clay); border-bottom-color: var(--clay); }

    /* Footer */
    footer {
      background: var(--ink); color: #C9C4B6; padding: 2.6rem 0 2.1rem; font-size: 0.95rem;
    }
    .foot-grid {
      display: grid; grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr; gap: 2rem;
      margin-bottom: 2rem;
    }
    footer .wm-a { color: var(--cream); font-size: 1.25rem; }
    footer .wm-b { color: #A8AD86; }
    footer a { color: #E4DFD2; text-decoration: none; }
    footer a:hover { color: #fff; }
    .foot-col h4 {
      margin: 0 0 0.55rem; font-size: 0.75rem; letter-spacing: 0.14em;
      text-transform: uppercase; color: #A8AD86; font-weight: 600; font-family: "Source Sans 3", sans-serif;
    }
    .foot-col p, .foot-col li { margin: 0 0 0.35rem; }
    .foot-col ul { list-style: none; padding: 0; margin: 0; }
    .foot-bottom {
      display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
      padding-top: 1.2rem; border-top: 1px solid #3A4234; color: #8E8A7C; font-size: 0.86rem;
    }

    /* Inner pages */
    .band {
      background: var(--cream);
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
    }
    .fact-list {
      list-style: none; padding: 0; margin: 0;
      max-width: 40rem;
    }
    .fact-list li {
      padding: 0.7rem 0;
      border-top: 1px solid var(--rule);
      color: var(--ink);
      font-weight: 500;
    }
    .plan-list {
      list-style: none; padding: 0; margin: 0.4rem 0 0;
      columns: 2; column-gap: 2.5rem;
    }
    .plan-list li {
      break-inside: avoid;
      padding: 0.42rem 0;
      border-top: 1px solid var(--rule);
      color: var(--ink);
      font-weight: 500;
    }
    .ins-note { color: var(--muted); margin: 1.2rem 0 0; max-width: 40rem; font-size: 1.02rem; }
    .rate-table-wrap { overflow-x: auto; }
    .rate-table { width: 100%; max-width: 40rem; border-collapse: collapse; font-size: 1.05rem; }
    .rate-table th, .rate-table td { text-align: left; padding: 0.85rem 0.9rem 0.85rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
    .rate-table thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); font-family: "Source Sans 3", sans-serif; font-weight: 600; border-top: 0; }
    .rate-table tbody th { font-family: Fraunces, serif; font-weight: 500; font-size: 1.15rem; }
    .rate-table td { color: var(--ink-soft); }
    .rate-note { color: var(--muted); margin: 1.1rem 0 0; max-width: 40rem; font-size: 1.02rem; }
    .domain-plain {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
      font-weight: 500;
    }

    /* Fallback pages */
    .page-hero { padding: 4.5rem 0 3.4rem; }
    .page-hero h1 {
      font-size: clamp(2.25rem, 5.2vw, 4.1rem);
      font-optical-sizing: auto;
      max-width: 15ch;
      margin: 0 0 1.25rem;
    }
    .page-hero .hero-lead {
      max-width: 38rem; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55;
      margin: 0 0 1.7rem;
    }
    .page-hero .content { max-width: 40rem; color: var(--ink-soft); }
    .page-hero .content a { font-weight: 600; }
    .page-hero .domain-plain { margin-top: 0.35rem; }
    .entry { padding: 4.5rem 0 5rem; }
    .entry h1 {
      font-size: clamp(2.25rem, 5.2vw, 4.1rem);
      margin: 0 0 1.25rem;
    }
    .entry .content { max-width: 40rem; color: var(--ink-soft); }
    .entry .content a { font-weight: 600; }

    @media (max-width: 900px) {
      .hub-grid { grid-template-columns: 1fr; }
      .soon-grid { grid-template-columns: 1fr; gap: 1.6rem; }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .plan-list { columns: 1; }
    }
    @media (max-width: 640px) {
      .hero { padding: 3.1rem 0 2.2rem; }
      section { padding: 3.4rem 0; }
      .page-hero { padding: 3rem 0 2.2rem; }
      .page-hero .hero-lead, .hero-lead { font-size: 1.08rem; }
      .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    }
