/* Each plate is typeset in selectable characters, including when printed. */
.ascii-opening {
  --ao-night: #111019;
  --ao-halo: #272034;
  --ao-light: #fbf5f6;
  --ao-quiet: #d4c4d3;
  --ao-a: #cabaff;
  --ao-b: #eda6e0;
  --ao-c: #ffc69e;
  --ao-d: #a9e8df;
  --ao-margin: clamp(22px, 5vw, 90px);
  color: var(--ao-light);
  background: radial-gradient(ellipse at 76% 42%, var(--ao-halo), transparent 62%), var(--ao-night);
  font-family: DM, "Helvetica Neue", sans-serif;
  isolation: isolate;
}
.ao-images { --ao-halo: #292039; --ao-a: #adceff; --ao-b: #c4a4fb; --ao-c: #ffb7da; --ao-d: #ffdfa3; }
.ao-video { --ao-halo: #1d2933; --ao-a: #8ce9d7; --ao-b: #97c1ff; --ao-c: #deb9ff; --ao-d: #ffcfab; }
.ao-foundations { --ao-halo: #25243b; --ao-a: #b7ebf8; --ao-b: #acaaff; --ao-c: #edb0ef; --ao-d: #ffd7aa; }
.ao-cinema { --ao-halo: #32212e; --ao-a: #b4b6ff; --ao-b: #eca5cd; --ao-c: #ffbf95; --ao-d: #f3e1b5; }
.ao-nav, .ao-layout { max-width: 1840px; margin-inline: auto; padding-inline: var(--ao-margin); }
.ao-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(20px, 2.4vw, 40px);
}
.ao-nav::after {
  position: absolute;
  bottom: 0;
  inset-inline: var(--ao-margin);
  height: 1px;
  content: "";
  background: #f2d9fa38;
}
.ascii-opening a { color: inherit; text-decoration: none; }
.ascii-opening a:hover { color: var(--ao-c); text-decoration: underline; text-underline-offset: .25em; }
.ascii-opening a:focus-visible { outline: 2px solid var(--ao-c); outline-offset: 5px; }
.ao-signature { font-size: clamp(22px, 2vw, 34px); letter-spacing: -.075em; line-height: 1; }
.ao-signature span { color: var(--ao-b); }
.ao-nav > :last-child, .ao-category {
  font: 400 clamp(12px, .87vw, 15px)/1.5 Plex, ui-monospace, monospace;
  color: var(--ao-quiet);
}
.ao-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  grid-template-areas: "copy art";
  align-items: center;
  gap: clamp(15px, 2.2vw, 40px);
  min-height: clamp(460px, 40vw, 720px);
  padding-block: clamp(48px, 5.8vw, 104px);
}
.ao-copy { grid-area: copy; min-width: 0; }
.ao-category { margin: 0 0 clamp(16px, 2vw, 34px); }
.ascii-opening .ao-copy h1 {
  margin: 0;
  max-width: 16ch;
  color: var(--ao-light);
  font: 400 clamp(48px, 5.25vw, 98px)/.99 DM, "Helvetica Neue", sans-serif;
  letter-spacing: -.066em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.ao-index .ao-copy h1 { font-size: clamp(66px, 8vw, 140px); }
.ao-plate {
  grid-area: art;
  width: 100%;
  margin: 0;
  min-width: 0;
  container-type: inline-size;
  align-self: center;
}
.ao-plate pre {
  box-sizing: content-box;
  width: 108ch;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  white-space: pre;
  font: 600 min(.615vw, 11px)/1.02 Plex, "Courier New", monospace;
  font-size: 1.51cqi;
  font-variant-ligatures: none;
  letter-spacing: 0;
  color: var(--ao-b);
  user-select: text;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ao-plate pre {
    background-image: linear-gradient(110deg, var(--ao-a) 8%, var(--ao-b) 41%, var(--ao-c) 65%, var(--ao-d) 91%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}
.ao-plate pre::selection { background: #fff1c8; color: #21142a; }
@media (max-width: 780px) {
  .ao-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "art" "copy";
    gap: clamp(18px, 3vw, 28px);
    min-height: auto;
    padding-block: clamp(24px, 5vw, 36px) clamp(38px, 7vw, 54px);
  }
  .ao-plate { width: min(100%, 520px); justify-self: center; }
  .ao-plate pre { font-size: min(1.3vw, 7.8px); font-size: 1.51cqi; }
  .ascii-opening .ao-copy h1 { max-width: 22ch; font-size: clamp(41px, 7vw, 65px); }
  .ao-index .ao-copy h1 { font-size: clamp(57px, 10vw, 82px); }
  .ao-category { margin-bottom: 12px; }
}
@media (forced-colors: active) {
  .ao-plate pre { color: CanvasText; background: none; }
  .ao-nav::after { background: CanvasText; }
}
@media print {
  .ascii-opening { color: #151017; background: white; }
  .ascii-opening .ao-copy h1, .ao-nav > :last-child, .ao-category, .ao-plate pre { background: none; color: #151017; }
  .ao-layout { min-height: 0; padding-block: 18pt; }
}
