/* The Living Herb brand, from BRAND.md. Every page in the system loads this first. */

:root {
  --plum: #672146;
  --plum-deep: #4f1935;
  --green-dark: #4e6548;
  --green-light: #8cac89;
  --grey: #686867;
  --sage: #bac5b9;
  --pink: #e3b7b2;
  --cream: #fbefde;
  --paper: #f1f4ef;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --measure: 44rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--plum);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; color: var(--green-dark); }

p { margin: 0 0 1em; }

[hidden] { display: none !important; }

a { color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

.muted { color: var(--grey); opacity: 0.85; font-size: 0.95rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.lede { font-size: 1.1rem; max-width: 38rem; }

/* Page frame */

.site-header {
  display: flex;
  justify-content: center;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--sage);
}

.logo img {
  display: block;
  width: 70px;
  height: 64px;
}

.section {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  padding-inline: var(--gutter);
}

.section__inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.section--cream { background: var(--cream); }

.section--sage { background: color-mix(in srgb, var(--green-light) 22%, var(--paper)); }

.section--green {
  --stem: var(--green-light);
  background: var(--green-dark);
  color: var(--cream);
}

.section--green h2,
.section--green h3,
.section--green .eyebrow { color: var(--cream); }

.section--plum {
  background: var(--plum);
  color: var(--cream);
}

.section--plum h2,
.section--plum h3,
.section--plum .eyebrow { color: var(--cream); }

.section--plum a:not(.button) { color: var(--cream); }

.site-footer {
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--sage);
}

.site-footer p { margin: 0.25rem 0; }

/* Dusty pink is reserved for the preview banner. Vic, 17 Sept: never use it in the blocks. */
.preview-banner {
  padding: 0.6rem var(--gutter);
  background: var(--pink);
  color: var(--plum-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Shared pieces */

.panel {
  background: var(--cream);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.section--cream .panel,
.section--sage .panel { background: var(--paper); }

.panel__title { font-size: 1.2rem; }

.panel > :last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--plum-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--plum-deep); }

.button--ghost {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.button--ghost:hover { box-shadow: none; background: rgb(251 239 222 / 0.12); }

.disclaimer {
  border-left: 4px solid var(--green-light);
  padding: 0.6rem 0 0.6rem 1rem;
  font-style: italic;
  color: var(--green-dark);
}

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