@font-face {
  font-family: "Digitalwerk Stamp Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/bricolage-grotesque-latin-wght-normal.woff2")
    format("woff2-variations");
}

@font-face {
  font-family: "Digitalwerk Stamp Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./fonts/space-mono-latin-700-normal.woff2") format("woff2");
}

.dw-maker-stamp {
  --dw-stamp-surface: #f7f6ef;
  --dw-stamp-ink: #16180f;
  --dw-stamp-accent: #5a6b09;
  --dw-stamp-accent-hover: #70850b;
  --dw-stamp-mark-d: #5a6b09;
  --dw-stamp-mark-w: #16180f;
  --dw-stamp-font: "Digitalwerk Stamp Bricolage", "Arial Narrow", Arial,
    sans-serif;
  --dw-stamp-label-font: "Digitalwerk Stamp Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  display: inline-block;
  max-width: 100%;
  color: var(--dw-stamp-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dw-maker-stamp--dark {
  --dw-stamp-surface: #16180f;
  --dw-stamp-ink: #f4f1e4;
  --dw-stamp-accent: #d9f24f;
  --dw-stamp-accent-hover: #e4f86f;
  --dw-stamp-mark-d: #d9f24f;
  --dw-stamp-mark-w: #d9f24f;
}

.dw-maker-stamp__frame {
  display: block;
  padding: 1px;
  background: var(--dw-stamp-accent);
  clip-path: polygon(
    0 0,
    calc(100% - 0.95rem) 0,
    100% 0.95rem,
    100% 100%,
    0 100%
  );
  transition: background-color 220ms ease;
}

.dw-maker-stamp__inner {
  display: grid;
  grid-template-columns: 2.75rem 1px minmax(0, auto);
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.65rem 1.15rem 0.65rem 0.9rem;
  background: var(--dw-stamp-surface);
  clip-path: polygon(
    0 0,
    calc(100% - 0.9rem) 0,
    100% 0.9rem,
    100% 100%,
    0 100%
  );
}

.dw-maker-stamp__mark {
  display: block;
  width: 2.75rem;
  height: auto;
}

.dw-maker-stamp__mark-d {
  fill: var(--dw-stamp-mark-d);
}

.dw-maker-stamp__mark-w {
  fill: var(--dw-stamp-mark-w);
}

.dw-maker-stamp__divider {
  align-self: stretch;
  width: 1px;
  min-height: 2.35rem;
  background: var(--dw-stamp-accent);
  opacity: 0.82;
}

.dw-maker-stamp__copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.dw-maker-stamp__label {
  font-family: var(--dw-stamp-label-font);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dw-stamp-accent);
}

.dw-maker-stamp__name {
  font-family: var(--dw-stamp-font);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

@media (hover: hover) {
  .dw-maker-stamp:hover {
    transform: translateY(-2px);
  }

  .dw-maker-stamp:hover .dw-maker-stamp__frame {
    background: var(--dw-stamp-accent-hover);
  }

  .dw-maker-stamp:hover .dw-maker-stamp__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }
}

.dw-maker-stamp:active {
  transform: translateY(0);
}

.dw-maker-stamp:focus-visible {
  outline: 3px solid var(--dw-stamp-accent);
  outline-offset: 4px;
}

@media (max-width: 1220px) {
  .dw-maker-stamp__inner {
    grid-template-columns: 2.75rem 1px max-content;
  }

  .dw-maker-stamp__copy {
    inline-size: min-content;
  }

  .dw-maker-stamp__name {
    line-height: 1.1;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .dw-maker-stamp__inner {
    grid-template-columns: 2.45rem 1px max-content;
    gap: 0.65rem;
    min-height: 3.75rem;
    padding: 0.6rem 0.85rem 0.6rem 0.75rem;
  }

  .dw-maker-stamp__mark {
    width: 2.45rem;
  }

  .dw-maker-stamp__name {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dw-maker-stamp,
  .dw-maker-stamp__frame {
    transition: none;
  }
}
