/* Reset and base styles */
:root { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
  :root { font-family: 'Inter var', sans-serif; }
}

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

body {
    background-color: #1c1c1c;
    color: #ffffff;
    min-height: 100vh;
    font-feature-settings: 'tnum' on, 'zero' on;
    margin-left: 20px;
    margin-right: 20px;
}

.hero-header {
    width: 100%; /* Span full width within body margins */
    height: 164px;
    overflow: hidden; /* Hide parts of image that overflow due to object-fit */
    border-radius: 20px;
    margin-top: 40px; /* Add space above the header */
    margin-bottom: 40px; /* Add some space below the header */
}

.hero-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if needed */
    display: block; /* Remove extra space below image */
    filter: contrast(0.9);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 40px; /* Removed top padding, kept sides/bottom */
}

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(auto, 1fr) minmax(auto, 600px);
    gap: 120px;
    justify-content: space-between;
}

.right-column {
    max-width: 600px;
}

/* Typography */
h1 {
    font-size: 90px;
    line-height: 84px;
    letter-spacing: -3px;
    font-weight: 600;
    margin-bottom: 20px;
}

.subtitle p {
    font-size: 54px;
    line-height: 54px;
    letter-spacing: -1px;
    font-weight: 600;
    margin-bottom: 30px;
}

h2 {
    font-size: 54px;
    line-height: 54px;
    letter-spacing: -1px;
    font-weight: 600;
    color: #9f9f9f;
    margin-bottom: 30px;
}

.description {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.5px;
    font-weight: 500;
    max-width: 400px;
    margin-top: 70px;
    padding-left: 10px;
    position: relative;
}

.description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ffffff;
}

.info-section p {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 20px;
}

.info-section h3 {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -1px;
    font-weight: 600;
    color: #9f9f9f;
}

.banner-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c3ff63;
    padding: 2px 10px;
    line-height: 1;
    border-radius: 7.5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* Links and Labels */
.archived-images,
.archived-video,
.external-links {
    position: relative;
    padding-top: 10px;
}

.archived-images::before,
.archived-video::before,
.external-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffffff;
}

.archived-images h3,
.archived-video h3,
.external-links h3 {
    font-size: 14px;
    line-height: 15px;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
}

.label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c3ff63;
    padding: 2px 10px;
    line-height: 1;
    border-radius: 7.5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    vertical-align: middle;
    margin-left: 8px;
}

/* Navigation Links */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

nav a {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.5px;
    font-weight: 500;
    border-radius: 20px;
}

/* External Links */
.external-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

a:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: none;
}

/* Change link label color on hover */
a:hover .link-label {
    color: #1a1a1a; /* Match link text color on hover */
}

/* Link Type Colors */
.link-label {
    color: #9f9f9f;
}

/* Sections */
.info-section {
    margin-bottom: 40px;
}

hr {
    border: none;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #9f9f9f 0,
        #9f9f9f 4px,
        transparent 4px,
        transparent 6px
    );
    margin: 10px 0;
}

/* Footer Styles */
footer {
    margin-top: 160px;
}

.binary-footer {
    font-size: 24px;      /* Match .info-section p */
    line-height: 30px;     /* Match .info-section p */
    letter-spacing: 0.5px; /* Match .info-section p */
    font-weight: 500;     /* Keep from .info-section h3 match */
    color: #9f9f9f;       /* Keep from .info-section h3 match */
    word-break: break-all;
}

/* Style the label specifically inside the footer */
footer .label {
    background-color: transparent;
    border: none; /* No border by default/on desktop */
    color: #9f9f9f;
}

@media (max-width: 1350px) {
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .right-column {
        max-width: 100%;
    }

    .description {
        max-width: 100%;
    }

    h1 {
        font-size: 70px;
        line-height: 66px;
        letter-spacing: -2px;
    }

    h2, .subtitle p {
        font-size: 42px;
        line-height: 42px;
        letter-spacing: -1px;
    }
}

/* Mobile Styles */
@media (max-width: 1024px) {
    body {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-header {
        margin-top: 30px; /* Adjust top margin for mobile */
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 120px;
    }

    .right-column {
        max-width: 100%;
    }

    h1 {
        font-size: 50px;
        line-height: 50px;
        letter-spacing: -1.2px;
        margin-bottom: 20px;
    }

    h2, .subtitle p {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.2px;
    }

    .subtitle p {
        margin-bottom: 20px;
    }

    h2 {
        margin-bottom: 30px;
    }

    .description {
        max-width: 100%;
        margin-top: 20px;
        padding-left: 0;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .description::before {
        display: none;
    }

    .info-section {
        margin: 0;
        margin-top: -120px;
    }

    .info-section p {
        font-size: 15.99px !important; /* Workaround for mobile landscape rendering issue */
        line-height: 22px;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .info-section h3 {
        margin-top: 20px;
        margin-bottom: 80px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    nav a {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0.5px;
        padding: 10px 20px;
        border-radius: 20px;
    }

    .external-links-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .archived-images h3,
    .archived-video h3,
    .external-links h3 {
        font-size: 12px;
        line-height: 15px;
    }

    .label {
        font-size: 10px;
        line-height: 15px;
        font-weight: 600;
    }

    .binary-footer {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0.5px;
        font-weight: 500;
    }

    footer {
        margin-top: 80px;
        margin-bottom: 10px;
    }

    /* Add border to footer label only on mobile */
    footer .label {
        background-color: #9f9f9f;
        color: #000000;
        display: block; /* Make it a block to go to a new line */
        margin-left: 0; /* Remove default left margin */
        margin-top: 8px; /* Add some space above the tag */
        width: fit-content; /* Make width wrap content */
    }
}