/*
Theme Name: Red Monk Creative
Description: Portfolio theme for Steve Monk.
Version: 1.0.7
Requires PHP: 7.4
Text Domain: red-monk
*/

@font-face{font-family:Poppins;src:url("assets/poppins-latin-200-normal.woff2") format("woff2");font-weight:200;font-display:swap}
@font-face{font-family:Poppins;src:url("assets/poppins-latin-300-normal.woff2") format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:Poppins;src:url("assets/poppins-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
:root {
    color-scheme: dark;
    --black: #111619;
    --charcoal: #23292b;
    --teal: #86c9b7;
    --white: #f4f4f2;
    --red: #d05f5d;
    --header-height: 74px;
    --admin-offset: 0px;
    --shell: 960px;
    --home-top: clamp(65px, 10vw, 148px);
    --inner-top: clamp(62px, 8vw, 76px);
    --subline-size: clamp(21px, 3.5vw, 32px);
    --hero-copy-gap: clamp(34px, 6vw, 45px);
    --prose-gap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    background: #15191c url("assets/background.jpg") center / cover fixed;
    color: var(--white);
    font: 400 16px/1.52 Poppins, sans-serif;
}
body.admin-bar { --admin-offset: 32px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.skip-link:focus { position: fixed; top: calc(var(--admin-offset) + 10px); left: 10px; padding: 10px 14px; z-index: 8; background: var(--black); }
.site-header {
    position: fixed;
    z-index: 5;
    top: var(--admin-offset);
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(18px, 3vw, 48px);
    gap: 16px;
    background: rgb(17 22 25 / 85%);
}
.wordmark { flex: none; display: flex; flex-direction: column; font-weight: 300; font-size: 24px; line-height: 1; text-decoration: none; }
.wordmark-dot { color: var(--teal); }
.wordmark small { color: var(--teal); font-size: 8px; letter-spacing: .35em; padding: 5px 0 0 2px; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 36px); }
.site-header nav a { text-decoration: none; font-size: 14px; font-weight: 300; white-space: nowrap; padding-block: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--teal); }
.wrap { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; flex: 1 0 auto; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 34px); }
.home-main { padding-block: var(--home-top) 100px; }
.hero { margin-bottom: clamp(58px, 8vw, 83px); }
.hero h1 span { color: var(--red); }
.subline { margin-top: 9px; color: #88b4ae; font-size: var(--subline-size); font-weight: 200; letter-spacing: .05em; line-height: 1.4; }
.hero-copy, .intro-aligned { max-width: 610px; }
.hero-copy { margin-top: var(--hero-copy-gap); color: #c8cacc; font-size: 17px; }
.hero-copy p + p, .prose p + p { margin-top: 1.35em; }
.read-more, .back { display: inline-block; text-decoration: none; font-weight: 300; }
.read-more { margin-top: clamp(42px, 7vw, 70px); font-size: 23px; }
.read-more:hover, .back:hover, .contact a:hover { color: var(--teal); }
.home-grid, .project-grid, .clips-multiple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-grid { gap: 38px 5.7%; }
.home-tile { display: block; background: var(--charcoal); }
.home-tile img { display: block; width: 100%; height: auto; }
.home-tile:hover, .project-card:hover { box-shadow: 0 0 0 1px var(--teal); }
.inner-main { padding-block: var(--inner-top) 94px; }
.intro:not(.intro-aligned) { max-width: 510px; margin: 0 auto; }
.intro-aligned { margin-inline: 0 auto; text-align: left; }
.prose { margin-top: var(--prose-gap); font-size: 15px; }
.project-grid { list-style: none; padding: 0; margin: clamp(94px, 15vw, 215px) 0 0; gap: 22px 18px; }
.project-card {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    padding: 20px;
    background: #464a4b;
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    text-underline-offset: .12em;
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.project-card:has(img)::before { position: absolute; inset: 0; content: ""; background: rgb(17 22 25 / 65%); z-index: -1; }
.back { margin-bottom: 28px; font-size: 14px; color: #a1c5bd; }
.clips { max-width: 770px; margin: 62px auto 0; }
.clips-multiple { max-width: none; gap: 28px 18px; }
.clips figure { margin: 0; min-width: 0; }
.clips video, .clips iframe { aspect-ratio: 16 / 9; width: 100%; display: block; border: 0; background: var(--black); }
.clips figcaption { padding-top: 10px; font-size: 14px; }
.clips figcaption span { color: #b1b9b6; font-size: 12px; }
.site-footer { margin-top: auto; background: var(--black); padding: 85px 0 96px; }
.contact { text-align: left; }
.contact h2 { font-size: 30px; }
.contact a { display: inline-block; margin-top: 26px; font-size: clamp(16px, 3.6vw, 24px); font-weight: 300; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 782px) { body.admin-bar { --admin-offset: 46px; } }
@media (max-width: 620px) {
    :root { --header-height: 62px; }
    body { background-attachment: scroll; }
    #wpadminbar { position: fixed; }
    .wordmark { font-size: 17px; }
    .wordmark small { font-size: 7px; }
    .site-header { gap: 9px; padding-inline: 14px; }
    .site-header nav { gap: clamp(8px, 3vw, 15px); }
    .site-header nav a { font-size: 11px; }
    .wrap { width: calc(100% - 40px); }
    .home-grid, .project-grid, .clips-multiple { grid-template-columns: minmax(0, 1fr); }
    .home-grid { gap: 25px; }
    .hero-copy { font-size: 15px; }
    :root { --prose-gap: 32px; }
    .project-grid { margin-top: 68px; }
    .site-footer { padding-block: 65px 76px; }
}

/* Entrance motion follows the Wix portfolio's original timing. */
@media (prefers-reduced-motion: no-preference) {
    .site-header nav:not(:focus-within) {
        animation: rmc-fade-in 1200ms cubic-bezier(.445, .05, .55, .95);
    }

    .rmc-hero-title,
    .hero-copy,
    .read-more:not(:focus-visible),
    .inner-main .intro > :where(h1, .prose, .back):not(:focus-within) {
        animation: rmc-rise-in 1200ms cubic-bezier(.445, .05, .55, .95);
    }

    @keyframes rmc-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes rmc-rise-in {
        from { opacity: 0; transform: translateY(60px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.home-tile { position: relative; container-type: inline-size; }

.tile-heading {
    position: absolute;
    top: 2.5%;
    left: 2%;
    font-size: 5.1cqw;
    font-weight: 300;
    line-height: 1.3;
}
@media (min-width: 621px) {
    .home-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 47.15%;
        justify-self: center;
    }
}

/* Keep photographic tiles clear until their titles are revealed. */
.project-card { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
    .project-card:has(img):not(:hover):not(:focus-visible) > span,
    .project-card:has(img):not(:hover):not(:focus-visible)::before { opacity: 0; }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
    .project-card.awaiting-title:not(:focus-visible) > span,
    .project-card.awaiting-title:not(:focus-visible)::before { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .project-card:has(img) > span, .project-card:has(img)::before {
        transition: opacity 1200ms cubic-bezier(.445, .05, .55, .95);
    }
}

/* Align collection text to the hero without changing the grid's flow position. */
.collection-main .intro {
    position: relative;
    top: calc(var(--home-top) - var(--inner-top));
}
.collection-main .prose {
    position: relative;
    top: calc(9px + 1.4 * var(--subline-size) + var(--hero-copy-gap) - var(--prose-gap));
}

.home-about {
    display: grid;
    place-items: center;
    aspect-ratio: 900 / 652;
    background: linear-gradient(125deg, #465553, #354143 55%, #2d3739);
    box-shadow: inset 0 0 0 1px var(--charcoal);
    text-decoration: none;
}
.home-about-title { font-size: clamp(24px, 5.1cqw, 32px); font-weight: 300; }

.home-tile .tile-heading {
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: clamp(24px, 5.1cqw, 32px);
    text-shadow: 0 1px 5px #111619, 0 0 12px #111619;
}

.home-tile {
    --reveal-timing: 1200ms cubic-bezier(.445, .05, .55, .95);
    --rmc-title-motion: rmc-rise-in var(--reveal-timing);
    overflow: hidden;
    isolation: isolate;
}
.home-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(0 0 0 / 52%);
    opacity: 1;
    pointer-events: none;
}
.home-tile > span { z-index: 2; }
.home-tile .home-about-title { position: relative; }
@media (prefers-reduced-motion: no-preference) {
    .home-tile::before { transition: opacity var(--reveal-timing); }
}
@media (hover: hover) and (pointer: fine) {
    .home-tile:not(:hover):not(:focus-visible)::before { opacity: 0; }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
    .home-tile.awaiting-title:not(:focus-visible)::before { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
    .home-tile:not(.home-about):not(:hover):not(:focus-visible) .tile-heading { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .home-tile:is(:hover, :focus-visible) > span { animation: rmc-rise-in 1200ms cubic-bezier(.445,.05,.55,.95); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
    .home-tile.awaiting-title:not(:focus-visible) > span { opacity: 0; }
    .home-tile:not(.awaiting-title) > span,
    .home-tile.awaiting-title:focus-visible > span { animation: var(--rmc-title-motion); }
}
