@charset "UTF-8";

/* ===== Reset (kept) ===== */

html,
body {
    height: 100%;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: top;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul,
li {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: #0000;
    text-decoration: none;
}

ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: 700;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
    outline: none;
}

a:focus {
    outline: 0;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    background-color: #fff !important;
}

body,
header,
main,
footer,
section,
div,
iframe,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
p,
li,
a {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ===== Base ===== */

body {
    /* BG caps at 834px, centered */
    background: #000 url(../img/bg.jpg) center top / clamp(320px, 100vw, 834px) auto no-repeat;
    position: relative;
    z-index: 0;
    color: #fff;
    padding: 1rem;
    font-family: Helvetica, sans-serif;
    font-weight: 400;
}
@font-face{
	font-family: 'zombies';
	src: url('../fonts/zombies.TTF') format('truetype');
}
h1,
h2,
h3 {
	margin-bottom: 1.5rem;
	color: #B00000;
	font-family: "zombies", sans-serif;

}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}


/* Cap and center content to align with BG */

header,
main {
    max-width: 834px;
    margin-inline: auto;
}

header {
    margin-bottom: -2rem;
    position: relative;
    display: block;
    z-index: 2;
}

header #branding img {
    width: 70%;
    display: block;
    margin-top: 3rem;
}


/* ===== Row wrapper → FLEX (stack on mobile) ===== */

.row {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}


/* ===== Hero ===== */

main section#hero {
    /* background: url(../img/bg-video.png) center top / contain no-repeat; */
    position: relative;
}

main section#hero iframe {
    inline-size: min(100%, clamp(320px, 90vw, 1200px));
    aspect-ratio: 16/9;
    display: block;
    border: .5rem solid #C3A67A;
    margin: 1rem auto;
}

main section#hero #zombie-girl-1 {
    pointer-events: none;
    position: absolute;
    left: 25%;
    top: 0;
    margin-top: -2.25rem;
    background: url("../img/zombie-girl-1.png") center top / contain no-repeat;
    inline-size: min(100%, clamp(80px, 90vw, 120px));
    aspect-ratio: 16/9;
    display: block;
}


/* ===== Available (small internal grid kept) ===== */

main #available {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: .75rem;
    margin-bottom: 4rem;
}

main #available .available1 {
    grid-area: 1 / 1 / 2 / 2;
    text-align: center;
}

main #available .available2 {
    grid-area: 1 / 2 / 2 / 3;
    text-align: center;
}

main #available .available3 {
    grid-area: 2 / 1 / 3 / 3;
}

main #available .available1 img,
main #available .available2 img,
main #available .available3 img {
    width: 100%;
    height: auto;
}

main #available .available1,
main #available .available2 {
    max-height: 30vh;
}

main #available .available2 img {
    width: 75%;
    height: auto;
}

#available .available3 {
    margin-top: .75rem;
}


/* ===== Concept Art (KEEP AS GRID) ===== */

main section#art {
    margin-bottom: 3rem;
}

main section#art #gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

main section#art #gallery li {
    position: relative;
    overflow: hidden;
}

main section#art #gallery li img {
    width: 100%;
    display: block;
}

section#art h2 {
    margin-bottom: 1rem;
}


/* hover overlay */

main section#art #gallery li::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity .2s ease-in-out;
    background: url(../img/gallery-hover.png) center/contain no-repeat, rgba(0, 0, 0, .18);
    pointer-events: none;
}

main section#art #gallery li:hover::after,
main section#art #gallery li:focus-within::after {
    opacity: 1;
}

main section#art #gallery li>a {
    display: block;
}


/* ===== About ===== */

main section#about {
    text-align: center;
}

main section#about p {
    text-align: left;
}

main section#about img {
    inline-size: min(100%, clamp(250px, 90vw, 400px));
}


/* ===== Footer ===== */

footer {
    background: url(../img/bg-footer.png) bottom center / 50% 50% repeat-x;
    margin: 1rem -1rem;
    padding: 3rem 1rem 0;
    height: 82px;
}


/* ===== Tablet (834px) — FLEX layout rules ===== */

@media (min-width: 834px) {
    body {
        padding: 2rem;
    }
    header {
        margin-bottom: -3rem;
    }
    header #branding img {
        width: 60%;
        margin-top: 2.25rem;
    }
    /* Rows become horizontal */
    .row {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        margin-top: 4.5rem;
    }
    /* First row: Concept Art LEFT, Available RIGHT (regardless of source order) */
    .row>#art {
        order: 1;
        flex: 1 1 0;
        /* fill remaining space on the left */
        min-width: 0;
        /* prevent overflow */
    }
    .row>#available {
        order: 2;
        flex: 0 0 460px;
        /* fixed visual width like the mock */
        align-self: flex-start;
        margin-left: auto;
        margin-top: -3.25rem;
        margin-bottom: 0;
        padding-top: 3rem;
    }
    #available {
        gap: 1rem;
    }
    #available .available3 {
        margin-top: -4.5rem;
    }
    /* Make art thumbs breathe a bit more on tablet */
    main section#art #gallery {
        gap: 1.25rem;
    }
    section#art #gallery {
        gap: 1.25rem;
    }
    /* Second row (About): big image LEFT, copy RIGHT */
    .row:last-of-type>section:not(#about) {
        order: 1;
        flex: 0 0 48%;
        align-self: flex-end;
        margin-top: -1.25rem;
    }
    .row:last-of-type>#about {
        order: 2;
        flex: 1 1 0;
        text-align: left;
        margin-top: -0.5rem;
    }
    /* Keep About paragraphs single-column on the right */
    #about p {
        column-count: 1;
        column-gap: 0;
    }
    #about h1 {
        margin-bottom: 0.75rem;
    }
    #about p {
        max-width: 46ch;
    }
    /* Footer tweak */
    footer {
        margin: 2rem -2rem 0;
        background-size: 33% auto;
    }
}