:root {
    --bg-deep: #0b0906;
    --bg-mid: #17120c;
    --panel: #1c150e;
    --panel-2: #241a10;
    --panel-3: #2c1f13;
    --text: #f3e8d6;
    --muted: #c9b291;
    --accent: #d9a441;
    --accent-bright: #f0c46a;
    --accent-deep: #8a4a1f;
    --border: #4a3018;
    --border-light: #6b4726;
    --shadow: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(217, 164, 65, 0.06), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(138, 74, 31, 0.08), transparent 40%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    color: var(--text);
    line-height: 1.85;
    font-size: 1.08rem;
}

h1, h2, h3 {
    font-family: 'Cinzel', 'Times New Roman', serif;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(11, 9, 6, 0.35), rgba(11, 9, 6, 0.85)),
        radial-gradient(ellipse at 50% -10%, rgba(217, 164, 65, 0.18), transparent 60%),
        linear-gradient(135deg, #201509, #3a2410 60%, #201509);
    padding: 96px 24px 64px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: inset 0 -40px 60px -40px rgba(0, 0, 0, 0.6);
}

.hero .logo {
    width: 200px;
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 0 26px rgba(240, 196, 106, 0.35));
}

.hero h1 {
    margin: 0 0 18px;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fbeccb;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    margin: 0 auto;
    max-width: 760px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--muted);
}

.divider {
    display: block;
    margin: 28px auto 0;
    color: var(--accent);
    font-size: 1.4rem;
    letter-spacing: 0.5em;
    opacity: 0.85;
}

/* ---------- Layout ---------- */

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}

section {
    position: relative;
    margin-bottom: 40px;
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 38px 42px;
    box-shadow: 0 18px 44px var(--shadow);
}

section::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(217, 164, 65, 0.14);
    border-radius: 3px;
    pointer-events: none;
}

.section-intro {
    background: linear-gradient(160deg, var(--panel-3), var(--panel));
    border-color: var(--border-light);
}

h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--accent-bright);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.chapter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--accent-deep);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, 0.14), transparent 70%);
    font-size: 1.05rem;
    color: var(--accent);
}

p {
    margin: 0 0 16px;
    color: var(--text);
}

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

ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 26px;
}

li::before {
    content: "❖";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-deep);
    font-size: 0.85rem;
}

/* ---------- Grid / Cards ---------- */

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.grid::before {
    display: none;
}

.card {
    background: linear-gradient(160deg, rgba(217, 164, 65, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 24px;
}

.card h3 {
    margin: 0 0 10px;
    color: var(--accent-bright);
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.card p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* ---------- Misc ---------- */

.highlight {
    color: var(--accent-bright);
    font-weight: 600;
}

.quote {
    font-style: italic;
    color: var(--muted);
    border-left: 3px solid var(--accent-deep);
    padding-left: 16px;
    margin: 18px 0 0;
}

.footer {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    padding: 8px 0 0;
    letter-spacing: 0.03em;
}

.footer .divider {
    margin-bottom: 14px;
}

/* ---------- Race grid ---------- */

.race-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 24px;
}

.race-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(217, 164, 65, 0.07), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.race-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid var(--border);
    background: var(--panel-3);
}

.race-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.race-card h3 {
    margin: 0 0 10px;
    color: var(--accent-bright);
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.race-desc {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 14px;
    flex: 1;
}

.race-bonus {
    font-size: 0.93rem;
    color: var(--text);
    border-left: 2px solid var(--accent-deep);
    padding-left: 10px;
    margin: 0;
    margin-top: auto;
    padding-top: 12px;
}

/* ---------- Deity grid ---------- */

.deity-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 24px;
}

.deity-card {
    background: linear-gradient(160deg, rgba(138, 74, 31, 0.1), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px;
}

.deity-card.deity-dark {
    background: linear-gradient(160deg, rgba(20, 10, 5, 0.6), rgba(40, 20, 10, 0.3));
    border-color: #3a2020;
}

.deity-card h3 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.deity-card.deity-dark h3 {
    color: #a06050;
}

.deity-card p {
    color: var(--muted);
    font-size: 0.96rem;
    margin: 0;
}

/* ---------- Contact ---------- */

.section-contact {
    text-align: center;
}

.contact-email {
    margin: 18px 0;
}

.contact-email a {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent-bright);
    text-decoration: none;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--accent-deep);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-email a:hover {
    color: #fff8e8;
    border-color: var(--accent);
}

@media (max-width: 600px) {
    .hero {
        padding: 72px 18px 48px;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    section {
        padding: 28px 22px;
    }
}
