@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Charm:wght@400;700&family=Space+Grotesk:wght@300..700&display=swap');

@font-face {
    font-family: "Super Normal";
    src: url("/assets/fonts/super-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg-deep: #222222;
    --bg-panel: #111111;
    --bg-header: #d9ff29;
    --bg-footer: #060606;
    --text-cream: #F4EAD4;
    --text-muted: #B8AA8A;
    --accent: #d9ff29;
    --key: #d9ff29;
    --header-bleed: 156px;
    --footer-bleed: 116px;
    --team-portrait-size: 160px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: 100%;
    background-color: var(--bg-footer);
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background: var(--bg-deep);
    color: var(--text-cream);
    font-family: 'Space Grotesk', sans-serif;

}

a {
    color: var(--accent);
    text-decoration-style: dashed;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 140ms ease, text-decoration-color 140ms ease;
    cursor: pointer;
}

a:hover,
a:focus-visible {
    color: orange;
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:focus-visible,
a[x-apple-data-detectors="true"],
a[x-apple-data-detectors="true"]:hover,
a[x-apple-data-detectors="true"]:focus-visible {
    color: inherit !important;
    text-decoration: inherit !important;
    font: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Super Normal', sans-serif;
    font-weight: normal;
    letter-spacing: 1.0;
}

#app-container {
    background-color: var(--bg-deep);
    margin: 0 auto;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 100%;
    min-height: 100svh;
    width: 100%;
}

.content-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.site-header {
    position: relative;
    z-index: 2;
    background-color: var(--bg-header);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: visible;
    padding: 10px 32px 0px;
}

.site-header-trim {
    z-index: 100;
    background-image: url("/assets/art/header-trim.webp");
    background-repeat: repeat-x;
    background-size: cover;
    height: 80px;
    margin-bottom: -80px;
}

.site-footer-trim {
    z-index: 100;
    background-image: url("/assets/art/footer-trim.webp");
    background-repeat: repeat-x;
    background-size: cover;
    height: 80px;
    margin-top: -80px;    
}

.site-header-trim-spacer,
.site-footer-trim-spacer {
    height: 70px;
}

.home-page-header {
    margin: 40px auto 20px;
    text-align: center;
}

.home-page-header img {
    max-width: 90%;
    max-height: 200px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-branding img {
    display: block;
    width: auto;
    height: 54px;
}

.site-header-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 18px;
}

.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    border: 0;
    background-color: black;
    cursor: pointer;
}

.site-menu-toggle-line {
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: white;
    transition: transform 140ms ease, opacity 140ms ease;
}

.site-menu-toggle-line:nth-child(1) {
    transform: translateY(-8px);
}

.site-menu-toggle-line:nth-child(3) {
    transform: translateY(8px);
}

.site-menu-open .site-menu-toggle-line:nth-child(1) {
    transform: rotate(45deg);
}

.site-menu-open .site-menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-menu-open .site-menu-toggle-line:nth-child(3) {
    transform: rotate(-45deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 16px;
}

.nav-link {
    display: inline-flex;
    transition: filter 140ms ease, transform 140ms ease;
}

.nav-link-inner {
    font-family: 'Super Normal', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 36px;
    padding: 0 22px 0 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 1.05vw, 1.35rem);
    letter-spacing: 0.04em;
    transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 10px) 100%, 0 100%, 0px 100%);
}

.nav-link:hover .nav-link-inner,
.nav-link:focus-within .nav-link-inner {
    color: white;
    transform: translateY(-2px);
}

.nav-link-active {
    transform: rotate(-1.2deg);
    filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.9));
}

.nav-link-active:hover {
    filter: drop-shadow(5px 7px 0 rgba(0, 0, 0, 0.9));
}

.nav-link-active .nav-link-inner {
    background-color: white;
    color: black;
}

.nav-link-active:hover .nav-link-inner,
.nav-link-active:focus-within .nav-link-inner {
    background-color: white;
    color: var(--bg-deep);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.social-links a {
    transition: fill 0.2s ease;
}

.social-links a:hover {
    fill: white;
}


.page-content {
    flex: 1 0 auto;
    width: 100%;
    line-height: 1.45rem;
}

.page-content-inner {
    padding: 20px 32px 20px;
}

.page-title {
    font-size: 2rem;
    line-height: 1;
}

.home-panels {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.home-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(330px, 42vw, 520px);
    padding: 64px max(24px, calc((100vw - 1200px) / 2 + 88px));
    background-color: var(--bg-panel);
}

.home-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-panel-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.home-panel-copy h1,
.home-panel-copy h2,
.home-panel-copy p {
    margin: 0;
}

.home-panel-copy h1,
.home-panel-copy h2 {
    max-width: 820px;
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);

    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.0;
    text-transform: uppercase;
}

.home-panel-copy p {
    max-width: 690px;
    margin-top: 22px;
    color: var(--text-cream);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.55;
}

.home-panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 30px;
    padding: 0 26px;
    background-color: var(--accent);
    color: black;
    font-family: 'Bowlby One', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.home-panel-button:hover,
.home-panel-button:focus-visible {
    background-color: var(--text-cream);
    color: black;
    transform: translateY(-2px);
}

.home-panel-intro {
    background: linear-gradient(80deg, rgba(10, 10, 10, 1.0), rgba(20, 20, 22, 1.0) 60%, rgb(30, 30, 32));
    /*background: linear-gradient(100deg, rgba(10, 10, 10, 1.0), rgba(17, 20, 10, 1.0) 60%, rgb(34, 39, 4));*/
}

.home-panel-game {
    gap: clamp(28px, 5vw, 76px);
    justify-content: flex-end;
    min-height: clamp(420px, 56.25vw, 680px);
    background:
        linear-gradient(100deg, rgba(0, 0, 0, 1.0), rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.9)),
        url("/assets/art/occult-cleanup-bg.webp");
    background-position: center;
    background-size: cover;
}

.home-panel-game-art {
    position: relative;
    z-index: 1;
    flex: 1 1 420px;
    width: min(42vw, 540px);
    max-width: 540px;
    max-height: min(600px, 48vw);
    align-self: flex-end;
    object-fit: contain;
}

.home-panel-game .home-panel-copy h1,
.home-panel-game .home-panel-copy h2 {
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.home-panel-game .home-panel-copy {
    /*flex: 0 1 620px;*/
    max-width: 620px;
}

.home-panel-discord {
    background: linear-gradient(60deg, rgba(16, 16, 20, 1.0) 66%, rgba(30, 30, 34, 1.0));
}

.games-page-header {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    margin-bottom: 36px;
}


.games-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 800px;
    padding: clamp(36px, 7vw, 96px) max(24px, calc((100vw - 1200px) / 2 + 88px));
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.76) 100%),
        url("/assets/art/occult-cleanup-hero-01.webp");
    background-position: center;
    background-size: cover;
}

.games-hero-copy {
    position: relative;
    z-index: 1;
}

.games-hero-copy h1 {
    margin: 0;
    color: white;
    font-size: clamp(3.0rem, 7vw, 6.0rem);
    line-height: 1.0;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.62);
    text-transform: uppercase;
}

.games-hero-copy p {
    margin: 20px 0px 15px;
    font-size: clamp(1.0rem, 7vw, 1.6rem);
    line-height: 1.2;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.62);
}

.games-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 28px;
    padding: 0 30px;
    background-color: var(--accent);
    color: black;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.games-hero-button:hover,
.games-hero-button:focus-visible {
    background-color: var(--text-cream);
    color: black;
    transform: translateY(-2px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
    align-items: stretch;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: calc(var(--team-portrait-size)/2);
}

.team-card-portrait-shell {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.team-card-portrait {
    display: block;
    width: var(--team-portrait-size);
    height: var(--team-portrait-size);
    border: 4px solid black;
    border-radius: 50%;
    background-color: #3A2C47;
    object-fit: cover;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.team-card-portrait-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-cream);
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    padding: calc((var(--team-portrait-size) / 2) + 20px) 20px 30px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    background: rgba(10, 10, 10, 1.0);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.team-card-name,
.team-card-role {
    margin: 0;
}

.team-card-name {
    font-family: 'Super Normal', sans-serif;
    font-size: 1.3rem;
    line-height: 1.1;
    text-align: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-card-summary {
    margin: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
}

.team-card-bio {
    margin-top: 18px;
    color: var(--text-cream);
}

.team-card-bio strong,
.team-card-bio b {
    color: var(--accent);
}

.site-footer {
    margin-top: auto;
    background-color: var(--bg-footer);
}

.site-rule {
    height: 2px;
    background-color: var(--accent);
}

.site-footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 32px;
    min-height: 112px;
    padding: 26px 88px;
}

.site-footer-meta,
.site-footer-tagline,
.site-footer-email {
    margin: 0;
}

.site-footer-meta,
.site-footer-email {
    color: var(--text-muted);
    font-size: clamp(0.68rem, 0.72vw, 0.9rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-footer-tagline {
    font-family: 'Bowlby One', sans-serif;
    color: var(--text-cream);
    font-size: clamp(0.95rem, 1.15vw, 1.45rem);
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
}

.site-footer-email {
    justify-self: end;
    text-decoration: none;
}

.site-footer-email:hover,
.site-footer-email:focus-visible {
    color: var(--text-cream);
}

@media (max-width: 1100px) {
    .site-footer-content {
        padding: 24px 32px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 52px;
    }
}

@media (max-width: 800px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .home-panel,
    .home-panel-game {
        min-height: auto;
    }

    .home-panel {
        padding-top: 64px;
    }

    .home-panel-game {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-panel-game-art {
        flex: none;
        width: min(100%, 440px);
        max-height: none;
        align-self: center;
    }

    .games-hero {
        min-height: 760px;
        padding: 48px 32px;
    }

    .site-footer-content {
        grid-template-columns: 1fr;
        align-items: flex-start;
        text-align: center;
    }

    .site-footer-tagline {
        text-align: center;
    }

    .site-footer-email {
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .site-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .site-menu-toggle {
        position: relative;
        display: inline-flex;
    }

    .site-header-menu {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-top: 8px;
    }

    .site-menu-open .site-header-menu {
        display: flex;
    }

    .home-panel-copy h1,
    .home-panel-copy h2 {
        font-size: clamp(1.7rem, 12vw, 2.7rem);
    }

    .home-panel-copy p {
        font-size: 1rem;
    }

    .games-hero {
        min-height: 620px;
        padding: 36px 18px;
        background-position: center;
    }

    .games-hero-button {
        width: 100%;
        max-width: 320px;
        padding: 0 20px;
        font-size: 0.92rem;
    }

    .team-grid {
        margin-top: 56px;
        gap: 44px;
    }

    .team-card-portrait {
        width: 120px;
        height: 120px;
    }

    .team-card-body {
        padding: 72px 22px 24px;
    }

    .brand-block {
        align-items: flex-start;
        gap: 18px;
    }

    .brand-mark {
        width: 72px;
        height: 72px;
    }

    .brand-mark-face {
        font-size: 1.4rem;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        gap: 16px;
        justify-content: flex-start;
    }

    .nav-link,
    .nav-link-inner {
        width: 100%;
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }

    .brand-copy h1 {
        white-space: normal;
    }

    .site-footer-content {
        gap: 18px;
    }

    .site-footer-meta,
    .site-footer-email {
        letter-spacing: 0.11em;
    }
}
