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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background-image: url("../images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    margin-top: 10px;
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 22px 5vw;
    border-bottom: 1px solid rgba(23, 21, 20, 0.35);
    background: #CBBBA8;
    backdrop-filter: blur(18px);
}

.logo {
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: bolder;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.55;
}

#nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

#nav a {
    position: relative;
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: clamp(5px, 1vw, 11px);
    letter-spacing: 1.28pt;
    text-transform: uppercase;
    color: #68615a;
    transition: color 0.2s ease, transform 0.2s ease;
}

#nav a:hover,
#nav a.active {
    color: #171514;
}

#nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: #711c22;
}

.menuToggle {
    display: none;
    background: none;
    border: 0;
    font-size: 20.2px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .siteHeader {
        position: sticky;
        z-index: 1000;
        overflow: visible;
    }

    .logo,
    .menuToggle {
        position: relative;
        z-index: 1002;
    }

    .menuToggle {
        display: block;
    }

    #nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(23, 21, 20, 0.35);
        background: rgba(233, 228, 217, 0.97);
        backdrop-filter: blur(18px);
        z-index: 1001;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 26px;
        padding: 30px 26px;
        overflow-y: auto;
    }

    #nav.open {
        display: flex;
    }

    #nav a {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #171514;
    }
}

.banner {
    position: relative;
    min-height: calc(100vh - 80px);
    width: 100%;
    overflow: hidden;
}

.bannerImage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 0;
}

.bannerText {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: calc(100vh - 80px);
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    box-sizing: border-box;
}

.bannerText h1 {
    margin: 0 0 35px;
    max-width: 750px;
    font-size: clamp(4.8rem, 13vw, 12rem);
    line-height: 0.78;
    letter-spacing: -0.085em;
    font-weight: 400;
    color: #E9DCC8;
}

.bannerText p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0;
    color: #F0E8DC;
    font-family: "Cormorant Garamond", serif;
}

.content {
    margin: 30px;
}

.contentHeadJourn {
    margin-bottom: 20px;
    letter-spacing: 0.08pt;
    color: #F0E8DC;
}

.contentHeadJourn h2 {
    color: #E9DCC8;
    font-family: "Bodoni Moda", serif;
}

.contentHeadJourn p,
.contentHeadJourn button {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    margin-right: 10px;
}

.contentHeadJourn button {
    border: 0;
    border-radius: 10px;
    padding: 6px 12px;
    letter-spacing: 0.08pt;
    font-size: 14px;
    background: #F0E8DC;
    color: #171514;
    cursor: pointer;
}

.journPreview {
    display: flex;
    flex-direction: row;
    overflow: auto;
    margin-bottom: 70px;
    gap: 20px;
    width: 100%;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.08pt;
    color: #F0E8DC;
}

.contentPrevJourn {
    flex: 1;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: background 0.5s ease, padding 0.5s ease, transform 0.5s ease;
}

.contentPrevJourn:hover {
    background: #68615a;
    border-radius: 20px;
    padding: 10px;
}

.contentPrevJourn img {
    display: block;
    margin-inline: auto;
    width: clamp(200px, 33vw, 350px);
    height: clamp(200px, 33vw, 250px);
    object-fit: cover;
}

.contentPrevJourn p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.galleryPrev {
    display: flex;
    flex-direction: row;
    overflow: auto;
    gap: 20px;
    width: 100%;
    flex: 1;
    min-width: 200px;
}

.contentHeadGallery {
    margin-bottom: 20px;
    letter-spacing: 0.08pt;
    color: #F0E8DC;
}

.contentHeadGallery h2 {
    color: #E9DCC8;
    font-family: "Bodoni Moda", serif;
}

.contentHeadGallery p,
.contentHeadGallery button {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    margin-right: 10px;
}

.contentHeadGallery button {
    border: 0;
    border-radius: 10px;
    padding: 6px 12px;
    letter-spacing: 0.08pt;
    font-size: 14px;
    background: #F0E8DC;
    color: #171514;
    cursor: pointer;
}

.contentPrevGallery {
    flex: 1;
    min-width: 200px;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    transition: background 0.5s ease, border-radius 0.5s ease;
}

.contentPrevGallery:hover {
    background: #68615a;
    border-radius: 20px;
}

.contentPrevGallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contentPrevGallery:hover img {
    transform: scale(1.05);
}

.journalSelection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.journalEntry {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 10px;
    letter-spacing: 0.08pt;
    color: #F0E8DC;
    font-family: "Cormorant Garamond", serif;
    width: 60vw;
}

.journalEntry .spotifyEmbed {
    margin-top: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

.spotifyEmbed iframe {
    display: block;
    width: 300px;
    height: 250px;
    border: none;
}

.journalEntry.gaming {
    flex-direction: row;
}

.journalEntry.film {
    flex-direction: row;
}

.journalEntry.film .imageCarousel {
    margin-right: 20px;
}

.imageCarousel {
    position: relative;
    width: 45%;
    height: 280px;
    margin-left: 30px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.carouselTrack {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carouselTrack img {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imageCarousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    background: rgba(23, 21, 20, 0.65);
    color: #F0E8DC;
    cursor: pointer;
    transition: background 0.3s ease;
}

.imageCarousel button:hover {
    background: #711c22;
}

.imageCarousel button:disabled {
    opacity: 0.35;
    cursor: default;
}

.carouselPrev {
    left: 10px;
}

.carouselNext {
    right: 10px;
}

.carouselCounter {
    position: absolute;
    bottom: 12px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(23, 21, 20, 0.65);
    color: #F0E8DC;
    font-family: "Courier New", monospace;
    font-size: 11px;
}

@media (max-width: 768px) {
    .journalEntry {
        flex-direction: column;
        width: 90%;
        gap: 20px;
    }

    .journalEntry.gaming,
    .journalEntry.film {
        flex-direction: column;
    }

    .imageCarousel {
        width: 100%;
        height: 250px;
        margin: 0;
    }

    .journalEntry.film .imageCarousel {
        margin-right: 0;
    }

    .spotifyEmbed iframe {
        max-width: 100%;
    }
}

.galleryHeader {
    text-align: center;
    margin: 50px 0 40px;
}

.galleryHeader h1 {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #F0E8DC;
    letter-spacing: 0.15em;
}

.galleryMasonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    align-items: start;
    gap: 20px;
    width: 95%;
    max-width: 1500px;
    margin: 3% auto 6%;
}

.galleryCard {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    background: #171514;
    cursor: pointer;
    overflow: hidden;
}

.galleryCard.landscape {
    grid-column: span 2;
}

.galleryCard img,
.galleryCard video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.galleryCard > span:not(.playIcon) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: #F0E8DC;
    background: rgba(23, 21, 20, 0.75);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galleryCard:hover > span:not(.playIcon),
.galleryCard:focus-visible > span:not(.playIcon) {
    opacity: 1;
}

.galleryCard .playIcon {
    position: absolute;
    top: 50%;
    left: 50%;
    bottom: auto;
    width: auto;
    padding: 0;
    transform: translate(-50%, -50%);
    color: #F0E8DC;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
}

.imageViewer,
.videoViewer {
    width: 85%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(240, 232, 220, 0.3);
    background: #171514;
    color: #F0E8DC;
}

.imageViewer[open],
.videoViewer[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imageViewer::backdrop,
.videoViewer::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.viewerContent,
.videoViewerContent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 25px;
}

.viewerImage {
    display: block;
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 75%;
    max-height: 75vh;
    object-fit: contain;
}

.viewerVideo {
    display: block;
    flex-shrink: 0;
    width: 75%;
    height: auto;
    max-height: 80vh;
    aspect-ratio: 16 / 9;
    border: 0;
}

.viewerSide {
    position: relative;
    flex: 1;
    min-width: 150px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
}

.viewerClose {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    color: #F0E8DC;
    font-size: 2rem;
    cursor: pointer;
}

.viewerCaption {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

.viewerPrev,
.viewerNext {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(240, 232, 220, 0.4);
    border-radius: 50%;
    background: rgba(23, 21, 20, 0.7);
    color: #F0E8DC;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.viewerPrev:hover,
.viewerNext:hover {
    background: #711c22;
    border-color: #711c22;
}

.viewerPrev:disabled,
.viewerNext:disabled {
    opacity: 0.3;
    cursor: default;
}

.viewerCounter {
    margin-top: 12px;
    font-family: "Courier Prime", monospace;
    font-size: 0.75rem;
    color: #CBBBA8;
}

@media (max-width: 700px) {
    .galleryMasonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 92%;
    }

    .imageViewer,
    .videoViewer {
        width: 95%;
    }

    .viewerContent {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px;
    }

    .viewerImage {
        max-width: calc(100% - 104px);
        max-height: 65vh;
    }

    .viewerPrev,
    .viewerNext {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .viewerSide {
        flex-basis: 100%;
        min-width: 0;
        min-height: 60px;
        padding-top: 35px;
    }

    .videoViewerContent {
        flex-direction: column;
        align-items: center;
        max-height: 90vh;
        overflow-y: auto;
    }

    .viewerVideo {
        width: 100%;
        max-height: 65vh;
    }

    .videoViewerContent .viewerSide {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .galleryMasonry {
        grid-template-columns: 1fr;
    }

    .galleryCard.landscape {
        grid-column: span 1;
    }
}

.galleryCard img[hidden] {
    display: none;
}

.profilePage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px 80px;
}

.profilePaper {
    width: 100%;
    max-width: 950px;
    padding: clamp(25px, 6vw, 70px);
    background: #E9DCC8;
    color: #171514;
    border: 1px solid rgba(23, 21, 20, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    font-family: "Cormorant Garamond", serif;
}

.profileHeader {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(23, 21, 20, 0.35);
}

.profileLabel,
.profileSectionLabel {
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #711c22;
}

.profileHeader h1 {
    margin: 15px 0 8px;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.profileSubtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #68615a;
}

.profileIntro {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 35px;
    margin-bottom: 50px;
}

.profilePhoto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #CBBBA8;
}

.profilePhoto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profileIntroduction h2,
.profileDetails h2,
.profileInterests h2 {
    margin: 12px 0 15px;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.profileIntroduction > p:last-child {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
}

.profileDetails {
    padding: 30px 0;
    margin-bottom: 25px;
    border-top: 1px solid rgba(23, 21, 20, 0.35);
    border-bottom: 1px solid rgba(23, 21, 20, 0.35);
}

.profileInfo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 40px;
    margin-top: 25px;
}

.profileInfo span {
    display: block;
    margin-bottom: 6px;
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: #711c22;
}

.profileInfo p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.profileInterests {
    margin-top: 35px;
}

.interestList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.interestList span {
    padding: 9px 13px;
    border: 1px solid rgba(23, 21, 20, 0.4);
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    transition: background 0.3s ease, color 0.3s ease;
}

.interestList span:hover {
    background: #711c22;
    color: #F0E8DC;
}

.profileFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 55px;
    padding-top: 15px;
    border-top: 1px solid rgba(23, 21, 20, 0.35);
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #68615a;
}

@media (max-width: 600px) {
    .profilePage {
        padding: 25px 12px 50px;
    }

    .profileIntro {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .profilePhoto {
        max-width: 350px;
        margin: 0 auto;
    }

    .profileInfo {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profileFooter {
        flex-direction: column;
        align-items: flex-start;
    }
}

.viewButton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #711c22;
    color: #e9e4d9;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.viewButton:hover {
    background-color: #171514;
}