/* Concept 3 — Stamp Lockup override for id.exergism.org. */

/* Match the horizontal and vertical identity origin used by the other EC sites. */
main {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 5rem;
}

.commons-wordmark {
  display: inline-grid;
  grid-template-columns: 66px 1fr;
  align-items: stretch;
  width: 300px;
  height: 60px;
  gap: 0;
  margin: 0 0 3.25rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink, #0a0d0c);
  border-radius: 6px;
  background: transparent;
  clip-path: none;
  filter: none;
  box-shadow: none;
  color: var(--ink, #0a0d0c);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}

.commons-wordmark-symbol {
  display: block;
  box-sizing: border-box;
  width: 66px;
  height: 56px;
  min-width: 66px;
  padding: 0;
  border: 0;
  border-right: 2px solid var(--ink, #0a0d0c);
  background: transparent;
}

.commons-wordmark-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: none;
  object-position: 9999px 9999px;
  background: url("https://www.exergism.org/assets/brand/exergism-symbol.svg") center / 42px auto no-repeat;
  mix-blend-mode: normal;
  filter: none;
}

.commons-wordmark-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 16px 8px 15px;
  line-height: .96;
  background: transparent;
}

.commons-wordmark-copy strong,
.commons-wordmark-copy span {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.commons-wordmark-copy strong {
  color: var(--ink, #0a0d0c);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.commons-wordmark-copy span {
  color: #4b534c;
  font-size: .53rem;
  font-weight: 500;
  letter-spacing: .38em;
  line-height: 1;
  text-transform: uppercase;
}

.commons-wordmark:focus-visible {
  outline: 2px solid var(--signal, #66a927);
  outline-offset: 4px;
}

@media (hover: hover) {
  .commons-wordmark:hover {
    transform: translateY(-1px);
    border-color: #34402f;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commons-wordmark { transition: none; }
}

@media (max-width: 900px) {
  main {
    width: calc(100% - 30px);
    max-width: none;
  }
}

@media (max-width: 680px) {
  main {
    width: calc(100% - 24px);
    padding-top: 8px;
  }

  .commons-wordmark {
    grid-template-columns: 54px 1fr;
    width: 224px;
    height: 52px;
    margin-bottom: 2.5rem;
    border-radius: 5px;
  }

  .commons-wordmark-symbol {
    width: 54px;
    height: 48px;
    min-width: 54px;
  }

  .commons-wordmark-symbol img {
    width: 100%;
    height: 100%;
    background-size: 34px auto;
  }

  .commons-wordmark-copy {
    gap: 4px;
    padding: 7px 10px;
  }

  .commons-wordmark-copy strong {
    font-size: .82rem;
    letter-spacing: -.03em;
  }

  .commons-wordmark-copy span {
    font-size: .44rem;
    font-weight: 500;
    letter-spacing: .34em;
  }
}
