:root {
  --swatch: #e86a12;
  --deep: #3d1406;
  --mid: #7a2a0c;
  --accent: #ff9a3c;
  --accent-ink: #2a0e04;
  --cream: #fff3e8;
  --ink: #2a140f;
  --muted: #8a5a3c;
  --petal: #ff9a3c;
  --nav-h: calc(68px + env(safe-area-inset-bottom));
  --font: "Outfit", "Noto Sans Devanagari", system-ui, sans-serif;
  --display: "Yatra One", "Noto Serif Devanagari", serif;
  --shadow: 0 18px 40px rgba(20, 8, 4, 0.22);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--nav-h);
}

.section[id] {
  scroll-margin-top: 8px;
  scroll-margin-bottom: var(--nav-h);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--deep);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--nav-h);
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 40;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.toran {
  height: 22px;
  background:
    radial-gradient(circle at 8px 4px, var(--accent) 5px, transparent 6px),
    radial-gradient(circle at 24px 4px, var(--swatch) 5px, transparent 6px),
    radial-gradient(circle at 40px 4px, var(--petal) 5px, transparent 6px),
    linear-gradient(var(--mid), var(--mid));
  background-size: 48px 22px, 48px 22px, 48px 22px, 100% 8px;
  background-repeat: repeat-x;
  background-position: 0 8px, 0 8px, 0 8px, 0 0;
}

.petals {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 14px;
  border-radius: 80% 0 80% 0;
  background: var(--petal);
  opacity: 0.35;
  animation: fall linear infinite;
}

.petal:nth-child(1) { left: 8%; animation-duration: 14s; animation-delay: -2s; }
.petal:nth-child(2) { left: 22%; animation-duration: 18s; animation-delay: -7s; }
.petal:nth-child(3) { left: 41%; animation-duration: 16s; animation-delay: -4s; }
.petal:nth-child(4) { left: 63%; animation-duration: 20s; animation-delay: -11s; }
.petal:nth-child(5) { left: 81%; animation-duration: 15s; animation-delay: -1s; }
.petal:nth-child(6) { left: 92%; animation-duration: 19s; animation-delay: -9s; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 28px 20px 36px;
  color: var(--cream);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 52%),
    linear-gradient(180deg, var(--deep), var(--mid) 78%, color-mix(in srgb, var(--mid) 70%, var(--deep)));
  transition: background 0.45s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 28px;
  pointer-events: none;
}

.mandala {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  background: repeating-conic-gradient(from 0deg, var(--accent) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, transparent 18%, #000 19%, #000 46%, transparent 47%, transparent 58%, #000 59%, #000 72%, transparent 73%);
  animation: spin 80s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
}

.kicker a {
  text-decoration: none;
}

.mantra {
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 8px 0 6px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 4.4vw, 1.55rem);
  font-weight: 700;
}

.lede {
  margin: 0 auto 18px;
  max-width: 34ch;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  font-size: 0.95rem;
}

.color-ribbon {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0 auto 18px;
  max-width: 440px;
}

.ribbon-dot {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 32px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ribbon-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.ribbon-dot.is-on .ribbon-swatch {
  box-shadow: 0 0 0 3px var(--accent);
}

.ribbon-dot.is-today .ribbon-swatch {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ribbon-n {
  font-size: 0.62rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 10px;
}

.cd-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 16px;
  padding: 10px 4px 8px;
  backdrop-filter: blur(8px);
}

.cd-box strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cd-box span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
}

.countdown-label {
  margin: 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.dates-line {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-cta {
  margin-top: 16px;
}

.sheet {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 12px 12px, color-mix(in srgb, var(--swatch) 22%, transparent) 2px, transparent 3px),
    var(--cream);
  background-size: 22px 22px, auto;
  padding: 22px 16px 28px;
  color: var(--ink);
  transition: background-color 0.45s ease;
}

.section {
  margin: 0 auto 28px;
  max-width: 720px;
}

.section-head {
  margin-bottom: 12px;
}

.section h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mr {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--mid);
  font-weight: 400;
}

.sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.today-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--swatch) 35%, transparent);
}

.today-swatch {
  width: 100%;
  height: 92px;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.today-meta,
.today-tithi,
.today-note {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.today-devi-mr {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--mid);
}

.today-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.today-color {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--mid);
}

.today-wear {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
}

.today-card p {
  margin: 0 0 10px;
}

.today-note {
  margin-top: 8px;
}

.today-event-link {
  color: var(--mid);
  font-weight: 700;
}

.event-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.event-actions .btn {
  width: 100%;
}

.night-event {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mid);
}

.nights {
  display: grid;
  gap: 10px;
}

.night-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--swatch) 18%, transparent);
  box-shadow: 0 8px 20px rgba(20, 8, 4, 0.06);
}

.night-card.is-on {
  box-shadow: 0 0 0 2px var(--swatch), var(--shadow);
}

.night-card.is-today button {
  background: color-mix(in srgb, var(--cream) 70%, #fff);
}

.night-card button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  cursor: pointer;
  color: inherit;
  min-height: 88px;
}

.night-swatch {
  flex: 0 0 64px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.night-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.night-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.night-top strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.night-top em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.night-devi {
  font-weight: 700;
  font-size: 1.02rem;
}

.night-mr {
  font-family: var(--display);
  color: var(--mid);
}

.night-color {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.how-grid {
  display: grid;
  gap: 10px;
}

.how {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--swatch) 16%, transparent);
}

.how strong {
  display: block;
  margin-bottom: 6px;
}

.how-cta {
  margin-top: 10px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.how-grid .how .btn {
  width: 100%;
}

.contacts {
  display: grid;
  gap: 10px;
}

.contact {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.contact h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.contact p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--mid);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  text-align: center;
  padding: 8px 16px 18px;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--accent);
}

.social {
  margin: 10px 0 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ig-mini {
  width: 18px;
  height: 18px;
}

.credit {
  margin: 10px 0 0;
  line-height: 1.5;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  background: color-mix(in srgb, var(--deep) 94%, #000);
  color: var(--cream);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.bottom-nav a {
  background: none;
  border: 0;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  min-width: 0;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.bottom-nav .accent {
  color: var(--accent);
}

@media (min-width: 720px) {
  .sheet {
    max-width: 760px;
    margin: -8px auto 40px;
    padding: 32px 24px 48px;
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .hero {
    padding: 40px 24px 48px;
  }

  .how-grid,
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petal,
  .mandala,
  body,
  .hero,
  .sheet {
    animation: none;
    transition: none;
  }
}
