/* ============================================================
   ARTS.str — Main Style
   Design language: Teenage Engineering × Nothing
   Monospace grid, warm black, single accent, zero radius
   ============================================================ */

:root {
    /* Core palette */
    --bg:          #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary:  #181818;
    --surface:      #1a1a1a;
    --border:       #2a2a2a;
    --border-bright:#3a3a3a;

    /* Text */
    --text:         #e8e4df;
    --text-dim:     #7a7670;
    --text-muted:   #444240;

    /* Accent — TE orange */
    --accent:       #f5622e;
    --accent-dim:   rgba(245, 98, 46, 0.15);
    --accent-glow:  rgba(245, 98, 46, 0.06);

    /* Typography */
    --font-mono:    'Space Mono', 'Courier New', monospace;
    --font-sans:    'DM Sans', sans-serif;

    /* Spacing unit */
    --unit: 8px;

    /* Transitions */
    --t-fast: 80ms;
    --t-med:  160ms;
    --t-slow: 320ms;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 200;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: crosshair;
}

/* ---- Scanlines overlay ---- */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
    );
    opacity: 0.4;
}

/* ---- Global text ---- */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Section labels (TE spec-tag style) ---- */
.section-label {
    display: flex;
    align-items: center;
    gap: calc(var(--unit) * 2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: calc(var(--unit) * 3) calc(var(--unit) * 3) 0;
    user-select: none;
}

.section-label-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-heading {
    font-family: var(--font-mono);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
    scroll-margin-top: 5rem;
}

/* ---- Main layout ---- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

article {
    scroll-margin-top: 5rem;
    scrollbar-width: none;
}

article::-webkit-scrollbar { display: none; }

/* ---- Scrollable rows ---- */
#projects,
#web {
    display: flex;
    flex-direction: row;
    padding: calc(var(--unit) * 2) calc(var(--unit) * 3) calc(var(--unit) * 3);
    overflow-x: scroll;
    gap: calc(var(--unit) * 2);
    scrollbar-width: none;
}

#projects::-webkit-scrollbar,
#web::-webkit-scrollbar { display: none; }

/* ---- Carousel section wrapper ---- */
.carousel-section {
    border-top: 1px solid var(--border);
    margin-bottom: 0;
    position: relative;
}

.carousel-section + .carousel-section {
    margin-top: 0;
}

/* ---- Hero section wrapper ---- */
.hero-section-wrap {
    border-top: 1px solid var(--border);
}

/* ---- Section controls override (defined in controls-style.css) ---- */

/* ---- Cursor dot ---- */
body::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: opacity var(--t-fast);
    opacity: 0;
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
    .main-content {
        align-items: stretch;
    }

    #projects,
    #web {
        flex-direction: column;
        overflow-x: hidden;
        padding: calc(var(--unit) * 2);
        gap: calc(var(--unit) * 2);
    }

    .section-heading {
        font-size: 18px;
    }

    article {
        scrollbar-width: initial;
    }

    .carousel-section {
        width: 100%;
    }
}
