/* ================================================
   yesang.org - The Science of Expectation
   Retro-pastel prediction archive
   ================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #2C3040;
    background-color: #F5F0E8;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-feature-settings: "liga" 1, "kern" 1;
    font-weight: 300;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

em {
    font-style: italic;
}

/* --- Layout --- */
.column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-section {
    position: relative;
    padding: 100px 0;
}

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 110, 100, 0.12);
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #D4748A;
}

.logo-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #7A6E64;
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2C3040;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4748A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(170deg, #F5F0E8 0%, #FBF8F2 50%, #F5F0E8 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    color: #2C3040;
    margin-bottom: 24px;
}

.hero-title em {
    color: #D4748A;
}

.hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: #7A6E64;
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-scan-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8AAEC4, transparent);
    margin: 0 auto;
    animation: scanPulse 3s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.3; width: 120px; }
    50% { opacity: 1; width: 200px; }
}

/* --- Hero Collage --- */
.hero-collage {
    position: relative;
    height: 200px;
    margin-bottom: 40px;
}

.collage-element {
    position: absolute;
    filter: grayscale(0.4) sepia(0.2);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.collage-element:hover {
    opacity: 0.9;
}

.collage-globe {
    width: 160px;
    height: 160px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
}

.collage-chart {
    width: 100px;
    height: 100px;
    right: 10%;
    top: 10%;
    transform: rotate(3deg);
    box-shadow: 4px 4px 12px rgba(44,48,64,0.15);
}

.collage-crystal {
    width: 80px;
    height: 100px;
    left: 10%;
    bottom: 10%;
    transform: rotate(-1.5deg);
    box-shadow: 4px 4px 12px rgba(44,48,64,0.15);
}

.collage-svg {
    width: 100%;
    height: 100%;
}

/* --- HUD Decorations --- */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.hud-corner-tl {
    top: 20px;
    left: 20px;
    border-top: 1px solid rgba(138, 174, 196, 0.3);
    border-left: 1px solid rgba(138, 174, 196, 0.3);
}

.hud-corner-tr {
    top: 20px;
    right: 20px;
    border-top: 1px solid rgba(138, 174, 196, 0.3);
    border-right: 1px solid rgba(138, 174, 196, 0.3);
}

.hud-corner-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 1px solid rgba(138, 174, 196, 0.3);
    border-left: 1px solid rgba(138, 174, 196, 0.3);
}

.hud-corner-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 1px solid rgba(138, 174, 196, 0.3);
    border-right: 1px solid rgba(138, 174, 196, 0.3);
}

/* --- Section Labels --- */
.section-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8AAEC4;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    color: #2C3040;
    margin-bottom: 20px;
}

.section-intro {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: #7A6E64;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 48px;
}

/* --- Section Brackets --- */
.section-bracket {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
}

.section-bracket-top {
    top: 0;
    background: linear-gradient(90deg, transparent, #8AAEC4 20%, #8AAEC4 80%, transparent);
    opacity: 0.3;
}

.section-bracket-top::before,
.section-bracket-top::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 12px;
    background: rgba(138, 174, 196, 0.3);
}

.section-bracket-top::before { left: 0; }
.section-bracket-top::after { right: 0; }

.section-bracket-bottom {
    bottom: 0;
    background: linear-gradient(90deg, transparent, #8AAEC4 20%, #8AAEC4 80%, transparent);
    opacity: 0.3;
}

.section-bracket-bottom::before,
.section-bracket-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 12px;
    background: rgba(138, 174, 196, 0.3);
}

.section-bracket-bottom::before { left: 0; }
.section-bracket-bottom::after { right: 0; }

/* --- Prediction Cards --- */
.prediction-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prediction-card {
    position: relative;
    background: #FBF8F2;
    border-radius: 4px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(44,48,64,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prediction-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(44,48,64,0.1);
}

.card-hud-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
}

.card-hud-tl {
    top: 8px;
    left: 8px;
    border-top: 1px solid rgba(138, 174, 196, 0.25);
    border-left: 1px solid rgba(138, 174, 196, 0.25);
}

.card-hud-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 1px solid rgba(138, 174, 196, 0.25);
    border-right: 1px solid rgba(138, 174, 196, 0.25);
}

/* --- Gauge Rings --- */
.gauge-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.gauge-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(122, 110, 100, 0.1);
    stroke-width: 3;
}

.gauge-fill {
    fill: none;
    stroke: #D4748A;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 263.89;
    stroke-dashoffset: 263.89;
    transition: stroke-dashoffset 1.2s ease-out;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #2C3040;
}

.gauge-value small {
    font-size: 0.7em;
    color: #7A6E64;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #2C3040;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: #7A6E64;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-date {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8AAEC4;
    letter-spacing: 0.05em;
}

/* --- Archive Timeline --- */
.archive-timeline {
    position: relative;
    padding-left: 80px;
}

.timeline-line {
    position: absolute;
    left: 55px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, #8AAEC4 10%, #8AAEC4 90%, transparent);
    opacity: 0.3;
}

.archive-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.archive-year {
    position: absolute;
    left: -80px;
    top: 0;
    width: 55px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #C4A855;
    text-align: right;
}

.archive-year::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #8AAEC4;
    background: #F5F0E8;
}

.archive-content {
    background: #FBF8F2;
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(44,48,64,0.06);
}

.archive-meter {
    width: 120px;
    margin-bottom: 16px;
}

.analog-meter {
    width: 100%;
}

.meter-needle {
    transform-origin: 60px 65px;
    transition: transform 1s ease-out;
}

.archive-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2C3040;
    margin-bottom: 8px;
}

.archive-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: #7A6E64;
    line-height: 1.7;
    margin-bottom: 12px;
}

.archive-verdict {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 2px;
}

.verdict-miss {
    color: #D4748A;
    background: rgba(212, 116, 138, 0.1);
}

.verdict-hit {
    color: #8BA888;
    background: rgba(139, 168, 136, 0.1);
}

.verdict-partial {
    color: #C4A855;
    background: rgba(196, 168, 85, 0.1);
}

/* --- Instruments Grid --- */
.instruments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.instrument-card {
    background: #FBF8F2;
    border-radius: 4px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(44,48,64,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instrument-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(44,48,64,0.1);
}

.instrument-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.instrument-icon svg {
    width: 100%;
    height: 100%;
}

.instrument-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2C3040;
    margin-bottom: 8px;
}

.instrument-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: #7A6E64;
    line-height: 1.7;
}

/* --- Counter Section --- */
.counter-display {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    background: #FBF8F2;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(44,48,64,0.06);
}

.counter-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8AAEC4;
    display: block;
    margin-bottom: 20px;
}

.counter-number {
    margin-bottom: 32px;
}

.counter-digit {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #2C3040;
}

.counter-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.counter-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: #2C3040;
}

.stat-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7A6E64;
    margin-top: 4px;
}

/* --- About Section --- */
.about-content {
    margin-bottom: 40px;
}

.about-content p {
    font-size: 1rem;
    font-weight: 300;
    color: #7A6E64;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-decorative {
    text-align: center;
    opacity: 0.5;
}

.scan-line-svg {
    width: 200px;
    height: 60px;
}

/* --- Footer --- */
#site-footer {
    padding: 60px 0;
    border-top: 1px solid rgba(122, 110, 100, 0.12);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #7A6E64;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: #7A6E64;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #D4748A;
}

.footer-copy {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: rgba(122, 110, 100, 0.5);
    letter-spacing: 0.05em;
}

/* --- HUD Scan Overlay --- */
.hud-scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.hud-scan-svg {
    width: 100%;
    height: 100%;
}

/* --- Micro Hover Effect --- */
.micro-hover {
    cursor: default;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .prediction-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .instruments-grid {
        grid-template-columns: 1fr;
    }

    .counter-stats {
        gap: 24px;
    }

    .archive-timeline {
        padding-left: 60px;
    }

    .archive-year {
        left: -60px;
        width: 40px;
        font-size: 0.75rem;
    }

    .archive-year::after {
        right: -20px;
    }

    .main-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .collage-chart {
        right: 0;
    }

    .collage-crystal {
        left: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .main-nav {
        gap: 12px;
    }

    .counter-stats {
        flex-direction: column;
        gap: 16px;
    }

    .counter-digit {
        font-size: 3.5rem;
    }

    .hero-collage {
        height: 150px;
    }

    .collage-globe {
        width: 120px;
        height: 120px;
    }

    .collage-chart {
        width: 70px;
        height: 70px;
    }

    .collage-crystal {
        width: 60px;
        height: 75px;
    }
}
