:root {
    color-scheme: light;
    --sky-base: #B3DCFC;
    --ink: #12324F;
    --ink-muted: #3E5C78;
    --gold: #8F5A0B;
    --gold-bright: #E8A83A;
    --glow: #FFF3D1;
    --card: rgba(255, 255, 255, 0.86);
    --font-ui: 'Mukta Vaani', system-ui, sans-serif;
    --font-display: 'Rasa', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

.icon-sheet {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.55;
    word-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    --art-width: clamp(44rem, 100vw, 72rem);
    background:
        linear-gradient(to bottom, transparent 55%, var(--sky-base) 100%) center top / var(--art-width) calc(var(--art-width) * 1.4) no-repeat,
        url('/images/diwali-2026-mandala.jpg') center top / var(--art-width) auto no-repeat,
        var(--sky-base);
}

a { color: inherit; }

a:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* The art has a warm glow at its heart; the headline sits on it and the glow breathes once
   on load, which is the page's one moment of motion. */
.hero {
    position: relative;
    max-width: 36rem;
    margin: 0 auto;
    padding: calc(1.25rem + env(safe-area-inset-top)) 1.25rem 3rem;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 55%;
    width: 30rem;
    height: 30rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 243, 209, 0.95) 0%, rgba(255, 243, 209, 0.55) 35%, transparent 68%);
    animation: glow 2.4s ease-out both;
}

@keyframes glow {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.home {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--ink-muted);
}

.greeting {
    margin: 3.5rem 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gold);
}

h1 {
    margin: 0.5rem 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.375rem, 9vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.intro {
    max-width: 30rem;
    margin: 1.25rem auto 0;
    font-size: 1.0625rem;
    color: var(--ink-muted);
    text-wrap: pretty;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    margin-top: 1.75rem;
    padding: 0 1.75rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(18, 50, 79, 0.25), 0 0 0 6px rgba(255, 243, 209, 0.7);
    transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cta:active { transform: scale(0.98); }

.diyas {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.diya {
    width: 2.75rem;
    height: 2.75rem;
    filter: drop-shadow(0 0 10px rgba(247, 195, 75, 0.6));
    animation: flicker 3.2s ease-in-out infinite;
}

.diya:nth-child(2n) { animation-delay: -1.1s; }
.diya:nth-child(3n) { animation-delay: -2.2s; }

@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(0.97, 1.03) rotate(-1.5deg); }
    60% { transform: scale(1.02, 0.98) rotate(1deg); }
}

.content {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem calc(2.5rem + env(safe-area-inset-bottom));
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1rem 1.25rem 1rem 4rem;
    border-radius: 18px;
    background: var(--card);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.125rem;
    top: 1rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--glow);
    border: 1px solid rgba(143, 90, 11, 0.3);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--gold);
}

.steps h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1875rem;
    line-height: 1.3;
}

.steps p {
    margin: 0.125rem 0 0;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

.form-card {
    scroll-margin-top: 1rem;
    padding: 1.5rem 0.75rem 1rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 50, 79, 0.18);
}

.form-card h2 {
    margin: 0 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.625rem;
    line-height: 1.2;
}

.form-card > p {
    margin: 0.25rem 0.75rem 1rem;
    color: var(--ink-muted);
}

.form-card iframe {
    display: block;
    width: 100%;
    height: max(40rem, 85svh);
    border: 0;
    border-radius: 12px;
}

.form-card .fallback {
    margin: 0.75rem 0.75rem 0;
    font-size: 0.875rem;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.footer p { margin: 0.25rem 0; }

@media (min-width: 40rem) {
    .greeting { margin-top: 5rem; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { padding: 3.75rem 1.25rem 1.25rem; }
    .steps li::before { top: 1.25rem; left: 1.25rem; }
    .form-card { padding: 2rem 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before, .diya { animation: none; }
    .cta { transition: none; }
}
