:root {
    --bg-deep: #0f1115;
    --bg-surface: rgba(24, 27, 34, 0.78);
    --accent-fire: #d97706;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

/* Subtle, elegant link styling for dark background */
a {
    color: #e2b771;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f6d89b;
    text-decoration: underline;
}

body {
    background-color: var(--bg-deep);
    background-image: url("images/Samhain spring.jpg");
    background-size: cover;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, .section-title, .card-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.03em;
}

/* Brand Logo Header - Completely Frameless & Seamless */
header,
.site-header {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.brand-logo {
    width: 100%;
    max-width: 860px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    mask-image: radial-gradient(ellipse 82% 78% at center, black 55%, transparent 98%);
    -webkit-mask-image: radial-gradient(ellipse 82% 78% at center, black 55%, transparent 98%);
}

/* Legacy fallback header text styling if text headers are used elsewhere */
header h1 {
    color: var(--accent-fire);
    font-size: 2.5rem;
    margin: 0;
}

header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Layout Containers & Grids */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
}

.section-title {
    color: var(--accent-fire);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Pantheon Directory & Navigation */
.breadcrumb {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.95rem;
}

.deity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.deity-card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.deity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 183, 113, 0.55);
}

.deity-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.03em;
}

.deity-name a {
    color: #e2b771;
    text-decoration: none;
}

.deity-name a:hover {
    color: #f6d89b;
    text-decoration: underline;
}

.stone-meta {
    font-size: 0.9rem;
    background: rgba(15, 17, 21, 0.55);
    border-left: 2px solid var(--accent-fire);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 0 4px 4px 0;
}

.stone-meta div {
    margin: 0.15rem 0;
}

.stone-label {
    color: var(--text-muted);
    font-weight: 500;
}

.deity-desc {
    font-size: 0.96rem;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.kindred-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
}

/* Individual Deity Deep-Dive Pages */
.deity-article {
    max-width: 820px;
    margin: 2rem auto 4rem;
    padding: 2.5rem 2.75rem;
    background-color: var(--bg-surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 10px;
    line-height: 1.78;
}

.deity-article h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    color: #e2b771;
    margin: 2.25rem 0 0.85rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(226, 183, 113, 0.2);
}

.deity-article p {
    margin: 0 0 1.2rem 0;
    color: var(--text-main);
    font-size: 1.03rem;
}

.deity-article ul {
    margin: 0.75rem 0 1.5rem 0;
    padding-left: 1.25rem;
}

.deity-article li {
    margin-bottom: 0.9rem;
    color: var(--text-main);
    font-size: 1.02rem;
}

.deity-article strong {
    color: #f3cf92;
}

.stone-showcase {
    background: rgba(15, 17, 21, 0.65);
    border-left: 3px solid var(--accent-fire);
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin: 1.25rem 0 1.75rem 0;
}

.stone-showcase div {
    margin-bottom: 0.75rem;
}

.stone-showcase div:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .deity-article {
        padding: 1.5rem 1.25rem;
        margin: 1.25rem 1rem 3rem;
    }
}

/* Header & Tagline Styling */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
}

.brand-logo {
    width: 100%;
    max-width: 780px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Softens the edges so it dissolves smoothly into your dark background */
    mask-image: radial-gradient(ellipse 85% 85% at center, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 65%, transparent 100%);
}

.brand-tagline {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-muted);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Styled framed line accents */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af6a, transparent);
    opacity: 0.6;
}

/* Card Hover Glow Effect */
.card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 106, 0.2); /* subtle default border */
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d4af6a; /* Warm amber highlight */
    box-shadow: 0 10px 30px rgba(212, 175, 106, 0.15); /* Soft glowing aura */
}

/* Make the entire card clickable via stretched link */
.card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 106, 0.2);
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d4af6a;
    box-shadow: 0 10px 30px rgba(212, 175, 106, 0.15);
}

.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.search-container {
    max-width: 1050px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
}

.stone-search-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(14, 15, 20, 0.88);
    border: 1px solid rgba(212, 175, 106, 0.3);
    border-radius: 6px;
    color: #f0e6d2;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stone-search-input:focus {
    border-color: #d4af6a;
    box-shadow: 0 0 12px rgba(212, 175, 106, 0.2);
}

.stone-search-input::placeholder {
    color: #9e988d;
}