/* ==========================================================================
   1. Global Reset & Base Styles*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, Arial, sans-serif;
    background: #111;
    color: #fff;
}

/* Pixel art rendering for all images */
img {
    max-width: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ==========================================================================
   Header*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111;
  border-bottom: 2px solid #222;
  width: 100%;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo .logo-img {
  height: 50px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-family: "Jersey 10", system-ui, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item:focus {
  color: #cfcfcf;
}

.hamburger-btn {
  display: none;
  cursor: pointer;
}

.hamburger-img {
  height: 24px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ==========================================================================
   Main*/

.metadata-container,
.longform-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

.metadata-content-container,
.description-container {
  width:100%;
}

.metadata-content-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.img-metadata-container {
  height: 180px;
  width: 180px;
  flex: 0 0 180px;
}

.img-metadata-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.text-metadata-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  justify-content: center;
}


.smaller-metadata-container {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: start;
  width: 100%
}

.metadata-title-container {
  flex: 0 0 auto;
}

.metadata-value-container {
  flex: 1;
  text-align: left;
}

.description-container {
  max-width: 768px
}

.longform-entry {
  margin: 20px 0;
  max-width: 768px
}

/* Mobile */
@media (max-width: 768px) {

  .header-inner {
    justify-content: center;
    position: relative;
    padding: 1rem;
  }

  .header-logo {
    margin: 0;
  }

  .hamburger-btn {
    display: block;
    position: absolute;
    right: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border-bottom: 2px solid #222;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  #menu-check:checked ~ .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    font-size: 1.8rem;
    padding: 0.8rem 2rem;
    display: block;
  }
}

/* Desktop*/
@media (min-width: 769px) {
  .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    position: static;
  }
}



/* ==========================================================================
   6. Footer*/

footer {
    background: #000;
    color: white;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

footer .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

footer .links {
    display: flex;
    gap: 4rem;
}

footer .col h4 {
    margin-bottom: 1rem;
}

footer .col a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

footer .col a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

footer .socials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 32px;
    height: 32px;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    vertical-align: middle;
}

.socials a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   7. Media Queries (ordered from small → large)*/

@media (max-width: 768px) {

    /* Footer */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .logo {
        margin-bottom: 3rem;
    }

    footer .links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
        max-width: 500px;
        margin-bottom: 2rem;
    }

    footer .links .col:nth-child(3) {
        grid-column: 1 / -1;
    }

    footer .socials {
        justify-content: center;
        margin-top: 1rem;
    }
}