:root {
  --bg: #FBFCFA;
  --bg-alt: #ECF1EA;
  --dark: #1F2822;
  --forest: #3A6B4E;
  --forest-deep: #2E5740;
  --ochre: #C17D2A;
  --ochre-text: #8A5517;
  --sky: #7B9BC4;
  --text: #1F2822;
  --muted: #4F5A52;
  --border: #DDE4DA;
  --white: #FFFFFF;
  --error: #B3261E;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;

  --sh-sm: 0 1px 2px rgba(31, 40, 34, .05), 0 1px 4px rgba(31, 40, 34, .06);
  --sh-md: 0 6px 18px rgba(31, 40, 34, .08);
  --sh-lg: 0 18px 44px rgba(31, 40, 34, .13);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;

  --container: 1200px;
  --gutter: 16px;
  --section-y: 64px;
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 96px;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }

@media (min-width: 1024px) {
  h1 { font-size: 54px; line-height: 1.08; }
  h2 { font-size: 38px; }
  h3 { font-size: 26px; }
}

p { margin: 0 0 var(--s-4); }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--forest-deep); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #DCE4DB; }
.section--dark h1, .section--dark h2 { color: var(--white); }
.section--dark :focus-visible { outline-color: #F1C98A; }

.section-head { max-width: 70ch; margin-bottom: var(--s-7); }

.prose { max-width: 70ch; }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ochre-text);
}

.section--dark .eyebrow { color: #F1C98A; }

.lead { font-size: 1.125em; color: var(--muted); }
.section--dark .lead { color: #C9D3C8; }

.hl {
  color: var(--forest);
  font-style: italic;
  background: linear-gradient(transparent 64%, rgba(58, 107, 78, .16) 64%);
  padding: 0 .06em;
}

.meta-line { font-size: .875rem; color: var(--muted); margin-top: var(--s-5); }
.section--dark .meta-line { color: #AEBBAF; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 250, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: clip;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
}

.brand em { font-style: italic; font-weight: 500; color: var(--forest); }
.brand svg { flex: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.nav a {
  position: relative;
  display: inline-block;
  padding-block: var(--s-1);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.75rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--forest); }

/* Mobile panel only when JS can open it */
.js .nav {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  padding: var(--s-7) var(--gutter);
  overflow-y: auto;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow);
}

.js .menu-open .nav {
  transform: none;
  visibility: visible;
  transition: transform var(--t-slow) var(--ease);
}

.menu-open { overflow: hidden; }

html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--s-3); }
html:not(.js) .nav-list { flex-direction: row; flex-wrap: wrap; gap: var(--s-4); }
html:not(.js) .nav a { font-family: var(--font-body); font-size: 1rem; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }

  .js .nav {
    position: static;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-list { flex-direction: row; gap: var(--s-6); }

  .nav a {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--forest-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn--ghost:hover { background: rgba(58, 107, 78, .08); color: var(--forest-deep); transform: translateY(-2px); }

.section--dark .btn--ghost { border-color: #9FC2AC; color: #E6ECE5; }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); }

.btn--light { background: var(--white); color: var(--forest-deep); }
.btn--light:hover { background: var(--bg-alt); color: var(--forest-deep); transform: translateY(-2px); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-8) var(--s-9);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: var(--s-7); align-items: center; }

.hero-blob {
  position: absolute;
  top: -60px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 155, 196, .55), rgba(58, 107, 78, .22) 60%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-art { position: relative; }

@media (min-width: 1024px) {
  .hero { padding-block: var(--s-9) var(--s-10); }
  .hero-grid { grid-template-columns: 5fr 7fr; }
  .hero-blob { width: 640px; height: 640px; right: -80px; }
}

/* Layout helpers */
.split { display: grid; gap: var(--s-7); align-items: center; }

@media (min-width: 1024px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--reverse { grid-template-columns: 5fr 7fr; }
}

.grid { display: grid; gap: var(--s-5); }

@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  padding: var(--s-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #C6D3C2; }
.section--alt .card { background: var(--white); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  color: var(--forest);
}

.section--alt .card-icon { background: #E1EBDF; }
.card-icon svg { width: 26px; height: 26px; }

.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " \2192"; }
.card-link:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  margin-bottom: var(--s-3);
  padding: 2px 10px;
  border-radius: var(--r-sm);
  background: #E3ECF6;
  color: #2F4C72;
  font-size: .78rem;
  font-weight: 600;
}

.wave {
  margin-bottom: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
}

/* Figures */
.figure {
  margin: 0;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.figure figcaption {
  margin-top: var(--s-3);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.figure--plain { padding: 0; background: none; border: 0; box-shadow: none; }

.callout {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  border-left: 4px solid var(--ochre);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: #FBF3E8;
}

.callout p:last-child { margin-bottom: 0; }

.pull {
  max-width: 32ch;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--white);
}

@media (min-width: 1024px) {
  .pull { font-size: 2rem; }
}

.pull-source { margin-top: var(--s-4); color: #AEBBAF; font-size: .9rem; }

/* Stats */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.stat strong {
  display: block;
  margin-bottom: var(--s-1);
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--forest);
}

.stat span { display: block; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* Daily rhythm */
.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .day-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .day-list { grid-template-columns: repeat(3, 1fr); }
}

.day-list li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.day-list .time { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--forest); }
.day-list strong { display: block; }
.day-list p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: var(--s-5) var(--s-5) var(--s-5) 76px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}

.steps h3 { margin-bottom: var(--s-2); }
.steps p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap {
  margin: var(--s-6) 0;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }

.data-table caption {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
}

.data-table th, .data-table td {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th { background: var(--bg-alt); font-weight: 600; }

/* Reviews */
.review { margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 var(--s-5); flex: 1; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { font-size: .9rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--text); font-weight: 600; }

.stars { margin-bottom: var(--s-3); color: var(--ochre-text); font-size: 1.1rem; letter-spacing: .12em; }

/* FAQ */
.faq { display: grid; gap: var(--s-4); }

@media (min-width: 1024px) {
  .faq { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  padding: var(--s-5) var(--s-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.faq-item h3 { font-size: 1.15rem; font-weight: 600; }
.faq-item p { color: var(--muted); }
.faq-item p:last-child { margin-bottom: 0; }

/* Inner page heads */
.page-head { padding-block: var(--s-7) var(--s-8); }

.breadcrumb ol {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: .875rem;
  color: var(--muted);
}

.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: #8C978E; }
.section--dark .breadcrumb ol { color: #C9D3C8; }
.section--dark .breadcrumb a { color: #BFE0CB; }

.panel {
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.panel h2 { font-size: 1.4rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 36px; }

.checklist li::before {
  content: "";
  position: absolute;
  top: .25em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.page-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--forest);
  color: var(--white);
}

.page-next p { margin: 0; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.3; max-width: 36ch; }

/* About & contact */
.author { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.author svg { flex: none; }
.author p { margin: 0; line-height: 1.4; }
.author span { display: block; font-size: .9rem; color: var(--muted); }

.contact-grid { display: grid; gap: var(--s-7); }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

.contact-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); }

.contact-list strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--bg-alt);
}

.map-note { margin-top: var(--s-2); font-size: .85rem; color: var(--muted); }

.form {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.form h3 { margin-bottom: 0; }
.form-row { display: grid; gap: var(--s-5); }

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field label { display: block; margin-bottom: var(--s-2); font-size: .95rem; font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid #C9D3C6;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(58, 107, 78, .18);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: var(--s-1) 0 0; font-size: .875rem; color: var(--error); }

.checkbox { display: flex; align-items: flex-start; gap: var(--s-3); font-size: .92rem; color: var(--muted); }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--forest); }

.form-note { margin: 0; font-size: .875rem; color: var(--muted); }

.form-status {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  color: var(--forest-deep);
  font-size: .95rem;
}

/* Footer */
.site-footer {
  padding-block: var(--s-8) var(--s-6);
  background: var(--dark);
  color: #C2CDC1;
  font-size: .95rem;
}

.site-footer a { color: #E6ECE5; }
.site-footer a:hover { color: #F1C98A; }
.site-footer :focus-visible { outline-color: #F1C98A; }

.footer-grid { display: grid; gap: var(--s-6); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
}

.footer-brand { margin-bottom: var(--s-3); font-family: var(--font-head); font-size: 1.4rem; color: var(--white); }

.site-footer h2 {
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}

.footer-bottom p { margin: 0; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
