@import url('https://fonts.googleapis.com/css2?family=Expletus+Sans:ital,wght@0,400..700;1,400..700&family=Martian+Mono:wdth,wght@75..112.5,100..800&family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&family=Oswald:wght@200..700&display=swap');

/*Imported Fonts: Oswald, Martian Mono, Expletus Sans, Noto Sans*/

/*-------------Global-------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --default-red: #bc000d;
    --burgondy: #7A010A;
    --mission-img: url(/img/outline-crow-crop3.webp);
    --header-img: url(/img/red-mountain.webp);
    --experience-img: url(/img/burgundy-crow.webp);
    --contact-img: url(/img/water-bird.webp);
}

body {
    background-color: var(--burgondy);
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Martian Mono", "Oswald";
}

p,
a {
    font-family: "Noto Sans", Arial;
}

a {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--default-red);
    border-radius: 0.55rem;
    background-color: #fff;
    color: var(--default-red);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus-visible {
    background-color: var(--default-red);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

header h1 {
    font-family: "Expletus Sans";
    font-size: 3rem;
    white-space: pre-line;
}

header {
    padding: 25% 5%;
    background-image: var(--header-img);
    background-size: cover;
    color: white;
}

/*----site navigation----*/
.site-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem;
}

.site-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-nav a {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.45rem 0.75rem;
    border-radius: 0.45rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background-color: #fff;
    color: var(--burgondy);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .site-nav {
        padding: 0.35rem 0.6rem;
    }

    .site-nav ul {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav a {
        padding: 0.35rem 0.6rem;
        font-size: 0.95rem;
    }
}

section {
    padding: 20% 5% 20% 5%;
    border-top: 1px solid black;
    background-color: white;
    transition: filter 0.25s ease;
    filter: brightness(0.86);
}

section:hover,
section:focus-within {
    filter: brightness(1);
}

/*----about----*/
#about {
    background-color: var(--burgondy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#about a {
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
}

#about a:hover,
#about a:focus-visible {
    background-color: #fff;
    color: var(--burgondy);
}

#about h2 {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.498);
}

#about img {
    width: min(45%, 420px);
    max-height: 70vh;
    border-radius: 1rem;
    height: auto;
    object-position: center;
    order: 2;
    flex-shrink: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.about-content {
    display: grid;
    gap: 0.75rem;
    max-width: 65ch;
}

@media (max-width: 900px) {
    #about {
        flex-direction: column;
        align-items: flex-start;
    }

    #about img {
        width: min(100%, 420px);
        max-height: none;
        order: 0;
    }
}

/*----vision----*/
#vision {
    text-align: right;
}

#vision h2 {
    color: var(--default-red);
}

/*----mission----*/
#mission {
    position: relative;
    color: #1f1f1f;
    background-image: var(--mission-img);
    background-size: cover;
}

#mission::before {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.84);
    inset: 0;
    pointer-events: none;
}

#mission > * {
    position: relative;
    z-index: 1;
}


/*----experience----*/
#experience {
    background-color: rgb(56, 56, 56);
    color: white;
}

#experience ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10%;
}

#experience li {
    margin-top: 1rem;
    flex: 1;
    min-width: 150px;
    max-width: clamp(180px, 22vw, 420px);
}

.experience-card {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    margin: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0);
    overflow: hidden;
    cursor: default;
}

.experience-card img {
    width: 80%;
    max-width: 80%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.experience-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88));
    color: white;
    font-size: 0.92rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.experience-card:hover img,
.experience-card:focus-visible img {
    opacity: 0.25;
    transform: scale(0.98);
}

.experience-card:hover figcaption,
.experience-card:focus-visible figcaption {
    opacity: 1;
    transform: translateY(0);
}

.experience-card:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/*----Weaponry----*/

#weaponry {
    position: relative;
    background-color: rgb(216, 214, 214);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.72)), url(/img/sword-snow.jpg);
    background-size: cover;
    background-position: center;
    filter: none;
}

#weaponry > * {
    position: relative;
    z-index: 1;
}

#weaponry h2,
#weaponry p {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

#weaponry .weaponry-skills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;
    max-width: 960px;
}

#weaponry .weaponry-skills li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#weaponry .weaponry-skills li:hover,
#weaponry .weaponry-skills li:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.56);
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
    #weaponry .weaponry-skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #weaponry .weaponry-skills {
        grid-template-columns: 1fr;
    }
}

/*----projects----*/
#projects {
    background-color: #111;
    color: white;
}

#projects > p {
    max-width: 70ch;
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

#projects .project-card {
    position: relative;
    display: block;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

#projects .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

#projects .project-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.1rem 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.96));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    line-height: 1.45;
    font-size: 0.95rem;
}

#projects .project-card:hover img,
#projects .project-card:focus-visible img {
    transform: scale(1.04);
    filter: brightness(0.42) blur(3px);
}

#projects .project-card:hover figcaption,
#projects .project-card:focus-visible figcaption {
    transform: translateY(0);
}

#projects .project-card:hover,
#projects .project-card:focus-visible {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 0 28px rgba(188, 0, 13, 0.36);
}

#projects .project-card--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(188, 0, 13, 0.92), rgba(0, 0, 0, 0.92));
}

#projects .project-card--placeholder figcaption {
    position: static;
    transform: none;
    background: none;
    padding: 1rem 1.25rem;
    text-align: center;
    font-family: "Martian Mono", "Oswald";
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#projects .project-card--placeholder:hover,
#projects .project-card--placeholder:focus-visible {
    transform: translateY(-2px);
}

#projects .project-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    #projects .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #projects .projects-grid {
        grid-template-columns: 1fr;
    }
}

/*----contact----*/
#contact {
    background-image: var(--contact-img);
    background-size: cover;
    color: white;
    text-shadow: 2px 2px 2px black;
}

#contact ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#contact a {
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.107);
}

#contact a:hover,
#contact a:focus-visible {
    background-color: #6b0000;
    color: #ffffff;
}

#webring a {
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
}

#webring a:hover,
#webring a:focus-visible {
    background-color: #fff;
    color: #1E1E1E;
}

/*----webring----*/
#webring {
    background-color: #1E1E1E;
    color: white;
    text-align: center;
}

footer {
    border-top: 1px solid black;
    color: rgb(189, 189, 189);
}

/*-------------Variables-------------*/

.subtext {
    font-style: italic;
    font-size: 0.80rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.062);
}

.tagline {
    font-family: "Oswald";
    font-size: 1.5rem;
    color: var(--burgondy);
}