:root {
  --ink: #2b2924;
  --muted: #716d64;
  --cream: #f7f2e8;
  --paper: rgba(255, 253, 248, 0.86);
  --gold: #a9864a;
  --gold-dark: #72572d;
  --sage: #738271;
  --line: rgba(91, 70, 38, 0.16);
  --shadow: 0 24px 70px rgba(52, 44, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(207, 190, 151, 0.28), transparent 27rem),
    radial-gradient(circle at 88% 28%, rgba(116, 141, 128, 0.18), transparent 30rem),
    var(--cream);
  font-family: "Open Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button, input, select { font: inherit; }
a { color: inherit; }

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: .5rem;
  color: white;
  background: var(--gold-dark);
}
.skip:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand img { width: 178px; height: auto; display: block; }
.brand-fallback {
  display: none;
  font-family: Georgia, serif;
  letter-spacing: .08em;
}

.top-links { display: flex; align-items: center; gap: 1rem; }
.back-link {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: var(--gold-dark); }

.language {
  display: flex;
  gap: .2rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
}
.language a {
  min-width: 38px;
  padding: .38rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.language a[aria-current="page"] { color: white; background: var(--gold); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 94px;
  text-align: center;
}
.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(161, 127, 69, .14);
  border-radius: 50%;
  content: "";
}
.hero::before { width: 520px; height: 520px; left: -330px; top: -170px; }
.hero::after { width: 650px; height: 650px; right: -410px; bottom: -350px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after { width: 32px; height: 1px; background: var(--gold); content: ""; }
.hero h1 {
  max-width: 850px;
  margin: 0 auto 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}
.headphone-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 26px;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(255,255,255,.45);
  font-size: .82rem;
  font-weight: 700;
}

.library {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 96px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
}
.section-heading p { max-width: 470px; margin: 0; color: var(--muted); }

.meditation-list { display: grid; gap: 26px; }

.meditation-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(108, 88, 52, .12);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card-art {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,.24), rgba(35,55,47,.18)),
    linear-gradient(145deg, #b8b196, #60796f);
}
.card-art.beach {
  background:
    linear-gradient(180deg, rgba(246,230,191,.1), rgba(30,74,78,.25)),
    linear-gradient(145deg, #d6c398, #6b918c 60%, #526c6c);
}
.card-art::before,
.card-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.card-art::before {
  width: 240px;
  height: 240px;
  left: -70px;
  top: 44px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 0 0 38px rgba(255,255,255,.07), 0 0 0 76px rgba(255,255,255,.045);
}
.card-art::after {
  width: 115%;
  height: 160px;
  left: -8%;
  bottom: -65px;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 -22px 0 rgba(255,255,255,.06), 0 -44px 0 rgba(255,255,255,.04);
}
.art-number {
  position: absolute;
  top: 26px;
  left: 26px;
  color: rgba(255,255,255,.92);
  font: 400 3rem/1 Georgia, serif;
}
.art-duration {
  position: absolute;
  right: 22px;
  bottom: 21px;
  z-index: 1;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: white;
  background: rgba(29,40,36,.42);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

.card-body { min-width: 0; padding: 34px 38px 32px; }
.card-kicker {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.card-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
}
.card-description { max-width: 690px; margin: 12px 0 25px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.tag {
  padding: .35rem .65rem;
  border-radius: 999px;
  color: #5f654f;
  background: rgba(116,130,113,.11);
  font-size: .72rem;
  font-weight: 700;
}

.player {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.transport {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.play-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--gold-dark);
  box-shadow: 0 8px 22px rgba(90,68,33,.23);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.play-toggle:hover { transform: translateY(-2px); background: #8d6c36; }
.play-toggle svg { width: 19px; height: 19px; fill: currentColor; }
.play-toggle .pause-icon { display: none; }
.play-toggle.is-playing .play-icon { display: none; }
.play-toggle.is-playing .pause-icon { display: block; }

.timeline { min-width: 0; }
.progress, .volume {
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 999px;
  outline: none;
  accent-color: var(--gold);
  cursor: pointer;
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}
.download {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .65rem;
  border-radius: .5rem;
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}
.download:hover { background: rgba(169,134,74,.1); }

.player-settings {
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) minmax(130px, 1fr) 105px;
  gap: 14px;
  align-items: end;
  margin-top: 19px;
}
.setting label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.setting select {
  width: 100%;
  min-height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255,255,255,.64);
  cursor: pointer;
}
.volume-wrap { min-height: 40px; display: flex; align-items: center; }
.preset-note {
  min-height: 1.4em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .73rem;
}

.ritual {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto 90px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 26px;
  text-align: center;
  background: rgba(255,253,248,.55);
}
.ritual h2 { margin: 0 0 10px; font: 400 clamp(1.8rem, 4vw, 2.7rem)/1.2 Georgia, serif; }
.ritual > p { max-width: 660px; margin: 0 auto 30px; color: var(--muted); }
.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.ritual-step { padding: 20px 12px; border-top: 1px solid var(--line); }
.ritual-step b { display: block; margin-bottom: 5px; color: var(--gold-dark); }
.ritual-step span { color: var(--muted); font-size: .86rem; }

.site-footer {
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: .8rem;
}
.site-footer a { color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 12px; }

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

@media (max-width: 760px) {
  .site-header { width: min(100% - 24px, 1160px); padding-top: 14px; }
  .brand img { width: 145px; }
  .back-link { display: none; }
  .hero { padding: 50px 20px 66px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
  .meditation-card { grid-template-columns: 1fr; }
  .card-art { min-height: 185px; }
  .card-body { padding: 26px 22px; }
  .transport { grid-template-columns: 46px minmax(0,1fr); }
  .download { grid-column: 1 / -1; justify-self: end; padding-block: .2rem; }
  .player-settings { grid-template-columns: 1fr 1fr; }
  .setting-volume { grid-column: 1 / -1; }
  .ritual { padding: 32px 20px; }
  .ritual-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
