:root {
    --bg: #0e0f1a;
    --bg-soft: #171a2b;
    --panel: #1d2138;
    --ink: #e7e6f0;
    --muted: #9a9ab8;
    --accent: #b8a1ff;
    --accent-dim: #6f5fb0;
    --line: #2c2f4a;
    --danger: #e77;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 50% -10%, #23264400 0%, #0e0f1a 60%),
        var(--bg);
    color: var(--ink);
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    line-height: 1.7;
}
.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}
a { color: var(--accent); }

/* ---- hero ---- */
.hero {
    text-align: center;
    padding: 3.5rem 1rem 2rem;
}
.glyphs {
    font-size: 1.6rem;
    letter-spacing: 0.5em;
    color: var(--accent-dim);
    opacity: 0.7;
    margin-left: 0.5em;
}
.hero h1 {
    font-size: 3.6rem;
    letter-spacing: 0.14em;
    margin: 0.4rem 0 0;
    font-weight: normal;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, var(--accent) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(184, 161, 255, 0.25);
}
.tagline {
    color: var(--muted);
    font-style: italic;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0.5rem 0 1.5rem;
}
.pitch {
    max-width: 32rem;
    margin: 0 auto 1.75rem;
    font-size: 1.15rem;
    color: #cfceea;
}
.cta-row { margin: 0; }
.cta {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    margin: 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #17142b;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 24px rgba(184, 161, 255, 0.25);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(184, 161, 255, 0.4); }
.cta-ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: none;
    border: 1px solid var(--accent-dim);
}
.cta-small { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* ---- ad slots ---- */
.ad-banner {
    margin: 2rem 0;
    text-align: center;
    min-height: 90px;
}
.ad-block {
    position: sticky;
    top: 1.5rem;
}
.adnet-entry:empty::after {
    content: "advertisement";
    display: block;
    color: var(--accent-dim);
    font-family: system-ui, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
    opacity: 0.5;
}

/* ---- sections ---- */
section { margin: 3rem 0; }
h2 {
    font-weight: normal;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
}
.lede p { font-size: 1.1rem; color: #d3d2ec; }

.rulecard {
    background: linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}
.rulecard h3 {
    margin: 0 0 0.5rem;
    font-weight: normal;
    font-size: 1.3rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}
.rulecard ul { padding-left: 1.2rem; }
.rulecard li { margin: 0.5rem 0; }
.note {
    color: var(--muted);
    font-style: italic;
    font-size: 0.98rem;
    border-left: 2px solid var(--accent-dim);
    padding-left: 0.9rem;
    margin-top: 1rem;
}

.dice-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 1rem 0;
}
.die {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    background: #f4f2ff;
    color: #1a1730;
    border-radius: 6px;
    font-family: system-ui, sans-serif;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.dice-gap { width: 1.2rem; }

/* ---- split ---- */
.split {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}
.split-aside { min-width: 0; }

/* ---- community ---- */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.commcard {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
}
.commcard h3 {
    margin: 0 0 0.5rem;
    font-weight: normal;
    color: var(--accent);
}
.signup { display: flex; gap: 0.4rem; margin-top: 0.75rem; }
.signup input {
    flex: 1;
    min-width: 0;
    background: #0e1020;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    padding: 0.45rem 0.6rem;
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
}
.signup button {
    background: var(--accent);
    color: #17142b;
    border: 0;
    border-radius: 6px;
    padding: 0 0.9rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.disclaimer {
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1.5rem;
    text-align: center;
}

/* ---- footer ---- */
footer {
    border-top: 1px solid var(--line);
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}
.footlinks { font-family: system-ui, sans-serif; font-size: 0.8rem; }
.footlinks a { text-decoration: none; }

@media (max-width: 680px) {
    .hero h1 { font-size: 2.6rem; }
    .split { grid-template-columns: 1fr; }
    .split-aside { max-width: 300px; margin: 0 auto; }
    .ad-block { position: static; }
}
