/* ============================================================
   Morgrave — Dark Fantasy Theme
   Fonts: Cinzel Decorative (logo), Cinzel (headings/nav), Open Sans (body)
   ============================================================ */

:root {
    --bg:        #080808;
    --bg-card:   #0f0f0f;
    --bg-nav:    #090909;
    --bg-alt:    #0c0c0c;
    --gold:      #c8a86e;
    --gold-dim:  #9a7e52;
    --text:      #b0b0b0;
    --text-dim:  #666;
    --text-muted:#444;
    --red:       #7a0000;
    --red-hover: #960000;
    --border:    #1e1e1e;
    --border-gold: #2e2418;
    --code-bg:   #1a1a1a;
    --radius:    2px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dim); }
img { max-width: 100%; display: block; }
code {
    font-family: 'Courier New', monospace;
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    font-size: 0.88em;
    color: #ccc;
}

/* ── Container ── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 58px;
}

.nav-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.05rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-decoration: none;
    transition: color .2s;
}
.nav-brand:hover { color: #e8c888; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: .7rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.btn-primary {
    background: var(--red);
    color: #ddd;
    border: 1px solid #5a0000;
}
.btn-primary:hover {
    background: var(--red-hover);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-gold);
}
.btn-secondary:hover {
    background: var(--border-gold);
    color: #e8c888;
    border-color: var(--gold-dim);
}

/* ── Hero (home) ── */
.hero {
    position: relative;
    padding: 90px 1.5rem 70px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(90,0,0,.35) 0%, transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: .72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 10px;
    text-shadow: 0 0 60px rgba(200,168,110,.25), 0 2px 4px rgba(0,0,0,.8);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-tagline {
    font-family: 'Cinzel', serif;
    font-size: clamp(.85rem, 2vw, 1.1rem);
    letter-spacing: 2px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}
.hero-desc {
    max-width: 580px;
    margin: 0 auto 2.5rem;
    color: var(--text-dim);
    font-size: .95rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Page header (inner pages) ── */
.page-header {
    position: relative;
    padding: 60px 1.5rem 48px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80,0,0,.3) 0%, transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: .5rem;
}
.page-sub {
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Section titles ── */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: .4rem;
}
.section-sub {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: .9rem;
}

/* ── Features section ── */
.features {
    padding: 64px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.8rem;
    text-align: center;
    transition: border-color .2s;
}
.feature-card:hover { border-color: var(--border-gold); }
.feature-icon { font-size: 1.9rem; margin-bottom: 1rem; }
.feature-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}
.feature-card p { color: var(--text-dim); font-size: .88rem; }

/* ── Vote banner ── */
.vote-banner {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 0;
}
.vote-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.vote-banner h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: .4rem;
}
.vote-banner p { color: var(--text-dim); font-size: .9rem; }

/* ── How to play ── */
.how-to-play {
    padding: 64px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.steps li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.step-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: var(--red);
    min-width: 2.5rem;
    opacity: .7;
}
.steps h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: 1px;
    margin-bottom: .3rem;
}
.steps p { color: var(--text-dim); font-size: .88rem; }

/* ── Vote info cards ── */
.vote-info {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem 1.5rem;
    text-align: center;
}
.info-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.info-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: 1px;
    margin-bottom: .4rem;
}
.info-card p { color: var(--text-dim); font-size: .85rem; }

/* ── Vote sites grid ── */
.vote-sites {
    padding: 64px 0;
}
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.vote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: border-color .2s;
}
.vote-card:hover { border-color: var(--border-gold); }
.vote-card-header {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.vote-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1rem;
    color: var(--red);
    opacity: .6;
}
.vote-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
}
.vote-card p { color: var(--text-dim); font-size: .86rem; flex: 1; }
.vote-card .btn { align-self: flex-start; margin-top: .4rem; }
.vote-card--pending { opacity: .45; pointer-events: none; }
.vote-card--pending .btn { cursor: default; }

/* ── Vote instructions ── */
.vote-instructions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 2.5rem;
    max-width: 700px;
}
.vote-instructions h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.vote-instructions ol {
    padding-left: 1.2rem;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 2;
}
.vote-instructions ol li { margin-bottom: .25rem; }
.vote-instructions .note {
    margin-top: 1.2rem;
    color: var(--text-muted);
    font-size: .82rem;
}

/* ── Footer ── */
.footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: .85rem;
    letter-spacing: 4px;
    color: var(--gold-dim);
}
.footer-links {
    display: flex;
    gap: .8rem;
    align-items: center;
    font-size: .82rem;
}
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: var(--text-muted); }
.footer-copy { font-size: .72rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .navbar { padding: 0 1rem; }
    .nav-links { gap: 1.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .vote-banner-inner { justify-content: center; text-align: center; }
    .vote-instructions { padding: 1.5rem 1.2rem; }
    .steps li { flex-direction: column; gap: .5rem; }
}
