/* Homepage (layouts/index.html, <body class="home">): IBM Plex Sans, and the projects as rows with their
   app icons. Keeps the site's link colours, header and dark mode from custom.css. */

.home { --muted: #8a8a8a; }
[data-theme="dark"] .home { --muted: #8f8f8f; }

.home .main-content { justify-content: center; min-height: auto; padding: 8.5rem clamp(1.5rem, 6vw, 6rem) 3rem; }
.home .content-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}
.home .content-wrapper p { margin: 0; }
.home .lede {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}
.home .about p + p { margin-top: 1em; }

.home .projects { margin-top: 3.25rem; }
.home .current-projects {
    margin: 0 0 1rem;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
}

/* Each project: a softly shaded row with a hairline border. No hover state: the row itself isn't a link. */
.home .project {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 -.9rem .75rem;
    padding: 1.1rem .9rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--text-color) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-color) 7%, transparent);
}
.home .project p { font-size: 17px; line-height: 1.65; padding-top: .1rem; }
.home .project .gradient-link { font-weight: 500; }

/* Icons: one, or two overlapping for a pair of apps */
.home .project-icons { position: relative; width: 64px; height: 58px; }
.home .project-icons img {
    position: absolute; left: 0; top: 0;
    display: block; width: 42px; height: 42px;
    border-radius: 22.5%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.home .project-icons img + img { left: 22px; top: 16px; outline: 3px solid var(--bg-color); }
.home .project-icons img:only-child { width: 52px; height: 52px; }
.home .project-icons .icon-tile { background: #fff; padding: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .12); }

@media (max-width: 600px) {
    .home .main-content { padding: 6.5rem 1.25rem 2rem; }
    .home .content-wrapper { font-size: 17px; }
    .home .project { grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; margin-left: 0; margin-right: 0; padding: 1rem .85rem; }
    .home .project-icons { width: 56px; height: 52px; }
    .home .project-icons img { width: 40px; height: 40px; }
    .home .project-icons img + img { left: 16px; top: 12px; }
    .home .project-icons img:only-child { width: 48px; height: 48px; }
}
