/* CMW Family v2, 2026-11-07
   Shared markers for every Charles Mindful Wellness site: the house line,
   the reading text and the family footer with the C mark.
   Each site sets the four variables in :root (or on body) and keeps
   everything else (palette, display face, layout) its own.

   Load the two shared fonts in the page head:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Public+Sans:wght@400;600;700&display=swap" rel="stylesheet">
*/

:root {
  /* Set these per site */
  --site-ground: #FAF7F0;        /* page ground */
  --site-text: #2D2F30;          /* body text on the ground */
  --site-footer-ground: #0B0F0E; /* the site's darkest brand colour */
  --site-footer-text: #FAF7F0;   /* the site's lightest colour */

  /* Shared, do not change */
  --font-reading: "Public Sans", system-ui, sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, monospace;
  --house-gap: 16px;
  --mark-footer: 32px;
  --mark-clear: 32px;            /* clear space around the mark, equal to its height */
  --footer-pad-y: 32px;
  --footer-pad-x: 24px;
}

/* Marker 1: the house line. First element on the page, above any logo or menu. */
.cmw-house-line {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-text);
  opacity: 0.8;                  /* contrast is checked at this opacity: 4.5:1 or better */
  margin: 0 0 var(--house-gap);
}
@media (min-width: 1200px) {
  .cmw-house-line { font-size: 13px; }
}
.cmw-house-line .short { display: none; }
@media (max-width: 420px) {
  .cmw-house-line.wraps .full { display: none; }
  .cmw-house-line.wraps .short { display: inline; }
}

/* Marker 2: the reading text. */
body {
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}
.cmw-body-small { font-size: 16px; line-height: 1.5; }
.cmw-meta {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Marker 3: the family footer. Last element on every page. */
.cmw-footer {
  background: var(--site-footer-ground);
  color: var(--site-footer-text);
  padding: var(--footer-pad-y) var(--footer-pad-x);
  display: flex;
  gap: var(--mark-clear);
  align-items: flex-start;
  font-family: var(--font-reading);
}
.cmw-footer .cmw-mark {
  flex: none;
  width: var(--mark-footer);
  height: var(--mark-footer);
  color: var(--site-footer-text); /* the mark takes the footer's text colour */
}
.cmw-footer .cmw-mark svg { display: block; width: 100%; height: 100%; }
.cmw-footer .cmw-footer-house {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.cmw-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 6px;
  font-size: 14px;
  line-height: 24px;
}
.cmw-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;                 /* contrast is checked at this opacity */
}
.cmw-footer a:hover,
.cmw-footer a:focus-visible { opacity: 1; }
.cmw-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cmw-footer [aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}
.cmw-footer .cmw-policy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  font-size: 13px;
}
.cmw-footer .cmw-closing {
  font-size: 13px;
  margin: 14px 0 0;
  opacity: 0.85;
}
@media (max-width: 560px) {
  .cmw-footer { flex-direction: column; gap: 32px; }
}
