/* justincassano.com — style.css */
/* all spacing in units of 4px */

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

body {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", sans-serif;
    color: #000;
    background: #fff;
    max-width: 778px;
    margin: 0 auto;
    padding: 40px 40px 48px;
}

/* ---- links ---- */

a {
    color: #00e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- header / identity ---- */

header h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    text-transform: lowercase;
    margin-bottom: 12px;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

.contact {
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
}

.contact a {
    color: #000;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact a + a,
.contact a + span,
.contact span + a {
    margin-left: 24px;
}

.avatar {
    margin-bottom: 16px;
}

.avatar svg {
    width: 64px;
    height: auto;
}

/* ---- intro ---- */

.intro {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
}

/* ---- beliefs / manifesto ---- */

.beliefs {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
}

/* ---- projects ---- */

.projects-label {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
}

.projects {
    list-style: disc;
    padding-left: 28px;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
}

.projects li {
    margin-bottom: 0;
}

.projects a {
    color: #00e;
}

/* ---- footer ---- */

footer {
    margin-top: 24px;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
}

footer a {
    color: #00e;
}

footer .last-edit {
    font-style: italic;
}

/* ---- project page ---- */

.project-page {
    margin-bottom: 24px;
}

.project-page h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.36px;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.project-page .tagline {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    font-style: italic;
    margin-bottom: 24px;
}

.project-page .description {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
}

.project-page .description p {
    margin-bottom: 24px;
}

.project-page .description p:last-child {
    margin-bottom: 0;
}

/* ---- media on project pages ---- */

.media-block {
    margin: 24px 0;
}

.media-block img,
.media-block video {
    width: 100%;
    height: auto;
    display: block;
}

.media-block audio {
    width: 100%;
    display: block;
}

.media-block .caption {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    font-style: italic;
    margin-top: 8px;
}

/* ---- media grid ---- */

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.media-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- back link ---- */

.back {
    display: inline-block;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 24px;
    color: #00e;
}

/* ---- responsive ---- */

@media (max-width: 480px) {
    body {
        padding: 24px 16px 32px;
    }

    header h1 {
        font-size: 36px;
    }

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