/* Sonoma Mountain Healing Arts — static site */

:root {
  --ink: #1d2747;          /* deep navy, from the posters */
  --ink-soft: #46506e;
  --plum: #6e3557;         /* poster accent */
  --plum-soft: #8f5a7a;
  --lotus: #c2461d;        /* lotus mark */
  --mist: #f4f6f9;
  --sky: #dfe6ef;
  --sky-deep: #b9c7d8;
  --paper: #fbfaf7;
  --line: #d9dee7;
  --radius: 6px;
  --wrap: 1120px;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --label: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lotus); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { color: var(--plum); font-style: italic; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 3rem); margin-inline: auto; }

.label {
  font-family: var(--label);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 1rem;
}
.rule { width: 56px; height: 2px; background: var(--plum-soft); border: 0; margin: 1.5rem 0; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.brand small { font-family: var(--label); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--label); font-size: .9rem; color: var(--ink-soft);
  text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--plum-soft); }
.nav .btn { border: 0; color: #fff; padding: .6rem 1.1rem; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--label); font-size: .95rem; font-weight: 500; letter-spacing: .03em;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: .9rem 1.6rem; border-radius: 999px;
  transition: background .2s ease;
}
.btn:hover { background: var(--plum); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .actions { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #e6ebf2 0%, #dce3ec 55%, #cfd9e5 100%);
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 0;
}
.hero .lotus { width: 64px; margin: 0 auto 1.5rem; }
.hero p.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; margin: 0 auto 2rem; }
.hero .tagline {
  font-family: var(--label); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--plum);
}
/* bottom band of the watercolor seascape (the top half of the source has baked-in text) */
.seascape {
  margin-top: clamp(3rem, 6vw, 5rem);
  aspect-ratio: 1774 / 235;
  background: url("/images/coast.jpg") center bottom / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}
.page-hero { padding-bottom: 0; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.tint { background: var(--mist); }
.ink { background: var(--ink); color: #e8ecf3; }
.ink h2, .ink h3 { color: #fff; }
.ink .label { color: #d6b3c6; }
.ink a { color: #fff; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pillar { padding: 2rem 1.5rem; border-top: 1px solid var(--sky-deep); }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.pillar .num { font-family: var(--display); font-style: italic; color: var(--plum-soft); font-size: 1.2rem; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse { grid-template-columns: 7fr 5fr; }
.pillars.two-up { grid-template-columns: 1fr 1fr; margin-top: 0; }
.sticky-side { align-self: start; position: sticky; top: 110px; }
.portrait { border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius); overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.caption { font-family: var(--label); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

blockquote { margin: 0; }
.quote { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; font-style: italic; }
.quote footer { font-family: var(--label); font-style: normal; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 1.2rem; opacity: .8; }

/* Palace of Weariness feature */
.palace {
  position: relative;
  background: linear-gradient(180deg, #dfe5ee, #c9d4e2);
  text-align: center;
  padding-bottom: 0;
}
.palace h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--plum); }
.palace p { max-width: 38em; margin-inline: auto; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-family: var(--label); font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

/* Contact / locations */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.card h3 { font-size: 1.5rem; }
.card p { font-size: 1rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

/* Lists */
.list-cols { columns: 2; column-gap: 3rem; padding: 0; list-style: none; }
.list-cols li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* Prose pages */
.prose h2 { margin-top: 2.5rem; font-size: 2.1rem; color: var(--plum); }
.prose .intro { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.4; color: var(--ink); }
.prose .pull { font-family: var(--display); font-size: 2.2rem; font-style: italic; color: var(--plum); margin: 1.5rem 0; }
.prose mark { background: none; color: var(--plum); font-weight: 600; }

/* Testimonials */
.testimonials { columns: 3 320px; column-gap: 1.5rem; }
.testimonial {
  break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; margin: 0 0 1.5rem;
}
.testimonial h3 { font-size: 1.35rem; color: var(--plum); }
.testimonial p { font-size: 1rem; color: var(--ink-soft); }
.testimonial cite { font-family: var(--label); font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* Resources */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.doc-list a { text-decoration: none; font-weight: 600; }
.doc-list span { font-family: var(--label); font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7cede; font-size: .95rem; padding: 4rem 0 2rem; }
.site-footer a { color: #fff; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #d6b3c6; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer .lotus { width: 36px; margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--label); font-size: .9rem; color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 1rem; text-align: center; border-radius: 999px; }
  body { font-size: 1.0625rem; }
  .hero p.lede { font-size: 1.1rem; }
  .pillars, .pillars.two-up, .gallery { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .portrait { max-width: 360px; margin-inline: auto; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .list-cols { columns: 1; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
.site-footer .credit { opacity: .5; }
.site-footer .credit a { font-weight: 400; }
