:root {
  --night: #050707;
  --paper: #f3efe7;
  --mist: #aaa7a0;
  --line: rgba(243, 239, 231, .2);
}

.image-link-directory {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem 0.8rem;
  width: min(92vw, 78rem);
  margin: 3rem auto 2rem;
}

.image-link-directory a,
.image-link-directory .directory-current {
  display: grid;
  grid-template-rows: 112px 1fr;
  flex: 0 1 166px;
  width: 166px;
  min-height: 166px;
  overflow: hidden;
  min-width: 0;
  color: var(--paper);
  background: rgba(243, 239, 231, 0.06);
  border: 1px solid rgba(242, 238, 228, 0.3);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.image-link-directory img {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: contain;
  padding: 0.35rem;
  background: transparent;
  filter: saturate(0.88) contrast(1.03);
  transition: filter 220ms ease;
}

.image-link-directory > a > span,
.image-link-directory > .directory-current > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.65rem;
  text-align: center;
}

.image-link-directory a:hover,
.image-link-directory a:focus-visible {
  border-color: rgba(183, 230, 218, 0.9);
  box-shadow:
    0 0 0 1px rgba(183, 230, 218, 0.38),
    0 0 18px rgba(112, 201, 180, 0.48),
    0 0 42px rgba(112, 201, 180, 0.22);
}

.image-link-directory a:hover img,
.image-link-directory a:focus-visible img {
  filter:
    saturate(1.06)
    contrast(1.05)
    drop-shadow(0 0 8px rgba(210, 255, 244, 0.52));
}

.image-link-directory a:focus-visible {
  outline: 2px solid #f2eee4;
  outline-offset: 3px;
}

.image-link-directory .directory-current {
  box-shadow: 0 0 0 2px #f2eee4, 0 14px 34px rgba(0, 0, 0, 0.3);
  cursor: default;
}

@media (max-width: 520px) {
  .image-link-directory {
    gap: 0.55rem;
  }

  .image-link-directory a,
  .image-link-directory .directory-current {
    grid-template-rows: 92px auto;
    flex-basis: calc(50% - 0.55rem);
    width: calc(50% - 0.55rem);
    min-height: 150px;
    font-size: 0.6rem;
  }

  .image-link-directory img {
    height: 92px;
  }
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(37, 73, 66, .28), transparent 42rem),
    var(--night);
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: .65rem .85rem;
  background: var(--paper);
  color: var(--night);
}

main {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 9rem;
}

.title-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .85rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: 1rem;
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mist);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .2em;
}

h1 {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0;
  color: transparent;
  background: linear-gradient(-90deg, rgb(223, 223, 223) 0%, rgb(190, 190, 190) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.75rem, 13vw, 8.75rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

h1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  padding: 0 22px;
  color: rgba(91, 132, 122, .72);
  background: none;
  -webkit-text-fill-color: rgba(91, 132, 122, .72);
  filter: blur(12px);
  opacity: .58;
  transform: skew(67deg, 0deg) translate(-14%, 22%) scaleY(.48);
  transform-origin: left bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
  pointer-events: none;
}

.credit {
  justify-self: end;
  margin: .25rem 0 0;
  color: var(--mist);
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  text-align: right;
}

.film {
  margin: 0;
}

.film video {
  display: block;
  width: 100%;
  aspect-ratio: 64 / 45;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .5);
}

.about-poem {
  display: grid;
  grid-template-columns: minmax(9rem, .4fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 7rem);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: .4rem 0 0;
  color: var(--mist);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .16em;
}

.about-poem > p:last-child {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.52rem);
  line-height: 1.72;
}

.about-poem a {
  color: var(--paper);
  text-decoration-color: rgba(243, 239, 231, .45);
  text-underline-offset: .18em;
}

.about-poem a:hover,
.about-poem a:focus-visible {
  text-decoration-color: var(--paper);
}

.written-poem {
  display: grid;
  grid-template-columns: minmax(9rem, .4fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 7rem);
  margin-top: clamp(5rem, 10vw, 9rem);
}

.poem-heading h2 {
  margin: 1.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.poem-text {
  max-width: 42rem;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  line-height: 1.72;
}

.poem-text p {
  margin: 0 0 2.6rem;
}

.poem-text .poem-credit {
  margin: 4.5rem 0 0;
  color: var(--mist);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.clean26-site-links {
  background: rgba(5, 7, 7, .94);
  border-color: var(--line);
}

@media (max-width: 680px) {
  main {
    width: 100%;
    padding-top: 4rem;
  }

  .title-card,
  .about-poem {
    margin-right: 6vw;
    margin-left: 6vw;
  }

  .title-card {
    display: block;
  }

  h1 {
    font-size: clamp(2.25rem, 11.5vw, 4.5rem);
  }

  .eyebrow { margin-bottom: 1.25rem; }
  .credit {
    margin-top: 1rem;
    text-align: left;
  }

  .film video {
    border-right: 0;
    border-left: 0;
  }

  .about-poem {
    display: block;
  }

  .written-poem {
    display: block;
    margin-right: 6vw;
    margin-left: 6vw;
  }

  .section-label {
    margin-bottom: 1.5rem;
  }

  .poem-heading {
    margin-bottom: 2.5rem;
  }
}
