/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #f5a623;
  --peach:   #fde8c8;
  --rose:    #f7c4a0;
  --sky:     #ffe9c5;
  --deep:    #c46b1e;
  --text:    #3d2808;
  --muted:   #9a7050;
  --white:   #fffdf8;
  --radius:  18px;
}

html, body {
  min-height: 100%;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(160deg, #fff4e0 0%, #fde8c8 50%, #fcd5a8 100%);
  color: var(--text);
}

/* ── Sky / Sun Animation ─────────────────────── */
.sky {
  position: fixed;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  pointer-events: none;
  z-index: 0;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff5a0, #ffe040 30%, #f5a623 65%, #e07a10);
  box-shadow:
    0 0 0   8px  rgba(255,224,64,0.18),
    0 0 30px 12px rgba(245,166,35,0.45),
    0 0 70px 30px rgba(245,166,35,0.22),
    0 0 130px 60px rgba(245,166,35,0.10);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    box-shadow: 0 0 0 8px rgba(255,224,64,0.18), 0 0 30px 12px rgba(245,166,35,0.45), 0 0 70px 30px rgba(245,166,35,0.22), 0 0 130px 60px rgba(245,166,35,0.10); }
  50%       { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 12px rgba(255,224,64,0.25), 0 0 40px 18px rgba(245,166,35,0.55), 0 0 90px 45px rgba(245,166,35,0.28), 0 0 160px 75px rgba(245,166,35,0.13); }
}

/* ── Slow outer ring of long beams ── */
.rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: spin 28s linear infinite;
}

.rays span {
  position: absolute;
  display: block;
  border-radius: 3px;
  transform-origin: center bottom;
  left: 0;
  top: 0;
}

/* Long primary beams */
.rays span:nth-child(1),
.rays span:nth-child(2),
.rays span:nth-child(3),
.rays span:nth-child(4),
.rays span:nth-child(5),
.rays span:nth-child(6),
.rays span:nth-child(7),
.rays span:nth-child(8) {
  width: 5px;
  height: 80px;
  margin-left: -2.5px;
  margin-top: -80px;
  background: linear-gradient(to top, rgba(255,230,60,1) 0%, rgba(255,220,60,0.6) 60%, transparent 100%);
  animation: beamFlicker 3s ease-in-out infinite;
}

.rays span:nth-child(1) { transform: rotate(0deg);   animation-delay: 0s; }
.rays span:nth-child(2) { transform: rotate(45deg);  animation-delay: 0.4s; }
.rays span:nth-child(3) { transform: rotate(90deg);  animation-delay: 0.8s; }
.rays span:nth-child(4) { transform: rotate(135deg); animation-delay: 1.2s; }
.rays span:nth-child(5) { transform: rotate(180deg); animation-delay: 1.6s; }
.rays span:nth-child(6) { transform: rotate(225deg); animation-delay: 2.0s; }
.rays span:nth-child(7) { transform: rotate(270deg); animation-delay: 2.4s; }
.rays span:nth-child(8) { transform: rotate(315deg); animation-delay: 2.8s; }

@keyframes beamFlicker {
  0%, 100% { opacity: 1;    transform-origin: center bottom; height: 80px; }
  40%       { opacity: 1;    height: 96px; }
  70%       { opacity: 0.75; height: 72px; }
}

/* ── Fast inner ring of short sparkle beams ── */
.rays2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: spin 14s linear infinite reverse;
}

.rays2 span {
  position: absolute;
  display: block;
  border-radius: 2px;
  transform-origin: center bottom;
  left: 0;
  top: 0;
}

.rays2 span:nth-child(1),
.rays2 span:nth-child(2),
.rays2 span:nth-child(3),
.rays2 span:nth-child(4),
.rays2 span:nth-child(5),
.rays2 span:nth-child(6),
.rays2 span:nth-child(7),
.rays2 span:nth-child(8),
.rays2 span:nth-child(9),
.rays2 span:nth-child(10),
.rays2 span:nth-child(11),
.rays2 span:nth-child(12) {
  width: 2px;
  height: 44px;
  margin-left: -1px;
  margin-top: -44px;
  background: linear-gradient(to top, rgba(255,245,120,1) 0%, rgba(255,255,200,0.75) 50%, transparent 100%);
  animation: sparkle 2.2s ease-in-out infinite;
}

.rays2 span:nth-child(1)  { transform: rotate(0deg);    animation-delay: 0s; }
.rays2 span:nth-child(2)  { transform: rotate(30deg);   animation-delay: 0.18s; }
.rays2 span:nth-child(3)  { transform: rotate(60deg);   animation-delay: 0.36s; }
.rays2 span:nth-child(4)  { transform: rotate(90deg);   animation-delay: 0.54s; }
.rays2 span:nth-child(5)  { transform: rotate(120deg);  animation-delay: 0.72s; }
.rays2 span:nth-child(6)  { transform: rotate(150deg);  animation-delay: 0.90s; }
.rays2 span:nth-child(7)  { transform: rotate(180deg);  animation-delay: 1.08s; }
.rays2 span:nth-child(8)  { transform: rotate(210deg);  animation-delay: 1.26s; }
.rays2 span:nth-child(9)  { transform: rotate(240deg);  animation-delay: 1.44s; }
.rays2 span:nth-child(10) { transform: rotate(270deg);  animation-delay: 1.62s; }
.rays2 span:nth-child(11) { transform: rotate(300deg);  animation-delay: 1.80s; }
.rays2 span:nth-child(12) { transform: rotate(330deg);  animation-delay: 1.98s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3;  height: 44px; }
  30%       { opacity: 1;   height: 58px; }
  60%       { opacity: 0.15; height: 36px; }
}

/* ── Floating glint dots ── */
.glints {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.glints span {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 245, 150, 0.95);
  box-shadow: 0 0 6px 2px rgba(255,220,60,0.8);
}

.glints span:nth-child(1)  { transform: translate( 95px, -30px); animation: glint 2.8s 0.0s ease-in-out infinite; }
.glints span:nth-child(2)  { transform: translate(-95px, -30px); animation: glint 3.1s 0.5s ease-in-out infinite; }
.glints span:nth-child(3)  { transform: translate( 40px, -105px); animation: glint 2.4s 1.0s ease-in-out infinite; }
.glints span:nth-child(4)  { transform: translate(-40px, -105px); animation: glint 3.5s 1.5s ease-in-out infinite; }
.glints span:nth-child(5)  { transform: translate( 110px, -75px); animation: glint 2.6s 0.7s ease-in-out infinite; }
.glints span:nth-child(6)  { transform: translate(-110px, -75px); animation: glint 3.0s 1.2s ease-in-out infinite; }

@keyframes glint {
  0%, 100% { opacity: 0;   transform-origin: center; scale: 0.4; }
  40%       { opacity: 1;  scale: 1.1; }
  70%       { opacity: 0.6; scale: 0.8; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Main Card ───────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 140px auto 60px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  padding: 48px 52px 40px;
  box-shadow:
    0 4px 24px rgba(196,107,30,0.10),
    0 1px 4px  rgba(196,107,30,0.08);
}

/* ── Header ──────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 36px;
}

.date-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: 0.02em;
}

/* ── Day Navigation ──────────────────────────── */
.day-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.day-nav button {
  background: none;
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 20px;
  padding: 5px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.day-nav button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--deep);
}

.day-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Section Titles ──────────────────────────── */
.section-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 400;
}

/* ── Mantra ──────────────────────────────────── */
.mantra-section {
  margin-bottom: 32px;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.55;
  color: var(--text);
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

/* ── Divider ─────────────────────────────────── */
.divider {
  text-align: center;
  margin: 28px 0;
  color: var(--rose);
  font-size: 1.1rem;
  letter-spacing: 12px;
}

/* ── Aramaic Chant ───────────────────────────── */
.chant-section {
  margin-bottom: 32px;
}

.chant-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--deep);
  margin-bottom: 10px;
  font-style: italic;
}

.chant-phonetic {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 14px;
}

.chant-translation {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
  padding-left: 20px;
  border-left: 3px solid rgba(245,166,35,0.4);
}

.chant-section .steps-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}

.chant-source {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  margin-top: 10px;
  font-style: italic;
}

/* ── Tai Chi ─────────────────────────────────── */
.taichi-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--deep);
  margin-bottom: 10px;
}

.taichi-section > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 22px;
}

.steps-box {
  background: linear-gradient(135deg, #fff8ee, #fdefd8);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.steps-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

ol {
  padding-left: 18px;
}

ol li {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text);
  padding-left: 4px;
}

ol li + li { margin-top: 6px; }

.taichi-video-wrap {
  margin: 24px auto 0;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(196,107,30,0.15);
  aspect-ratio: 9 / 16;
}

.taichi-video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.taichi-intention {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  padding-top: 4px;
}

/* ── Pose Illustration ───────────────────────── */
.pose-illustration {
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
}

.pose-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(196,107,30,0.15));
  animation: poseSway 5s ease-in-out infinite;
}

@keyframes poseSway {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%       { transform: translateY(-4px) rotate(0.5deg); }
}

/* ── Footer ──────────────────────────────────── */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(245,166,35,0.2);
  padding-top: 20px;
}

.attribution {
  margin-top: 10px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--deep);
  opacity: 0.8;
}

/* ── Fade-in ─────────────────────────────────── */
.card { animation: fadeUp 0.9s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .card { margin: 110px 16px 40px; padding: 36px 24px 28px; }
  header h1 { font-size: 1.9rem; }
  blockquote { font-size: 1.25rem; }
}
