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

/* =========================
   BASE
========================= */

body {
  background: #fff;
  padding: 16px 20px;
}

/* =========================
   BODY (Diatype → Inter)
========================= */

.bodycopy {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 13px;   /* was 1.3rem */
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);

  line-height: 1.2;
  letter-spacing: 0.01em;
}

.bodycopy a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}

/* =========================
   CAPTION (Mono system)
========================= */

.caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;   /* was 1.1rem */
  font-weight: 400;

  color: rgba(0, 0, 0, 0.75);

  line-height: 1.1;
  letter-spacing: 0.02em;
  display: block;
}

.caption a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: underline;
}

.caption a:hover {
}

/* =========================
   HEADINGS (Lab Mono → Plex Mono)
========================= */

h1 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;

  font-size: 22px;   /* was 2.2rem */
  line-height: 1.1;

  color: rgba(0, 0, 0, 0.85);
}

h1 a {
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
}

/* Override for logo */
.nav-center h1 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  letter-spacing: 0.25em;
}

/* Section titles */
h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;   /* was 1.3rem */
  font-weight: 400;

  margin: 14px 0 8px;

  color: rgba(0,0,0,0.85);
}

/* =========================
   NAV
========================= */

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 2rem;
  align-items: start;
  padding-bottom: 1rem;
}

.nav-left,
.nav-right {
  font-size: 12px;
  line-height: 1.4;
}

.nav-right {
  text-align: right;
}

.nav-center {
  text-align: center;
}

/* =========================
   DIVIDER
========================= */

hr {
  border: none;
  border-top: 1px solid #d0d0d0;
  margin: 8px 0 6px;
}

/* =========================
   ROLES
========================= */

.roles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* =========================
   GRID
========================= */

.grid {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 2.2fr;
}

/* =========================
   ITEMS (Cargo media-item translation)
========================= */

/* Image container */
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border: none;
  padding: 0;
}

/* Caption spacing (important subtle fix) */
.item .caption {
  margin-top: 0.5em;
}

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

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

  .roles {
    flex-direction: column;
    gap: 4px;
  }

  .nav {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .nav-right {
    text-align: center;
  }
}
