.nights-preview,
.nights-archive {
  --nights-ink: #191714;
  --nights-paper: #ebe3cf;
  --nights-muted: #c8c0af;
  --nights-rule: #756d60;
}
#tgs-nights.nights-preview {
  background: var(--nights-ink) !important;
  color: var(--nights-paper) !important;
  border: 0;
  padding: clamp(42px, 6vw, 96px) 0;
}
#tgs-nights::before,
#tgs-nights + #licensing::before { display: none; }
.nights-shell {
  width: min(clamp(1180px, 58vw, 1660px), calc(100% - 48px));
  margin-inline: auto;
}
.nights-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(20px, 6vw, 85px);
  margin-bottom: clamp(22px, 4vw, 48px);
}
#tgs-nights .nights-heading,
.nights-archive .nights-heading {
  margin: 0;
  color: inherit !important;
  font-size: clamp(38px, 5.2vw, 91px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .96;
  text-wrap: balance;
  text-transform: uppercase;
}
#tgs-nights .nights-intro,
.nights-intro { max-width: 46ch; margin: 0; color: var(--nights-muted) !important; font-size: clamp(16px, 1.25vw, 23px); line-height: 1.55; }
.nights-preview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(230px, 27vw) minmax(130px, 15vw);
  gap: clamp(8px, 1.2vw, 18px);
}
.nights-preview-grid .nights-tile:nth-child(1) { grid-column: span 8; }
.nights-preview-grid .nights-tile:nth-child(2) { grid-column: span 4; }
.nights-preview-grid .nights-tile:nth-child(3) { grid-column: span 3; }
.nights-preview-grid .nights-tile:nth-child(4) { grid-column: span 5; }
.nights-preview-grid .nights-tile:nth-child(5) { grid-column: span 4; }
.nights-tile {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #100f0e;
}
.nights-tile img,
.nights-dialog img {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.13) brightness(.94);
}
.nights-tile img { object-fit: cover; }
.nights-tile[data-tone="dark"] img,
.nights-dialog[data-tone="dark"] img { filter: grayscale(1) contrast(1.06) brightness(1.05); }
.nights-preview-grid > :nth-child(2) img { object-position: center 61%; }
.nights-preview-grid > :nth-child(3) img { object-position: center 35%; }
.nights-tile:focus-visible { outline: 2px solid #ebe3cf; outline-offset: 3px; }
.nights-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--nights-rule);
  background: transparent;
  color: var(--nights-paper) !important;
  font: 750 12px/1.3 Jost, Arial, sans-serif;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.nights-button:is(:hover, :focus-visible) { background: var(--nights-paper); color: var(--nights-ink) !important; }
.nights-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; margin-top: 24px; }
#tgs-nights .nights-credits p,
.nights-credits p { margin: 0; max-width: 57ch; color: var(--nights-muted) !important; font-size: clamp(14px, 1vw, 17px); line-height: 1.55; }
.nights-credits strong { display: block; color: var(--nights-paper) !important; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.nights-header-copy .nights-button { margin-top: 12px; }

.nights-archive {
  margin: 0;
  background: var(--nights-ink);
  color: var(--nights-paper);
  font: 16px/1.48 Jost, Arial, sans-serif;
}
.nights-archive *,
.nights-archive *::before,
.nights-archive *::after { box-sizing: border-box; }
.nights-archive a { color: inherit; }
.nights-archive-nav { border-bottom: 1px solid var(--nights-rule); }
.nights-archive-nav .nights-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 22px;
  min-height: 68px;
  padding-block: 9px;
}
.nights-wordmark { font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; font-size: clamp(13px, 1.6vw, 20px); }
.nights-archive main { padding-block: clamp(34px, 6vw, 90px); }
.nights-archive .nights-credits { margin-block: 0 30px; }
.nights-archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(142px, 20vw, 310px);
  gap: clamp(8px, 1.2vw, 18px);
}
.nights-archive-grid .nights-tile { grid-column: span 4; }
.nights-archive-grid .nights-tile:nth-child(5n + 1) { grid-column: span 7; }
.nights-archive-grid .nights-tile:nth-child(5n + 2) { grid-column: span 5; }

.nights-dialog {
  box-sizing: border-box;
  width: min(1050px, calc(100% - 22px));
  max-width: none;
  max-height: calc(100% - 22px);
  padding: 12px;
  border: 1px solid var(--nights-rule);
  background: #100f0e;
  color: var(--nights-paper);
}
.nights-dialog::backdrop { background: rgba(8, 8, 8, .88); }
.nights-dialog-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; margin-bottom: 10px; }
.nights-dialog img { max-height: 75dvh; object-fit: contain; }
.nights-dialog-availability { margin: 8px 0 0; color: var(--nights-muted); }
.nights-dialog button:disabled { opacity: .48; cursor: default; }
@media (max-width: 760px) {
  .nights-shell { width: calc(100% - 28px); }
  .nights-header, .nights-credits { grid-template-columns: 1fr; gap: 12px; }
  .nights-preview-grid, .nights-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(105px, 35vw, 220px);
  }
  .nights-preview-grid .nights-tile:nth-child(n),
  .nights-archive-grid .nights-tile:nth-child(n) { grid-column: auto; }
  .nights-preview-grid .nights-tile:first-child,
  .nights-archive-grid .nights-tile:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
}

.nights-dialog img[hidden] { display: none; }
@media (min-width: 1680px) {
  .nights-preview-grid {
    grid-template-rows: clamp(245px, 22vw, 480px) clamp(165px, 12vw, 270px);
  }
}
