/* ==========================================================
   Process Meditation — styles.css
   Calm, minimalist, mobile-first.
   ========================================================== */

:root {
  /* Palette */
  --bg: #f7f4ee;            /* warm off-white */
  --surface: #fdfbf7;       /* lighter card surface */
  --sage: #8fa38c;          /* soft sage (decorative) */
  --sage-soft: #e3e9df;     /* pale sage wash */
  --sage-deep: #45594a;     /* sage for text/links (AA on bg) */
  --blue-grey: #e4e9ec;     /* very soft blue-grey */
  --blue-grey-deep: #5a6b76;
  --text: #2c312e;          /* main text */
  --muted: #5b625e;         /* muted grey (AA on bg) */
  --line: #ddd8cd;          /* hairlines */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Layout */
  --measure: 40rem;
  --wide: 68rem;
  --space: clamp(3.5rem, 9vw, 7rem);
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.005em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin-top: 3rem; }
h3 { font-size: 1.45rem; margin-top: 2rem; }

p, ul, ol { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--blue-grey-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--measure);
  margin: 0 auto;
}

.section { padding: var(--space) 0; }
.section--tint { background: var(--sage-soft); }
.section--blue { background: var(--blue-grey); }

.page-intro {
  padding: var(--space) 0 calc(var(--space) * 0.5);
}
.page-intro + .section { padding-top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--sage-deep); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--sage); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--sage-deep);
}

/* Small screens: nav sits on its own row, full width */
@media (max-width: 30rem) {
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; gap: 0.25rem 1.5rem; }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: clamp(4.5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
}
.hero h1 { max-width: 16ch; margin: 0 auto 1.5rem; }
.hero .lead { max-width: 34rem; margin: 0 auto 2.5rem; }

.divider {
  width: 3rem;
  height: 1px;
  background: var(--sage);
  border: 0;
  margin: 0 auto 2rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border: 1px solid var(--sage-deep);
  border-radius: 999px;
  background: var(--sage-deep);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover { background: transparent; color: var(--sage-deep); }

.button--quiet { background: transparent; color: var(--sage-deep); }
.button--quiet:hover { background: var(--sage-deep); color: #fff; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

/* ---------- Cards / pathways ---------- */

.pathways {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .pathways { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.card h2,
.card h3 { margin-top: 0; font-size: 1.55rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.text-link {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ---------- Services ---------- */

.service {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h2 { margin-top: 0; }

.service-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  font-size: 0.97rem;
  color: var(--muted);
}
.service-meta li {
  padding-left: 1.25rem;
  position: relative;
}
.service-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sage);
}

.note {
  background: var(--blue-grey);
  border-left: 3px solid var(--blue-grey-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem 1.75rem 0.5rem;
  margin-top: 3rem;
}
.note h2 { margin-top: 0; font-size: 1.6rem; }

.free-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: 20rem 1fr; gap: 4rem; }
}

.portrait {
  margin: 0;
  max-width: 22rem;
}
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sage-soft);
}
.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.contact-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-list a {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  text-decoration: none;
  word-break: break-word;
}
.contact-list a:hover { text-decoration: underline; }

/* ---------- Legal ---------- */

.legal h2 { font-size: 1.6rem; }
.legal .updated { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 48rem) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
}
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { margin: 0; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }

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