:root {
    --bg: #f9eddc;
    --text: #432323;
    --muted: #a98f84;
    --line: #ded1c1;
    --rust: #c93108;
    --teal: #04999a;
}

/* ========================================
   GLOBAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Fragment Mono", monospace;
}

a {
    color: inherit;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
}

.site-nav,
main,
footer {
    width: min(calc(100% - 160px), 1200px);
    margin-inline: auto;
}


/* ========================================
   NAVIGATION
======================================== */

.site-nav {
    min-height: 110px;
    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 48px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;

    text-decoration: none;
    flex: 0 0 auto;
}

.brand-logo {
    width: 68px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text {
    font-size: 13px;
    line-height: 1.05;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;

    font-size: 12px;
}

.nav-links a {
    color: #7f6960;
    text-decoration: none;

    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;
    min-height: 760px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-lede {
    position: absolute;
    top: 62px;
    left: 0;
    margin: 0;
    color: var(--rust);
    font-size: 26px;
    line-height: 1.2;
}

.hero-curve {
    position: absolute;
    left: 0;
    top: 100px;
    width: 100%;
    height: 500px;
    overflow: visible;
}

.hero-line {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.hero-curve-text {
    fill: var(--text);
    font-family: "Fragment Mono", monospace;
    font-size: 48px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    position: absolute;
    right: 0;
    bottom: 125px;
    margin: 0;
    color: var(--teal);
    font-size: 22px;
}

.down-arrow {
    position: absolute;
    left: 0;
    bottom: 74px;
    text-decoration: none;
    font-size: 20px;
}


/* ========================================
   HOMEPAGE SECTIONS
======================================== */

.home-section {
    position: relative;
    min-height: 640px;
    padding: 105px 0 85px;
    border-bottom: 1px solid var(--line);
}

.home-section h2 {
    margin: 0 0 48px;
    font-size: 37px;
    font-weight: 400;
    line-height: 1;
}

.teal {
    color: var(--teal);
}

.rust {
    color: var(--rust);
}

.copy {
    width: min(100%, 760px);
    font-size: 16px;
    line-height: 1.3;
}

.projects-copy {
    width: min(100%, 900px);
}

.copy p {
    margin: 0 0 38px;
}

.muted {
    color: var(--muted);
}

.text-link {
    text-underline-offset: 3px;
}

.teal-link {
    color: var(--teal);
}

.rust-link {
    color: var(--rust);
}

.section-arrow {
    position: absolute;
    left: 0;
    bottom: 72px;
    text-decoration: none;
    font-size: 20px;
}


/* ========================================
   CONTACT
======================================== */

.contact-section {
    min-height: 560px;
    border-bottom: 0;
}

.email-link {
    display: inline-block;
    margin-bottom: 26px;
    font-size: 24px;
    text-underline-offset: 4px;
}


/* ========================================
   FOOTER
======================================== */

footer {
    min-height: 90px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9a8278;
    font-size: 9px;
}

footer a {
    text-decoration: none;
}


/* ========================================
   PROJECTS / MERCH / TEAM SUBPAGES
======================================== */

.subpage {
    min-height: 900px;
    padding: 72px 0 110px;
}

.subpage-title {
    margin: 0 0 42px;
    font-size: 40px;
    font-weight: 400;
}

.subpage-intro,
.team-intro {
    max-width: 760px;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.35;
}


/* ========================================
   PROJECT / MERCH GRID
======================================== */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 42px;
}

.tile {
    text-align: center;
}

.tile-art {
    height: 220px;
    margin-bottom: 18px;
    background: #eadccc;
    display: grid;
    place-items: center;
    font-size: 74px;
}

.tile h2,
.person h2 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 400;
}

.tile p {
    max-width: 180px;
    margin: 0 auto;
    font-size: 10px;
    line-height: 1.25;
}

.rust-outline {
    color: var(--rust);
}

.teal-outline {
    color: var(--teal);
}

.brown-outline {
    color: var(--text);
}

.buy-button {
    display: inline-block;
    width: 110px;
    margin-top: 16px;
    padding: 7px 10px;
    background: var(--teal);
    color: white;
    font-size: 10px;
    text-decoration: none;
}


/* ========================================
   TEAM PAGE
======================================== */

.team-list {
    display: grid;
    gap: 34px;
    margin-top: 56px;
}

.person {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
}

.person-art {
    height: 120px;
    background: #eadccc;
    display: grid;
    place-items: center;
    font-size: 56px;
}

.person p {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.3;
}

.person .tagline {
    color: var(--rust);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
    .site-nav,
    main,
    footer {
        width: calc(100% - 80px);
    }

    .nav-links {
        gap: 20px;
    }

    .hero-curve-text {
        font-size: 42px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {
    .site-nav,
    main,
    footer {
        width: calc(100% - 48px);
    }

    .site-nav {
        min-height: 80px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-lede {
        top: 50px;
        font-size: 19px;
    }

    .hero-curve {
        top: 120px;
        left: 0;
        width: 100%;
        height: 400px;
    }

    .hero-curve-text {
        font-size: 34px;
    }

    .hero-subtitle {
        left: 0;
        right: auto;
        bottom: 110px;
        font-size: 17px;
    }

    .home-section {
        min-height: 540px;
        padding-top: 80px;
    }

    .home-section h2 {
        font-size: 31px;
    }

    .copy {
        font-size: 14px;
    }

    .email-link {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .tile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .person {
        grid-template-columns: 90px 1fr;
    }

    .person-art {
        height: 90px;
    }

    footer {
        gap: 18px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {
    .site-nav,
    main,
    footer {
        width: calc(100% - 32px);
    }

    .tile-grid {
        grid-template-columns: 1fr;
    }
}
