/* The Wellness Way — site stylesheet
   Readability first: large type, high contrast, generous spacing, no motion. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-400-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-700-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700-regular.woff2") format("woff2");
}

:root {
  --paper: #FBF8F3;
  --paper-2: #F2EBDF;
  --ink: #1B2430;
  --ink-2: #46515F;
  --line: #DDD4C5;
  --harbor: #1F3D5C;
  --harbor-2: #16304A;
  --ember: #C25B3A;
  --ember-2: #9E4327;
  --mist: #E4ECF2;
  --wheat: #E3B15A;
  --white: #FFFFFF;

  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --fs-base: 1.1875rem;   /* 19px */
  --fs-small: 1rem;       /* 16px */
  --fs-lead: 1.375rem;    /* 22px */
  --lh: 1.65;
  --measure: 68ch;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 20px;
  --container: 1140px;
  --tap: 52px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--harbor); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ember-2); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.5rem); margin-top: 1.3em; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--ember); }
strong { font-weight: 700; }
hr { border: 0; border-top: 2px solid var(--line); margin: 2.5rem 0; }
blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 5px solid var(--wheat);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 1.2em;
  font-style: italic;
}
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 1em; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--paper-2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  background: var(--harbor);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-height: var(--tap);
}
.brand:hover { color: var(--harbor); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 3px;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 14px;
  background: var(--paper);
  border: 2px solid var(--harbor);
  border-radius: var(--radius-sm);
  color: var(--harbor);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--harbor);
  font-size: 1.05rem;
}
.site-nav a:hover { background: var(--mist); color: var(--harbor-2); }
.site-nav a[aria-current="page"] { background: var(--harbor); color: var(--white); }

@media (max-width: 860px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.3rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 2px; padding: 8px 0 16px; }
  .site-nav a { width: 100%; min-height: 56px; font-size: 1.15rem; }
}

/* ---------- Layout blocks ---------- */
main { display: block; }
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.section-alt { background: var(--paper-2); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 700; white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin-bottom: 0.6rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--harbor);
  background: var(--harbor);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--harbor-2); border-color: var(--harbor-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--harbor); }
.btn-outline:hover { background: var(--mist); color: var(--harbor-2); }
.btn-ember { background: var(--ember); border-color: var(--ember); }
.btn-ember:hover { background: var(--ember-2); border-color: var(--ember-2); }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 3.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.6em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 520px; }
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-art { background: var(--mist); aspect-ratio: 4 / 3; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .eyebrow { margin-bottom: 0; }
.card h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--harbor); text-decoration: underline; }
.card p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.card-meta { margin-top: auto; padding-top: 10px; font-size: 0.95rem; color: var(--ink-2); }

.card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.card-feature .card-art { aspect-ratio: auto; min-height: 280px; }
.card-feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.card-feature .card-body { padding: 32px; justify-content: center; }
@media (max-width: 760px) { .card-feature { grid-template-columns: 1fr; } .card-feature .card-art { aspect-ratio: 4 / 3; min-height: 0; } }

/* Topic tiles */
.tile {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  min-height: 100%;
}
.tile:hover { border-color: var(--harbor); color: var(--ink); }
.tile:hover h3 { color: var(--harbor); }
.tile-icon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.tile-icon svg { width: 34px; height: 34px; }
.tile h3 { margin: 0 0 4px; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.tile .count { display: block; margin-top: 8px; font-size: 0.95rem; color: var(--ember-2); font-weight: 700; }

/* Pillars / how we work */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 0; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.pillar h3 { margin-top: 0; }
.pillar p { color: var(--ink-2); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--harbor);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter h2 { color: var(--white); margin: 0 0 0.4em; }
.newsletter p { color: #DCE6EF; margin: 0; }
.newsletter a { color: var(--white); }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form label { font-weight: 700; }
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: var(--tap);
  padding: 0 18px;
  font: inherit;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--ink);
}
.newsletter-form .btn-ember { width: 100%; }
.newsletter-form .fineprint { font-size: 0.95rem; color: #DCE6EF; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Article ---------- */
.breadcrumb { font-size: 1rem; color: var(--ink-2); margin: 1.4rem 0 1.4rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; padding: 0 6px; color: var(--ink-2); }

.article-header { max-width: 780px; margin: 0 auto 2rem; text-align: left; }
.article-header .lead { margin-top: 0.4rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 1rem;
  color: var(--ink-2);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}
.article-meta strong { color: var(--ink); }
.article-hero { max-width: 900px; margin: 0 auto 2.4rem; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.article-hero figcaption { font-size: 0.95rem; color: var(--ink-2); padding: 10px 14px; background: var(--paper-2); }

.prose { max-width: var(--measure); margin: 0 auto; }
@media (min-width: 720px) { .prose { font-size: 1.25rem; } }
.prose p, .prose li { line-height: 1.7; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

.takeaways {
  background: var(--mist);
  border-left: 6px solid var(--harbor);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 0 0 2rem;
}
.takeaways h2 { margin: 0 0 0.5em; font-size: 1.35rem; }
.takeaways ul { margin: 0; }
.takeaways li { margin-bottom: 0.5em; }

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.8rem 0;
}
.callout .eyebrow { margin-bottom: 0.3rem; }
.callout p:last-child { margin-bottom: 0; }

.sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 1.5rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 0.7em; font-size: 1.02rem; word-break: break-word; }
.sources .src-org { font-weight: 700; }

.disclaimer-note {
  margin-top: 2rem;
  padding: 18px 22px;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--ink-2);
}
.disclaimer-note p { margin: 0; }

.related { margin-top: 3rem; }

/* ---------- Article list ---------- */
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-row .row-art { background: var(--mist); }
.article-row .row-art img { width: 100%; height: 100%; object-fit: cover; }
.article-row .row-body { padding: 18px 22px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.article-row h3 { margin: 0; font-size: 1.4rem; }
.article-row h3 a { text-decoration: none; color: var(--ink); }
.article-row h3 a:hover { color: var(--harbor); text-decoration: underline; }
.article-row p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.article-row .card-meta { padding-top: 6px; }
@media (max-width: 640px) {
  .article-row { grid-template-columns: 1fr; }
  .article-row .row-art { aspect-ratio: 16 / 9; }
  .article-row .row-body { padding: 16px 20px 20px; }
}

.topic-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.topic-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--harbor);
  color: var(--harbor);
  text-decoration: none;
  font-weight: 700;
  background: var(--white);
}
.topic-filter a:hover, .topic-filter a[aria-current="page"] { background: var(--harbor); color: var(--white); }

/* ---------- Generic page ---------- */
.page-header { padding: 2.6rem 0 1.4rem; max-width: 780px; }
.page-header h1 { margin-bottom: 0.4em; }
.page-body { padding-bottom: 3.5rem; }
.page-body .prose { margin-left: 0; }
.updated { font-size: 1rem; color: var(--ink-2); }

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; } }
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-box h2 { margin-top: 0; font-size: 1.35rem; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box address { font-style: normal; }

.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2rem; }
.toc h2 { font-size: 1.2rem; margin: 0 0 0.5em; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--harbor-2);
  color: #D8E1EA;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  font-size: 1rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--wheat); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-decoration: none; margin-bottom: 0.8rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.site-footer h2 { color: var(--white); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35em; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.95rem; color: #B9C6D3; }
.footer-bottom p { margin: 0 0 0.4em; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(27,36,48,0.18);
  padding: 18px 20px;
  display: none;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 50;
  font-size: 1rem;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }

/* ---------- 404 / thank-you ---------- */
.center-page { text-align: center; padding: 4rem 0 5rem; }
.center-page .lead { margin: 0 auto 1.6rem; }
.center-page .hero-actions { justify-content: center; }
.center-page img { margin: 0 auto 1.5rem; max-width: 360px; }

@media print {
  .site-header, .site-footer, .cookie-bar, .newsletter, .related { display: none; }
  body { background: #fff; color: #000; }
}
