@charset "utf-8";

/* ========================================
   Variables
======================================== */

:root {
    --white: #ffffff;

    --content-width: 560px;
    --page-pad: 20px;
}

/* ========================================
   Reset
======================================== */

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

html,
body {
    margin: 0;
    padding: 0;
    background: #fff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
p {
    margin: 0;
}

/* ========================================
   Base Typography
======================================== */

body {
    font-family: "Figtree", sans-serif;
    color: var(--white);
    font-size: 13px;
    line-height: 2.05;
    letter-spacing: 0.04em;
    overflow: hidden;
}

/* ========================================
   Links
======================================== */

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

a:hover {
    text-decoration: underline;
}

/* ========================================
   Background
======================================== */

.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        url(contentbg.png) right bottom 30% / auto 60% no-repeat,
        url(bg.jpg) left bottom / auto 100% no-repeat;
}

/* ========================================
   Layout
======================================== */

.layout {
    position: relative;
    z-index: 1;
    padding: 0 var(--page-pad);
    height: 100dvh;
    overflow: auto;
}

/* ========================================
   Content Area
======================================== */

.content {
    width: min(100%, var(--content-width));
    margin-left: auto;
    margin-right: 8vw;
}

/* ========================================
   Hero
======================================== */

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   Sections
======================================== */

.block {
    margin-bottom: 16vh;
}

/* ========================================
   Header (Sticky Logo)
======================================== */

.top {
    position: sticky;
    top: 20px;
    z-index: 5;
    padding-top: 20px;
}

.top-logo {
    height: 30px;
}

/* ========================================
   Title
======================================== */

.site-title {
    margin: 0;
}

.site-title-logo {
    height: 130px;
}

/* ========================================
   Name / Lead
======================================== */

.name {
    margin-top: 50px;
    font-family: "EB Garamond", serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.lead {
    margin-top: 18px;
}

/* ========================================
   Headings
======================================== */

h2 {
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
}

/* ========================================
   Text
======================================== */

p {
    margin: 0;
}

.subhead {
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* ========================================
   Links (Footer)
======================================== */

.links {
    margin-bottom: 70px;
    display: inline-flex;
    gap: 18px;
    font-size: 14px;
    letter-spacing: 0.15em;
}

.links a {
    color: var(--white);
}

/* ========================================
   Scroll Indicator
======================================== */

.scroll-indicator {
    position: relative;
    margin-top: 20px;
    width: 1px;
    height: 64px;
}

.scroll-indicator::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
}

.scroll-indicator::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: rgba(255, 255, 255, 0.9);
    animation: scrollDraw 3s ease-out infinite;
}

@keyframes scrollDraw {
    0% {
        height: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    65% {
        height: 64px;
        opacity: 1;
    }

    100% {
        height: 64px;
        opacity: 0;
    }
}

/* ========================================
   Copyright (Fixed)
======================================== */

.copyright {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 5;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 680px) {
    .content {
        width: 83%;
        margin-left: auto;
        margin-right: 5px;
    }

    .bg {
        background:
            url(contentbg.png) right bottom 30% / auto 60% no-repeat,
            url(bg.jpg) 10% bottom / auto 100% no-repeat;
    }

    .top {
        top: 16px;
        padding-top: 16px;
    }

    .links {
        font-size: 13px;
        gap: 12px;
    }

    .copyright {
        left: 16px;
        bottom: 16px;
        font-size: 10px;
    }
}
