/* Stone Spirit Healing Arts
   Palette is drawn from Jacinda's painting: ink outlines, the white cow,
   swirling teal clouds, cobalt sky, ochre field, and the red sun. */

@font-face { font-family: "Almendra"; src: url("../assets/fonts/almendra-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Almendra"; src: url("../assets/fonts/almendra-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Almendra"; src: url("../assets/fonts/almendra-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Almendra SC"; src: url("../assets/fonts/almendra-sc-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1C1A17;
  --cow: #F3F5F1;
  --wash: #E3ECE8;
  --teal: #22625E;
  --cobalt: #283F96;
  --ochre: #E3A234;
  --sun: #C8302A;
  --sun-bright: #E2412F;
  --sun-deep: #A42420;
  --muted: #4A4741;

  --display: "Almendra", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wordmark: "Almendra SC", "Almendra", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --lead: 5px;            /* the "leading" between glass panes */
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.375rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--cow); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.6em 1.3em;
  background: var(--sun); color: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius);
  font: 650 1.0625rem/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { background: var(--sun-deep); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { min-height: 42px; padding: 0.45em 1em; font-size: 1rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-on-dark { background: var(--ochre); color: var(--ink); }
.btn-on-dark:hover { background: #F0B54E; }
.btn-on-dark:focus-visible { outline-color: var(--cow); }

.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--cow); border-bottom: var(--lead) solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-eye { width: 52px; height: auto; }
.brand-name { font-family: var(--wordmark); color: var(--sun); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1; word-spacing: 0.14em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 1rem; }
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* Hero: the painting is set as an arched stained-glass window */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }

.window {
  margin: 0;
  border: 10px solid var(--ink);
  border-radius: 50% 50% var(--radius) var(--radius) / 20% 20% var(--radius) var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--ochre), 0 0 0 10px var(--ink);
  margin: 10px;
}
.window img { width: 100%; aspect-ratio: 758 / 478; object-fit: cover; }

.lede { font-size: 1.3125rem; color: var(--ink); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 32px; }
.signature { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; margin: 0; padding-top: 20px; border-top: 2px solid var(--ink); max-width: 22rem; }
.signature em { font-style: italic; color: var(--muted); }

/* Sessions: two glass panes */
.sessions { background: var(--wash); border-top: var(--lead) solid var(--ink); border-bottom: var(--lead) solid var(--ink); padding: clamp(48px, 7vw, 88px) 0; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
.pane {
  display: flex; flex-direction: column; align-items: flex-start;
  color: var(--cow);
  border: var(--lead) solid var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}
.pane p { max-width: 58ch; }
.pane .btn { margin-top: auto; }
.pane-cobalt { background: var(--cobalt); }
.pane-teal { background: var(--teal); }
.pane h3 { font-size: clamp(1.75rem, 2.6vw, 2.125rem); margin-bottom: 0.2em; }
.price { font-family: var(--display); font-style: italic; font-size: 1.3125rem; margin-bottom: 1.1em; }
.sessions-note { margin: 28px 0 0; font-weight: 500; }

/* About */
.about { padding: clamp(56px, 8vw, 104px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-mark { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.about-mark img:first-child { width: min(100%, 300px); }
.about-ankh { width: 46px; }
.about-copy p { max-width: 62ch; }
.about-boundary { border-left: var(--lead) solid var(--sun); padding-left: 18px; font-weight: 500; }
.about-links { color: var(--muted); }
.about-links a { color: var(--ink); font-weight: 600; }

/* Booking */
.book { background: var(--wash); border-top: var(--lead) solid var(--ink); border-bottom: var(--lead) solid var(--ink); padding: clamp(48px, 7vw, 88px) 0; }
.book-frame {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  border: var(--lead) solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--cow);
}
.book-main { padding: clamp(24px, 4vw, 48px); }
.book-side { background: var(--ochre); border-left: var(--lead) solid var(--ink); padding: clamp(24px, 4vw, 48px); }
.book-side h3 { font-size: 1.25rem; margin-bottom: 0.25em; }
.book-side p { margin-bottom: 1.4em; }
.book-side p:last-child { margin-bottom: 0; overflow-wrap: anywhere; }

.form-intro { color: var(--muted); max-width: 52ch; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field-help { margin: 0; font-size: 0.9375rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 8px;
  padding: 10px 12px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; min-height: 88px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); }
.field-error { color: var(--sun-deep); font-size: 0.9375rem; font-weight: 600; margin: 0; }

fieldset.length { border: 0; padding: 0; margin-left: 0; margin-right: 0; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 10px 22px; }
fieldset.length legend { width: 100%; margin-bottom: 6px; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 32px; }
.choice input { width: 20px; height: 20px; accent-color: var(--sun); margin: 0; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 2px solid var(--ink); margin-top: 6px; }
.total { margin: 0; font-size: 1.25rem; font-family: var(--display); }
.total strong { font-size: 1.5rem; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 8px; background: var(--wash); }

.scheduler iframe { width: 100%; min-height: 720px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.scheduler-help { color: var(--muted); }

/* FAQ */
.faq { padding: clamp(56px, 8vw, 96px) 0; }
.faq-wrap > * { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--display); font-size: 1.375rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--sun); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 64ch; padding-bottom: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cow); padding: clamp(48px, 6vw, 72px) 0 40px; font-size: 1rem; }
.site-footer a { color: var(--cow); }
.site-footer :focus-visible { outline-color: var(--cow); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 32px 48px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-name { word-spacing: 0.14em; font-family: var(--wordmark); color: var(--sun-bright); font-size: 1.75rem; line-height: 1.1; margin-bottom: 0.3em; }
.footer-fine { color: #CFCBC2; font-size: 0.9375rem; }
.footer-fine p { max-width: 60ch; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .about-mark { flex-direction: row; justify-content: flex-start; }
  .about-mark img:first-child { width: 180px; }
  .book-frame { grid-template-columns: 1fr; }
  .book-side { border-left: 0; border-top: var(--lead) solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-fine { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .panes { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hide-sm { display: none; }
  .header-inner { min-height: 68px; }
  .brand-eye { width: 40px; }
  .brand-name { font-size: 1.0625rem; }
  .brand { gap: 8px; }
  .btn-small { padding: 0.4em 0.8em; font-size: 0.9375rem; }
  .window { border-width: 7px; box-shadow: 0 0 0 3px var(--ochre), 0 0 0 7px var(--ink); margin: 7px; }
  .lede { font-size: 1.1875rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* 404 page */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding-top: 48px; padding-bottom: 48px; }
.notfound img { width: 140px; margin-bottom: 16px; }
