/* Tibetan Deities — Earth-toned minimalist design */
:root {
    --bg: #fcfaf2;
    --surface: #ffffff;
    --text: #2b2927;
    --muted: #6f675d;
    --red: #8c2d19;
    --gold: #c9af86;
    --gold-soft: #eadfc9;
    --dark: #1e1b18;
    --line: #e6e0d4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a { color: inherit; }

.parent-brand-bar {
    width: 100%;
    background: #29251f;
    border-bottom: 1px solid rgba(201, 175, 134, 0.24);
    color: #c9c1b3;
    font-size: 0.82rem;
    line-height: 1.4;
}

.parent-brand-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.parent-brand-label { color: #aaa294; }

.parent-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #dfc18f;
    font-weight: 600;
    text-decoration: none;
}

.parent-brand-link:hover,
.parent-brand-link:focus-visible {
    color: #f1d7a8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header {
    background: #fffdf8;
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    color: var(--red);
    font-weight: 750;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1rem;
    font-size: 0.9rem;
}

.site-nav a {
    color: #514b45;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero {
    text-align: center;
    padding: 4.5rem 1rem 4rem;
    background-color: var(--red);
    color: #f7f4eb;
}

.hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
}

.subtitle {
    max-width: 760px;
    margin: 1rem auto 0;
    color: #e6e0d4;
    font-size: 1.08rem;
}

.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.card h2 {
    margin-top: 0;
    color: #4c251b;
    line-height: 1.25;
}

.card p:last-child { margin-bottom: 0; }

.intro,
.media-card { text-align: center; }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.intro .button-row,
.media-card .button-row {
    justify-content: center;
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark);
    padding: 0.8rem 1.4rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
}

.btn:hover,
.btn:focus-visible {
    background-color: #b5ae9f;
}

.btn-secondary {
    background: #eee7da;
    border: 1px solid #d4c4a9;
}

.network-footer {
    background-color: var(--dark);
    color: #e6e0d4;
    padding: 3rem 1.5rem 1.5rem;
    border-top: 3px solid var(--red);
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand h4,
.footer-links h5,
.footer-media h5 {
    color: #f7f4eb;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.footer-brand p {
    color: #b5ae9f;
    margin: 0;
}

.footer-links ul,
.footer-media ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-media li {
    margin-bottom: 0.6rem;
}

.network-footer a {
    color: var(--gold);
    text-decoration: none;
}

.network-footer a:hover,
.network-footer a:focus-visible {
    color: #f5d7a1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #36312c;
    text-align: center;
    color: #8c8375;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3.5rem 1rem 3rem;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-bottom {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .parent-brand-inner {
        padding: 0.5rem 1rem;
        gap: 0.25rem;
        flex-wrap: wrap;
        font-size: 0.78rem;
    }

    .site-header-inner {
        padding: 0.8rem 1rem;
    }

    .site-nav {
        gap: 0.5rem 0.85rem;
        font-size: 0.86rem;
    }

    .card {
        padding: 1.4rem;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* =========================================================
   Dark Mode
========================================================= */

.theme-toggle {
    border: 1px solid #d4c4a9;
    background: transparent;
    color: #514b45;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: #8c2d19;
    color: #8c2d19;
}

html.dark-theme {
    color-scheme: dark;
}

html.dark-theme body {
    background-color: #171512;
    color: #e7e1d7;
}

html.dark-theme .site-header {
    background: #211e1a;
    border-bottom-color: #3a342e;
}

html.dark-theme .site-brand {
    color: #d8b77f;
}

html.dark-theme .site-nav a {
    color: #cfc6ba;
}

html.dark-theme .site-nav a:hover,
html.dark-theme .site-nav a:focus-visible,
html.dark-theme .site-nav a.active {
    color: #e8c995;
}

html.dark-theme .theme-toggle {
    border-color: #5a5147;
    color: #d8d0c4;
    background: #2a2621;
}

html.dark-theme .theme-toggle:hover,
html.dark-theme .theme-toggle:focus-visible {
    border-color: #c9af86;
    color: #f1d7a8;
}

html.dark-theme .hero {
    background-color: #562015;
    color: #f7f4eb;
}

html.dark-theme .subtitle {
    color: #d6cec2;
}

html.dark-theme .card {
    background: #211e1a;
    border-color: #3a342e;
}

html.dark-theme .card h2 {
    color: #e5c89d;
}

html.dark-theme .btn {
    background-color: #c9af86;
    color: #1e1b18;
}

html.dark-theme .btn:hover,
html.dark-theme .btn:focus-visible {
    background-color: #dfc18f;
}

html.dark-theme .btn-secondary {
    background: #302b25;
    color: #e7e1d7;
    border-color: #5a5147;
}

html.dark-theme .network-footer {
    background-color: #11100e;
    border-top-color: #8c2d19;
}

html.dark-theme .footer-bottom {
    border-top-color: #2e2a26;
}

@media (prefers-color-scheme: dark) {
    html:not(.light-theme):not(.dark-theme) {
        color-scheme: dark;
    }
}

@media (max-width: 900px) {
    .theme-toggle {
        align-self: flex-start;
    }
}

/* =========================================================
   Embedded Mantra Videos
========================================================= */

.mantra-video-section {
    margin-top: 2rem;
}

.mantra-video-section > p {
    max-width: 820px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.video-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
    min-width: 0;
}

.video-card h3 {
    margin: 0 0 0.75rem;
    color: #4c251b;
    font-size: 1.05rem;
    line-height: 1.3;
}

.video-card p {
    margin: 0.7rem 0 0;
    font-size: 0.9rem;
}

.video-card a {
    color: #7a2818;
    font-weight: 600;
    text-decoration: none;
}

.video-card a:hover,
.video-card a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171512;
    border-radius: 6px;
    border: 1px solid #d8cdbb;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

html.dark-theme .video-card h3 {
    color: #e5c89d;
}

html.dark-theme .video-card a {
    color: #dfc18f;
}

html.dark-theme .video-embed {
    border-color: #4b433a;
}

@media (max-width: 900px) {
    .video-grid,
    .video-grid-two {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Semi-Wrathful Kurukulla Section
========================================================= */

.semi-wrathful-section {
    margin-top: 2rem;
    border-top: 3px solid #a94a32;
}

.category-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #8c2d19;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.semi-wrathful-mantra {
    margin-top: 1.5rem;
    padding: 1.35rem;
    background: #f7f0e4;
    border: 1px solid #e0d1ba;
    border-radius: 6px;
}

.semi-wrathful-mantra h3 {
    margin-top: 0;
    color: #4c251b;
}

.mantra-text {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

html.dark-theme .semi-wrathful-section {
    border-top-color: #b65d45;
}

html.dark-theme .category-kicker {
    color: #e3ad83;
}

html.dark-theme .semi-wrathful-mantra {
    background: #2b2520;
    border-color: #51473d;
}

html.dark-theme .semi-wrathful-mantra h3 {
    color: #e5c89d;
}

/* =========================================================
   Wrathful Deity Feature
========================================================= */

.wrathful-feature {
    margin-top: 2rem;
    border-top: 3px solid #6f3125;
}

html.dark-theme .wrathful-feature {
    border-top-color: #a85c49;
}

/* =========================================================
   Peaceful Deity Features
========================================================= */

.peaceful-feature-grid {
    margin-top: 2rem;
}

.peaceful-feature {
    border-top: 3px solid #b58b4e;
}

.deity-mantra-box {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: #f7f0e4;
    border: 1px solid #e0d1ba;
    border-radius: 6px;
}

.deity-mantra-box h3 {
    margin: 0 0 0.35rem;
    color: #4c251b;
}

.deity-mantra-box .mantra-text {
    margin: 0;
}

html.dark-theme .peaceful-feature {
    border-top-color: #c9af86;
}

html.dark-theme .deity-mantra-box {
    background: #2b2520;
    border-color: #51473d;
}

html.dark-theme .deity-mantra-box h3 {
    color: #e5c89d;
}
