:root {
  color-scheme: light;
  --cream: #fff0e0;
  --pearl: #fff8ef;
  --blush: #ffe0d0;
  --rose: #f0c0c0;
  --mauve: #d0a0c0;
  --amethyst: #b080b0;
  --plum: #6d4a6b;
  --ink: #2d2230;
  --muted: #7c6978;
  --gold: #c89452;
  --line: rgba(109, 74, 107, 0.16);
  --white-glass: rgba(255, 248, 239, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  line-height: 1.78;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: linear-gradient(to bottom, rgba(255, 248, 239, 0.9), rgba(255, 248, 239, 0.18));
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(176, 128, 176, 0.32);
  box-shadow: 0 10px 30px rgba(109, 74, 107, 0.13);
}

nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(45, 34, 48, 0.72);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  margin-left: auto;
}

nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

nav a:hover {
  border-color: var(--gold);
  color: var(--plum);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(109, 74, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.78);
  box-shadow: 0 10px 28px rgba(109, 74, 107, 0.1);
  color: rgba(45, 34, 48, 0.7);
  font-family: "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.language-switch a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.language-switch a:hover,
.language-switch a.is-active {
  color: var(--plum);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 124px 22px 82px;
  background: var(--cream);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.34) 0%, rgba(255, 248, 239, 0.08) 48%, rgba(255, 240, 224, 0.64) 100%),
    radial-gradient(circle at 50% 48%, rgba(255, 248, 239, 0.26), transparent 38%);
}

.hero-content {
  width: min(820px, 100%);
  text-align: center;
  transform: translateY(18px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: rgba(45, 34, 48, 0.9);
  text-shadow: 0 18px 54px rgba(255, 248, 239, 0.66);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 400;
}

.hero-copy {
  margin-bottom: 30px;
  color: var(--plum);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0.14em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(109, 74, 107, 0.22);
  border-radius: 999px;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  backdrop-filter: blur(14px);
}

.primary-action {
  background: linear-gradient(135deg, #d0a0c0, #ffd0c0);
  color: #321f34;
  box-shadow: 0 16px 44px rgba(176, 128, 176, 0.25);
}

.secondary-action {
  background: rgba(255, 248, 239, 0.62);
  color: var(--plum);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(109, 74, 107, 0.58);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.section-inner {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.intro-band {
  padding: clamp(68px, 10vw, 128px) 0;
  background: linear-gradient(180deg, var(--cream), var(--pearl));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.intro-grid p:last-child,
.section-heading p:last-child,
.meditation-grid p,
.contact p,
.about-copy p {
  color: var(--muted);
  font-size: 18px;
}

.listen,
.gallery {
  padding: clamp(72px, 10vw, 126px) 0;
}

.center-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.audio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.audio-item {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.94), rgba(255, 224, 208, 0.38)),
    var(--white-glass);
  box-shadow: 0 24px 70px rgba(109, 74, 107, 0.1);
}

.featured-audio {
  background:
    linear-gradient(155deg, rgba(208, 160, 192, 0.34), rgba(255, 224, 208, 0.45) 52%, rgba(255, 248, 239, 0.92)),
    var(--white-glass);
}

.audio-meta span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
}

.audio-meta p {
  margin: 0;
  color: var(--muted);
}

audio {
  width: 100%;
  height: 42px;
}

.meditation-band {
  padding: clamp(58px, 8vw, 92px) 0;
  background:
    linear-gradient(90deg, rgba(255, 240, 224, 0.92), rgba(240, 192, 192, 0.42)),
    url("./assets/images/hero-warm-purple.png") center / cover;
  border-block: 1px solid rgba(109, 74, 107, 0.1);
}

.video-band {
  padding: clamp(62px, 8vw, 104px) 0;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(208, 160, 192, 0.22)),
    var(--pearl);
  border-bottom: 1px solid rgba(109, 74, 107, 0.1);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.video-grid p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.meditation-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 30px;
  align-items: center;
}

.meditation-options {
  display: grid;
  gap: 18px;
}

.session-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.session-buttons button,
.session-controls button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(109, 74, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.68);
  color: var(--plum);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.session-buttons button:hover,
.session-buttons button.is-active,
.session-controls button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d0a0c0, #ffd0c0);
  color: #321f34;
  box-shadow: 0 12px 32px rgba(176, 128, 176, 0.22);
}

.session-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.session-player {
  padding: 22px;
  border: 1px solid rgba(109, 74, 107, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.7);
  box-shadow: 0 18px 50px rgba(109, 74, 107, 0.1);
  backdrop-filter: blur(12px);
}

.session-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  color: var(--plum);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.session-status strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
}

.session-progress {
  height: 7px;
  margin: 14px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(109, 74, 107, 0.12);
}

.session-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d0a0c0, #ffd0c0);
  transition: width 320ms linear;
}

.session-player p {
  margin-bottom: 18px;
  color: var(--muted);
}

.session-controls {
  display: flex;
  gap: 10px;
}

.painting-grid {
  display: flex;
  height: clamp(430px, 48vw, 620px);
  gap: 10px;
  align-items: stretch;
}

figure {
  min-width: 0;
}

.painting-panel {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(109, 74, 107, 0.12);
  cursor: pointer;
  background: #fff8ef;
  box-shadow: 0 20px 58px rgba(109, 74, 107, 0.1);
  transition:
    flex-grow 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 900ms ease;
  will-change: flex-grow;
}

.painting-panel:hover,
.painting-panel:focus-visible {
  flex-grow: 4.2;
  box-shadow: 0 30px 80px rgba(109, 74, 107, 0.18);
  outline: none;
}

.painting-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

.painting-panel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 54px 18px 16px;
  color: #fff8ef;
  background: linear-gradient(180deg, transparent, rgba(45, 34, 48, 0.72));
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
}

.painting-panel figcaption small {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 220ms ease;
}

.painting-panel:hover figcaption small,
.painting-panel:focus-visible figcaption small {
  opacity: 0.82;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(45, 34, 48, 0.82);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(1120px, 100%);
  max-height: 92vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff8ef;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.lightbox figcaption {
  padding-top: 12px;
  color: #fff8ef;
  text-align: center;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 239, 0.36);
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.18);
  color: #fff8ef;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.about {
  padding: clamp(72px, 10vw, 126px) 0;
  background: linear-gradient(180deg, #fff8ef, #fff0e0);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(109, 74, 107, 0.18);
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(70px, 9vw, 112px) 0;
}

.contact p {
  max-width: 560px;
}

.qr {
  width: 154px;
  height: 154px;
  object-fit: cover;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(109, 74, 107, 0.16);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: rgba(109, 74, 107, 0.62);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
}

@media (max-width: 980px) {
  .intro-grid,
  .about-grid,
  .video-grid,
  .meditation-grid {
    grid-template-columns: 1fr;
  }

  .audio-list {
    grid-template-columns: 1fr;
  }

  .audio-item {
    min-height: auto;
  }

  .painting-grid {
    display: flex;
    height: auto;
    min-height: 0;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .painting-panel {
    flex: 0 0 min(76vw, 420px);
    height: clamp(360px, 68vh, 520px);
    scroll-snap-align: center;
  }

  .painting-panel:hover,
  .painting-panel:focus-visible {
    flex-grow: 0;
  }

  .painting-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    padding: 0;
  }

  .session-buttons {
    justify-content: flex-start;
  }

  .video-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  nav {
    width: min(100%, 420px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    font-size: 13px;
    text-align: center;
  }

  .language-switch {
    font-size: 12px;
    padding: 7px 10px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 86vh;
    padding: 138px 20px 72px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 38px);
    letter-spacing: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .painting-grid {
    margin-right: calc((100vw - 100%) / -2);
    padding-right: 22px;
  }

  .painting-panel {
    flex-basis: min(72vw, 320px);
    height: clamp(360px, 62vh, 500px);
    min-height: 0;
  }

  .painting-panel img {
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
