@font-face {
  font-family: "Neuebit";
  src: url("PPNeueBit-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Mondwest";
  src: url("PPMondwest-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #e4e4e4;
  --ink: #101010;
  --muted: #8d9095;
  --line: rgba(16, 16, 16, 0.16);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
}

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

.subpage {
  min-height: 100vh;
  box-sizing: border-box;
  padding: clamp(1.2rem, 3vw, 2.6rem);
}

.subHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.brand {
  display: inline-block;
  font-family: "Neuebit", monospace;
  font-size: clamp(3.2rem, 7.4vw, 5.6rem);
  line-height: 0.9;
  color: var(--muted);
}

.pageTitle {
  margin: clamp(0.25rem, 1vw, 0.5rem) 0 0;
  font-family: "Neuebit", monospace;
  font-size: clamp(3.4rem, 7.5vw, 6rem);
  line-height: 0.88;
  font-weight: 700;
}

.glyph {
  font-family: "Neuebit", monospace;
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  padding-top: clamp(0.2rem, 0.9vw, 0.6rem);
}

.articleLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  column-gap: clamp(1.2rem, 3.6vw, 3.3rem);
  margin-top: clamp(1.4rem, 2.6vw, 2.4rem);
}

.articleText {
  font-family: "Mondwest", serif;
  font-size: clamp(1.35rem, 2.05vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 43ch;
}

.articleText p {
  margin: 0 0 1.15em;
}

.articleText .listLead {
  margin-bottom: 0.6em;
}

.articleMedia {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.1rem, 2.3vw, 2.2rem);
}

.mediaStack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

.mediaItem {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.mediaZoom {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.mediaItem img {
  display: block;
  width: 100%;
  height: auto;
}

.submenuList {
  list-style: none;
  margin: clamp(2rem, 3.8vw, 3.2rem) 0 0;
  padding: 0;
}

.submenuList li + li {
  margin-top: clamp(1.15rem, 2.3vw, 1.95rem);
}

.submenuItem,
.submenuRow {
  display: grid;
  grid-template-columns: clamp(4.8rem, 8.4vw, 6.6rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 2vw, 1.8rem);
}

.submenuThumb {
  width: clamp(4.8rem, 8.4vw, 6.6rem);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.submenuThumb.lightboxTrigger {
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

.submenuThumb.placeholder {
  background: rgba(140, 144, 149, 0.26);
}

.submenuThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.submenuLabel {
  font-family: "Neuebit", monospace;
  font-size: clamp(3.4rem, 6.4vw, 5.3rem);
  line-height: 0.9;
}

.submenuLabelLink {
  display: inline-block;
}

.placeholderShell {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 38ch;
  font-family: "Mondwest", serif;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  line-height: 1.2;
}

.lightboxTarget:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

body.lightboxOpen {
  overflow: hidden;
}

.lightboxOverlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  place-items: center;
}

.lightboxOverlay.isOpen {
  display: grid;
}

.lightboxBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  padding: 0;
}

.lightboxFigure {
  margin: 0;
  z-index: 1;
  width: min(92vw, 72rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.lightboxClose {
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: #f4f4f4;
  font-family: "Neuebit", monospace;
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  line-height: 0.9;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.lightboxMedia {
  width: 100%;
  display: grid;
  place-items: center;
}

.lightboxImage {
  display: block;
  width: min(90vw, 1200px);
  max-width: none;
  max-height: 82vh;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.lightboxPlaceholder {
  width: min(90vw, 64rem);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(210, 210, 210, 0.25);
}

.lightboxCaption {
  font-family: "Mondwest", serif;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.2;
  color: #f2f2f2;
  text-align: center;
}

@media (max-width: 900px) {
  .subpage {
    padding: clamp(1rem, 5vw, 1.5rem);
  }

  .pageTitle {
    margin-top: 0.25rem;
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .brand {
    font-size: clamp(2.9rem, 12vw, 4.6rem);
  }

  .glyph {
    font-size: clamp(2.2rem, 8vw, 3rem);
    padding-top: 0.15rem;
  }

  .articleLayout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .articleText {
    max-width: none;
    font-size: clamp(1.5rem, 6vw, 1.95rem);
  }

  .articleMedia {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 0.95rem;
  }

  .submenuItem,
  .submenuRow {
    grid-template-columns: clamp(4.4rem, 17vw, 5.8rem) minmax(0, 1fr);
    column-gap: 0.9rem;
  }

  .submenuLabel {
    font-size: clamp(2.7rem, 11.5vw, 4.4rem);
  }

  .lightboxFigure {
    width: min(94vw, 48rem);
  }

  .lightboxImage {
    width: min(92vw, 44rem);
    max-height: 74vh;
  }
}
