/* ============================================
   J.B. EXTE
   VISUAL SYSTEM
============================================ */


/* ============================================
   VARIABLES
============================================ */

:root {

    /* BG */
    --black: #12100e;
    --black-soft: #181512;
    --gray-dark: #211e1a;
    --gray: #35302b;
    --gray-light: #777168;

    /* Paper */
    --paper: #d8d5c7;
    --paper-dim: #a39f91;

    /* Accent system */
    --red: #992F29;
    --green: #88AB4F;
    --yellow: #D9C638;

    --max-width: 1250px;
}


/* ============================================
   RESET
============================================ */

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


html {
    scroll-behavior: smooth;
    background: var(--black);
}


body {
    background:
        radial-gradient(
            ellipse at 20% 10%,
            rgba(153, 47, 41, 0.055),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 80% 70%,
            rgba(136, 171, 79, 0.025),
            transparent 45%
        ),
        var(--black);

    color: var(--paper);

    font-family:
        "Courier New",
        Courier,
        monospace;

    line-height: 1.5;

    overflow-x: hidden;
}


/* Subtle CRT / scanline texture */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 1000;

    opacity: 0.055;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            #ffffff 3px
        );

    mix-blend-mode: screen;
}


body::after {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 999;

    opacity: 0.025;

    background-image:
        radial-gradient(
            circle at 20% 30%,
            #ffffff 0 0.5px,
            transparent 0.8px
        );

    background-size: 5px 5px;

    mix-blend-mode: overlay;
}


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


button,
input,
textarea {
    font: inherit;
}


/* ============================================
   FRAME
============================================ */

.site-frame {
    width: min(var(--max-width), 94%);

    margin: 0 auto;

    border-left: 1px solid var(--green);
    border-right: 1px solid var(--gray);

    position: relative;
}


/* ============================================
   TOP INTERFACE
============================================ */

.top-interface {
    position: absolute;

    top: 18px;
    left: 25px;
    right: 25px;

    display: flex;

    justify-content: space-between;

    z-index: 20;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.14em;
}


.system-status {
    display: flex;

    align-items: center;

    gap: 8px;
}


.status-dot {
    width: 6px;
    height: 6px;

    background: var(--green);

    display: inline-block;

    box-shadow:
        0 0 8px rgba(136, 171, 79, 0.45);
}


/* ============================================
   MENU BUTTON
============================================ */

.menu-toggle {
    position: fixed;

    top: 22px;
    right: 28px;

    width: 45px;
    height: 45px;

    background: var(--black-soft);

    border: 1px solid var(--red);

    cursor: pointer;

    z-index: 200;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.menu-toggle:hover {
    border-color: var(--green);

    background: #1b1915;
}


.menu-toggle span {
    width: 18px;
    height: 1px;

    background: var(--paper);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}


.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* ============================================
   MENU
============================================ */

.menu {
    position: fixed;

    top: 22px;
    right: 28px;

    width: 270px;

    padding: 80px 25px 25px;

    background:
        linear-gradient(
            135deg,
            #1b1815,
            #100f0d
        );

    border: 1px solid var(--gray);

    z-index: 150;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-10px)
        scale(0.98);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    box-shadow:
        12px 12px 0 rgba(0, 0, 0, 0.4);
}


.menu.open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.menu-header {
    display: flex;

    justify-content: space-between;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.2em;

    border-bottom: 1px solid var(--gray);

    padding-bottom: 12px;

    margin-bottom: 10px;
}


.menu-header span {
    color: var(--red);
}


.menu a {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 17px 5px;

    border-bottom: 1px solid #2b2722;

    font-size: 12px;

    letter-spacing: 0.18em;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.menu a span {
    color: var(--gray-light);

    font-size: 11px;
}


.menu a:hover {
    color: var(--green);

    padding-left: 12px;
}


.menu-footer {
    color: #4d4841;

    font-size: 11px;

    letter-spacing: 0.15em;

    margin-top: 20px;
}


/* ============================================
   HERO
============================================ */

.hero {
    min-height: 80vh;

    padding:
        120px
        60px
        40px;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border-bottom: 1px solid var(--gray);
}


.hero-background-text {
    position: absolute;

    right: -40px;

    bottom: 100px;

    font-family: Arial, sans-serif;

    font-size: clamp(50px, 11vw, 160px);

    font-weight: 900;

    letter-spacing: -0.08em;

    color:
        rgba(216, 213, 199, 0.025);

    white-space: nowrap;

    transform:
        rotate(-90deg);

    transform-origin:
        right bottom;

    pointer-events: none;
}


.hero-meta {
    display: flex;

    justify-content: space-between;

    width: 75%;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.2em;
}


.hero-meta span:first-child {
    color: var(--red);
}


.hero h1 {
    position: relative;

    margin-top: 35px;

    font-family:
        Arial Narrow,
        Arial,
        sans-serif;

    font-size:
        clamp(5rem, 16vw, 13rem);

    font-weight: 900;

    line-height: 0.72;

    letter-spacing: -0.1em;

    text-transform: uppercase;

    color: var(--paper);
}


.hero h1 span {
    display: block;

    margin-left: 8vw;

    color: transparent;

    -webkit-text-stroke:
        1px
        var(--paper);
}


.hero-bottom {
    display: flex;

    justify-content: flex-end;

    align-items: end;

    margin-top: 35px;
}


.hero-index {
    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.16em;

    text-align: right;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.hero-index span:last-child {
    color: var(--green);
}


.hero-corner {
    position: absolute;

    color: var(--gray-light);

    font-size: 15px;
}


.hero-corner-tl {
    top: 105px;
    left: 25px;
}


.hero-corner-tr {
    top: 105px;
    right: 25px;
}


.hero-corner-bl {
    bottom: 20px;
    left: 25px;

    color: var(--red);
}


.hero-corner-br {
    bottom: 20px;
    right: 25px;
}


/* ============================================
   SECTIONS
============================================ */

.section {
    padding:
        65px
        60px;

    border-bottom: 1px solid var(--gray);

    position: relative;
}


.section-marker {
    display: flex;

    gap: 15px;

    align-items: center;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.2em;

    margin-bottom: 45px;
}


.section-marker span {
    color: var(--red);
}


/* ============================================
   ABOUT
============================================ */

.about-layout {
    display: grid;

    grid-template-columns:
        1fr
        2fr;

    gap: 60px;
}


.about-index {
    color: #5a544c;

    font-size: 11px;

    letter-spacing: 0.16em;

    padding-top: 8px;
}


.bio {
    max-width: 720px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(1.25rem, 2.2vw, 1.8rem);

    line-height: 1.45;

    color: var(--paper);
}


.bio::first-word {
    color: var(--red);
}


.bio-footer {
    display: flex;

    gap: 30px;

    margin-top: 30px;

    padding-top: 15px;

    border-top: 1px solid var(--gray);

    font-family:
        "Courier New",
        monospace;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.15em;
}


/* ============================================
   BIBLIOGRAPHY
============================================ */

.bibliography-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 30px;
}


.small-label {
    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.2em;

    margin-bottom: 8px;
}


.bibliography-heading h2,
.contact-heading h2 {
    font-family:
        Arial Narrow,
        Arial,
        sans-serif;

    font-size:
        clamp(4rem, 10vw, 8rem);

    font-weight: 600;

    line-height: 0.8;

    letter-spacing: -0.09em;

    text-transform: uppercase;
}


.archive-number {
    color: var(--gray-light);

    font-size: 11px;

    line-height: 1.6;

    letter-spacing: 0.15em;

    text-align: right;
}


.bibliography-list {
    border-top: 1px solid var(--gray);
}


.bibliography {
    display: grid;

    grid-template-columns:
        70px
        1fr
        100px;

    gap: 30px;

    align-items: center;

    padding: 27px 10px;

    border-bottom: 1px solid var(--gray);

    position: relative;

    transition:
        background 0.25s ease,
        padding 0.25s ease;
}


.bibliography::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--yellow);

    transform:
        scaleY(0);

    transform-origin:
        bottom;

    transition:
        transform 0.25s ease;
}


.bibliography:hover {
    background: #1a1714;

    padding-left: 20px;
}


.bibliography:hover::before {
    transform:
        scaleY(1);
}


.bibliography-number {
    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.15em;
}


.bibliography-main h3 {
    font-family:
        Arial Narrow,
        Arial,
        sans-serif;

    font-size:
        clamp(1.8rem, 4vw, 3.5rem);

    font-weight: 600;

    line-height: 0.95;

    letter-spacing: -0.05em;

    text-transform: uppercase;
}


.bibliography-details {
    display: flex;

    gap: 25px;

    margin-top: 16px;

    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.15em;
}


.bibliography-details span:first-child {
    color: var(--red);
}


.bibliography-access {
    color: var(--gray-light);

    font-size: 11px;

    letter-spacing: 0.15em;

    text-align: right;
}


.bibliography-access span {
    color: var(--yellow);

    font-size: 15px;

    margin-left: 5px;
}


.bibliography:hover .bibliography-access {
    color: var(--paper);
}


/* ============================================
   CONTACT
============================================ */

.contact-layout {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 90px;
}


.contact-heading p {
    max-width: 390px;

    margin-top: 30px;

    color: var(--paper-dim);

    font-size: 12px;

    line-height: 1.8;
}


.contact-form {
    max-width: 600px;
}


.form-group {
    margin-bottom: 23px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--paper-dim);

    font-size: 11px;

    letter-spacing: 0.12em;
}


input,
textarea {
    width: 100%;

    background: #151310;

    border:
        1px solid
        var(--gray);

    color: var(--paper);

    padding: 13px;

    outline: none;

    border-radius: 0;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


input:focus,
textarea:focus {
    border-color: var(--green);

    background: #1b1814;
}


textarea {
    min-height: 150px;

    resize: vertical;
}


button[type="submit"] {
    border:
        1px solid
        var(--green);

    background: transparent;

    color: var(--green);

    padding:
        13px
        18px;

    cursor: pointer;

    font-size: 11px;

    letter-spacing: 0.18em;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


button[type="submit"] span {
    margin-left: 15px;

    font-size: 14px;
}


button[type="submit"]:hover {
    background: var(--green);

    color: #11100e;
}


.privacy-note {
    max-width: 500px;

    margin-top: 18px;

    color: #676158;

    font-size: 11px;

    line-height: 1.7;

    letter-spacing: 0.02em;
}


/* ============================================
   FOOTER
============================================ */

footer {
    min-height: 80px;

    padding:
        25px
        60px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    color: #5b554d;

    font-size: 11px;

    letter-spacing: 0.15em;
}


.footer-name {
    color: var(--red);
}


.social-links {
    display: flex;

    gap: 22px;

    align-items: center;
}


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


.social-links a:hover {
    color: var(--green);
}


/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 800px) {

    .site-frame {
        width: 96%;
    }


    .top-interface {
        left: 15px;
        right: 15px;
    }


    .menu-toggle {
        top: 17px;
        right: calc(2% + 10px);
    }


    .menu {
        top: 17px;
        right: calc(2% + 10px);

        width:
            min(350px, calc(100vw - (4% + 20px)));
    }


    .hero {
        min-height: 75vh;

        padding:
            105px
            25px
            30px;
    }


    /* Keep the decorative corner marks away from mobile text. */
    .hero-corner-tl,
    .hero-corner-tr {
        top: 72px;
    }


    .hero-corner-bl,
    .hero-corner-br {
        bottom: 7px;
    }


    .hero-corner-tl,
    .hero-corner-bl {
        left: 12px;
    }


    .hero-corner-tr,
    .hero-corner-br {
        right: 12px;
    }


    .hero-meta {
        width: 100%;
    }


    .hero h1 {
        font-size:
            clamp(4.2rem, 20vw, 8rem);

        margin-top: 50px;
    }


    .hero h1 span {
        margin-left: 10vw;
    }


    .hero-background-text {
        right: -70px;

        bottom: 70px;

        opacity: 0.7;
    }


    .hero-bottom {
        margin-top: 40px;
    }


    .section {
        padding:
            55px
            25px;
    }


    .section-marker {
        margin-bottom: 35px;
    }


    .about-layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .about-index {
        padding-top: 0;
    }


    .bio {
        font-size: 1.25rem;
    }


    .bio-footer {
        flex-wrap: wrap;
        gap: 10px 20px;
    }


	.bibliography-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.bibliography-heading h2,
	.contact-heading h2 {
		font-size:
			clamp(3rem, 15vw, 6rem);
		max-width: 100%;
	}

	.archive-number {
		padding-top: 0;
		text-align: left;
	}


    .bibliography {
        grid-template-columns:
            35px
            1fr
            55px;

        gap: 10px;

        padding:
            24px
            5px;
    }


    .bibliography:hover {
        padding-left: 10px;
    }


    .bibliography-main h3 {
        font-size:
            clamp(1.5rem, 8vw, 2.7rem);
    }


    .bibliography-details {
        flex-direction: column;

        gap: 5px;

        margin-top: 12px;
    }


    .bibliography-access {
        font-size: 11px;
    }


    .contact-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    footer {
        padding:
            25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;
    }


    .social-links {
        flex-wrap: wrap;

        gap: 15px;
    }

}


@media (max-width: 450px) {

    .system-status {
        display: none;
    }


    .hero {
        min-height: 70vh;
    }


    .hero h1 {
        font-size: 21vw;
    }


	.bibliography-heading h2 {
		font-size: 10.5vw;
		letter-spacing: -0.06em;
		white-space: nowrap;
	}


    .hero-description {
        font-size: 12px;
    }


    .bibliography {
        grid-template-columns:
            25px
            1fr
            45px;
    }


    .bibliography-number {
        font-size: 11px;
    }


    .bibliography-access span {
        display: block;

        margin-left: 0;

        margin-top: 3px;
    }

}