.button:hover,
.kennel-trigger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.section {
  padding: 39px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
}

.section-head p {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) max-content;
  align-items: start;
  gap: 15px;
  padding: 17px 3px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

a.project:hover {
  background: #100e0f;
}

a.project:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.tag,
.project-action {
  color: var(--accent);
  font-size: 11px;
}

.project-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.project h3 {
  margin: 0;
  font-size: 14px;
}

.project-status {
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .08em;
}

.project p {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}

.project-action {
  text-align: right;
  white-space: nowrap;
}

.project-action-static {
  color: var(--dim);
}

.annex {
  margin-top: 42px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #100e0f;
}

.annex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: 11px;
}

.annex-head b,
.kennel-easter-egg b,
.gimmick-head b {
  color: var(--accent);
  letter-spacing: .08em;
}

.kennel-trigger {
  min-width: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background-color: transparent;
  background-image: linear-gradient(#da244533, #da244533);
  background-repeat: no-repeat;
  background-size: 0 100%;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  touch-action: manipulation;
  user-select: none;
}

.kennel-trigger.unlocking {
  border-color: var(--accent);
  color: var(--accent);
  animation: kennel-unlock 5s linear forwards;
}

@keyframes kennel-unlock {
  from { background-size: 0 100%; }
  to { background-size: 100% 100%; }
}

.kennel-easter-egg {
  display: none;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.kennel-easter-egg.visible {
  display: block;
}

.close-egg,
.gimmick-close {
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.close-egg {
  float: right;
}

.knot {
  color: var(--accent);
  font-size: 20px;
}

.kennel-easter-egg b {
  font-size: 12px;
}

.yiff-gif {
  display: block;
  width: min(100%, 360px);
  max-height: 170px;
  margin: 13px 0 9px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.after-dark-jokes {
  margin: 0;
  padding: 0;
  color: var(--dim);
  font-size: 12px;
  list-style: none;
}

.after-dark-jokes li {
  padding: 3px 0;
}

.after-dark-jokes li::before {
  color: var(--accent);
  content: "* ";
}

.gimmick {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  width: min(340px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid var(--accent);
  background: #100e0f;
  box-shadow: 0 0 28px #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}

.gimmick.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gimmick img {
  display: block;
  width: 100%;
  max-height: 180px;
  margin-top: 9px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.gimmick-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 11px;
}

.gimmick-close {
  padding: 0;
  font-size: 11px;
}

@media (max-width: 650px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 41px 0 34px;
  }

  .mark {
    width: 150px;
    padding: 0;
    border: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 6px;
  }

  .project {
    grid-template-columns: 1fr max-content;
  }

  .tag {
    grid-column: 1 / -1;
  }
}
