/* Tai Chi — ink wash: cool slate, wet-brush accents, lots of air.
   Deliberately unlike jsyoga (devotional print), yoga (warm studio),
   health (commonplace book) and kept (late-evening indigo). */
:root {
  --bg:      #f4f6f6;
  --surface: #ffffff;
  --ink:     #14181a;
  --muted:   #59656a;
  --faint:   #8e9aa0;
  --hair:    #dfe5e6;
  --accent:  #3f6f7a;
  --lift: 0 1px 2px rgba(15,25,30,.04), 0 16px 36px -22px rgba(15,25,30,.3);
  --serif: "Iowan Old Style", Charter, Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1a1e20; --ink: #e6ecec; --muted: #9aa7ad;
  --faint: #6c797f; --hair: #2a3033; --accent: #7fb3bd;
  --lift: 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -24px rgba(0,0,0,.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416; --surface: #1a1e20; --ink: #e6ecec; --muted: #9aa7ad;
    --faint: #6c797f; --hair: #2a3033; --accent: #7fb3bd;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: var(--accent); }

.mast {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 12px;
  align-items: center; justify-content: space-between; padding: 12px 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; }
.yy { font-size: 22px; color: var(--accent); }
.words { display: flex; flex-direction: column; line-height: 1.25; }
.words b { font-family: var(--serif); font-size: 17px; }
.words em {
  font-style: normal; font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint);
}
.icon {
  background: none; border: 1px solid var(--hair); color: var(--ink);
  border-radius: 9px; padding: 6px 10px;
}

.view { max-width: 1060px; margin: 0 auto; padding: 8px 18px 30px; }
.hero { padding: 26px 0 16px; }
.hero.tight { padding: 14px 0 10px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(28px, 5vw, 38px); margin: 0 0 10px;
  line-height: 1.14; letter-spacing: -.015em; font-weight: 500;
}
.hero p { margin: 0 0 6px; color: var(--muted); line-height: 1.65; max-width: 64ch; }
.stat { color: var(--accent) !important; font-size: 13.5px; }
.cn { font-family: var(--serif); font-style: italic; color: var(--faint) !important; }
.num {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); font-family: var(--sans); font-size: .5em;
  font-weight: 600; vertical-align: middle;
}
.links { margin-top: 12px; font-size: 13.5px; }
.links a { text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.grid {
  display: grid; gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 13px; overflow: hidden; box-shadow: var(--lift);
  transition: transform .16s ease;
}
.card:hover:not(.empty) { transform: translateY(-2px); }
.card.empty { opacity: .5; box-shadow: none; }
.thumb { position: relative; display: block; background: var(--hair);
  aspect-ratio: 16/10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .num {
  position: absolute; left: 8px; top: 8px; font-size: 11px; min-width: 22px;
  height: 22px; background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.card.empty .thumb { display: grid; place-items: center; }
.card.empty .thumb .num { position: static; }
.cb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.cb b { font-size: 14px; line-height: 1.3; }
.cb em { font-style: normal; font-family: var(--serif); font-size: 12px;
  color: var(--muted); }
.meta { font-size: 11px; color: var(--faint); margin-top: 3px; }

.player { border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--lift); }
.player video { width: 100%; display: block; max-height: 68vh; }
.back { background: none; border: 0; color: var(--muted); font-size: 13.5px;
  padding: 10px 0; }
.alts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 16px; }
.alts-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-right: 4px; }
.alt { background: transparent; border: 1px solid var(--hair);
  color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.alt.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.steps-sec { margin-top: 26px; }
.steps-sec h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 10px;
  font-weight: 500; }
.steps-sec h2 em { font-style: normal; font-size: 12px; color: var(--faint);
  font-family: var(--sans); }
.strip { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; }
.step { position: relative; flex: none; padding: 0; border: 1px solid var(--hair);
  border-radius: 10px; overflow: hidden; background: var(--surface); width: 140px; }
.step img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.step span {
  position: absolute; left: 6px; top: 6px; font-size: 11px; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-radius: 5px; padding: 1px 6px;
}
.note {
  color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 66ch;
  border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 28px;
}
.srow {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.srow .meta { display: block; margin-top: 5px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { background: none; border: 0; color: var(--faint); padding: 15px 6px;
  font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.tabs button.on { color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
.foot {
  max-width: 720px; margin: 0 auto; border-top: 1px solid var(--hair);
  color: var(--faint); font-size: 11.5px; line-height: 1.7;
  padding: 18px 18px 26px; text-align: center;
}
