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

/* ── Variables ───────────────────────────────────────── */
:root {
    --bg: #E6EBEA;
    --text-color: #1A2228;
    --bg-img-url: url('./images/bg-img.jpg');
    --noise-url: url('./images/noise.gif');
    --pad: clamp(40px, 5vw, 120px);
}

/* ── Global ─────────────────────────────────────────── */
html,

body {
    width: 100%;
    height: 100%;
    cursor: url('./images/cursor-color.svg'), default;
}

@font-face {
    font-family: 'MyFont';
    src: url('./fonts/TBK Hera v0.5.woff2') format('woff2');
    font-display: block;
}

body {
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Source Code Pro', monospace;
}

a {
    position: relative;
    display: inline-block;
    color: #E14A14;
    text-decoration: underline;
}

a:hover {
    color: #E6EBEA;
    background: #E14A14;
    padding: 2px 4px 2px 6px;
    margin: -2px -4px -2px -6px;
    text-decoration: underline;
    cursor: url('./images/cursor-dark.svg'), pointer;
}

.frame {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
}

.frame::before {
    content: '';
    position: absolute;
    min-height: 100vh;
    inset: 0;
    background-image: var(--bg-img-url);
    background-size: cover;
    background-position: bottom center;
    filter: saturate(0);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.frame::after {
    content: '';
    position: fixed;
    min-height: 150vh;
    inset: 0;
    background-image: var(--noise-url);
    background-repeat: repeat;
    background-size: auto;
    filter: saturate(0);
    opacity: 0.05;
    pointer-events: none;
    z-index: 3;
}

.contact {
    position: absolute;
    bottom: clamp(8px, 4vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: normal;
}

.contact span {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: 0.20em;
    text-transform: uppercase;
    opacity: 1;
}

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

.headline {
    font-family: 'MyFont', 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(180px, 16vw, 280px);
    line-height: .8;
    color: var(--text-color);
    letter-spacing: -0.01em;
    text-align: center;
    width: 100%;
}

.subtitle {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 2.5;
    color: var(--text-color);
    letter-spacing: 0.50em;
    text-transform: uppercase;
    text-align: center;
    margin-top: clamp(4px, 0.6vw, 10px);
    padding: 0.50em 0em;
}

/* ── Mobile Breakpoint ── */
@media (max-width: 600px) {
    .frame {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 40px 40px 80px;
        min-height: 100vh;
    }

    .contact {
        position: static;
        transform: none;
        align-items: flex-start;
        white-space: normal;
        order: 0;
    }

    .contact span {
        font-size: 0.8rem;
        letter-spacing: 0.10em;
        line-height: 1.2;
        opacity: 1;
        min-width: 240px;
    }

    .content {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        order: 1;
    }

    .headline {
        font-size: clamp(100px, 30vw, 120px);
        text-align: left;
        white-space: normal;
        word-break: normal;
        line-height: 0.9;
        min-width: 200px;
    }

    .subtitle {
        font-size: 0.8rem;
        text-align: left;
        letter-spacing: 0.30em;
        padding-right: 0.30em;
        line-height: 1.2;
        margin-top: 8px;
        white-space: normal;
        word-break: break-word;
        min-width: 240px;
    }
}