/* talegrapher.com - Minimalist Tale Analysis Tool */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --story-cream: #FAF5F0;
    --blackboard: #2A2A30;
    --burgundy-deep: #7A2E3B;
    --cream-gold: #D4A843;
    --chalk-white: #F0EDE5;
    --tale-red: #C0424D;
    --deep-ink: #1A1614;
    --soft-plum: #6A5A5A;
}
body {
    background: var(--story-cream);
    color: var(--deep-ink);
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Cream Sections */
.cream-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero */
#hero {
    text-align: center;
    padding: 5rem 2rem 2rem;
}
.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--deep-ink);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--soft-plum);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}
.tension-graph {
    max-width: 700px;
    margin: 0 auto;
}
.tension-graph svg {
    width: 100%;
    height: auto;
}
.graph-label {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    fill: var(--soft-plum);
}
.arc-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawArc 2s ease forwards;
}
@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid #E8E0D8;
    border-bottom: 1px solid #E8E0D8;
    flex-wrap: wrap;
    gap: 1rem;
}
.metric {
    text-align: center;
}
.metric-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy-deep);
    display: block;
}
.metric-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--soft-plum);
    letter-spacing: 0.05em;
}

/* Blackboard Sections */
.blackboard-section {
    background: var(--blackboard);
    padding: 3rem 2rem;
}
.blackboard-section > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.chalk-line {
    display: block;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.chalk-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--chalk-white);
    margin-bottom: 1rem;
}
.chalk-text {
    font-size: 1rem;
    color: rgba(240,237,229,0.85);
    line-height: 1.8;
}

/* Section Titles (cream) */
.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--burgundy-deep);
    margin-bottom: 1rem;
}
.body-text {
    font-size: 1rem;
    color: var(--deep-ink);
    margin-bottom: 1rem;
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid #E8E0D8;
    max-width: 900px;
    margin: 0 auto;
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--soft-plum);
}

/* Responsive */
@media (max-width: 600px) {
    .metrics-bar { flex-direction: column; align-items: center; }
}
