/* Equanimity — shared stylesheet
   Palette and type live in the custom properties below; change them here. */

@font-face {
  font-family: "Pridi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/pridi-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette (taken from the original Wix site) */
  --terracotta: #bf7160;
  --terracotta-deep: #a86354; /* darker variant: white body text passes WCAG AA (4.6:1) */
  --teal: #16808c;
  --teal-soft: #7db8bf; /* footer: teal at 56% over white */
  --gold: #b08a00; /* accessible stand-in for the original #f2d852 yellow (3.2:1, large text only) */
  --blue: #3350a6;
  --grey: #f2f2f2;
  --ink: #000;
  --paper: #fff;
  --focus: #1d3c8f;

  /* Type */
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-nav: "Pridi", Georgia, "Times New Roman", serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 3.75rem); /* 60px at desktop */
  --fs-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); /* 40px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem); /* 18px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;

  --gutter: clamp(1rem, 3vw, 2.75rem);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

/* On dark/coloured bands use a white focus ring */
.band--teal :focus-visible,
.band--terracotta :focus-visible,
.site-nav :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem var(--gutter) 0.6rem;
  min-height: 106px;
}

.brand {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
.brand__name {
  display: block;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--terracotta);
}
.brand__tagline {
  display: block;
  margin-top: 0.1em;
  padding-left: 0.2em;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 700;
  color: var(--blue);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--teal);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-nav);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.31);
  border-radius: var(--radius);
  transition: background-color 0.15s;
}
.site-nav a:hover {
  background: #126a74;
}
.site-nav a[aria-current="page"] {
  background: var(--terracotta);
  color: var(--ink);
  border-color: #2b1a16;
}

/* ---------- Generic bands / layout ---------- */

.band--teal {
  background: var(--teal);
  color: #fff;
}
.band--terracotta {
  background: var(--terracotta-deep);
  color: #fff;
}
.band--grey {
  background: var(--grey);
}

.heading-display {
  font-size: var(--fs-display);
}
.heading-light {
  font-weight: 400;
}
.text-gold {
  color: var(--gold);
}
.text-teal {
  color: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 52em) {
  .split {
    grid-template-columns: var(--split, 1fr 1fr);
  }
}

/* ---------- Home ---------- */

.home-intro {
  --split: 50.5fr 49.5fr;
  background: var(--terracotta);
}
.home-intro .split__media img {
  aspect-ratio: 728 / 577;
}
.home-intro__text {
  padding: 2rem var(--gutter) 2.5rem;
  font-size: var(--fs-lead);
}
.home-intro__text h1 {
  color: #fff;
  font-size: var(--fs-display);
}
.home-intro__text .prose {
  max-width: 31rem;
  padding-left: clamp(0rem, 2vw, 1.75rem);
}

.home-how {
  --split: 54fr 46fr;
}
.home-how__text {
  padding: 1.25rem var(--gutter) 3rem clamp(1rem, 5vw, 4.5rem);
  font-size: 0.9375rem;
}
.home-how__text .prose {
  max-width: 33rem;
  padding-left: clamp(0rem, 2vw, 1.75rem);
}
.home-how .split__media img {
  aspect-ratio: 663 / 565;
}

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

.about-team {
  --split: 1fr 1fr;
  gap: 2rem 3rem;
  padding: 0 var(--gutter);
  align-items: start;
}
.about-team .split__media img {
  aspect-ratio: 642 / 435;
}
.about-team__text {
  padding-top: 1.5rem;
  font-size: 0.9375rem;
}
.about-team__text .prose {
  padding-left: 0.9rem;
  max-width: 34rem;
}
.about-team__text .prose p {
  margin-bottom: 0.15em;
}

.about-facilitator-title {
  padding: 4rem var(--gutter) 0 clamp(1rem, 4.5vw, 4rem);
}
.about-facilitator-title h2 {
  margin: 0 0 0.2em;
}

.about-facilitator {
  --split: 25fr 75fr;
  gap: 2rem 3.5rem;
  padding: 1.75rem var(--gutter) 2.5rem clamp(1rem, 7vw, 6.25rem);
  font-size: 0.9375rem;
}
.about-facilitator .split__media img {
  aspect-ratio: 316 / 287;
  max-width: 20rem;
}
.about-facilitator .prose {
  max-width: 47rem;
}
.about-facilitator p {
  margin-bottom: 1.15em;
}
.about-facilitator p:last-child {
  margin-bottom: 0;
}

.about-more {
  max-width: 60rem;
  margin-inline: auto;
  padding: 1.25rem var(--gutter) 3rem;
  font-size: 0.9375rem;
}
.about-more section + section {
  margin-top: 3.25rem;
}
.about-more h2 {
  margin-bottom: 0.2em;
}

/* ---------- Gallery ---------- */

.gallery {
  padding-bottom: 3.25rem;
}
.gallery__grid {
  columns: 5 12rem;
  column-gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__grid li {
  break-inside: avoid;
  margin-bottom: 5px;
}
.gallery__grid a {
  display: block;
}
.gallery__grid a:hover img {
  opacity: 0.9;
}
.gallery__grid img {
  width: 100%;
  transition: opacity 0.15s;
}

.reading {
  padding: 2.5rem var(--gutter) 1.75rem;
}
.reading__inner {
  max-width: 64rem;
  margin-inline: auto;
}
.reading h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.25em;
}
.reading h3 {
  font-size: 1.25rem;
  margin: 0 0 1.5em;
  padding-left: 1rem;
  letter-spacing: -0.01em;
}
.reading .poem {
  padding-left: 1rem;
  line-height: 1.4;
}
.reading .poem p {
  margin: 0;
}

/* Lightbox (progressive enhancement; links open the image directly without JS) */
.lightbox {
  width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.lightbox figure {
  margin: 0;
}
.lightbox img {
  max-height: 86vh;
  width: auto;
  margin-inline: auto;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  font: 700 1.5rem/1 var(--font-body);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__close {
  top: -0.5rem;
  right: -0.5rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev {
  left: 0.5rem;
}
.lightbox__nav--next {
  right: 0.5rem;
}
.lightbox :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

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

.contact {
  --split: 1fr 1fr;
  gap: 2.5rem 3rem;
  padding: 2rem var(--gutter) 5rem clamp(1rem, 8.5vw, 7.9rem);
}
.contact h1,
.contact h2 {
  font-size: var(--fs-h2);
}
.contact__intro {
  padding-left: clamp(0rem, 3vw, 2.75rem);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.4;
}
.contact__intro a {
  color: #fff;
}

.contact-form {
  max-width: 22rem;
  margin: 2.25rem 0 0 clamp(0rem, 4.5vw, 4.25rem);
  font-size: var(--fs-small);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.form-row .field {
  flex: 1 1 8rem;
}
.field {
  margin-bottom: 1.4rem;
}
.field label {
  display: block;
  margin-bottom: 0.45rem;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--grey);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 0;
}
.field input {
  height: 42px;
}
.field--phone {
  max-width: 11.1rem;
}
.field--email {
  max-width: 17.4rem;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink);
}
.field [aria-invalid="true"] {
  border: 2px solid #5a0d00;
  background: #fff3f0;
}
.field__error {
  display: block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff3f0;
}
.field__error:empty {
  display: none;
}
.form-note {
  font-style: italic;
  margin: 0.25rem 0 1.25rem;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  min-height: 65px;
  margin-bottom: 1rem;
}
.button {
  display: block;
  width: 100%;
  max-width: 19.5rem;
  margin-left: 2.1rem;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--terracotta);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.button:hover {
  background: #cf8270;
}
.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.form-status {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.form-status:empty {
  display: none;
}
.form-status--ok {
  background: #fff;
  color: #0b5a2b;
}
.form-status--error {
  background: #fff3f0;
  color: #5a0d00;
}

.testimonials {
  text-align: center;
}
.testimonials h2 {
  margin-bottom: 1.6em;
}
.testimonials figure {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
.testimonials blockquote {
  margin: 0;
  font-style: italic;
  letter-spacing: -0.02em;
}
.testimonials figcaption::before {
  content: none;
}

/* ---------- Simple pages (thanks / 404) ---------- */

.simple-page {
  min-height: 50vh;
  padding: 3rem var(--gutter) 4rem;
}
.simple-page__inner {
  max-width: 40rem;
  margin-inline: auto;
  font-size: var(--fs-lead);
}
.simple-page a {
  color: #fff;
  font-weight: 700;
}

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

.site-footer {
  padding: 1.75rem var(--gutter) 1.25rem;
  background: var(--teal-soft);
  text-align: center;
  font-size: var(--fs-tiny);
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.4rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.site-footer nav a {
  display: inline-block;
  padding: 0.25rem 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.site-footer nav a[aria-current="page"] {
  font-weight: 700;
}
.site-footer__features {
  max-width: 70rem;
  margin: 0 auto 0.75rem;
  font-size: 1rem;
}
.site-footer__disclaimer {
  max-width: 34.5rem;
  margin: 0 auto 0.9rem;
}
.site-footer__disclaimer strong {
  display: block;
  font-weight: 400;
}
.site-footer__email {
  margin-bottom: 0.4rem;
}
.site-footer__copy {
  margin: 0;
  font-size: 0.6875rem;
}
.site-footer :focus-visible {
  outline-color: var(--ink);
}

/* ---------- Small screens ---------- */

@media (max-width: 51.99em) {
  .site-header {
    min-height: 0;
  }
  .home-intro__text,
  .home-how__text {
    padding-left: var(--gutter);
  }
  .home-how .split__media {
    order: 2;
  }
  .about-team__text .prose,
  .home-intro__text .prose,
  .home-how__text .prose {
    padding-left: 0;
  }
  .about-facilitator .split__media img {
    margin-inline: auto;
  }
  .contact-form {
    margin-left: 0;
    max-width: none;
  }
  .contact__intro {
    padding-left: 0;
  }
  .field--phone,
  .field--email {
    max-width: none;
  }
  .button {
    margin-left: 0;
    max-width: none;
  }
}

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