/* ==========================================================================
   Dr. Donna Duffin — "Quiet Dawn" design system
   Hand-built for drdonnaduffin.com. No frameworks, no build step.
   --------------------------------------------------------------------------
   1. Tokens          5. Buttons & links      9. Blog & cards
   2. Reset & base    6. Header & nav        10. Interactive tools
   3. Layout          7. Hero & sections     11. Forms
   4. Typography      8. Components          12. Footer, utilities, motion
   ========================================================================== */

/* 0 -------------------------------------------------------------- FONTS -- */
/* Self-hosted so the site has no third-party dependency, loads fast, and
   keeps working on networks that block external font CDNs. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-full.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-full-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* 1 ------------------------------------------------------------- TOKENS -- */
:root {
  /* Core palette — warm, bright, unhurried */
  --ink:            #17323a;
  --ink-2:          #2f5058;
  --ink-3:          #5c7b81;
  --ink-mute:       #7d9599;

  --paper:          #fbf7f1;
  --paper-2:        #fffdfa;
  --paper-3:        #f4ede3;
  --line:           #e5dbcd;
  --line-soft:      #efe6d9;

  --sage:           #6f9c88;
  --sage-deep:      #4c7069;
  --sage-soft:      #dfeae2;
  --sage-tint:      #f0f5f1;

  --coral:          #d97a5e;
  --coral-soft:     #f9e5dd;
  --gold:           #c99a3f;
  --gold-soft:      #f8eed8;
  --sky:            #6f9db4;
  --sky-soft:       #e3eff4;
  --lilac:          #8f84b8;
  --lilac-soft:     #eeebf6;

  --focus:          #1c6e63;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Karla", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.93rem);
  --step-0:  clamp(1.02rem, 0.99rem + 0.18vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.36vw, 1.44rem);
  --step-2:  clamp(1.45rem, 1.32rem + 0.66vw, 1.90rem);
  --step-3:  clamp(1.78rem, 1.53rem + 1.22vw, 2.55rem);
  --step-4:  clamp(2.15rem, 1.72rem + 2.10vw, 3.40rem);
  --step-5:  clamp(2.55rem, 1.85rem + 3.40vw, 4.60rem);

  /* Space */
  --sp-1: 0.375rem;  --sp-2: 0.75rem;   --sp-3: 1.125rem;
  --sp-4: 1.75rem;   --sp-5: 2.5rem;    --sp-6: 3.5rem;
  --sp-7: 5rem;      --sp-8: 7rem;      --sp-9: 9.5rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --wrap-wide: 1420px;

  --r-sm: 8px;  --r-md: 16px;  --r-lg: 26px;  --r-xl: 40px;
  --shadow-1: 0 1px 2px rgba(23,50,58,.05), 0 6px 18px -8px rgba(23,50,58,.14);
  --shadow-2: 0 2px 4px rgba(23,50,58,.05), 0 22px 48px -20px rgba(23,50,58,.24);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  color-scheme: light;
}

/* Optional gentle night palette for late-evening readers */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #eaf0ee;
    --ink-2:      #cfdcda;
    --ink-3:      #a8bcbb;
    --ink-mute:   #8ba3a3;
    --paper:      #10201f;
    --paper-2:    #16292a;
    --paper-3:    #1c3333;
    --line:       #27403f;
    --line-soft:  #223838;
    --sage:       #8fc0a9;
    --sage-deep:  #a9d3bd;
    --sage-soft:  #1d3532;
    --sage-tint:  #16292a;
    --coral:      #f0a087;
    --coral-soft: #35251f;
    --gold:       #e2bb6c;
    --gold-soft:  #322a19;
    --sky:        #96c1d4;
    --sky-soft:   #16292f;
    --lilac:      #b7abdf;
    --lilac-soft: #221f30;
    --focus:      #8fc0a9;
    --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 6px 18px -8px rgba(0,0,0,.55);
    --shadow-2: 0 2px 4px rgba(0,0,0,.32), 0 22px 48px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink:        #eaf0ee;  --ink-2: #cfdcda;  --ink-3: #a8bcbb;  --ink-mute: #8ba3a3;
  --paper:      #10201f;  --paper-2: #16292a; --paper-3: #1c3333;
  --line:       #27403f;  --line-soft: #223838;
  --sage:       #8fc0a9;  --sage-deep: #a9d3bd; --sage-soft: #1d3532; --sage-tint: #16292a;
  --coral:      #f0a087;  --coral-soft: #35251f;
  --gold:       #e2bb6c;  --gold-soft: #322a19;
  --sky:        #96c1d4;  --sky-soft: #16292f;
  --lilac:      #b7abdf;  --lilac-soft: #221f30;
  --focus:      #8fc0a9;
  --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 6px 18px -8px rgba(0,0,0,.55);
  --shadow-2: 0 2px 4px rgba(0,0,0,.32), 0 22px 48px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* 2 ------------------------------------------------------ RESET & BASE -- */
*, *::before, *::after { 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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain — a whisper of texture so flat colour never looks synthetic */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

::selection { background: var(--sage-soft); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper-2);
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  z-index: 999; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
.section--tint { background: var(--sage-tint); }
.section--paper2 { background: var(--paper-2); }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); }
  .split--wide-left { grid-template-columns: 1.35fr .65fr; }
  .split--wide-right { grid-template-columns: .65fr 1.35fr; }
  .split--flip > :first-child { order: 2; }
}

.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }

/* 4 -------------------------------------------------------- TYPOGRAPHY -- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.04; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 600; }
p  { margin: 0 0 var(--sp-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.tiny  { font-size: var(--step--2); }

.script {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 400;
}

.pull {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.38;
  font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  color: var(--ink);
  position: relative;
  padding-left: 1.6em;
  margin: var(--sp-5) 0;
}
.pull::before {
  content: "\201C";
  position: absolute; left: 0; top: -.18em;
  font-size: 2.6em; line-height: 1; color: var(--sage); opacity: .55;
}
.pull cite {
  display: block; margin-top: var(--sp-2);
  font-family: var(--body); font-style: normal;
  font-size: var(--step--1); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--sp-6); font-size: var(--step-3); }
.prose h3 { margin-top: var(--sp-5); }
.prose ul, .prose ol { margin: 0 0 var(--sp-3); padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--sage); }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li {
  position: relative; padding-left: 2rem; margin-bottom: .7rem;
}
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 1.1rem; height: .55rem;
  border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

/* 5 --------------------------------------------------- BUTTONS & LINKS -- */
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--coral); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95em 1.9em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--paper-2); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow-2); }

.btn--accent { background: var(--coral); color: #fff; box-shadow: var(--shadow-1); }
.btn--accent:hover { background: #c26548; color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-tint); }

.btn--sm { padding: .65em 1.3em; font-size: var(--step--2); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: var(--step--1);
  letter-spacing: .04em; text-decoration: none;
  color: var(--sage-deep);
}
.arrow-link::after {
  content: "→"; transition: transform .3s var(--ease); display: inline-block;
}
.arrow-link:hover::after { transform: translateX(5px); }

/* 6 ------------------------------------------------------ HEADER & NAV -- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: .85rem;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand__mark { flex: 0 0 auto; width: 42px; height: 42px; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display); font-size: 1.16rem; font-weight: 600;
  letter-spacing: -.01em; font-variation-settings: "SOFT" 40, "WONK" 1;
}
.brand__role {
  font-size: .63rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  padding: .55rem .8rem;
  font-size: .92rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sage-tint); }
.nav a[aria-current="page"] { color: var(--sage-deep); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--sage);
}

.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + .4rem); left: 0;
  min-width: 240px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: .5rem;
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: .55rem .7rem; font-size: .9rem; }
.subnav a::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.theme-toggle:hover { background: var(--sage-tint); color: var(--sage-deep); border-color: var(--sage); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 1.8px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4) var(--sp-5);
    box-shadow: var(--shadow-2);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: .85rem .4rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent;
    border-radius: 0;
  }
  .subnav a { font-size: .95rem; padding: .6rem .4rem; }
}

/* 7 ------------------------------------------------------ HERO/SECTION -- */
.hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-7);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper) 55%, transparent) 0%,
    color-mix(in srgb, var(--paper) 30%, transparent) 45%,
    var(--paper) 100%);
}
.hero--home { padding-block: var(--sp-9) var(--sp-8); min-height: 76vh; display: flex; align-items: center; }
.hero__inner { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 52ch; }

.page-hero {
  position: relative; overflow: hidden;
  padding-block: var(--sp-7) var(--sp-6);
  text-align: left;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper) 62%, transparent),
    var(--paper) 96%);
}
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .lede { max-width: 62ch; }

.crumbs {
  font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--sp-3); font-weight: 600;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--sage-deep); }
.crumbs span { opacity: .5; margin: 0 .5em; }

.section-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Wave divider */
.divider { display: block; width: 100%; line-height: 0; color: var(--paper); }
.divider svg { width: 100%; height: 60px; display: block; }
.divider--tint { color: var(--sage-tint); }
.divider--paper2 { color: var(--paper-2); }

/* 8 -------------------------------------------------------- COMPONENTS -- */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  display: flex; flex-direction: column;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line); }
.card:hover::after { width: 100%; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-2); font-size: var(--step--1); }
.card > :last-child { margin-top: auto; }
.card__foot { padding-top: var(--sp-3); }

.card--link { text-decoration: none; color: inherit; }
.card--flat { background: transparent; border-color: var(--line); }
.card--tint { background: var(--sage-tint); border-color: transparent; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-deep);
  margin-bottom: var(--sp-3);
  flex: 0 0 auto;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--gold  { background: var(--gold-soft);  color: var(--gold); }
.icon-badge--coral { background: var(--coral-soft); color: var(--coral); }
.icon-badge--sky   { background: var(--sky-soft);   color: var(--sky); }
.icon-badge--lilac { background: var(--lilac-soft); color: var(--lilac); }

.tag {
  display: inline-block;
  font-size: var(--step--2); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3em .8em; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-deep);
  text-decoration: none;
}
.tag--gold  { background: var(--gold-soft);  color: var(--gold); }
.tag--coral { background: var(--coral-soft); color: var(--coral); }
.tag--sky   { background: var(--sky-soft);   color: var(--sky); }
.tag--lilac { background: var(--lilac-soft); color: var(--lilac); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Organic image frame — the signature shape of the site */
.blob {
  border-radius: 58% 42% 46% 54% / 44% 50% 50% 56%;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.blob--2 { border-radius: 44% 56% 62% 38% / 56% 40% 60% 44%; }
.blob--3 { border-radius: 52% 48% 38% 62% / 40% 58% 42% 60%; }
.framed {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.framed img, .blob img { width: 100%; height: 100%; object-fit: cover; }

.figure-note {
  font-size: var(--step--2); color: var(--ink-3);
  margin-top: var(--sp-2); font-style: italic;
}

/* Stat / fact strip */
.facts { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,180px), 1fr)); }
.fact { text-align: center; }
.fact__n {
  font-family: var(--display); font-size: var(--step-3); color: var(--sage-deep);
  font-variation-settings: "SOFT" 50, "WONK" 1; line-height: 1;
}
.fact__l { font-size: var(--step--1); color: var(--ink-3); margin-top: .4rem; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0;
  font-family: var(--display); font-size: var(--step-1); color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  padding: var(--sp-3) 2.5rem var(--sp-3) 0;
  cursor: pointer; position: relative; line-height: 1.3;
}
.acc-btn::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(45deg); transition: transform .35s var(--ease);
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -3px; }
.acc-btn:hover { color: var(--sage-deep); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel .inner { padding: 0 0 var(--sp-4); color: var(--ink-2); max-width: 72ch; }

/* Specialty list */
.spec-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); }
.spec {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-3) var(--sp-4);
  transition: transform .35s var(--ease), border-left-color .35s var(--ease), box-shadow .35s var(--ease);
  scroll-margin-top: 100px;
}
.spec:hover { transform: translateX(4px); border-left-color: var(--coral); box-shadow: var(--shadow-1); }
.spec h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.spec p  { font-size: var(--step--1); color: var(--ink-2); }

/* Alert / note boxes */
.note {
  border-radius: var(--r-md);
  padding: var(--sp-4);
  background: var(--sky-soft);
  border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent);
}
.note--warn  { background: var(--coral-soft); border-color: color-mix(in srgb, var(--coral) 32%, transparent); }
.note--calm  { background: var(--sage-tint);  border-color: color-mix(in srgb, var(--sage) 28%, transparent); }
.note--gold  { background: var(--gold-soft);  border-color: color-mix(in srgb, var(--gold) 32%, transparent); }
.note h3, .note h4 { margin-bottom: .5rem; }
.note p { font-size: var(--step--1); }

/* Timeline / steps */
.steps { counter-reset: s; display: grid; gap: var(--sp-4); }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); border: 1.5px solid var(--sage);
  color: var(--sage-deep); font-family: var(--display); font-size: 1.2rem;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.step::after {
  content: ""; position: absolute; left: 1.5rem; top: 3.2rem; bottom: -1.4rem;
  width: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.step p { font-size: var(--step--1); color: var(--ink-2); }

/* Marquee of specialties */
.ticker { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: .9rem; }
.ticker__track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: slide 60s linear infinite;
}
.ticker span {
  font-family: var(--display); font-size: 1.05rem; color: var(--ink-3);
  white-space: nowrap; display: flex; align-items: center; gap: 2.6rem;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.ticker span::after { content: "✦"; color: var(--gold); font-size: .7rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* 9 ------------------------------------------------------ BLOG & CARDS -- */
.post-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%,320px),1fr)); }

.post-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); color: inherit; }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--sage-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-card__meta { font-size: var(--step--2); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.post-card h3 { font-size: var(--step-1); margin: 0; }
.post-card p { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
.post-card .arrow-link { margin-top: auto; padding-top: .4rem; }

.post-card--wide { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .post-card--wide { flex-direction: row; }
  .post-card--wide .post-card__media { flex: 0 0 46%; aspect-ratio: auto; }
  .post-card--wide .post-card__body { padding: var(--sp-5); justify-content: center; }
  .post-card--wide h3 { font-size: var(--step-2); }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-5); }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: .45em 1.05em;
  font-size: var(--step--2); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer;
  transition: all .25s var(--ease); font-family: var(--body);
}
.chip:hover { border-color: var(--sage); color: var(--sage-deep); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

.feed-status {
  padding: var(--sp-5); text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.skeleton {
  background: linear-gradient(90deg, var(--paper-3) 25%, var(--line-soft) 50%, var(--paper-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-lg);
  min-height: 340px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* 10 --------------------------------------------- INTERACTIVE TOOLS ----- */
.tool {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
  scroll-margin-top: 100px;
}
.tool__head { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.tool__head h3 { margin: 0; }
.tool__title { flex: 1 1 260px; }
.tool__title p { font-size: var(--step--1); color: var(--ink-3); margin: .35rem 0 0; }

/* Breathing orb */
.breath-stage {
  display: grid; place-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 0;
}
.breath-orb {
  --scale: 1;
  width: min(240px, 60vw); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%,
      color-mix(in srgb, var(--sage) 35%, var(--paper-2)) 0%,
      color-mix(in srgb, var(--sage) 60%, var(--paper-2)) 45%,
      color-mix(in srgb, var(--sky) 55%, var(--paper-2)) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sage) 30%, transparent),
              0 20px 60px -20px color-mix(in srgb, var(--sage) 70%, transparent);
  transform: scale(var(--scale));
  transition: transform linear;
  position: relative;
}
.breath-orb::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sage) 35%, transparent);
  opacity: .7;
}
.breath-word {
  font-family: var(--display); font-size: var(--step-2); color: var(--ink);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  text-align: center;
}
.breath-count { font-size: var(--step--1); color: var(--ink-3); letter-spacing: .16em; text-transform: uppercase; }
.pattern-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* Grounding */
.ground-step { display: none; }
.ground-step.is-active { display: block; animation: rise .5s var(--ease); }
.ground-sense {
  font-family: var(--display); font-size: var(--step-4); color: var(--sage-deep);
  font-variation-settings: "SOFT" 60, "WONK" 1; line-height: 1;
}
.ground-inputs { display: grid; gap: .6rem; margin: var(--sp-3) 0; }

/* Mood tracker */
.mood-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.mood-btn {
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: var(--r-md); padding: .7rem .9rem; cursor: pointer;
  font-family: var(--body); font-size: var(--step--1); color: var(--ink-2);
  display: flex; align-items: center; gap: .5rem;
  transition: all .25s var(--ease);
}
.mood-btn:hover { border-color: var(--sage); background: var(--sage-tint); }
.mood-btn.is-on { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.mood-dot { width: .8rem; height: .8rem; border-radius: 50%; background: currentColor; opacity: .75; }

.mood-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: var(--sp-3); }
.mood-bar {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--sage), var(--sky));
  min-height: 4px; position: relative;
  transition: height .5s var(--ease);
}
.mood-bar span {
  position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .62rem; color: var(--ink-3); white-space: nowrap;
}

/* Sliders */
.slider-field { margin-bottom: var(--sp-4); }
.slider-field label { display: flex; justify-content: space-between; font-size: var(--step--1); font-weight: 600; margin-bottom: .5rem; }
.slider-field output { color: var(--sage-deep); font-weight: 700; }
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; background: var(--line-soft); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-deep); border: 3px solid var(--paper-2);
  box-shadow: var(--shadow-1); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-deep); border: 3px solid var(--paper-2);
  box-shadow: var(--shadow-1); cursor: pointer;
}

.result-panel {
  margin-top: var(--sp-4); padding: var(--sp-4);
  border-radius: var(--r-md); background: var(--sage-tint);
  border: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
}
.result-panel[hidden] { display: none; }

/* Cards / games */
.deck { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); }
.play-card {
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--paper-2); padding: var(--sp-3);
  cursor: pointer; user-select: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  font-size: var(--step--1);
}
.play-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.play-card.is-picked { background: var(--sage-tint); border-color: var(--sage); }

.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: 480px; margin-inline: auto; }
.memory-tile {
  aspect-ratio: 1; border-radius: var(--r-md); border: 0; cursor: pointer;
  background: var(--sage-soft);
  display: grid; place-items: center; font-size: 1.6rem;
  transition: transform .35s var(--ease), background .35s var(--ease);
  perspective: 600px; color: transparent;
}
.memory-tile.is-up { background: var(--paper-2); box-shadow: var(--shadow-1); color: var(--ink); }
.memory-tile.is-done { background: var(--gold-soft); color: var(--gold); cursor: default; }
.memory-tile:hover:not(.is-done) { transform: scale(1.04); }

.spinner-wheel {
  width: min(300px, 76vw); aspect-ratio: 1; border-radius: 50%; margin-inline: auto;
  display: grid; place-items: center; text-align: center; padding: 2.6rem;
  background: conic-gradient(var(--sage-soft) 0 25%, var(--gold-soft) 0 50%, var(--sky-soft) 0 75%, var(--coral-soft) 0);
  box-shadow: var(--shadow-2); position: relative;
  transition: transform 2.6s cubic-bezier(.17,.67,.24,1);
}
.spinner-wheel__inner {
  background: var(--paper-2); border-radius: 50%; width: 100%; aspect-ratio: 1;
  display: grid; place-items: center; padding: 1.4rem;
  font-family: var(--display); font-size: var(--step-0); line-height: 1.35;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.reframe-card {
  border-radius: var(--r-lg); padding: var(--sp-5); min-height: 240px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-1);
}

.scorebar { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-3); }
.scorebar b { color: var(--ink); font-family: var(--display); font-size: var(--step-1); }

/* Journal / worksheets */
.worksheet { display: grid; gap: var(--sp-3); }
.saved-list { display: grid; gap: .7rem; margin-top: var(--sp-4); }
.saved-item {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--sp-3); background: var(--paper-2); font-size: var(--step--1);
}
.saved-item time { color: var(--ink-3); font-size: var(--step--2); letter-spacing: .08em; text-transform: uppercase; }
.saved-item .del { float: right; background: none; border: 0; color: var(--ink-mute); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.saved-item .del:hover { color: var(--coral); }

.prompt-box {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.35;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  padding: var(--sp-5); border-radius: var(--r-lg);
  background: var(--gold-soft); color: var(--ink); text-align: center;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

/* 11 -------------------------------------------------------- FORMS ------ */
label { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font-family: var(--body); font-size: var(--step-0);
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .8rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 18%, transparent);
  outline: none;
}
.field { display: grid; gap: .45rem; margin-bottom: var(--sp-3); }
.field-row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); }
.hint { font-size: var(--step--2); color: var(--ink-3); }

/* 12 ----------------------------------------- FOOTER / UTIL / MOTION ---- */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  padding-block: var(--sp-7) var(--sp-4);
  margin-top: 0;
}
:root[data-theme="dark"] .site-footer,
.site-footer { --ink-3: #9fb6b6; }
.site-footer h4 {
  color: var(--paper-2); font-family: var(--body); font-size: var(--step--2);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  margin-bottom: var(--sp-3);
}
.site-footer a { color: color-mix(in srgb, var(--paper) 80%, transparent); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%,190px),1fr));
}
.footer-brand { max-width: 34ch; }
.footer-brand p { font-size: var(--step--1); color: color-mix(in srgb, var(--paper) 70%, transparent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: var(--step--1); }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--step--2); color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.crisis-strip {
  margin-top: var(--sp-7);
  background: var(--coral-soft); color: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--coral) 30%, transparent);
  padding-block: var(--sp-3); font-size: var(--step--1);
}
.crisis-strip strong { color: var(--coral); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Back to top */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-1);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
}
.to-top.is-vis { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--sage-tint); color: var(--sage-deep); }

/* Print */
@media print {
  .site-header, .site-footer, .to-top, .crisis-strip, .hero__bg, .page-hero__bg,
  .btn, .nav, .filter-bar, .ticker { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .tool, .card, .note { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section { padding-block: 1rem; }
}

/* Quote band — let the artwork carry more of the colour here */
.quote-band .hero__bg::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper) 34%, transparent),
    color-mix(in srgb, var(--paper) 14%, transparent) 50%,
    color-mix(in srgb, var(--paper) 40%, transparent));
}
.quote-band .pull::before { opacity: .7; }

/* Responsive video embeds */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Practice list spacing */
#practiceList > * + * { margin-top: var(--sp-5); }

/* ------------------------------------------------- printable worksheets -- */
.printable { scroll-margin-top: 100px; }
.write-line {
  display: block;
  border-bottom: 1px solid var(--line);
  height: 2.2rem;
  margin-top: .55rem;
}
.write-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-height: 6.5rem;
  margin-top: .55rem;
  background:
    repeating-linear-gradient(var(--paper-2) 0 2.1rem,
      var(--line-soft) 2.1rem 2.15rem);
}
.form-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.form-table th, .form-table td {
  border: 1px solid var(--line);
  padding: .55rem .6rem;
  text-align: left;
  vertical-align: top;
}
.form-table th { background: var(--sage-tint); font-weight: 700; }
.form-table td { height: 2.4rem; }
.form-table-wrap { overflow-x: auto; }
.tickbox {
  display: inline-block; width: 1.05em; height: 1.05em;
  border: 1.5px solid var(--ink-3); border-radius: 3px;
  margin-right: .5em; vertical-align: -.15em;
}
.form-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1.6rem;
}
.form-head h3 { margin: 0; }
.form-head .form-meta { font-size: var(--step--2); color: var(--ink-3); text-align: right; }

@media print {
  body[data-print-only] .printable { display: none !important; }
  body[data-print-only] .printable.is-printing { display: block !important; }
  .write-box { background: none; min-height: 7rem; }
  .form-table th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; }
}

/* The header CTA lives inside .nav, whose link rules would otherwise win on
   specificity and leave dark text on a dark pill. */
.nav a.btn { border-radius: 999px; white-space: nowrap; }
.nav a.btn::after { display: none; }
.nav a.btn--primary { background: var(--ink); color: var(--paper-2); }
.nav a.btn--primary:hover { background: var(--sage-deep); color: #fff; }
.btn { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav a.btn { margin: var(--sp-3) 0 0 !important; border-bottom: 0; text-align: center; }
}

/* Give the empty mood chart a visible baseline so it reads as a chart */
.mood-chart { border-bottom: 1px solid var(--line); }
