/* ============================================================
   Hearthside Practice — bespoke design system
   Palette: Olive/Lichen + Brick + Porcelain (cool bone)
   Display: Bricolage Grotesque · Body: Figtree
   ============================================================ */

:root {
  /* base / surfaces — cool porcelain, NOT warm cream/oat */
  --paper:        #f3f2ee;
  --paper-2:      #eceae3;
  --card:         #ffffff;
  --ink:          #232730;   /* desaturated indigo-charcoal */
  --ink-soft:     #4b515c;
  --ink-mute:     #6c727c;
  --line:         #dcd9d0;
  --line-2:       #e7e4dc;

  /* accents */
  --brick:        #b14a30;   /* warm terracotta-brick (single accent) */
  --brick-deep:   #8f3a25;
  --brick-tint:   #f4e4dd;
  --lichen:       #5f6b4f;   /* muted olive-lichen, quiet secondary */
  --lichen-deep:  #46503a;
  --lichen-tint:  #e6e8df;

  /* type */
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body:    "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;

  --radius:   14px;
  --radius-s: 9px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(35,39,48,.04), 0 14px 40px -22px rgba(35,39,48,.30);
  --shadow-s: 0 1px 2px rgba(35,39,48,.05), 0 8px 22px -16px rgba(35,39,48,.28);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

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

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 80;
  background: rgba(243,242,238,.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.brand small { display:block; font-family: var(--body); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lichen); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink-soft); text-decoration: none; padding: 9px 13px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--brick-deep); }
.nav .btn { margin-left: 6px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1; padding: 12px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { display:block; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 22px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- generic section rhythm ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lichen-deep); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); letter-spacing: -.022em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brick); }
.hero p.lede { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 92px; }
.hero-meta .n { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.hero-meta .l { font-size: 13.5px; color: var(--ink-mute); margin-top: 6px; }

.hero-art { position: relative; }
.hero-art .frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); aspect-ratio: 4/5; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -14px; bottom: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-s); max-width: 230px; }
.hero-badge .t { font-family: var(--display); font-weight: 600; font-size: 15px; }
.hero-badge .d { font-size: 13px; color: var(--ink-mute); margin-top: 3px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 440px; }
  .hero-badge { left: 0; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding-block: 20px; }
.trust .lab { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14.5px; color: var(--ink-soft); }
.trust li svg { color: var(--lichen-deep); flex: 0 0 auto; }

/* ---------- service cards ---------- */
.svc-head { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 62ch; margin-bottom: 44px; }
.svc-head h2 { font-size: clamp(28px, 4vw, 42px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brick-tint); color: var(--brick-deep); margin-bottom: 18px; }
.svc:nth-child(2) .ic { background: var(--lichen-tint); color: var(--lichen-deep); }
.svc:nth-child(3) .ic { background: var(--brick-tint); color: var(--brick-deep); }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.svc ul { list-style: none; margin: 0 0 18px; padding: 0; }
.svc ul li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 7px; }
.svc ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--lichen); }
.svc .more { margin-top: auto; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--brick-deep); }
.svc .more:hover { color: var(--brick); }

@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- approach / split ---------- */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split.flip { grid-template-columns: 1.08fr .92fr; }
.split .art img { border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split .art { order: -1; } }

/* ---------- band (lichen) ---------- */
.band { background: var(--lichen-deep); color: #eef0e8; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #c6cdb6; }
.band a { color: #fff; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px 24px; }
.quote p { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.42; margin: 0 0 18px; color: #fff; letter-spacing: -.01em; }
.quote .who { font-size: 14px; color: #d4dac6; }
.quote .who b { color: #fff; font-weight: 600; display: block; font-family: var(--body); }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- insights ---------- */
.ins-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.ins-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.post-card a.cover { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card a.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover a.cover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .post-card:hover a.cover img { transform: none; } }
.post-card .body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lichen-deep); margin-bottom: 10px; }
.post-card h3 { font-size: 19px; line-height: 1.18; margin-bottom: 9px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brick-deep); }
.post-card p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.post-card .meta { margin-top: auto; font-size: 13px; color: var(--ink-mute); display: flex; gap: 12px; }
@media (max-width: 880px) { .posts { grid-template-columns: 1fr; } }

/* ---------- resources / blogroll ---------- */
.resources { background: var(--paper-2); border-top: 1px solid var(--line); }
.res-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.res-list li { border-top: 1px solid var(--line); padding-top: 12px; }
.res-list a { font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.res-list a:hover { color: var(--brick-deep); text-decoration: underline; }
.res-list .src { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; font-weight: 500; }
@media (max-width: 760px) { .res-grid { grid-template-columns: 1fr; } .res-list { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(34px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; }
.cta-band p { color: #cdd0d6; margin: 0; max-width: 46ch; }
.cta-band .act { display: flex; justify-content: flex-end; }
.cta-band .btn-primary { background: var(--brick); }
.cta-band .btn-primary:hover { background: #c4583d; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .act { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 52px 30px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.foot-grid h4 { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--brick-deep); }
.foot-brand p { color: var(--ink-soft); font-size: 14.5px; max-width: 34ch; margin: 12px 0 0; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-mute); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-block: clamp(46px, 7vw, 84px) clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 16px; }
.crumbs { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--brick-deep); }

/* ---------- about ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-s); }
.member .av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--lichen-tint); color: var(--lichen-deep); font-family: var(--display); font-weight: 600; font-size: 22px; margin-bottom: 16px; }
.member:nth-child(2) .av { background: var(--brick-tint); color: var(--brick-deep); }
.member h3 { font-size: 19px; margin-bottom: 2px; }
.member .role { font-size: 13.5px; color: var(--lichen-deep); font-weight: 600; margin-bottom: 12px; }
.member p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 880px) { .team { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 30px; }
.value { border-top: 2px solid var(--brick); padding-top: 16px; }
.value:nth-child(even) { border-top-color: var(--lichen); }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-aside h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.contact-aside .info { margin-top: 26px; display: grid; gap: 16px; }
.contact-aside .info div { display: flex; gap: 13px; align-items: flex-start; }
.contact-aside .info svg { color: var(--brick-deep); flex: 0 0 auto; margin-top: 2px; }
.contact-aside .info b { display: block; font-family: var(--display); font-size: 15px; }
.contact-aside .info span { font-size: 14.5px; color: var(--ink-soft); }
.contact-aside .info a { color: var(--ink-soft); }

form.lead { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
form.lead .field { margin-bottom: 20px; }
form.lead label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
form.lead input, form.lead textarea { width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
form.lead input::placeholder, form.lead textarea::placeholder { color: #9aa0a8; }
form.lead input:focus, form.lead textarea:focus { outline: none; border-color: var(--lichen-deep); box-shadow: 0 0 0 3px rgba(95,107,79,.18); background: #fff; }
form.lead textarea { resize: vertical; min-height: 130px; }
form.lead .btn-primary { width: 100%; justify-content: center; font-size: 16px; padding: 14px; }
form.lead .note { font-size: 13px; color: var(--ink-mute); margin: 14px 0 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article { padding-block: clamp(34px, 5vw, 56px) clamp(50px, 8vw, 90px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.article-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); margin-bottom: 30px; aspect-ratio: 16/8; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.72; color: #2c303a; max-width: 70ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 1.9em; margin-bottom: .5em; }
.prose h3 { font-size: clamp(19px, 2.4vw, 23px); margin-top: 1.5em; margin-bottom: .45em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--brick-deep); font-weight: 600; }
.prose a:hover { color: var(--brick); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line-2); margin: 1.6em 0; box-shadow: var(--shadow-s); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brick); font-family: var(--display); font-style: normal; font-size: 20px; line-height: 1.4; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.prose section { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose [itemprop="name"] { font-size: 19px; }
.prose [itemprop="text"] { margin-bottom: 1.3em; color: var(--ink-soft); }

.article-aside { position: sticky; top: 92px; }
.aside-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s); margin-bottom: 20px; }
.aside-card h4 { font-family: var(--body); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.aside-card .ref { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none; padding: 11px 0; border-top: 1px solid var(--line); }
.aside-card .ref:first-of-type { border-top: none; padding-top: 0; }
.aside-card .ref:hover { color: var(--brick-deep); }
.aside-card.cta { background: var(--lichen-deep); border-color: var(--lichen-deep); }
.aside-card.cta h4 { color: #c6cdb6; }
.aside-card.cta p { color: #e7eadf; font-size: 14.5px; margin: 0 0 16px; }
.aside-card.cta .btn { width: 100%; justify-content: center; }
.article-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-mute); font-size: 14px; margin-bottom: 8px; }
.article-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 10px 0 18px; }
@media (max-width: 940px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 620px) { .article-aside { grid-template-columns: 1fr; } }

/* read-more list on related */
.related { border-top: 1px solid var(--line); }
