/* ============================================================
   Hair Gracefully — site stylesheet
   Built on the v1.0 design tokens. Single source of truth for the
   real (non-runtime) website.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --canvas:      #FFFCFB;
  --surface:     #FFFFFF;
  --blush-50:    #FDF6F4;
  --blush-100:   #F9E9E7;
  --rose-200:    #F0CDD0;
  --rose-300:    #DFA3AB;
  --rose-500:    #C97A88;
  --rose-700:    #9E3D57;
  --rose-800:    #7E2E46;
  --ink:         #2E2A2B;
  --ink-muted:   #6F6467;
  --hairline:    #F0E4E2;
  --sage-500:    #8FA089;
  --champagne:   #E7D3BE;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;

  --fs-h1:      clamp(2rem, 1.3rem + 3vw, 2.75rem);
  --fs-h2:      clamp(1.625rem, 1.3rem + 1.4vw, 2rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-body:    clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);
  --fs-lead:    clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-small:   clamp(.875rem, .85rem + .1vw, .9375rem);
  --fs-eyebrow: clamp(.75rem, .73rem + .1vw, .8125rem);

  --lh-tight: 1.15;
  --lh-body:  1.7;
  --measure:  68ch;

  /* ---- Spacing ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px;

  /* ---- Radius ---- */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(60,30,40,.04);
  --shadow-sm: 0 4px 16px rgba(140,70,90,.06);
  --shadow-md: 0 12px 32px rgba(140,70,90,.08);
  --focus-ring: 0 0 0 3px rgba(158,61,87,.35);

  /* ---- Layout ---- */
  --container-article:  720px;
  --container-standard: 1120px;
  --container-wide:     1280px;
  --gutter: 20px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
::selection { background: var(--blush-100); }

a { color: var(--rose-700); text-decoration: none; }
a:hover { color: var(--rose-800); }

h1, h2, h3, h4 { color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

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

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container-standard); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }
.container-article { max-width: var(--container-article); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-12); }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--rose-700);
}
.muted { color: var(--ink-muted); }
.display { font-family: var(--font-display); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 12px var(--gutter); display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.brand__name span { color: var(--rose-700); font-weight: 400; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink); padding-bottom: 2px; }
.site-nav a:hover { color: var(--rose-700); }
.site-nav a.is-active { color: var(--rose-700); border-bottom: 2px solid var(--rose-700); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--surface); color: var(--rose-700);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  text-decoration: none;
}
.icon-btn:hover { background: var(--blush-50); }
.burger { display: none; color: var(--ink); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .site-nav.is-open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 16px; margin: 0;
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .site-nav.is-open a.is-active { border-bottom: 1px solid var(--hairline); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 26px; text-decoration: none; transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--rose-700); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--rose-800); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { background: var(--rose-800); transform: translateY(1px); }
.btn--secondary { background: var(--surface); color: var(--rose-700); border: 1px solid var(--rose-300); }
.btn--secondary:hover { background: var(--blush-50); border-color: var(--rose-700); color: var(--rose-700); }
.btn--secondary:active { background: var(--blush-100); transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-block; background: var(--blush-100); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill);
}
.tag { background: var(--blush-100); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.filter-chip {
  background: var(--blush-100); color: var(--ink); border: none; border-radius: var(--r-pill);
  padding: 9px 18px; font-family: var(--font-body); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .15s ease;
}
.filter-chip:hover { background: var(--rose-200); }
.filter-chip.is-active { background: var(--rose-700); color: #fff; }

/* ---------- Forms ---------- */
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--hairline);
  font-family: var(--font-body); font-size: 16px; background: var(--surface); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--rose-700); box-shadow: var(--focus-ring); }
.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field-error { font-size: 13px; color: var(--rose-700); margin-top: 6px; }
.contact-form { max-width: 560px; margin: 20px 0 8px; }
.contact-form .field + .field { margin-top: 16px; }
.contact-form button[type="submit"] { margin-top: 20px; }
.contact-form textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }
.contact-form select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239E3D57' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; display: block;
  transition: box-shadow .18s ease, transform .18s ease;
}
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__body { padding: 18px; }
.card__title { font-weight: 700; font-size: 17px; line-height: 1.35; margin: 4px 0 6px; color: var(--ink); }
.card__meta { font-size: 13px; color: var(--ink-muted); }

/* ---------- Placeholder "photo" (brand-consistent) ---------- */
.ph {
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,0)),
    radial-gradient(120% 120% at 20% 15%, var(--blush-50), var(--blush-100) 55%, var(--rose-200));
  position: relative;
}
.ph--stripe {
  background: repeating-linear-gradient(135deg, var(--blush-50), var(--blush-50) 12px, var(--blush-100) 12px, var(--blush-100) 24px);
}
.ph__label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px;
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-muted);
}
.ph__dot { width: 12px; height: 12px; border-radius: 3px; background: var(--rose-500); }
.ratio-32 { aspect-ratio: 3/2; }
.ratio-45 { aspect-ratio: 4/5; }
.ratio-23 { aspect-ratio: 2/3; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-1610 { aspect-ratio: 16/10; }

/* Real content images sit in a ratio box and cover it (mirrors .avatar__img) */
.media { position: relative; overflow: hidden; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--auto-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--auto-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--auto-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--auto-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--auto-150 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Hero (home) ---------- */
.hero { background: var(--blush-50); border-bottom: 1px solid var(--hairline); }
.hero__inner {
  max-width: var(--container-standard); margin: 0 auto; padding: 56px var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.1; margin: 0 0 16px; }
.hero__lead { font-size: 20px; line-height: 1.6; margin: 0 0 24px; max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { aspect-ratio: 3/2; border-radius: 20px; border: 1px solid var(--hairline); }
@media (max-width: 760px) { .hero__inner { grid-template-columns: 1fr; } }

/* ---------- Section header row ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); margin: 0; }
.section-head a { font-weight: 700; font-size: 15px; }

/* ---------- Cluster shortcut card ---------- */
.shortcut {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease;
}
.shortcut:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.shortcut__icon {
  width: 36px; height: 36px; border-radius: 12px; background: var(--blush-50);
  display: flex; align-items: center; justify-content: center;
}
.shortcut__name { font-weight: 700; font-size: 17px; }
.shortcut__count { font-size: 14px; color: var(--ink-muted); }

/* ---------- Trending strip ---------- */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 16px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: var(--r-pill); }
.strip__item { flex: 0 0 200px; scroll-snap-align: start; color: inherit; }
.strip__card { aspect-ratio: 2/3; border-radius: 20px; border: 1px solid var(--hairline); position: relative; }
.strip__label {
  position: absolute; bottom: 12px; left: 12px; background: var(--surface); border-radius: var(--r-pill);
  padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--rose-700); box-shadow: var(--shadow-xs);
}

/* ---------- Stylist avatars ---------- */
.stylists { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.stylist { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; width: 120px; }
.stylist:hover { color: inherit; }
.avatar {
  border-radius: var(--r-pill); background: var(--rose-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--rose-800); flex-shrink: 0;
}
.avatar--72 { width: 72px; height: 72px; font-size: 26px; }
.avatar--112 { width: 112px; height: 112px; font-size: 42px; }
.avatar--64 { width: 64px; height: 64px; font-size: 24px; }
.avatar--38 { width: 38px; height: 38px; font-size: 15px; }
.avatar--30 { width: 30px; height: 30px; font-size: 13px; }
.stylist__name { font-weight: 700; font-size: 15px; }
.stylist__role { font-size: 13px; color: var(--ink-muted); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--ink-muted); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--rose-700); }
.crumbs .sep { color: var(--rose-300); }
.crumbs .current { color: var(--ink); }

/* ---------- Article ---------- */
.article-eyebrow { margin: 28px 0 10px; }
.article h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.12; margin: 0 0 16px; }
.byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-muted); padding-bottom: 24px; border-bottom: 1px solid var(--hairline);
}
.byline a { font-weight: 700; color: var(--ink); }
.byline a:hover { color: var(--rose-700); }
.byline__sub { font-size: 13px; }
.lead { font-size: 20px; line-height: 1.6; margin: 24px 0; }

figure { margin: 0 0 12px; }
figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }

/* ---------- Prose (article body) ---------- */
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.2; margin: 40px 0 8px; }
.prose h3 { font-weight: 700; font-size: var(--fs-h3); margin: 24px 0 6px; }
.prose p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { line-height: 1.7; padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 4px; }
.prose blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.45; border-left: 4px solid var(--rose-500);
  padding: 4px 0 4px 20px; margin: 24px 0; color: var(--ink);
}

/* ---------- Callouts ---------- */
.note {
  position: relative; background: var(--blush-50); border-radius: 20px; box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--rose-500); padding: 22px 24px; margin: 28px 0; overflow: hidden;
}
.note::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 22px 22px 0; border-color: transparent var(--rose-200) transparent transparent;
}
.note__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-700);
}
.note__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sage-500); }
.note p { margin: 0; font-size: 17px; line-height: 1.65; }
.note__sig { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.note__sig span { font-size: 14px; color: var(--ink-muted); }

.caveat {
  background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--sage-500);
  border-radius: 20px; padding: 22px 24px; margin: 28px 0;
}
.caveat h3 { font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.caveat ul { margin: 0; padding-left: 20px; line-height: 1.7; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; margin: 28px 0; }
table.hg { width: 100%; border-collapse: collapse; font-size: 15px; }
/* On mobile, let wide tables scroll sideways instead of stacking into cramped columns */
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.hg { min-width: 520px; }
  table.hg th, table.hg td { white-space: nowrap; }
}
table.hg th { background: var(--blush-50); text-align: left; padding: 14px 16px; font-weight: 700; }
table.hg td { padding: 14px 16px; }
table.hg tr + tr td, table.hg tbody tr { border-top: 1px solid var(--hairline); }
table.hg tbody tr td:first-child { font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 48px; }
.faq__item { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.faq__item.is-open { background: var(--blush-50); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq__icon { color: var(--rose-500); font-size: 16px; flex-shrink: 0; transition: transform .25s ease; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; opacity: 0; padding: 0 20px; transition: max-height .3s ease, opacity .3s ease, padding .3s ease; }
.faq__item.is-open .faq__a { max-height: 480px; opacity: 1; padding: 0 20px 20px; }
.faq__a p { margin: 0; font-size: 16px; line-height: 1.65; }

/* ---------- Gallery entries (numbered) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 20px; margin-bottom: 48px; }
.entry { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.entry__media { position: relative; }
.entry__num {
  position: absolute; bottom: -18px; left: 16px; width: 52px; height: 52px; border-radius: var(--r-pill);
  background: var(--blush-50); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--rose-700); box-shadow: var(--shadow-sm);
}
.entry__body { padding: 26px 22px 22px; }
.entry__body h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.entry__body p { margin: 0; font-size: 16px; line-height: 1.6; }
.save-btn {
  position: absolute; top: 12px; right: 12px; border: none; border-radius: var(--r-pill);
  padding: 7px 14px; font-family: var(--font-body); font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: var(--shadow-xs); background: rgba(255,255,255,.92); color: var(--rose-700);
}
.save-btn.is-saved { background: var(--rose-700); color: #fff; }

/* ---------- Steps (tutorial) ---------- */
.steps { position: relative; }
.steps__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--hairline); }
.steps__list { display: flex; flex-direction: column; gap: 28px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step__num {
  width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--blush-50); border: 2px solid var(--rose-300);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 500; font-size: 22px; color: var(--rose-700); position: relative; z-index: 1;
}
.step__media { border-radius: var(--r-md); border: 1px solid var(--hairline); margin-bottom: 12px; }
.step h3 { font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; }

/* ---------- Meta strip / checklist ---------- */
.meta-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.meta-pill { background: var(--blush-50); border-radius: var(--r-pill); padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--ink); }
.checklist-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px 24px; margin-bottom: 24px; }
.checklist-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.checklist { display: flex; flex-direction: column; gap: 8px; }
.checklist__item { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.checklist__box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--rose-300); flex-shrink: 0; }

/* ---------- Author page ---------- */
.author-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 32px 0; border-bottom: 1px solid var(--hairline); }
.author-head h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.1; margin: 0 0 4px; }
.author-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-link { border: 1px solid var(--rose-300); color: var(--rose-700); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: var(--r-pill); }
.pill-link:hover { background: var(--blush-50); color: var(--rose-700); }
.author-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 40px 0; }
@media (max-width: 760px) { .author-grid { grid-template-columns: 1fr; gap: 28px; } }
.author-bio-card {
  background: var(--blush-50); border-radius: var(--r-lg); padding: 28px; margin: 32px 0 40px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
}
.author-bio-card .b { flex: 1; min-width: 240px; }
.author-bio-card .name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.author-bio-card .role { font-size: 14px; color: var(--ink-muted); margin-bottom: 10px; }

/* ---------- Search results ---------- */
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.result {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); color: inherit;
}
a.result:hover { box-shadow: var(--shadow-md); }
.result__media { flex: 0 0 120px; }
.result__body { padding: 16px 16px 16px 4px; }
.result__title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.result__snippet { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.result mark { background: var(--blush-100); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state__icon {
  width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--blush-50);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--rose-200); border-top-color: var(--rose-700);
  border-radius: var(--r-pill); display: inline-block; animation: hg-spin .7s linear infinite;
}
@keyframes hg-spin { to { transform: rotate(360deg); } }
@keyframes hg-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; height: 112px; }
.skeleton__media { flex: 0 0 120px; }
.shimmer { background: linear-gradient(90deg, var(--blush-50), var(--blush-100), var(--blush-50)); background-size: 400px 100%; animation: hg-shimmer 1.2s infinite; }

/* ---------- Pillar callout (cluster hub) ---------- */
.pillar {
  display: flex; gap: 20px; align-items: center; background: var(--blush-50);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 36px; color: inherit; flex-wrap: wrap;
}
.pillar:hover { color: inherit; }
.pillar__badge {
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-700);
  background: var(--surface); border-radius: var(--r-pill); padding: 6px 14px; flex: 0 0 auto;
}
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 4px; }
.pillar__b { flex: 1; min-width: 220px; }
.pillar__cta { color: var(--rose-700); font-weight: 700; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--blush-50); border-top: 1px solid var(--hairline); margin-top: var(--sp-20); padding: 56px var(--gutter); }
.newsletter__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 10px; }
.newsletter p { margin: 0 0 22px; color: var(--ink-muted); }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 200px; max-width: 320px; }
.newsletter__ok { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush-50); padding: 0 var(--gutter) 28px; }
.site-footer__cols {
  max-width: var(--container-standard); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px;
  border-top: 1px solid var(--hairline); padding-top: 32px;
}
.site-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.site-footer__mark { width: 28px; height: 28px; }
.site-footer__brand span { color: var(--rose-700); font-weight: 400; }
.site-footer p { font-size: 14px; color: var(--ink-muted); margin: 0; }
.footer-col__title { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-col__links { display: flex; flex-direction: column; gap: 7px; }
.footer-col__links a { font-size: 14px; color: var(--ink-muted); }
.footer-col__links a:hover { color: var(--rose-700); }
.site-footer__legal { max-width: var(--container-standard); margin: 24px auto 0; font-size: 13px; color: var(--ink-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__legal a { color: var(--ink-muted); }

/* ---------- Misc ---------- */
.disclaimer { border-top: 1px solid var(--hairline); padding-top: 20px; margin: 32px 0 0; }
.disclaimer p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.expertise { display: flex; gap: 10px; flex-wrap: wrap; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Author photos + E-E-A-T profile ---------- */
/* Real headshot layers over the initials; if the image is missing,
   onerror removes it and the initials show through as a fallback. */
.avatar { position: relative; overflow: hidden; }
.avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: inherit; }

.cred-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cred-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blush-50); border: 1px solid var(--rose-300);
  color: var(--rose-800); font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: var(--r-pill);
}
.cred-badge::before { content: "\2713"; color: var(--rose-500); font-weight: 900; }

.author-section { padding: 40px 0; border-top: 1px solid var(--hairline); }
.author-section > h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); margin: 0 0 20px; }

.author-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.author-highlights li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; }
.author-highlights li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--rose-500);
}

.affil-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink); }

.review-note { background: var(--blush-50); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px 26px; }
.review-note h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); }
.review-note p { margin: 0; color: var(--ink); }

.sidebar-title { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.sidebar-block + .sidebar-block { margin-top: 28px; }
