/* ============================================================
   p9r.xyz - Honeyed Brutalism Design System
   ============================================================ */

/* Color Palette */
:root {
    --warm-concrete: #E8DCC8;
    --light-plaster: #F5EFE3;
    --foundation-dark: #3A3228;
    --honey-gold: #C4A44A;
    --raw-umber: #8A7E6E;
    --soft-charcoal: #4A4239;
    --cream-white: #FAF6EE;
    --patina-green: #6B7F5E;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--soft-charcoal);
    background-color: var(--warm-concrete);
    line-height: 1.75;
    font-size: 17px;
}

/* ============================================================
   SLAB STRUCTURE
   ============================================================ */

.slab {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.slab-0 {
    height: 100vh;
    background-color: var(--warm-concrete);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slab-1 {
    background-color: var(--warm-concrete);
}

.slab-2 {
    background-color: var(--light-plaster);
}

.slab-3 {
    background-color: var(--warm-concrete);
}

.slab-4 {
    background-color: var(--light-plaster);
}

.slab-5 {
    background-color: var(--foundation-dark);
    color: var(--warm-concrete);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Grain Overlay - Concrete Texture */
.slab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 3px 3px;
    background-position: 0 0, 2px 2px;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   GRID OVERLAY
   ============================================================ */

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent calc(100% / 12 - 1px),
            var(--raw-umber) calc(100% / 12 - 1px),
            var(--raw-umber) calc(100% / 12)
        );
    opacity: 0.2;
    pointer-events: none;
}

/* ============================================================
   HEADER SLAB (SLAB 0)
   ============================================================ */

.slab-0 .slab-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.domain-name {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 800;
    font-variation-settings: 'wdth' 125;
    color: var(--soft-charcoal);
    letter-spacing: -0.02em;
    margin: 0;
    animation: breathe-width 8s ease-in-out infinite;
}

@keyframes breathe-width {
    0%, 100% {
        font-variation-settings: 'wdth' 100;
    }
    50% {
        font-variation-settings: 'wdth' 125;
    }
}

.golden-ratio-line {
    position: absolute;
    top: 61.8%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background-color: var(--raw-umber);
    margin: 40px 0;
}

.tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    color: var(--raw-umber);
    margin-top: 60px;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* ============================================================
   CONTENT BLOCKS (SLABS 1-4)
   ============================================================ */

.content-block {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    box-shadow: 8px 8px 0px var(--raw-umber);
    background-color: var(--cream-white);
}

.slab-1 .content-block,
.slab-3 .content-block {
    background-color: var(--cream-white);
    margin-left: 15%;
}

.slab-2 .content-block,
.slab-4 .content-block {
    background-color: var(--cream-white);
    margin-left: 35%;
}

.content-block h2 {
    font-family: 'Anybody', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-variation-settings: 'wdth' 110;
    color: var(--honey-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-block p {
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--soft-charcoal);
}

/* ============================================================
   STAR MARKERS - CELESTIAL COORDINATES
   ============================================================ */

.star-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.4;
    z-index: 1;
}

.star-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--honey-gold);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
    );
}

/* Distribute star markers around the grid */
.star-1 { top: 10%; right: 5%; }
.star-2 { bottom: 15%; left: 2%; }
.star-3 { top: 20%; left: 3%; }
.star-4 { bottom: 10%; right: 4%; }
.star-5 { top: 15%; right: 6%; }
.star-6 { bottom: 20%; left: 2%; }
.star-7 { top: 25%; left: 4%; }
.star-8 { bottom: 15%; right: 5%; }

/* ============================================================
   FOUNDATION SLAB (SLAB 5)
   ============================================================ */

.slab-5 .slab-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.foundation-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    color: var(--warm-concrete);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   ZOOM-FOCUS ANIMATION
   ============================================================ */

.content-block {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-block.in-view {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .domain-name {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .slab-1 .content-block,
    .slab-3 .content-block {
        margin-left: 5%;
    }

    .slab-2 .content-block,
    .slab-4 .content-block {
        margin-left: 5%;
    }

    .content-block {
        max-width: 90%;
        padding: 40px 30px;
        box-shadow: 4px 4px 0px var(--raw-umber);
    }

    .content-block h2 {
        font-size: 1.8rem;
    }

    .content-block p {
        font-size: 16px;
    }

    .tagline {
        font-size: 16px;
    }

    .golden-ratio-line {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .domain-name {
        font-size: clamp(1.5rem, 7vw, 3rem);
    }

    .content-block h2 {
        font-size: 1.5rem;
    }

    .content-block {
        padding: 30px 20px;
        box-shadow: 3px 3px 0px var(--raw-umber);
    }
}
