/* The section pages: home (three tiles), professional and games */
body {
    background-color: #f1e9d2;
    color: #2a2420;
}

.site-nav {
    background: maroon;
    height: 62px; /* a fixed height (style.css gives every nav 90px), so the tiles below can fill the rest exactly */
    box-sizing: border-box;
    padding: 0 24px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
.site-nav a {
    color: #f1e9d2;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a.here {
    color: #ffffff;
    border-bottom: 2px solid #f1e9d2;
}
.site-name {
    font-size: 28px;
    font-weight: 600;
}
.site-links {
    display: flex;
    gap: 24px;
    font-size: 20px;
}

/* home: three tall photo tiles, side by side; stacked on a phone */
.tiles {
    display: flex;
    height: calc(100vh - 62px);
    min-height: 480px;
}
.tile {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center top;
    color: #ffffff;
    overflow: hidden;
}
.tile:hover,
.tile:focus {
    color: #ffffff;
    text-decoration: none;
}
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}
.tile:hover::after {
    background: rgba(0, 0, 0, 0);
}
.tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 80px 28px 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.tile-label h2 {
    margin: 0 0 6px;
    font-size: 40px;
    font-weight: 600;
}
.tile-label p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

/* professional and games: one readable column */
.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    line-height: 1.6;
}
.page.wide {
    max-width: 960px;
}
.page h1 {
    font-size: 44px;
    margin-top: 0;
}
.page h2 {
    color: maroon;
    font-size: 28px;
    margin-top: 44px;
    border-bottom: 1px solid #d6c9a6;
    padding-bottom: 6px;
}
.page h3 {
    font-size: 20px;
    margin-top: 24px;
}
.page a {
    color: maroon;
    text-decoration: underline;
}
.page li {
    margin-bottom: 10px;
}
.lede {
    font-size: 22px;
}
.when {
    float: right;
    color: #7a6e5c;
    font-size: 18px;
    font-weight: normal;
}
.role {
    font-style: italic;
    color: #5a4e40;
}

.intro {
    display: flex;
    gap: 32px;
    align-items: center;
}
.headshot {
    width: 200px;
    height: 240px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    flex-shrink: 0;
}
.links {
    font-size: 18px;
}
.contact-note {
    margin-top: 44px;
    font-size: 20px;
}

.game img {
    width: 100%;
    border-radius: 6px;
    margin-top: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.buttons {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

/* the dark pages: art, games and contact */
body.dark {
    background-color: #232323;
    color: #cdcdcd;
}

/* art: the index stays open in a sidebar beside the page */
.art-layout {
    display: flex;
    align-items: flex-start;
}
.art-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 20px 16px 40px 24px;
    font-size: 15px;
    line-height: 1.35;
}
.art-category {
    color: #e0b0a0;
    font-weight: 600;
    margin-bottom: 14px;
}
.art-sidebar .indent {
    margin: 4px 0 0 12px;
    white-space: normal;
    font-weight: normal;
}
.art-sidebar .indent div {
    margin-bottom: 3px;
}
.art-sidebar a {
    color: #cdcdcd;
}
.art-sidebar a:hover {
    color: tomato;
    text-decoration: none;
}
.art-sidebar b {
    color: #ffffff;
    font-size: inherit;
}
.art-main {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 0 0;
}
/* style.css floats these for the old hamburger layout */
.art-main .art_content,
.art-main .artroot {
    float: none;
    width: auto;
    max-width: none;
    margin-bottom: 120px;
}

/* an art page on a light wall (see art.html) */
.art-main .art_content.light {
    background-color: #fbfaf6;
    color: #2a2420;
    border-color: #fbfaf6;
}
.art-main .art_content.light a {
    color: maroon;
}

/* games: the plain, dark look of the art pages */
.page.barebones h2 {
    color: inherit;
    border-bottom: none;
}
.page.barebones a {
    color: #4a9be0;
    text-decoration: none;
}
.page.barebones a:hover {
    text-decoration: underline;
}
.page.barebones .game img {
    border-radius: 0;
    box-shadow: none;
}

@media screen and (max-width: 700px) {
    .site-nav {
        height: 54px;
        padding: 0 14px;
        gap: 12px;
    }
    .site-name {
        font-size: 18px;
        white-space: nowrap;
    }
    .site-links {
        gap: 11px;
        font-size: 15px;
    }
    /* the three tiles share the screen below the bar */
    .tiles {
        flex-direction: column;
        height: calc(100svh - 54px);
        min-height: 420px;
    }
    .tile {
        min-height: 0;
    }
    .tile-label {
        padding: 40px 16px 14px;
    }
    .tile-label h2 {
        font-size: 30px;
    }
    .tile-label p {
        font-size: 15px;
    }
    /* art: the index sits above the page, in two columns */
    .art-layout {
        flex-direction: column;
    }
    .art-sidebar {
        flex: none;
        position: static;
        max-height: none;
        width: 100%;
        padding: 14px 16px 4px;
        columns: 2;
        column-gap: 16px;
        font-size: 14px;
    }
    .art-category {
        break-inside: avoid;
    }
    .art-main {
        padding: 0 12px;
    }
    .intro {
        flex-direction: column;
        align-items: flex-start;
    }
    .page h1 {
        font-size: 34px;
    }
    .when {
        float: none;
        display: block;
    }
}

/* the stepped "I'm a sculptor…" lines on /art/: smaller steps on a phone */
@media screen and (max-width: 700px) {
    .art-main .artroot .stair {
        padding-left: 20px;
    }
}
