/* ============================================
   monopole.center - Styles
   Cool Minimal / Magazine Editorial
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cool-white: #F2F4F8;
    --ice-blue: #E0E8F0;
    --slate-dark: #1A2030;
    --cool-blue: #4A6A98;
    --light-steel: #8A9AB0;
    --infographic-blue: #3A5A88;
    --divider-gray: #D0D8E0;

    --font-headline: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-data: 'Space Grotesk', monospace, sans-serif;

    --max-width: 1200px;
    --gutter: clamp(24px, 3vw, 48px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    color: var(--slate-dark);
    background-color: var(--cool-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Hero / Opening Viewport --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--cool-white);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
}

.hero-shape svg {
    width: 100%;
    height: 100%;
    fill: rgba(74, 106, 152, 0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: clamp(40px, 8vw, 120px);
    padding-right: 40px;
    opacity: 0;
    animation: fadeInLogotype 0.6s ease-out 0.2s forwards;
}

@keyframes fadeInLogotype {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logotype {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(36px, 6vw, 72px);
    color: var(--slate-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.descriptor {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--light-steel);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background-color: var(--divider-gray);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Editorial Sections --- */
.editorial-section {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(60px, 8vw, 120px) clamp(24px, 4vw, 60px);
}

.section-marker {
    margin-bottom: 32px;
}

.shape-marker {
    width: 120px;
    height: 120px;
    fill: rgba(74, 106, 152, 0.08);
}

.shape-marker line {
    stroke: rgba(74, 106, 152, 0.15);
    stroke-width: 3;
    fill: none;
}

.section-headline {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 56px);
    color: var(--slate-dark);
    margin-bottom: 24px;
    line-height: 1.15;
}

.body-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    color: var(--slate-dark);
    margin-bottom: 20px;
}

/* --- Magazine Grid --- */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: var(--gutter);
}

@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Primary Column --- */
.primary-column {
    min-width: 0;
}

/* --- Secondary Column / Sidebar --- */
.secondary-column {
    min-width: 0;
}

.sidebar-callout {
    background-color: var(--ice-blue);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 3px solid var(--cool-blue);
}

.callout-label {
    display: block;
    font-family: var(--font-data);
    font-weight: 500;
    font-size: clamp(10px, 0.7vw, 12px);
    color: var(--light-steel);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.callout-data {
    display: block;
    font-family: var(--font-data);
    font-weight: 600;
    font-size: clamp(32px, 3vw, 48px);
    color: var(--cool-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.callout-desc {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(12px, 0.8vw, 14px);
    color: var(--light-steel);
}

/* --- Sidebar Nav --- */
.sidebar-nav {
    background-color: var(--ice-blue);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-nav-title {
    font-family: var(--font-data);
    font-weight: 600;
    font-size: clamp(12px, 0.8vw, 14px);
    color: var(--slate-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.sidebar-nav-list {
    list-style: none;
}

.sidebar-nav-list li {
    font-family: var(--font-body);
    font-size: clamp(13px, 0.9vw, 15px);
    color: var(--light-steel);
    padding: 8px 0;
    border-bottom: 1px solid var(--divider-gray);
}

.sidebar-nav-list li:last-child {
    border-bottom: none;
}

.nav-year {
    font-family: var(--font-data);
    font-weight: 500;
    color: var(--cool-blue);
    margin-right: 12px;
}

/* --- Sidebar Quote --- */
.sidebar-quote {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--cool-blue);
    line-height: 1.5;
    border-left: 3px solid var(--cool-blue);
    padding-left: 24px;
    margin-bottom: 32px;
    font-style: italic;
}

/* --- Pull Quote Section --- */
.pull-quote-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
}

.pull-quote {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 40px);
    color: var(--cool-blue);
    line-height: 1.35;
    border-left: 3px solid var(--cool-blue);
    padding-left: 24px;
    margin-bottom: 12px;
}

.pull-quote-cite {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(12px, 0.9vw, 14px);
    color: var(--light-steel);
    padding-left: 28px;
    font-style: normal;
}

/* --- Accordion --- */
.accordion {
    margin-top: 24px;
}

.accordion-item {
    border-bottom: 1px solid var(--divider-gray);
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    user-select: none;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--cool-blue);
}

.accordion-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(15px, 1.1vw, 18px);
    color: inherit;
}

.accordion-icon {
    font-family: var(--font-data);
    font-weight: 400;
    font-size: 20px;
    color: var(--cool-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.accordion-item.open .accordion-content {
    opacity: 1;
}

.accordion-content p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 0.95vw, 16px);
    line-height: 1.75;
    color: var(--slate-dark);
    padding-bottom: 20px;
}

.accordion-meta {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-family: var(--font-data);
    font-weight: 500;
    font-size: clamp(11px, 0.75vw, 13px);
    color: var(--light-steel);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Infographic Panels --- */
.infographic-panel {
    width: 100%;
    background-color: var(--ice-blue);
    padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 60px);
}

.infographic-title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 44px);
    color: var(--slate-dark);
    text-align: center;
    margin-bottom: 48px;
}

/* --- Charts --- */
.chart-container {
    max-width: 800px;
    margin: 0 auto 48px;
}

.bar-chart,
.line-chart {
    width: 100%;
    height: auto;
}

.chart-axis {
    stroke: var(--divider-gray);
    stroke-width: 1;
}

.chart-grid {
    stroke: var(--divider-gray);
    stroke-width: 0.5;
    stroke-dasharray: 4 4;
}

.chart-bar {
    fill: var(--cool-blue);
    transition: fill 0.2s ease;
}

.chart-bar:hover {
    fill: var(--infographic-blue);
}

.chart-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    fill: var(--light-steel);
}

.chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-primary {
    stroke: var(--cool-blue);
}

.chart-line-secondary {
    stroke: var(--infographic-blue);
    stroke-dasharray: 6 4;
}

.chart-dot-primary {
    fill: var(--cool-blue);
}

.chart-dot-secondary {
    fill: var(--infographic-blue);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-data);
    font-weight: 500;
    font-size: clamp(11px, 0.8vw, 13px);
    color: var(--light-steel);
}

.legend-swatch {
    display: inline-block;
    width: 20px;
    height: 3px;
}

.legend-primary .legend-swatch {
    background-color: var(--cool-blue);
}

.legend-secondary .legend-swatch {
    background-color: var(--infographic-blue);
    background-image: repeating-linear-gradient(
        90deg,
        var(--infographic-blue) 0,
        var(--infographic-blue) 6px,
        transparent 6px,
        transparent 10px
    );
}

/* --- Infographic Stats --- */
.infographic-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .infographic-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-data);
    font-weight: 600;
    font-size: clamp(28px, 3vw, 44px);
    color: var(--infographic-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-family: var(--font-data);
    font-weight: 500;
    font-size: clamp(10px, 0.7vw, 12px);
    color: var(--light-steel);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Timeline --- */
.timeline-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--divider-gray);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--cool-blue);
    border: 2px solid var(--ice-blue);
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    border-left: 2px solid var(--cool-blue);
}

.timeline-year {
    display: block;
    font-family: var(--font-data);
    font-weight: 600;
    font-size: clamp(14px, 1vw, 18px);
    color: var(--cool-blue);
    margin-bottom: 4px;
}

.timeline-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 0.9vw, 15px);
    color: var(--slate-dark);
    line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--slate-dark);
    color: var(--ice-blue);
    padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 60px) clamp(24px, 3vw, 40px);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--gutter);
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-logotype {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(20px, 2vw, 28px);
    color: var(--cool-white);
    display: block;
    margin-bottom: 8px;
}

.footer-descriptor {
    font-family: var(--font-body);
    font-size: clamp(12px, 0.8vw, 14px);
    color: var(--light-steel);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-heading {
    font-family: var(--font-data);
    font-weight: 600;
    font-size: clamp(11px, 0.75vw, 13px);
    color: var(--cool-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    font-family: var(--font-body);
    font-size: clamp(13px, 0.9vw, 15px);
    color: var(--light-steel);
    padding: 4px 0;
    cursor: default;
    transition: color 0.2s ease;
}

.footer-col ul li:hover {
    color: var(--cool-white);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(224, 232, 240, 0.15);
}

.footer-copyright {
    font-family: var(--font-data);
    font-weight: 400;
    font-size: clamp(10px, 0.7vw, 12px);
    color: var(--light-steel);
    letter-spacing: 0.05em;
}

/* --- Reveal Animations --- */
.editorial-section,
.pull-quote-section,
.infographic-panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.editorial-section.visible,
.pull-quote-section.visible,
.infographic-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SVG Line/Polyline draw animation --- */
.chart-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.2s ease-out;
}

.infographic-panel.visible .chart-line {
    stroke-dashoffset: 0;
}

/* --- Selection color --- */
::selection {
    background-color: var(--cool-blue);
    color: var(--cool-white);
}
