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

:root {
    --bg: #f1efe9;
    --text: #181817;
    --gray: #77746d;
    --line: #d3d0c8;
    --red: #b9573e;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

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

header {
    height: 72px;
    border-bottom: 1px solid var(--line);

    padding: 0 5%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-size: 21px;
    font-weight: bold;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-family: monospace;
    font-size: 12px;
    color: var(--gray);
}

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

.number {
    justify-self: end;
    font-family: monospace;
    font-size: 11px;
    color: var(--gray);
}

main {
    width: 90%;
    max-width: 1350px;
    margin: auto;
}

.small {
    font-family: monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

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

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero h1 {
    font-size: clamp(55px, 9vw, 135px);
    line-height: .86;
    letter-spacing: -7px;
    font-weight: 600;
}

h1 span,
.contact h2 span {
    color: var(--red);
}

.hero-text {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.hero-text p {
    max-width: 460px;
    color: #57544e;
    line-height: 1.7;
    font-size: 15px;
}

.hero-text a {
    font-family: monospace;
    font-size: 11px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}

.section-title {
    border-top: 1px solid var(--line);
    padding: 16px 0;

    display: grid;
    grid-template-columns: 50px 1fr auto;

    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
}

.projects {
    padding-bottom: 150px;
}

.big-project {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    border-bottom: 1px solid var(--line);
}

.fake-image {
    min-height: 500px;
    background: #dedbd3;

    display: flex;
    align-items: end;
    padding: 20px;

    color: #77736b;
    font-family: monospace;
    font-size: 10px;
}

.modula {
    background-image: url("images/formodulalinkmeta.png");
    background-size: cover;
    background-position: center;
}

.nap {
    background-image: url("images/fornap.png");
    background-size: cover;
    background-position: center;
}


.project-details {
    padding: 40px 35px;

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

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-details > span {
    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

.project-details h2 {
    font-size: 55px;
    letter-spacing: -4px;
}

.project-details p {
    color: #5e5a53;
    line-height: 1.7;
    max-width: 330px;
}

.project-details small {
    font-family: monospace;
    font-size: 9px;
    color: var(--gray);
}

.simple-project {
    display: grid;
    grid-template-columns: 50px 1fr 140px 30px;
    gap: 20px;

    padding: 35px 0;

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

    align-items: center;
}

.simple-project > span,
.simple-project small,
.simple-project b {
    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

.simple-project h2 {
    font-size: 25px;
    letter-spacing: -1px;
}

.simple-project p {
    margin-top: 8px;
    max-width: 500px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
}

.simple-project:hover h2 {
    text-decoration: underline;
}

.now {
    padding-bottom: 150px;
}

.now-content {
    padding: 45px 0;

    display: flex;
    align-items: center;
    gap: 45px;

    flex-wrap: wrap;
}

.now-content p {
    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

.now-content i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 7px;
}

.now-content h2 {
    font-size: 19px;
    letter-spacing: -1px;
}

.page-head {
    padding: 100px 0 130px;
}

.page-head h1 {
    margin: 45px 0;

    font-size: clamp(55px, 8vw, 120px);
    line-height: .88;
    letter-spacing: -6px;
    font-weight: 600;
}

.page-head > p:last-child {
    max-width: 450px;
    color: var(--gray);
    line-height: 1.7;
}

.work-list {
    padding-bottom: 120px;
}

.work-list article {
    display: grid;
    grid-template-columns: 100px 1fr;

    border-top: 1px solid var(--line);
    padding: 60px 0 120px;
}

.work-number {
    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

.work-content {
    max-width: 1100px;
}

.work-top {
    display: flex;
    justify-content: space-between;

    font-family: monospace;
    font-size: 9px;
    color: var(--gray);
}

.work-content h2 {
    font-size: clamp(45px, 7vw, 100px);
    letter-spacing: -6px;
    margin: 25px 0;
}

.description {
    max-width: 600px;
    color: #5a5750;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 40px;
}

.work-image {
    min-height: 550px;

    display: flex;
    align-items: end;

    padding: 20px;

    font-family: monospace;
    font-size: 10px;
    color: #77736b;

    margin-bottom: 50px;
}

.details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.details span {
    font-family: monospace;
    font-size: 9px;
    color: var(--gray);
    text-transform: uppercase;
}

.details p {
    margin-top: 13px;
    color: #5d5952;
    font-size: 13px;
    line-height: 1.7;
}

.about-head {
    padding-bottom: 150px;
}

.about-section {
    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 30% 70%;

    padding: 75px 0 120px;
}

.label {
    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

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

.about-text p {
    color: #57544e;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-text .big {
    color: var(--text);
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: -1px;
}

blockquote {
    font-size: 45px;
    letter-spacing: -3px;
    margin: 50px 0;
}

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

.interest-list div {
    display: grid;
    grid-template-columns: 45px 1fr;

    padding: 18px 0;

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

    font-size: 18px;
}

.interest-list span {
    font-family: monospace;
    font-size: 9px;
    color: var(--gray);
}

.learning {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.learning h2 {
    font-size: 35px;
    letter-spacing: -2px;
}

.contact {
    border-top: 1px solid var(--line);
    padding: 100px 0 150px;
}

.contact h2 {
    font-size: clamp(60px, 9vw, 135px);
    line-height: .85;
    letter-spacing: -7px;
    margin: 40px 0;
}

.contact a {
    font-family: monospace;
    font-size: 11px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}

footer {
    width: 90%;
    max-width: 1350px;
    margin: auto;

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

    padding: 25px 0;

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

    font-family: monospace;
    font-size: 10px;
    color: var(--gray);
}

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

footer a {
    text-align: right;
}

@media (max-width: 750px) {

    header {
        grid-template-columns: 1fr auto;
    }

    nav {
        display: none;
    }

    main {
        width: 88%;
    }

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

    .hero h1,
    .page-head h1 {
        letter-spacing: -4px;
    }

    .hero-text {
        display: block;
    }

    .hero-text a {
        display: inline-block;
        margin-top: 30px;
    }

    .big-project {
        display: block;
    }

    .fake-image {
        min-height: 330px;
    }

    .project-details {
        border-left: 0;
        padding: 35px 0;
        min-height: 400px;
    }

    .simple-project {
        grid-template-columns: 35px 1fr 20px;
    }

    .simple-project small {
        display: none;
    }

    .now-content {
        display: block;
    }

    .now-content h2 {
        margin-top: 22px;
    }

    .work-list article {
        grid-template-columns: 40px 1fr;
    }

    .work-image {
        min-height: 330px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    footer {
        grid-template-columns: 1fr 1fr;
    }

    footer a {
        grid-column: 1 / 3;
        text-align: left;
        margin-top: 10px;
    }
}