/* gabs.day - Monochrome Stark Landing */
/* Palette */
/* Pure Black: #000000 */
/* Pure White: #ffffff */
/* Signal Green: #00e676 */
/* Signal Red: #ff1744 */
/* Neutral Gray: #424242 */
/* Dim Text: #9e9e9e */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
#site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #424242;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #000000;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.site-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.site-tagline {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.75rem;
    color: #9e9e9e;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00e676;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.live-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #00e676;
}

.date-label {
    font-size: 0.8rem;
    color: #9e9e9e;
    font-variant-numeric: tabular-nums;
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    min-height: 400px;
    border-bottom: 1px solid #424242;
}

.hero-container {
    text-align: center;
}

.hero-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
}

.hero-currency {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    color: #9e9e9e;
    line-height: 1;
}

.hero-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 20vw, 16rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.hero-item-name {
    font-size: 1.1rem;
    color: #9e9e9e;
    font-weight: 400;
}

.hero-item-name .kr-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    color: #9e9e9e;
    margin-left: 6px;
}

.hero-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hero-change.positive {
    color: #00e676;
}

.hero-change.negative {
    color: #ff1744;
}

.hero-change .change-value {
    font-variant-numeric: tabular-nums;
}

/* Arrows */
.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.arrow-up {
    border-bottom: 10px solid #00e676;
}

.arrow-down {
    border-top: 10px solid #ff1744;
}

/* Daily Feed */
#daily-feed {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.feed-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 24px 0 12px;
    border-bottom: 1px solid #424242;
}

.feed-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feed-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.75rem;
    color: #9e9e9e;
}

.feed-list {
    display: flex;
    flex-direction: column;
}

.feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    border-bottom: 1px solid #424242;
    gap: 12px;
}

.feed-row .item-name {
    flex: 1 1 160px;
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-row .item-name .kr-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.72rem;
    color: #9e9e9e;
    margin-left: 6px;
}

.sparkline {
    flex: 0 0 80px;
    width: 80px;
    height: 20px;
}

.spark-path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spark-path.spark-up {
    stroke: #00e676;
}

.spark-path.spark-down {
    stroke: #ff1744;
}

.feed-row .item-value {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.value-number {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.change-pct {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: right;
}

.change-pct.positive {
    color: #00e676;
}

.change-pct.negative {
    color: #ff1744;
}

/* Footer */
#site-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #424242;
    margin-top: 24px;
}

.footer-text {
    font-size: 0.75rem;
    color: #9e9e9e;
}

.footer-note {
    font-size: 0.7rem;
    color: #424242;
}

/* Sparkline stroke-draw animation */
.spark-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 500ms ease-out;
}

.spark-path.drawn {
    stroke-dashoffset: 0;
}

/* Responsive */
@media (max-width: 600px) {
    #site-header {
        padding: 12px 16px;
    }

    .site-tagline {
        display: none;
    }

    #hero {
        height: 60vh;
        min-height: 300px;
    }

    .hero-currency {
        font-size: clamp(2rem, 8vw, 5rem);
    }

    .hero-number {
        font-size: clamp(4rem, 18vw, 10rem);
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    #daily-feed {
        padding: 0 16px;
    }

    .feed-row .item-name .kr-label {
        display: none;
    }

    .sparkline {
        flex: 0 0 60px;
        width: 60px;
    }

    #site-footer {
        flex-direction: column;
        gap: 8px;
        padding: 24px 16px;
    }
}
