/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #1a202c;
    --parchment: #f8f5f0;
    --crimson: #c41e3a;
    --deep-blue: #0f2347;
    --gold: #d4af37;
    --seal-red: #8b0000;
    --text-muted: #4a5568;
    --border-subtle: #d6cbb8;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--parchment);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #1a365d 100%);
    color: var(--parchment);
    padding: 2rem 0;
    border-bottom: 3px solid var(--crimson);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--parchment);
}

.seal {
    width: 50px;
    height: 50px;
    background: var(--seal-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--parchment);
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant: small-caps;
}

.est {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: -4px;
}

nav a {
    color: var(--parchment);
    text-decoration: none;
    margin-left: 1.75rem;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-variant: small-caps;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to bottom, #0a1628 0%, var(--ink) 100%);
    color: var(--parchment);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-sub {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    line-height: 1.6;
}

/* ===== CONTENT PAGES ===== */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 24px 5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--deep-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.content-page h1 {
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.content-page h1 span {
    color: var(--gold);
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-style: italic;
}

/* ===== MANUAL SECTIONS ===== */
.manual-section {
    margin-bottom: 3rem;
}

.manual-section h2 {
    font-size: 1.75rem;
    color: var(--deep-blue);
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.manual-section h3 {
    font-size: 1.25rem;
    color: var(--seal-red);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.manual-section h4 {
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.manual-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.manual-section ul,
.manual-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.manual-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.manual-section li strong {
    color: var(--deep-blue);
}

/* ===== SPECIAL BOXES ===== */
.template-box,
.example-box,
.wallet-box,
.token-box {
    background: white;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.template-box h4,
.example-box h4,
.wallet-box h4,
.token-box h4 {
    color: var(--deep-blue);
    margin: 0 0 1rem 0;
    font-variant: small-caps;
    letter-spacing: 0.5px;
}

.template-box pre,
.wallet-box code {
    background: var(--parchment);
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid var(--border-subtle);
    display: block;
}

.wallet-box code {
    word-break: break-all;
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

.example-box p {
    margin-bottom: 0.5rem;
}

.example-box p strong {
    color: var(--seal-red);
}

/* ===== CTA BOX ===== */
.cta-box {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #1a365d 100%);
    color: var(--parchment);
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 2px solid var(--gold);
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-variant: small-caps;
    background: var(--crimson);
    color: var(--parchment);
    border: 2px solid var(--gold);
}

.btn:hover {
    background: var(--seal-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* ===== ROLES GRID (Playbook Index) ===== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.role-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
    position: relative;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.role-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.role-card:hover::before {
    transform: scaleY(1);
}

.role-number {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.3;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.role-card h3 {
    color: var(--deep-blue);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 1px;
}

.role-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.role-link {
    color: var(--crimson);
    font-size: 0.95rem;
    font-weight: 600;
}

.role-card:hover .role-link {
    color: var(--seal-red);
}

/* ===== JOIN PAGE ===== */
.join-box {
    background: white;
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.join-box h3 {
    color: var(--deep-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-variant: small-caps;
    letter-spacing: 1px;
}

.join-box h4 {
    color: var(--seal-red);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.join-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.join-box ol,
.join-box ul {
    margin: 1rem 0 1rem 1.5rem;
}

.join-box li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.join-box a {
    color: var(--crimson);
}

.join-box a:hover {
    color: var(--seal-red);
}

.token-box {
    background: var(--parchment);
    border-color: var(--gold);
    margin-top: 1.5rem;
}

.token-box code {
    background: white;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav a {
        margin: 0 0.75rem;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}
