:root {
    --cream: #fffaf0;
    --ink: #38201e;
    --maroon: #672b32;
    --saffron: #d88b24;
    --muted: #f5eee2;
    --border: #e8daca;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: Inter, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}

.container {
    width: min(1152px, calc(100% - 40px));
    margin: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    color: var(--maroon);
    margin: 0 0 0.5rem;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.7rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    color: #6f5e59;
    margin: 0 0 1rem;
}

a {
    color: var(--maroon);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fffaf0e6;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.brand strong {
    font: 600 1.25rem var(--serif);
    display: block;
    color: var(--maroon);
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7d6c67;
}

.desktop-nav {
    display: flex;
    gap: 27px;
    margin-left: auto;
}

.desktop-nav a {
    font-size: .85rem;
    color: #624f4d;
    text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav .active {
    color: var(--maroon);
    text-decoration: none;
}

.donate {
    display: inline-block;
}

/* Mobile nav */
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--maroon);
    font-size: 26px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 9px 0;
    color: var(--ink);
}

/* Buttons */
.button {
    display: inline-block;
    border: 0;
    border-radius: 99px;
    padding: 12px 24px;
    background: var(--maroon);
    color: var(--cream);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    text-decoration: none;
    color: var(--cream);
}

.secondary {
    background: var(--saffron);
    color: #2b1b16;
}

.secondary:hover {
    color: #2b1b16;
}

.ghost {
    background: #ffffff12;
    border: 1px solid #ffffff90;
    margin-left: 8px;
    color: #fff;
}

.ghost:hover {
    color: #fff;
}

.outline {
    background: transparent;
    border: 1px solid var(--maroon);
    color: var(--maroon);
}

.outline:hover {
    background: var(--maroon);
    color: var(--cream);
}

/* Hero */
.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(#5d2837db, #321e24bf);
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: 90px 0;
}

.hero h1 {
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: #e9a239;
}

.hero p {
    font-size: 1.1rem;
    color: #ffffffdd;
    max-width: 720px;
    margin: 24px auto;
}

.hero-logo {
    width: 136px;
    height: 136px;
    object-fit: contain;
}

.eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #b46e16;
    margin-bottom: 0.5rem;
}

.eyebrow.light {
    color: #efa73f;
}

/* Shruti ticker */
.shruti {
    overflow: hidden;
    padding: 14px 24px;
    background: #f9e7c5;
    border-block: 1px solid #ead7b3;
    color: var(--maroon);
    white-space: nowrap;
    font-size: .85rem;
}

.shruti b {
    font-size: .75rem;
    letter-spacing: .15em;
}

.scrolling {
    display: inline-block;
    margin-left: 40px;
    animation: scroll-x 45s linear infinite;
}

/* Sections */
.section {
    padding: 96px 0;
}

.intro {
    text-align: center;
    max-width: 850px;
    padding: 96px 0;
}

.intro p,
.page-hero p {
    font-size: 1.1rem;
}

.muted,
.page-hero {
    background: #f8f1e8;
    border-block: 1px solid var(--border);
}

.page-hero {
    text-align: center;
    padding: 80px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 25px auto;
}

/* Split header */
.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

/* Cards */
.cards {
    display: grid;
    gap: 20px;
    margin-top: 45px;
}

.cards.three {
    grid-template-columns: repeat(3, 1fr);
}

.cards.two {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 25px;
}

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px #4e25200c;
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--saffron);
    box-shadow: 0 20px 40px #4e252024;
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f8dcaa;
    color: var(--maroon);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Founder section */
.founder {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 70px;
    align-items: center;
}

.founder img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px #4e252040;
}

.founder>div:first-child {
    text-align: center;
}

.founder small {
    letter-spacing: .2em;
    color: #7a6964;
}

.founder blockquote {
    border-left: 4px solid var(--saffron);
    background: var(--muted);
    padding: 24px;
    margin: 18px 0;
    font: 1.3rem var(--serif);
    color: var(--maroon);
    line-height: 1.45;
}

/* Dark section */
.dark {
    background: var(--maroon);
    color: #fff;
}

.dark h2,
.dark h3 {
    color: #fff;
}

.dark .eyebrow {
    color: #f4ae45;
}

.dark p {
    color: #ffffffdd;
}

/* Event list */
.event-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.event-list li {
    border-bottom: 1px solid #ffffff24;
    padding: 13px 0;
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #fae8c7, #fffaf0, #f9ecd8);
    margin: 96px auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px;
    max-width: 1100px;
}

.cta h2 {
    margin-bottom: 1rem;
}

/* Numbered list */
.number-list {
    padding: 0;
    list-style: none;
    counter-reset: item;
    display: grid;
    gap: 13px;
    margin-top: 28px;
}

.number-list li {
    counter-increment: item;
    border-bottom: 1px solid var(--border);
    padding: 10px 0 10px 46px;
    position: relative;
}

.number-list li:before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    font: 1.3rem var(--serif);
    color: var(--maroon);
}

/* Two columns */
.two-cols {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 25px;
}

/* Event columns */
.event-columns {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 45px;
}

/* Center */
.center {
    text-align: center;
    margin-top: 45px;
}

/* Donate page */
.donate-page {
    text-align: center;
    max-width: 900px;
}

.donate-page .card {
    max-width: 600px;
    text-align: left;
    margin: 38px auto;
}

/* Legal */
.legal {
    max-width: 800px;
}

/* Forms */
form label {
    display: block;
    margin: 15px 0;
    font-size: .9rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px;
    background: var(--cream);
    font: inherit;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.notice {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success {
    background: #e5f5e8;
    color: #24662d;
}

.error {
    background: #ffe8e5;
    color: #8e2f25;
}

/* Footer */
.site-footer {
    margin-top: 96px;
    background: var(--maroon);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 56px 0;
}

.site-footer .brand strong,
.site-footer p,
.site-footer small,
.site-footer address {
    color: #ffffffd9;
}

.site-footer>div a {
    display: block;
    color: #ffffffd9;
    margin: 8px 0;
    font-size: .9rem;
    text-decoration: none;
}

.site-footer>div a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-grid b {
    display: block;
    color: #f0a537;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: .7rem;
    margin-bottom: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ffffff24;
    padding: 18px 0;
    font-size: .75rem;
    color: #ffffffa8;
}

.footer-bottom a {
    display: inline;
    margin-left: 18px !important;
}

/* Text link */
.text-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
}

/* Centre detail */
.centre-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.centre-detail img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 45px #4e252026;
}

/* Quotes */
.quotes blockquote {
    margin: 0 0 20px;
    font: 1.3rem var(--serif);
    color: var(--maroon);
    line-height: 1.45;
}

.quotes figcaption {
    color: #6f5e59;
}

/* Sanskrit line */
.sanskrit-line {
    text-align: center;
    margin: 48px 0 0;
    font: 1.45rem 'Noto Serif Devanagari', var(--serif);
    color: var(--maroon);
}

.sanskrit-line span {
    font: italic 1rem var(--sans);
    color: #6f5e59;
    display: block;
    margin-top: 8px;
}

/* Archive gallery */
.archive-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.archive-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: .2s;
}

.archive-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px #4e252040;
}

/* Archive content */
.archive-content details {
    padding: 18px 22px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 32px;
}

.archive-content summary {
    font: 600 1.15rem var(--serif);
    color: var(--maroon);
    cursor: pointer;
}

.source-document {
    overflow-wrap: anywhere;
}

.source-document img {
    max-width: 100%;
    height: auto;
    margin: 18px 8px 18px 0;
    border-radius: 8px;
}

.source-document table {
    display: table;
    max-width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
}

.source-document th,
.source-document td {
    padding: 10px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.source-document h2 {
    margin-top: 58px;
}

.source-document hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.source-document blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: var(--muted);
    border-left: 3px solid var(--saffron);
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 45px;
}

.team-card {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px #4e25200c;
    transition: .25s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px #4e252024;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-card small {
    color: #7a6964;
    font-size: .85rem;
}

/* Services list */
.services-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 10px;
}

.services-list li {
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-list li::before {
    content: "✦";
    color: var(--saffron);
    font-size: 1.1rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.stat-card {
    text-align: center;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px #4e25200c;
}

.stat-card .number {
    font: 700 2.5rem var(--serif);
    color: var(--maroon);
    display: block;
}

.stat-card .label {
    font-size: .9rem;
    color: #6f5e59;
    margin-top: 6px;
}

/* Bank details */
.bank-details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-top: 28px;
    text-align: left;
}

.bank-details p {
    margin: 6px 0;
    font-size: .95rem;
}

.bank-details strong {
    color: var(--ink);
}

/* Impact list */
.impact-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    text-align: left;
}

.impact-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.impact-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--saffron);
    font-weight: 700;
}

/* Membership table */
.membership-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
}

.membership-table th,
.membership-table td {
    padding: 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.membership-table th {
    background: var(--muted);
    font-weight: 600;
    color: var(--maroon);
}

/* Responsive */
@media (max-width: 900px) {
    .desktop-nav,
    .donate {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .cards.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .founder {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .centre-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .archive-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 32px, 1152px);
    }

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero-logo {
        width: 105px;
        height: 105px;
    }

    .section,
    .intro {
        padding: 64px 0;
    }

    .cards.three,
    .cards.two,
    .two-cols,
    .founder,
    .event-columns {
        grid-template-columns: 1fr;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .split {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta {
        margin: 64px 16px;
        padding: 38px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 44px 0;
        gap: 30px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 6px 0;
    }

    .footer-bottom a:first-child {
        margin-left: 0;
    }

    .page-hero {
        padding: 60px 0;
    }

    .archive-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-gallery img {
        height: 130px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

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