:root {
  color-scheme: light;
  --ink: #2f3934;
  --muted: #718078;
  --paper: #fffdf9;
  --mist: #f7f4ef;
  --line: rgba(126, 94, 98, 0.18);
  --dusty: #c58f98;
  --dusty-deep: #9f6871;
  --sage: #91aa92;
  --clay: #c89b75;
  --lavender: #b6a7c8;
  --shadow: 0 24px 70px rgba(94, 76, 70, 0.12);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: 0;
  background: #f8f3ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf7f3, #f4efea 52%, #fbf7f3);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.yoga-site {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-top-wrap {
  position: fixed;
  top: 16px;
  right: 0;
  left: 0;
  z-index: 80;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.site-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 18px 52px rgba(94, 76, 70, 0.12);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.site-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(159, 104, 113, 0.32);
  border-radius: 50%;
  color: #fffdf9;
  background: var(--dusty-deep);
  font-weight: 950;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 950;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-nav,
.site-links,
.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-nav {
  position: relative;
  min-width: 340px;
  justify-content: center;
  padding: 8px 4px 2px;
}

.progress-track {
  position: absolute;
  right: 14px;
  left: 14px;
  top: 19px;
  height: 14px;
  overflow: hidden;
  background: transparent;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 0%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  transition: width 120ms linear;
}

.progress-track::before,
.progress-track span::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 64px 14px;
  animation: waveDrift 2.8s linear infinite;
}

.progress-track::before {
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='14' viewBox='0 0 64 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7 C8 1 16 1 24 7 S40 13 48 7 S56 1 64 7' fill='none' stroke='%23e2cfcc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.progress-track span::before {
  width: 100vw;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='14' viewBox='0 0 64 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7 C8 1 16 1 24 7 S40 13 48 7 S56 1 64 7' fill='none' stroke='%239f6871' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-duration: 2s;
}

@keyframes waveDrift {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 64px;
  }
}

.site-links {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  justify-content: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
}

.site-links a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 58px;
  padding: 10px 8px;
  text-decoration: none;
}

.site-links a i {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(159, 104, 113, 0.42);
  border-radius: 999px;
  background: #fffdf9;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-links a::after {
  content: none;
}

.site-links a:hover,
.site-links a.is-active {
  color: var(--dusty-deep);
}

.site-links a:hover i,
.site-links a.is-active i {
  border-color: var(--dusty-deep);
  background: var(--dusty);
  transform: scale(1.08);
}

.site-actions {
  justify-content: flex-end;
}

.site-phone,
.site-cta,
.btn,
.visit-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(159, 104, 113, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.78);
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-cta,
.btn.primary,
.visit-form button {
  color: #fffdf9;
  border-color: transparent;
  background: var(--dusty-deep);
  box-shadow: 0 16px 38px rgba(159, 104, 113, 0.18);
}

.site-phone:hover,
.site-cta:hover,
.btn:hover,
.visit-form button:hover,
.back-top:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 84px);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #f8f3ee;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.84) 38%, rgba(255, 253, 249, 0.3) 68%, rgba(255, 253, 249, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.18), rgba(255, 253, 249, 0.42));
}

.hero-copy {
  width: min(760px, 100%);
  padding: clamp(136px, 14vw, 190px) clamp(22px, 6vw, 88px) clamp(44px, 7vw, 82px);
}

.hero-line {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(159, 104, 113, 0.36);
  border-radius: 999px;
}

.hero-line-one {
  width: 420px;
  height: 420px;
  left: clamp(18px, 7vw, 90px);
  bottom: 8%;
  border-right-color: transparent;
  transform: rotate(-12deg);
}

.hero-line-two {
  width: 190px;
  height: 620px;
  left: 48%;
  top: 16%;
  border-color: rgba(197, 143, 152, 0.26);
  transform: rotate(18deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--dusty-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #536059;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.78;
}

.hero-actions,
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
}

.hero-notes div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(159, 104, 113, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
}

.hero-notes dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-notes dd {
  margin: 7px 0 0;
  color: var(--dusty-deep);
  font-weight: 950;
}

.quiet-strip,
.section,
.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.quiet-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quiet-strip div {
  min-height: 96px;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.92);
}

.quiet-strip strong {
  color: var(--dusty-deep);
}

.quiet-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 8vw, 114px) 0 0;
  scroll-margin-top: 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 76px);
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.compact {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.section-heading h2,
.teacher-copy h2,
.booking-builder h2,
.recommend-panel h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p,
.teacher-copy p,
.booking-builder p,
.recommend-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 18px;
  align-items: stretch;
}

.practice-grid article,
.schedule-list article,
.teacher-copy,
.teacher-cards article,
.booking-builder,
.recommend-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.practice-grid article {
  position: relative;
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px 8px 26px 8px;
}

.practice-grid article::before,
.teacher-cards article::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 143, 152, 0.24);
  border-radius: 999px;
  pointer-events: none;
}

.practice-grid article:nth-child(1) {
  grid-row: span 2;
  padding-top: 34px;
}

.practice-grid article:nth-child(2) {
  transform: translateY(30px);
}

.practice-grid article:nth-child(3) {
  grid-row: span 2;
  transform: translateY(10px);
}

.practice-grid article:nth-child(4) {
  grid-column: 2;
  min-height: 220px;
}

.practice-grid span {
  color: var(--dusty-deep);
  font-weight: 950;
}

.practice-grid h3,
.schedule-list strong,
.teacher-cards strong {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.22;
}

.practice-grid p {
  color: var(--muted);
  line-height: 1.72;
}

.practice-grid small {
  color: var(--dusty-deep);
  font-weight: 900;
}

.schedule-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.schedule-filter button,
.segmented button {
  min-height: 42px;
  border: 1px solid rgba(159, 104, 113, 0.22);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  font-weight: 900;
}

.schedule-filter button.is-active,
.segmented button.is-active {
  color: #fffdf9;
  border-color: transparent;
  background: var(--dusty-deep);
}

.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.schedule-list article {
  display: grid;
  flex: 1 1 280px;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  min-height: 160px;
  padding: 22px;
  border-radius: 8px 28px 8px 28px;
}

.schedule-list article.is-hidden {
  display: none;
}

.schedule-list time {
  color: var(--dusty-deep);
  font-weight: 950;
}

.schedule-list strong {
  margin: 0;
}

.schedule-list span {
  color: var(--muted);
  font-weight: 850;
}

.teachers-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1fr);
  gap: 16px;
}

.teacher-copy {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: clamp(24px, 4vw, 48px);
}

.teacher-copy p {
  margin-top: 22px;
}

.teacher-cards {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.92fr;
  gap: 18px;
  align-items: center;
}

.teacher-cards article {
  position: relative;
  min-height: 390px;
  display: grid;
  align-content: end;
  padding: 22px;
  overflow: hidden;
  border-radius: 999px 999px 12px 12px;
}

.teacher-cards article:nth-child(1) {
  background: linear-gradient(180deg, rgba(145, 170, 146, 0.16), rgba(255, 253, 249, 0.92));
}

.teacher-cards article:nth-child(2) {
  min-height: 460px;
  background: linear-gradient(180deg, rgba(197, 143, 152, 0.16), rgba(255, 253, 249, 0.92));
}

.teacher-cards article:nth-child(3) {
  background: linear-gradient(180deg, rgba(182, 167, 200, 0.18), rgba(255, 253, 249, 0.92));
}

.teacher-cards span {
  color: var(--dusty-deep);
  font-weight: 950;
}

.teacher-cards p {
  color: var(--muted);
  line-height: 1.68;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  gap: 16px;
  align-items: start;
}

.booking-builder,
.recommend-panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px 8px 32px 8px;
}

.recommend-panel {
  margin-top: 44px;
  border-radius: 8px 34px 8px 34px;
}

.booking-builder > p {
  margin-top: 18px;
}

.builder-controls {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.control-group {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(159, 104, 113, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 249, 247, 0.66);
}

.control-group strong {
  color: var(--ink);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.visit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.visit-form input,
.visit-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(159, 104, 113, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

.visit-form select option {
  color: var(--ink);
  background: #ffffff;
}

.visit-form button {
  min-width: 154px;
}

.recommend-panel {
  align-content: start;
}

.recommend-panel dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.recommend-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.88);
}

.recommend-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.recommend-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 950;
}

.form-status {
  min-height: 52px;
  border: 1px solid rgba(159, 104, 113, 0.2);
  border-radius: 8px;
  padding: 14px;
  color: var(--dusty-deep) !important;
  background: rgba(197, 143, 152, 0.1);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(72px, 8vw, 112px);
  padding: 32px 0 52px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
  font-weight: 900;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fffdf9;
  background: var(--dusty-deep);
  box-shadow: 0 16px 38px rgba(159, 104, 113, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(197, 143, 152, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1160px) {
  .site-top {
    grid-template-columns: 1fr auto;
  }

  .site-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .progress-nav {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-grid article,
  .practice-grid article:nth-child(1),
  .practice-grid article:nth-child(2),
  .practice-grid article:nth-child(3),
  .practice-grid article:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .teachers-section,
  .booking-section,
  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
  }

  .visit-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visit-form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .site-top-wrap,
  .quiet-strip,
  .section,
  .site-footer {
    width: min(100% - 24px, 1480px);
  }

  .site-actions {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-items: end;
  }

  .progress-nav {
    order: 3;
  }

  .site-links {
    width: 100%;
  }

  .site-links a {
    min-width: 54px;
    font-size: 13px;
  }

  .site-phone {
    display: none;
  }

  .brand-copy strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 253, 249, 0.58), rgba(255, 253, 249, 0.96));
  }

  .hero-copy {
    padding: 150px 20px 48px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-notes,
  .quiet-strip,
  .practice-grid,
  .teacher-cards,
  .visit-form {
    grid-template-columns: 1fr;
  }

  .practice-grid article,
  .teacher-cards article,
  .booking-builder,
  .recommend-panel,
  .schedule-list article {
    border-radius: 18px;
    transform: none;
  }

  .hero-line-one {
    width: 260px;
    height: 260px;
    left: -40px;
  }

  .hero-line-two {
    display: none;
  }

  .schedule-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .teacher-cards article {
    min-height: 250px;
  }

  .recommend-panel {
    margin-top: 0;
  }

  .section-heading h2,
  .teacher-copy h2,
  .booking-builder h2,
  .recommend-panel h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .section-heading p,
  .teacher-copy p,
  .booking-builder p,
  .recommend-panel p {
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
