/* =========================================================
   HULAB · 胡哥有点东西
   Main stylesheet
   ========================================================= */

:root {
    --bg: #f4f3ee;
    --text: #111111;
    --muted: #77756e;
    --line: #d5d3ca;
    --soft: #ebe9e1;

    --max-width: 1240px;
    --side-padding: 40px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        Arial,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


body::selection {
    background: var(--text);
    color: var(--bg);
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    width: min(
        var(--max-width),
        calc(100% - (var(--side-padding) * 2))
    );

    height: 88px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}


.brand {
    display: flex;
    align-items: center;

    gap: 12px;
}


.brand-mark {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    background: var(--text);
    color: var(--bg);

    font-size: 14px;
    font-weight: 800;

    border-radius: 50%;
}


.brand-name {
    font-size: 16px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.nav {
    display: flex;
    gap: 32px;
}


.nav a {
    position: relative;

    font-size: 13px;

    color: var(--muted);

    transition: color 0.2s ease;
}


.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: var(--text);

    transition: width 0.2s ease;
}


.nav a:hover {
    color: var(--text);
}


.nav a:hover::after {
    width: 100%;
}


/* =========================================================
   General
   ========================================================= */

.section {
    width: min(
        var(--max-width),
        calc(100% - (var(--side-padding) * 2))
    );

    margin: 0 auto;

    border-bottom: 1px solid var(--line);
}


.section-label {
    display: flex;
    align-items: center;

    gap: 20px;

    padding-bottom: 48px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 0.14em;
}


.section-label span:first-child {
    color: var(--text);
    font-weight: 700;
}


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

.hero {
    width: min(
        var(--max-width),
        calc(100% - (var(--side-padding) * 2))
    );

    min-height: calc(100vh - 88px);

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 64px 0 48px;
}


.hero-top,
.hero-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


.eyebrow,
.year,
.hero-index {
    font-size: 11px;

    letter-spacing: 0.16em;

    color: var(--muted);
}


.hero-main {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 260px;

    align-items: end;

    gap: 40px;
}


.hero h1 {
    font-size: clamp(64px, 10vw, 150px);

    line-height: 0.92;

    font-weight: 800;

    letter-spacing: -0.075em;
}


.hero h1 span {
    color: var(--muted);
}


.hero-side {
    padding-bottom: 8px;
}


.hero-side p {
    font-size: 21px;

    line-height: 1.45;

    letter-spacing: -0.025em;
}


.hero-tags {
    margin-top: 36px;

    font-size: 10px;

    line-height: 1.8;

    letter-spacing: 0.15em;

    color: var(--muted);
}


.hero-bottom {
    padding-top: 40px;

    border-top: 1px solid var(--line);
}


.scroll-link {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 13px;

    font-weight: 600;
}


.scroll-link .arrow {
    display: inline-block;

    transition: transform 0.2s ease;
}


.scroll-link:hover .arrow {
    transform: translateY(5px);
}


/* =========================================================
   Intro
   ========================================================= */

.intro {
    padding: 130px 0;
}


.intro-content {
    max-width: 900px;

    margin-left: auto;
}


.intro h2 {
    font-size: clamp(38px, 6vw, 76px);

    line-height: 1.1;

    letter-spacing: -0.055em;

    font-weight: 750;
}


.intro h2 em {
    color: var(--muted);

    font-style: normal;
}


.intro-content p {
    max-width: 520px;

    margin-top: 48px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.9;
}


.intro-content p + p {
    margin-top: 8px;
}


/* =========================================================
   Things
   ========================================================= */

.things {
    padding: 100px 0 130px;
}


.things-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: var(--line);

    border: 1px solid var(--line);
}


.thing-card {
    position: relative;

    min-height: 390px;

    padding: 32px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    background: var(--bg);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.thing-card:hover {
    background: var(--soft);

    transform: translateY(-4px);
}


.card-number {
    font-size: 11px;

    color: var(--muted);

    letter-spacing: 0.12em;
}


.card-content h3 {
    font-size: 34px;

    letter-spacing: -0.04em;

    margin-bottom: 20px;
}


.card-content p {
    max-width: 280px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


.card-arrow {
    align-self: flex-end;

    font-size: 20px;
}


/* =========================================================
   Projects
   ========================================================= */

.projects {
    padding: 100px 0 130px;
}


.project-list {
    border-top: 1px solid var(--line);
}


.project-item {
    display: grid;

    grid-template-columns: 180px 1fr 180px;

    align-items: center;

    gap: 40px;

    padding: 34px 0;

    border-bottom: 1px solid var(--line);

    transition: padding 0.25s ease;
}


.project-item:hover {
    padding-left: 12px;
}


.project-id {
    font-size: 11px;

    color: var(--muted);

    letter-spacing: 0.08em;
}


.project-info h3 {
    font-size: 27px;

    letter-spacing: -0.035em;

    margin-bottom: 4px;
}


.project-info p {
    font-size: 14px;

    color: var(--muted);
}


.project-status {
    display: flex;

    align-items: center;

    gap: 9px;

    justify-self: end;

    font-size: 10px;

    color: var(--muted);

    letter-spacing: 0.1em;
}


.status-dot {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background: var(--text);
}


/* =========================================================
   About
   ========================================================= */

.about {
    padding: 100px 0 140px;
}


.about-content {
    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 80px;

    max-width: 1050px;

    margin-left: auto;
}


.about-title {
    display: flex;

    flex-wrap: wrap;

    align-content: flex-start;

    gap: 10px;

    font-size: 14px;

    letter-spacing: 0.08em;

    font-weight: 700;
}


.about-title .muted {
    color: var(--muted);
}


.about-text {
    max-width: 680px;
}


.about-lead {
    font-size: clamp(28px, 4vw, 50px);

    line-height: 1.35;

    letter-spacing: -0.045em;

    margin-bottom: 48px;
}


.about-text p:not(.about-lead) {
    max-width: 550px;

    margin-top: 16px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   Contact
   ========================================================= */

.contact {
    padding: 100px 0 150px;
}


.contact-content {
    max-width: 1000px;

    margin-left: auto;
}


.contact-intro {
    font-size: clamp(48px, 8vw, 100px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -0.065em;

    margin-bottom: 70px;
}


.email-link {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    padding-bottom: 8px;

    border-bottom: 2px solid var(--text);

    font-size: clamp(22px, 3vw, 38px);

    letter-spacing: -0.035em;

    transition: gap 0.25s ease;
}


.email-link:hover {
    gap: 45px;
}


.email-link span {
    font-size: 0.8em;
}


/* =========================================================
   Final
   ========================================================= */

.final {
    width: min(
        var(--max-width),
        calc(100% - (var(--side-padding) * 2))
    );

    margin: 0 auto;

    padding: 170px 0;

    text-align: center;
}


.final-mark {
    width: 64px;
    height: 64px;

    margin: 0 auto 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--text);

    border-radius: 50%;

    font-size: 24px;

    font-weight: 800;
}


.final h2 {
    font-size: clamp(48px, 8vw, 110px);

    line-height: 0.98;

    letter-spacing: -0.07em;

    font-weight: 800;
}


.final p {
    margin-top: 40px;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.2em;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    width: min(
        var(--max-width),
        calc(100% - (var(--side-padding) * 2))
    );

    margin: 0 auto;

    padding: 28px 0 40px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    font-size: 10px;

    color: var(--muted);

    letter-spacing: 0.08em;
}


.site-footer div:nth-child(2) {
    text-align: center;
}


.site-footer div:nth-child(3) {
    text-align: right;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

    :root {
        --side-padding: 20px;
    }


    .site-header {
        height: 72px;
    }


    .nav {
        gap: 18px;
    }


    .nav a {
        font-size: 12px;
    }


    .hero {
        min-height: calc(100vh - 72px);

        padding-top: 42px;
        padding-bottom: 30px;
    }


    .hero-main {
        grid-template-columns: 1fr;

        gap: 42px;
    }


    .hero h1 {
        font-size: clamp(58px, 17vw, 100px);
    }


    .hero-side {
        padding-bottom: 0;
    }


    .hero-side p {
        font-size: 18px;
    }


    .hero-tags {
        margin-top: 24px;
    }


    .hero-index {
        display: none;
    }


    .intro,
    .things,
    .projects,
    .about,
    .contact {
        padding-top: 80px;
        padding-bottom: 90px;
    }


    .section-label {
        padding-bottom: 36px;
    }


    .intro-content {
        margin-left: 0;
    }


    .intro h2 {
        font-size: clamp(36px, 11vw, 60px);
    }


    .intro-content p {
        margin-top: 32px;

        font-size: 15px;
    }


    .things-grid {
        grid-template-columns: 1fr;
    }


    .thing-card {
        min-height: 300px;
    }


    .project-item {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 28px 0;
    }


    .project-status {
        justify-self: start;

        margin-top: 10px;
    }


    .project-item:hover {
        padding-left: 0;
    }


    .about-content {
        grid-template-columns: 1fr;

        gap: 40px;

        margin-left: 0;
    }


    .about-lead {
        font-size: clamp(30px, 9vw, 48px);

        margin-bottom: 34px;
    }


    .contact-intro {
        margin-bottom: 50px;

        font-size: clamp(50px, 16vw, 90px);
    }


    .email-link {
        gap: 16px;

        font-size: 22px;
    }


    .email-link:hover {
        gap: 20px;
    }


    .final {
        padding: 120px 0;
    }


    .site-footer {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .site-footer div:nth-child(2),
    .site-footer div:nth-child(3) {
        text-align: left;
    }
}


@media (max-width: 420px) {

    .brand-name {
        font-size: 14px;
    }


    .nav {
        gap: 14px;
    }


    .hero h1 {
        font-size: 55px;
    }


    .hero-description {
        font-size: 16px;
    }


    .thing-card {
        padding: 26px;
    }


    .card-content h3 {
        font-size: 30px;
    }


    .email-link {
        font-size: 18px;
    }

}