/**
 * ideaGeek Digital Colophon
 */

/* Copyright trigger */

button.ig-colophon-trigger {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;

  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;

  cursor: pointer;
}

button.ig-colophon-trigger:hover,
button.ig-colophon-trigger:focus {
  background: none;
  color: inherit;
  box-shadow: none;
}

button.ig-colophon-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* Colophon panel */

.ig-colophon {
  position: fixed;
  z-index: 99999;

  box-sizing: border-box;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: 26px;

  overflow-y: auto;
  overscroll-behavior: contain;

  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 10%);

  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;

  animation: ig-colophon-enter 180ms ease-out both;
}

.ig-colophon[hidden] {
  display: none !important;
}

/* Header */

.ig-colophon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ig-colophon-eyebrow {
  color: #737373;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ig-colophon button.ig-colophon-close {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;

  background: none;
  border: 0;
  border-radius: 4px;
  box-shadow: none;

  color: #999;
  font: inherit;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition: color 150ms ease;
}

.ig-colophon button.ig-colophon-close:hover {
  background: none;
  color: #1a1a1a;
}

.ig-colophon button.ig-colophon-close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* Title */

.ig-colophon .ig-colophon-title {
  margin: 12px 0 16px;

  color: #1a1a1a;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

/* Introduction */

.ig-colophon .ig-colophon-intro {
  margin: 0 0 20px;

  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.ig-colophon-sentence {
  animation: ig-colophon-text-reveal 900ms ease-out both;
}

.ig-colophon-sentence:nth-child(2) {
  animation-delay: 350ms;
}

/* Credits */

.ig-colophon .ig-colophon-credits {
  display: grid;
  gap: 8px;

  margin: 0;
  padding: 16px 0;

  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;

  font-size: 13px;
  line-height: 1.6;
}

.ig-colophon-credits > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.ig-colophon-credits dt,
.ig-colophon-credits dd {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.ig-colophon-credits dt {
  color: #737373;
}

.ig-colophon-credits dd {
  color: #333;
  text-align: right;
}

/* Closing note */

.ig-colophon-closing {
  margin: 18px 0 20px;
  color: #333;
  font-size: 13px;
}

.ig-colophon .ig-colophon-closing p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.ig-colophon-closing em {
  color: #666;
}

/* Signature */

.ig-colophon-signature {
  color: #737373;
  font-size: 11px;
}

/* Animations */

@keyframes ig-colophon-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ig-colophon-text-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .ig-colophon {
    padding: 22px;
  }

  .ig-colophon .ig-colophon-title {
    font-size: 26px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .ig-colophon,
  .ig-colophon-sentence,
  .ig-colophon .blinker {
    animation: none !important;
    opacity: 1 !important;
  }

  .ig-colophon-close {
    transition: none;
  }
}
