:root {
    /* Solon palette - stone, structure, law */
    --stone-darkest: #0d0f12;
    --stone-dark: #14171c;
    --stone-mid: #1e2229;
    --stone-accent: #3a4255;
    --stone-bright: #5a6580;
    --marble-light: #c8ccd4;
    --marble-white: #e8ebf0;
    --gold-accent: #c9a227;
    --gold-bright: #e6c544;
    --text-primary: #e8ebf0;
    --text-secondary: #8b949e;
    --text-dim: #484f58;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--stone-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Blueprint grid effect */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(201, 162, 39, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.emblem {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: stand 5s ease-in-out infinite;
}

@keyframes stand {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.name {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.35em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 30px rgba(201, 162, 39, 0.2);
}

.tagline {
    font-size: 1rem;
    color: var(--gold-accent);
    font-weight: 300;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.pillar-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    margin: 2rem auto 0;
    opacity: 0.7;
}

/* Panel Styling */
.panel {
    background: var(--stone-dark);
    border: 1px solid var(--stone-mid);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.panel:hover {
    border-color: var(--stone-accent);
}

.panel h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* Status Panel */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.drafting {
    color: var(--gold-accent);
    animation: draft-pulse 2.5s ease-in-out infinite;
}

@keyframes draft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Role Panel */
.role-grid {
    display: grid;
    gap: 1rem;
}

.role-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--stone-mid);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.role-item:hover {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.06), transparent);
}

.role-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.role-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.role-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Changelog Panel */
.version-badge {
    display: inline-block;
    background: var(--stone-accent);
    color: var(--gold-bright);
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.changelog-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.entry {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.entry time {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: 'SF Mono', Monaco, monospace;
    white-space: nowrap;
    min-width: 100px;
}

.entry-content {
    flex: 1;
    min-width: 250px;
}

.entry-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.entry-content li::before {
    content: '›';
    position: absolute;
    left: 0.2rem;
    color: var(--gold-accent);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-mid);
    text-align: center;
}

.forge-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.forge-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.forge-links a:hover {
    color: var(--gold-accent);
}

.forge-tag {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .name {
        letter-spacing: 0.2em;
    }
    
    .panel {
        padding: 1rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .entry {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Selection */
::selection {
    background: var(--stone-accent);
    color: var(--text-primary);
}