/* ============================================
   HOLLERPUNK.COM
   ============================================ */

@font-face {
    font-family: 'Sligoil';
    src: url('../assets/fonts/Sligoil-Micro.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sligoil';
    src: url('../assets/fonts/Sligoil-MicroMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #1a1612;
    --bg-secondary: #221e19;
    --text-primary: #e8dfd0;
    --text-secondary: #a89a88;
    --accent-rust: #c4522a;
    --accent-rust-dim: #8a3a1e;
    --accent-sage: #7a8a6a;
    --accent-sage-dim: #5a6a4e;
    --font-display: 'Sligoil', 'Courier New', monospace;
    --font-body: 'IBM Plex Mono', 'Courier New', monospace;
    --page-pad: clamp(1.5rem, 5vw, 6rem);
}

/* --- Reset --- */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* --- Body + background depth --- */

body {
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        #1e1915 40%,
        var(--bg-primary) 70%,
        #171310 100%
    );
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Grain overlay --- */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Faint watermark glyph --- */

.watermark {
    position: fixed;
    top: 15%;
    right: -5%;
    font-family: var(--font-display);
    font-size: clamp(20rem, 40vw, 50rem);
    color: var(--text-primary);
    opacity: 0.018;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* --- Hero --- */

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--page-pad) 10vh var(--page-pad);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.12;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        transparent 30%,
        transparent 60%,
        var(--bg-primary) 100%
    );
    z-index: -1;
}

.title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.9;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    transform: rotate(-0.7deg);
    margin-left: -0.5rem;
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding-left: 0.2rem;
}

/* --- Dividers --- */

.divider {
    border: none;
    height: 1px;
    margin: 4rem 0;
    margin-left: 1rem;
    width: calc(100% - 3rem);
}

.divider--a {
    background: var(--accent-rust-dim);
    opacity: 0.4;
    transform: rotate(-0.3deg);
}

.divider--b {
    background: var(--accent-sage-dim);
    opacity: 0.25;
    transform: rotate(0.2deg);
    width: calc(100% - 5rem);
    margin-left: 2.5rem;
}

.svg-divider {
    display: block;
    width: calc(100% - 3rem);
    height: 12px;
    margin: 4rem 0 4rem 1rem;
}

/* --- Declaration --- */

.declaration {
    padding: 0 var(--page-pad);
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.declaration p {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-primary);
}

/* --- Projects (broadsheet / index style) --- */

.projects {
    padding: 0 var(--page-pad);
    position: relative;
    z-index: 1;
}

.project {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(232, 223, 208, 0.08);
    position: relative;
}

.project:last-child {
    border-bottom: 1px solid rgba(232, 223, 208, 0.08);
}

.project-head {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
}

.project-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    flex-shrink: 0;
}

.project--upcoming .project-name {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
}

/* Dotted leader line between name and URL */
.project-leader {
    flex: 1;
    border-bottom: 1px dotted var(--text-secondary);
    opacity: 0.2;
    margin: 0 0.75rem;
    align-self: baseline;
    min-width: 2rem;
    position: relative;
    top: -0.3em;
}

.project-url {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent-rust);
    text-decoration: none;
    flex-shrink: 0;
    align-self: baseline;
}

.project-url:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.project-url:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 3px;
}

.project-status {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-sage);
    border: 1px solid var(--accent-sage-dim);
    padding: 0.15em 0.5em;
    display: inline-block;
    transform: rotate(-1deg);
    border-radius: 1px;
    box-shadow: 1px 1px 0 var(--bg-primary), -1px -1px 0 var(--bg-primary);
    flex-shrink: 0;
    align-self: baseline;
}

.project-desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    line-height: 1.6;
    max-width: 550px;
}

/* Margin annotation */
.margin-note {
    position: absolute;
    right: -1rem;
    top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-style: italic;
    color: var(--accent-sage-dim);
    transform: rotate(-2deg);
    white-space: nowrap;
    opacity: 0.6;
}

/* --- Method / closing statement --- */

.method {
    padding: 0 var(--page-pad);
    padding-left: calc(var(--page-pad) + 3rem);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.method p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--accent-sage);
    transform: rotate(-0.4deg);
}

/* --- Footer --- */

.footer {
    padding: 4rem var(--page-pad) 2rem;
    position: relative;
    z-index: 1;
}

.footer-mark {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    opacity: 0.4;
}

/* --- Links (global) --- */

a {
    color: var(--accent-rust);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding-bottom: 10vh;
    }

    .title {
        font-size: clamp(3rem, 15vw, 5rem);
        word-break: break-all;
        hyphens: none;
        transform: rotate(-0.4deg);
    }

    .declaration {
        max-width: 100%;
    }

    .project-head {
        flex-direction: column;
        gap: 0.2rem;
    }

    .project-leader {
        display: none;
    }

    .project {
        padding: 1.25rem 0;
    }

    .margin-note {
        position: static;
        display: block;
        transform: rotate(-1deg);
        margin-top: 0.3rem;
    }

    .method {
        padding-left: var(--page-pad);
        max-width: 100%;
    }

    .divider {
        transform: none;
        width: 100%;
        margin-left: 0;
    }

    .svg-divider {
        width: 100%;
        margin-left: 0;
    }

    .watermark {
        display: none;
    }
}

@media (max-width: 375px) {
    body::before {
        opacity: 0.025;
    }
}
