@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #050505;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   HEADER / NAV
========================= */
.site-header {
  height: 90px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span { color: #c1121f; }

nav { display: flex; gap: 30px; }

nav a {
  color: #f5f5f5;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

nav a:hover { color: #c1121f; }


/* =========================
   HERO
========================= */
.archive-hero {
  padding: 100px 60px 80px;
  border-bottom: 1px solid #222;
}

.eyebrow {
  color: #c1121f;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
}

.archive-hero h1 {
  font-size: 90px;
  line-height: .9;
  font-weight: 900;
  margin-bottom: 28px;
}

.archive-hero h1 span { color: #c1121f; }

.archive-intro {
  color: #888;
  font-size: 15px;
  letter-spacing: 0.5px;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
}


/* =========================
   ARCHIVE BODY
========================= */
.archive-body {
  padding: 60px;
}

.archive-meta-bar {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1a1a1a;
}

.meta-label {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #444;
  text-transform: uppercase;
}


/* =========================
   ARCHIVE GRID
========================= */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}


/* =========================
   ARCHIVE CARD
========================= */
.archive-card {
  position: relative;
  border: 1px solid #1e1e1e;
  background: #070707;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f5f5f5;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  transition: border-color 0.25s;
}

.archive-card.active {
  border-color: #2a1114;
  cursor: pointer;
}

.archive-card.active:hover {
  border-color: #c1121f;
}

.archive-card.locked {
  opacity: 0.45;
  cursor: default;
}

/* top scan label */
.archive-card::before {
  content: "RAWHALL_SYS";
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #c1121f;
  padding: 12px 14px 0;
  opacity: 0.6;
}

.card-id {
  font-size: 11px;
  letter-spacing: 2px;
  color: #c1121f;
  padding: 6px 14px 12px;
  opacity: 0.8;
}

.card-preview {
  height: 200px;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card-preview-inner {
  width: 100%;
  height: 100%;
  background: #060606;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 2px,
      transparent 6px
    );
}

.card-preview-inner span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #252525;
  text-transform: uppercase;
}

.archive-card.active .card-preview-inner {
  background-color: #080808;
}

.card-body {
  padding: 16px 14px 10px;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5f5f5;
  margin-bottom: 6px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.card-type {
  font-size: 10px;
  letter-spacing: 1px;
  color: #555;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #1a1a1a;
}

.status-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}

.status-loaded  { color: #c1121f; border-color: #c1121f; }
.status-locked  { color: #333; border-color: #333; }
.status-pending { color: #555; border-color: #555; }
.status-archived{ color: #444; border-color: #444; }

.card-action {
  font-size: 10px;
  letter-spacing: 1px;
  color: #c1121f;
  text-transform: uppercase;
}

.card-lock {
  font-size: 9px;
  letter-spacing: 1px;
  color: #333;
  text-transform: uppercase;
}

/* image fill for active card previews */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* dark base + scanlines for active card preview zone */
.archive-card.active .card-preview {
  background: #060606;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 2px,
    transparent 6px
  );
}

/* pending label — floats above image when no final photo is loaded */
.card-pending {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #252525;
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* active card corner accent */
.archive-card.active::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #c1121f;
  border-right: 2px solid #c1121f;
}


/* =========================
   FOOTER
========================= */
.footer {
  padding: 40px;
  text-align: center;
  color: #777;
  border-top: 1px solid #222;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-logo { color: #777; }

.footer a {
  color: #777;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer a:hover { color: #c1121f; }


/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  nav { display: none; }
  .archive-hero { padding: 60px 28px 50px; }
  .archive-hero h1 { font-size: 56px; }
  .archive-body { padding: 40px 28px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

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


/* =========================
   MOBILE NAV — HAMBURGER
========================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f5f5;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   MOBILE NAV — OVERLAY
========================= */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.mobile-nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 4px;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  color: #c1121f;
  outline: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
}
