/* Phoenix Yoga Project: public site.
   Palette is Lake Michigan at dawn; type is Bricolage Grotesque for headings
   and Atkinson Hyperlegible (built for low-vision readers) for everything
   else. The one bold move is the horizon in the home page hero. */

:root {
  --lake: #1f4e5f;
  --lake-deep: #163a47;
  --ink: #14262e;
  --text: #2a3d45;
  --muted: #5d7179;
  --mist: #eef3f1;
  --paper: #ffffff;
  --shallows: #8ec5c2;
  --shallows-soft: #dcebe9;
  --gold: #e8a33d;
  --gold-deep: #9a6512;
  --line: #c9d8d6;
  --danger: #a3341f;
  --ok: #2f6b3a;

  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Verdana", sans-serif;

  /* Type scale: 1.25 ratio from an 18px base (readers skew older). */
  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-2: 1.758rem;
  --step-3: 2.197rem;
  --step-4: clamp(2.4rem, 6vw, 3.9rem);

  --radius-s: 6px;
  --radius-l: 18px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--lake);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--lake-deep);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* ------------------------------------------------------------- header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: 1rem;
}
.nav a:hover {
  background: var(--mist);
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--lake);
  font-weight: 700;
}
.nav .btn {
  margin-left: 8px;
  color: #fff;
}
.nav .btn:hover {
  background: var(--lake-deep);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
    z-index: 5;
  }
  .nav.open {
    display: flex;
  }
  .nav .btn {
    margin: 8px 0 0;
    text-align: center;
  }
  .site-header {
    position: relative;
  }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--lake);
  background: var(--lake);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--lake-deep);
  border-color: var(--lake-deep);
  color: #fff;
}
.btn.quiet {
  background: transparent;
  color: var(--lake);
}
.btn.quiet:hover {
  background: var(--shallows-soft);
  color: var(--lake-deep);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ---------------------------------------------------------- hero: horizon */

.hero {
  --horizon: 74%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #f6f9f8 0%, #f6efe2 74%, var(--lake) 74%, var(--lake-deep) 100%);
  color: var(--ink);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: 56px;
  min-height: 600px;
}
.sun {
  position: absolute;
  left: 50%;
  top: 74%;
  width: clamp(160px, 26vw, 300px);
  aspect-ratio: 1;
  margin-left: calc(clamp(160px, 26vw, 300px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f7c873 0%, var(--gold) 62%, #d98f2b 100%);
  transform: translateY(-40%);
  animation: rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  pointer-events: none;
}
.sun::after {
  /* the reflection on the water */
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 100%;
  height: 120%;
  margin-top: 6%;
  background: repeating-linear-gradient(to bottom, rgba(232, 163, 61, 0.55) 0 4px, transparent 4px 14px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
/* Water covers the lower half of the sun, so it reads as rising out of the lake. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 74%;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(31, 78, 95, 0.96), var(--lake-deep));
  pointer-events: none;
}
.hero .wrap > * {
  position: relative;
  z-index: 1;
}
@keyframes rise {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(-40%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sun {
    animation: none;
  }
}

.hero-copy {
  align-self: start;
}
.hero h1 {
  max-width: 11ch;
  margin-bottom: 0.35em;
}
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text);
  max-width: 30ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.next-class {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 24px 26px 22px;
  box-shadow: 0 18px 40px -18px rgba(20, 38, 46, 0.55);
  align-self: end;
  margin-bottom: -8px;
}
.next-class .when {
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 2px 0 6px;
}
.next-class .label {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}
.next-class .what {
  font-size: var(--step-0);
  margin: 0 0 14px;
}

@media (max-width: 860px) {
  .hero {
    background: linear-gradient(to bottom, #f6f9f8 0%, #f6efe2 var(--horizon), var(--lake) var(--horizon), var(--lake-deep) 100%);
  }
  .hero::after,
  .sun {
    top: var(--horizon);
  }
  .hero {
    --horizon: 52%;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 72px;
  }
  .sun {
    left: auto;
    right: -40px;
    margin-left: 0;
  }
}

/* ------------------------------------------------------------- sections */

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section.paper {
  background: var(--paper);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.page-head {
  padding: clamp(40px, 7vw, 80px) 0 clamp(16px, 3vw, 28px);
}
.page-head p {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--muted);
  max-width: 44ch;
}

/* ------------------------------------------------------------ schedule */

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.schedule li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.schedule .date {
  font-family: var(--font-head);
  line-height: 1.15;
}
.schedule .date .day {
  display: block;
  font-size: 1rem;
  color: var(--muted);
}
.schedule .date .num {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--ink);
}
.schedule .date .time {
  display: block;
  font-size: 1rem;
  color: var(--lake);
  font-weight: 700;
  margin-top: 2px;
}
.schedule h3 {
  margin: 0 0 4px;
}
.schedule .meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.schedule .desc {
  margin: 8px 0 0;
  font-size: 1rem;
}
.schedule .actions {
  text-align: right;
  min-width: 9rem;
}
.spots {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 8px;
}
.spots.low {
  color: var(--gold-deep);
  font-weight: 700;
}
@media (max-width: 640px) {
  .schedule li {
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }
  .schedule .actions {
    grid-column: 2;
    text-align: left;
  }
}

.empty {
  padding: 28px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  color: var(--muted);
}

/* --------------------------------------------------------- how it works */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.steps p {
  margin: 0;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- testimonials */

.voices {
  columns: 3 280px;
  column-gap: clamp(20px, 4vw, 48px);
}
.voices figure {
  break-inside: avoid;
  margin: 0 0 28px;
}
.voices blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}
.voices figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------- people */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px clamp(20px, 4vw, 40px);
}
.person img,
.place img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  background: var(--shallows-soft);
  margin-bottom: 14px;
}
.person img {
  aspect-ratio: 1;
}
.person details,
.place details {
  font-size: 1rem;
}
.person summary,
.place summary {
  cursor: pointer;
  color: var(--lake);
  font-weight: 700;
}
.place .addr {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 8px;
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 1.6rem;
  color: var(--lake);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq .answer {
  padding: 0 0 18px;
}
.faq .answer ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

/* ---------------------------------------------------------------- forms */

.form {
  display: grid;
  gap: 18px;
  max-width: 480px;
}
.panel {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: clamp(22px, 4vw, 36px);
}
label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
label .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--step--1);
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(31, 78, 95, 0.18);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text);
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--lake);
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
}
.notice {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 1rem;
}
.notice.ok {
  background: #e2f0e4;
  color: var(--ok);
}
.notice.err {
  background: #f8e4df;
  color: var(--danger);
}
.notice:empty {
  display: none;
}
.fine {
  font-size: var(--step--1);
  color: var(--muted);
}

/* ----------------------------------------------------------- RSVP page */

.rsvp-card {
  max-width: 560px;
  margin: clamp(32px, 8vw, 80px) auto;
}
.rsvp-card .status {
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.rsvp-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 16px 0 22px;
  font-size: 1rem;
}
.rsvp-card dt {
  color: var(--muted);
}
.rsvp-card dd {
  margin: 0;
  color: var(--ink);
}
.rsvp-card .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: #c7d4d6;
  padding: 48px 0 40px;
  font-size: 1rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer a {
  color: #fff;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

[hidden] {
  display: none !important;
}
