/* Junk Drawer landing page */

.junk-drawer-page .content {
  background:
    linear-gradient(180deg, rgb(236 234 221 / 0.45), transparent 220px),
    var(--paper);
}

.junk-drawer-main {
  padding-bottom: 48px;
}

.junk-drawer-page .random-artifact {
  position: relative;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.junk-drawer-page .random-artifact::before,
.junk-drawer-page .random-artifact::after {
  position: absolute;
}

.junk-drawer-page .random-artifact::before {
  left: 8px;
  top: 12px;
}

.junk-drawer-page .random-artifact::after {
  right: 8px;
  top: 12px;
}

.junk-drawer-page .random-artifact {
  padding-right: 26px;
  padding-left: 26px;
}

.random-artifact__hint {
  color: #5a574f;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.junk-drawer-hero {
  position: relative;
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #d4d1c4;
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgb(17 16 13 / 0.02) 1px, transparent 1px),
    #f3f1e8;
  background-size: 26px 26px;
  box-shadow: 0 5px 0 #d4d1c4, inset 0 1px 0 rgb(255 255 255 / 0.7);
}

.junk-drawer-hero__tape {
  position: absolute;
  top: -10px;
  left: 28px;
  width: 84px;
  height: 24px;
  border: 1px solid rgb(214 188 108 / 0.45);
  background: rgb(255 236 170 / 0.72);
  transform: rotate(-4deg);
}

.junk-drawer-breadcrumb,
.junk-drawer-premier__kicker,
.junk-drawer-shelf__head p,
.junk-drawer-compartment__head p,
.junk-drawer-card__type,
.junk-drawer-card__signal {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.junk-drawer-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #55534e;
}

.junk-drawer-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.junk-drawer-breadcrumb span::before,
.junk-drawer-breadcrumb strong::before {
  content: "/";
  margin-right: 7px;
  color: #85837d;
}

.junk-drawer-breadcrumb strong {
  color: #11100d;
}

.junk-drawer-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.junk-drawer-hero__copy {
  max-width: 66ch;
  margin: 0;
  color: #55534e;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.junk-drawer-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.junk-drawer-hero__notes li {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px dashed #c8c4b6;
  background: rgb(255 255 255 / 0.55);
  color: #5f5d56;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-legend {
  max-width: 760px;
  border: 1px dashed #c8c4b6;
  background: rgb(255 255 255 / 0.52);
}

.junk-drawer-legend summary {
  min-height: 44px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.junk-drawer-legend dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px;
}

.junk-drawer-legend div {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr);
  gap: 10px;
}

.junk-drawer-legend dt,
.junk-drawer-legend dd {
  margin: 0;
  color: #55534e;
  font-size: 12px;
  line-height: 1.35;
}

.junk-drawer-legend dt {
  color: #11100d;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-jump {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #d4d1c4;
  background: rgb(247 246 240 / 0.94);
  box-shadow: 0 3px 0 rgb(17 16 13 / 0.08);
}

.junk-drawer-jump a {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #c8c4b6;
  align-items: center;
  flex: 0 0 auto;
  color: #292928;
  background: rgb(255 255 255 / 0.66);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-jump a:hover,
.junk-drawer-jump a:focus-visible {
  border-color: #11100d;
  background: #fffdf7;
}

.junk-drawer-premier {
  position: relative;
  margin-bottom: 36px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid #11100d;
  background:
    linear-gradient(135deg, rgb(255 236 170 / 0.32), transparent 34%),
    linear-gradient(145deg, #fffdf7, #f0efe6);
  box-shadow: 10px 10px 0 rgb(17 16 13 / 0.08);
}

.junk-drawer-premier__tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  background: #11100d;
  color: #f7f4ea;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.junk-drawer-premier__layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.junk-drawer-premier__visual {
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d4d1c4;
  background: #eceadd;
  overflow: hidden;
  place-items: center;
}

.junk-drawer-premier__visual img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.junk-drawer-premier__kicker {
  margin: 0 0 8px;
  color: #55534e;
}

.junk-drawer-premier h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.junk-drawer-premier__copy p {
  max-width: 56ch;
  margin: 0 0 16px;
  color: #55534e;
  line-height: 1.55;
}

.junk-drawer-premier__meta,
.junk-drawer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.junk-drawer-premier__meta li,
.junk-drawer-card__meta li {
  padding: 5px 8px;
  border: 1px dashed #c8c4b6;
  color: #55534e;
  background: rgb(255 255 255 / 0.46);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-premier__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.junk-drawer-btn {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #11100d;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.junk-drawer-btn--primary {
  background: #11100d;
  color: #f7f4ea;
}

.junk-drawer-btn--primary:hover,
.junk-drawer-btn--primary:focus-visible {
  background: #2a2924;
}

.junk-drawer-btn--ghost {
  background: transparent;
}

.junk-drawer-btn--ghost:hover,
.junk-drawer-btn--ghost:focus-visible {
  background: rgb(17 16 13 / 0.05);
}

.junk-drawer-btn--external {
  border-color: transparent;
  background: transparent;
  color: #292928;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.junk-drawer-btn--external:hover,
.junk-drawer-btn--external:focus-visible {
  border-color: #c8c4b6;
  background: rgb(17 16 13 / 0.04);
}

.junk-drawer-shelf {
  margin-top: 42px;
}

.junk-drawer-shelf__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.junk-drawer-shelf__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.junk-drawer-shelf__head p {
  margin: 0 0 8px;
  color: #55534e;
}

.junk-drawer-directory {
  display: grid;
  gap: 22px;
}

.junk-drawer-compartment {
  display: grid;
  gap: 18px;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid rgb(212 209 196 / 0.72);
  background: rgb(255 253 247 / 0.52);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.58);
}

.junk-drawer-compartment__head {
  display: grid;
  gap: 10px;
  align-content: start;
}

.junk-drawer-compartment__head h3 {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.junk-drawer-compartment__head p {
  margin: 0;
  color: #55534e;
  line-height: 1.45;
}

.junk-drawer-compartment__mark {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  color: #6d6a60;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.junk-drawer-compartment__mark span {
  display: inline-flex;
  min-height: 22px;
  padding: 4px 6px;
  border: 1px solid #d4d1c4;
  align-items: center;
  background: rgb(255 255 255 / 0.48);
}

.junk-drawer-compartment--image .junk-drawer-compartment__mark {
  display: grid;
  width: min(132px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.junk-drawer-compartment--image .junk-drawer-compartment__mark span {
  justify-content: center;
  border-right: 0;
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgb(17 16 13 / 0.07) 1px, transparent 1px),
    rgb(255 255 255 / 0.5);
  background-size: 7px 7px;
}

.junk-drawer-compartment--image .junk-drawer-compartment__mark span:last-child {
  border-right: 1px solid #d4d1c4;
}

.junk-drawer-compartment--text .junk-drawer-compartment__mark span {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.junk-drawer-compartment--experiments .junk-drawer-compartment__mark span {
  border-color: #11100d;
  background: #11100d;
  color: #f7f4ea;
  transform: rotate(-1deg);
}

.junk-drawer-compartment--experiments .junk-drawer-compartment__mark span:nth-child(2) {
  transform: rotate(1.5deg);
}

.junk-drawer-compartment--other {
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.018) 1px, transparent 1px),
    rgb(255 253 247 / 0.48);
  background-size: 18px 18px;
}

.junk-drawer-compartment--other .junk-drawer-compartment__mark span {
  border-style: dashed;
}

.junk-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.junk-drawer-grid--single,
.junk-drawer-grid--external,
.junk-drawer-grid--sponsor {
  grid-template-columns: 1fr;
}

.junk-drawer-grid--experiments {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.junk-drawer-grid--text {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.junk-drawer-card {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgb(212 209 196 / 0.78);
  background: #f7f6f0;
  box-shadow: 0 4px 0 #d4d1c4;
  color: inherit;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.junk-drawer-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d4d1c4;
  content: "";
}

.junk-drawer-card--converter,
.junk-drawer-card--compressor,
.junk-drawer-card--character,
.junk-drawer-card--list-mechanic {
  border-color: #bbb6a5;
  box-shadow: 0 4px 0 #bdb8a6;
}

.junk-drawer-card--converter,
.junk-drawer-card--compressor {
  border-left-color: rgb(212 209 196 / 0.78);
}

.junk-drawer-card--converter::before,
.junk-drawer-card--compressor::before,
.junk-drawer-card--character::before,
.junk-drawer-card--list-mechanic::before {
  background: #11100d;
}

.junk-drawer-card--character,
.junk-drawer-card--external,
.junk-drawer-card--sponsor {
  min-height: auto;
}

.junk-drawer-card--character {
  display: grid;
  grid-template-columns: minmax(104px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
}

.junk-drawer-card--character .junk-drawer-card__type,
.junk-drawer-card--character .junk-drawer-card__signal,
.junk-drawer-card--character h4,
.junk-drawer-card--character p,
.junk-drawer-card--character .junk-drawer-card__meta,
.junk-drawer-card--character .junk-drawer-card__cta {
  grid-column: 2;
}

.junk-drawer-card--character .junk-drawer-card__visual {
  grid-row: 1 / 6;
}

.junk-drawer-card--free-source {
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.018) 1px, transparent 1px),
    #f7f6f0;
  background-size: 18px 18px;
}

.junk-drawer-card--free-source::before {
  background: #9f8f52;
}

.junk-drawer-card--lemon-dom::before {
  background: #d2ad31;
}

.junk-drawer-card--list-mechanic {
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.028) 1px, transparent 1px),
    #f8f2df;
  background-size: 15px 15px;
}

.junk-drawer-card:hover,
.junk-drawer-card:focus-visible,
.junk-drawer-card:focus-within {
  border-color: #bfb9a6;
  box-shadow: 0 6px 0 #c2bfae;
  transform: translateY(-2px);
}

.junk-drawer-card__type {
  width: max-content;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 4px 7px;
  border: 1px solid #c8c4b6;
  color: #55534e;
  background: rgb(255 255 255 / 0.62);
}

.junk-drawer-card--converter .junk-drawer-card__type,
.junk-drawer-card--compressor .junk-drawer-card__type,
.junk-drawer-card--character .junk-drawer-card__type,
.junk-drawer-card--list-mechanic .junk-drawer-card__type {
  border-color: #11100d;
  color: #11100d;
}

.junk-drawer-card__signal {
  width: max-content;
  max-width: 100%;
  margin-bottom: 13px;
  padding: 5px 8px;
  border: 1px solid #11100d;
  background: #11100d;
  color: #f7f4ea;
}

.junk-drawer-card__visual {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgb(212 209 196 / 0.68);
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgb(17 16 13 / 0.02) 1px, transparent 1px),
    rgb(255 255 255 / 0.45);
  background-size: 12px 12px;
  color: #292928;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.junk-drawer-card__visual--convert {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.junk-drawer-card__visual--convert span {
  display: grid;
  min-height: 40px;
  border: 1px solid #11100d;
  place-items: center;
}

.junk-drawer-card__visual--convert span:last-child {
  background: #11100d;
  color: #f7f4ea;
}

.junk-drawer-card__visual--convert b {
  font-size: 18px;
}

.junk-drawer-card__visual--compress {
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.junk-drawer-card__visual--compress div {
  height: 12px;
  border: 1px solid #11100d;
  background: rgb(17 16 13 / 0.06);
}

.junk-drawer-card__visual--compress i {
  display: block;
  width: 34%;
  height: 100%;
  background: #11100d;
}

.junk-drawer-card__visual--character {
  min-height: 122px;
  margin: 0;
  align-content: center;
  justify-items: center;
}

.junk-drawer-card__visual--character span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 4.7rem);
  line-height: 0.85;
}

.junk-drawer-card__visual--character code {
  margin-top: 8px;
  padding: 4px 6px;
  border: 1px dashed #c8c4b6;
  background: rgb(255 255 255 / 0.55);
}

.junk-drawer-card__visual--list {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
}

.junk-drawer-card__visual--list span {
  display: grid;
  min-height: 42px;
  padding: 6px;
  border: 1px solid #11100d;
  align-items: center;
}

.junk-drawer-card__visual--list span:first-child {
  color: #6f675a;
  background:
    linear-gradient(0deg, transparent 12px, rgb(17 16 13 / 0.18) 13px),
    rgb(255 255 255 / 0.58);
  background-size: 100% 13px;
}

.junk-drawer-card__visual--list span:last-child {
  background: #11100d;
  color: #f7f4ea;
}

.junk-drawer-card__visual--list b {
  color: #11100d;
  font-size: 16px;
}

.junk-drawer-card__visual--lemon-dom {
  position: relative;
  grid-template-columns: repeat(3, 8px) 1fr;
  gap: 6px;
  align-items: start;
}

.junk-drawer-card__visual--lemon-dom::after {
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 86px;
  height: 36px;
  border: 1px solid #11100d;
  border-radius: 1px 9px 1px 1px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.58), rgb(240 200 74 / 0.32)),
    rgb(240 200 74 / 0.24);
  box-shadow:
    0 0 0 4px rgb(240 200 74 / 0.16),
    7px 7px 0 rgb(17 16 13 / 0.08);
  content: "";
  transform: skew(-7deg) scaleX(0.92);
}

.junk-drawer-card__visual--lemon-dom span {
  width: 8px;
  height: 8px;
  border: 1px solid #11100d;
  border-radius: 50%;
  background: #f0c84a;
}

.junk-drawer-card__visual--lemon-dom b {
  position: absolute;
  right: 70px;
  bottom: 51px;
  z-index: 1;
  padding: 2px 5px;
  border: 1px solid #11100d;
  background: #f7f4ea;
  box-shadow: 3px 3px 0 rgb(17 16 13 / 0.1);
  font-size: 10px;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.junk-drawer-card__visual--lemon-dom i,
.junk-drawer-card__visual--lemon-dom em {
  position: absolute;
  z-index: 1;
  font-style: normal;
  text-transform: uppercase;
}

.junk-drawer-card__visual--lemon-dom i {
  right: 46px;
  bottom: 25px;
  color: #11100d;
  text-shadow: 0 0 8px rgb(240 200 74 / 0.92);
}

.junk-drawer-card__visual--lemon-dom em {
  right: 107px;
  bottom: 16px;
  padding: 2px 5px;
  border: 1px solid #11100d;
  background: #fffdf7;
  font-size: 9px;
  transform: scaleX(0.74);
  transform-origin: right center;
}

.junk-drawer-card__visual--free-source {
  position: relative;
  align-content: center;
  gap: 7px;
  background: #fffdf7;
}

.junk-drawer-card__visual--external,
.junk-drawer-card__visual--sponsor {
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  text-transform: uppercase;
}

.junk-drawer-card__visual--external {
  background:
    linear-gradient(90deg, rgb(17 16 13 / 0.035) 1px, transparent 1px),
    #ebe8dd;
  background-size: 12px 12px;
}

.junk-drawer-card__visual--external span,
.junk-drawer-card__visual--sponsor span {
  padding: 4px 7px;
  border: 1px dashed #c8c4b6;
  background: rgb(255 255 255 / 0.58);
  color: #55534e;
  font-size: 10px;
}

.junk-drawer-card__visual--sponsor {
  border-color: #c09d58;
  background:
    linear-gradient(90deg, rgb(192 157 88 / 0.12) 0 8px, transparent 8px 16px),
    #fff7df;
}

.junk-drawer-card__visual--sponsor strong {
  padding: 8px 10px;
  border: 2px solid #11100d;
  background: #fffdf7;
  font-size: 16px;
  transform: rotate(-4deg);
}

.junk-drawer-card__visual--free-source strong,
.junk-drawer-card__visual--free-source span {
  display: block;
  max-width: calc(100% - 86px);
}

.junk-drawer-card__visual--free-source strong {
  padding-bottom: 5px;
  border-bottom: 1px solid #11100d;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.junk-drawer-card__visual--free-source span {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.junk-drawer-card__visual--free-source b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 8px;
  border: 2px solid #11100d;
  font-size: 10px;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
}

.junk-drawer-card h4 {
  margin: 0 0 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.junk-drawer-card p {
  margin: 0 0 14px;
  color: #4f4d47;
  font-size: 14px;
  line-height: 1.45;
}

.junk-drawer-card__meta {
  margin-top: auto;
  margin-bottom: 16px;
}

.junk-drawer-card__cta {
  display: inline-flex;
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  align-items: center;
  justify-content: center;
  color: #292928;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.junk-drawer-card__cta--primary {
  border-color: #11100d;
  background: #11100d;
  color: #f7f4ea;
}

.junk-drawer-card__cta--secondary {
  border-color: #11100d;
  background: transparent;
}

.junk-drawer-card__cta--external {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #292928;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.junk-drawer-card:hover .junk-drawer-card__cta--primary,
.junk-drawer-card:focus-visible .junk-drawer-card__cta--primary,
.junk-drawer-card:focus-within .junk-drawer-card__cta--primary {
  background: #2a2924;
}

.junk-drawer-card:hover .junk-drawer-card__cta--secondary,
.junk-drawer-card:focus-visible .junk-drawer-card__cta--secondary,
.junk-drawer-card:focus-within .junk-drawer-card__cta--secondary {
  background: rgb(17 16 13 / 0.05);
}

.junk-drawer-card--external {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  width: 100%;
  max-width: 620px;
  padding: 14px;
  border-style: dashed;
  background: #efede4;
  box-shadow: 0 3px 0 #d4d1c4;
}

.junk-drawer-card--external::before {
  background: #b8b1a1;
}

.junk-drawer-card--external .junk-drawer-card__type {
  grid-column: 1 / -1;
  border-color: #c8c4b6;
  background: rgb(255 255 255 / 0.5);
  color: #55534e;
}

.junk-drawer-card--external .junk-drawer-card__main {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: start;
}

.junk-drawer-card--external .junk-drawer-card__logo {
  grid-row: auto;
  opacity: 0.82;
}

.junk-drawer-card--external h4,
.junk-drawer-card--external p,
.junk-drawer-card--external .junk-drawer-card__cta {
  grid-column: auto;
}

.junk-drawer-card--external p {
  margin-bottom: 4px;
}

.junk-drawer-card--sponsor {
  width: 100%;
  max-width: 620px;
  border: 1px dashed #c09d58;
  background:
    linear-gradient(90deg, rgb(192 157 88 / 0.16) 0 8px, transparent 8px 16px),
    #fcfaf3;
  box-shadow: 0 4px 0 #c09d58;
}

.junk-drawer-card--sponsor::before {
  background: #c09d58;
}

.junk-drawer-card--sponsor:hover,
.junk-drawer-card--sponsor:focus-visible {
  border-color: #a88440;
  background: #faf8ed;
  box-shadow: 0 6px 0 #a88440;
}

.junk-drawer-card--sponsor .junk-drawer-card__type {
  border-color: #c09d58;
  color: #6f5421;
  background: rgb(255 245 215 / 0.75);
}

.junk-drawer-card__main {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.junk-drawer-card__logo {
  width: 72px;
  height: 72px;
  border: 1px solid #11100d;
  background: #000;
  object-fit: cover;
}

.junk-drawer-card__credit {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-card__credit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.junk-drawer-related {
  padding-bottom: 10px;
}

.junk-drawer-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

.junk-drawer-related__grid a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d4d1c4;
  align-items: center;
  justify-content: space-between;
  background: rgb(255 253 247 / 0.56);
  color: #292928;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.junk-drawer-related__grid a::after {
  content: "\2192";
}

.junk-drawer-related__grid a:hover,
.junk-drawer-related__grid a:focus-visible {
  border-color: #11100d;
  background: #fffdf7;
}

@media (min-width: 760px) {
  .junk-drawer-premier__layout {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  }

  .junk-drawer-compartment {
    grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
    align-items: start;
  }

  .junk-drawer-compartment--other {
    grid-template-columns: minmax(170px, 0.28fr) minmax(0, 0.72fr);
  }

  .junk-drawer-compartment--text {
    grid-template-columns: minmax(172px, 0.26fr) minmax(0, 1fr);
  }

  .junk-drawer-compartment--text .junk-drawer-grid--single,
  .junk-drawer-compartment--text .junk-drawer-grid--text {
    align-self: stretch;
  }

  .junk-drawer-compartment--text .junk-drawer-card--character {
    min-height: 100%;
    grid-template-columns: minmax(136px, 0.24fr) minmax(0, 1fr);
    column-gap: 22px;
    background:
      linear-gradient(90deg, rgb(17 16 13 / 0.03) 0 170px, transparent 170px),
      #f7f6f0;
  }

  .junk-drawer-compartment--text .junk-drawer-card--list-mechanic {
    min-height: 100%;
  }
}

@media (max-width: 700px) {
  .junk-drawer-page .content {
    padding-top: 12px;
  }

  .junk-drawer-hero,
  .junk-drawer-premier,
  .junk-drawer-compartment {
    margin-right: 0;
    margin-left: 0;
  }

  .junk-drawer-premier {
    gap: 12px;
    box-shadow: 6px 6px 0 rgb(17 16 13 / 0.08);
  }

  .junk-drawer-hero {
    gap: 12px;
    margin-bottom: 18px;
  }

  .junk-drawer-hero h1 {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }

  .junk-drawer-hero__copy {
    line-height: 1.42;
  }

  .junk-drawer-hero__notes {
    gap: 7px;
  }

  .junk-drawer-hero__notes li {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .junk-drawer-premier__tag {
    margin-bottom: 12px;
  }

  .junk-drawer-premier h2 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .junk-drawer-premier__copy p {
    margin-bottom: 10px;
    line-height: 1.42;
  }

  .junk-drawer-premier__meta {
    margin-bottom: 12px;
  }

  .junk-drawer-premier__visual {
    min-height: 120px;
    padding: 10px;
  }

  .junk-drawer-premier__visual img {
    width: auto;
    max-height: 188px;
    object-fit: contain;
  }

  .junk-drawer-premier__actions {
    gap: 8px;
  }

  .junk-drawer-grid {
    grid-template-columns: 1fr;
  }

  .junk-drawer-grid--experiments {
    grid-template-columns: 1fr;
  }

  .junk-drawer-grid--text {
    grid-template-columns: 1fr;
  }

  .junk-drawer-card--free-source {
    transform: none;
  }

  .junk-drawer-card--character,
  .junk-drawer-card--external .junk-drawer-card__main {
    grid-template-columns: 1fr;
  }

  .junk-drawer-card--character .junk-drawer-card__type,
  .junk-drawer-card--character h4,
  .junk-drawer-card--character p,
  .junk-drawer-card--character .junk-drawer-card__meta,
  .junk-drawer-card--character .junk-drawer-card__cta,
  .junk-drawer-card--character .junk-drawer-card__visual,
  .junk-drawer-card--external h4,
  .junk-drawer-card--external p,
  .junk-drawer-card--external .junk-drawer-card__cta {
    grid-column: auto;
  }

  .junk-drawer-card--external .junk-drawer-card__logo {
    grid-row: auto;
  }

  .junk-drawer-card__visual {
    min-height: 58px;
    margin-bottom: 12px;
  }

  .junk-drawer-card__visual--character {
    min-height: 76px;
  }
}

@media (max-width: 420px) {
  .junk-drawer-main {
    padding-bottom: 34px;
  }

  .junk-drawer-hero,
  .junk-drawer-premier,
  .junk-drawer-compartment,
  .junk-drawer-card {
    padding: 10px;
  }

  .junk-drawer-hero {
    gap: 9px;
    margin-bottom: 14px;
  }

  .junk-drawer-hero__copy {
    font-size: 0.96rem;
  }

  .junk-drawer-premier {
    margin-bottom: 28px;
  }

  .junk-drawer-premier__tag {
    margin-bottom: 8px;
    padding: 5px 8px;
  }

  .junk-drawer-premier__layout {
    gap: 10px;
  }

  .junk-drawer-premier__kicker {
    margin-bottom: 5px;
  }

  .junk-drawer-premier h2 {
    margin-bottom: 6px;
  }

  .junk-drawer-premier__meta {
    gap: 6px;
    margin-bottom: 8px;
  }

  .junk-drawer-premier__visual {
    min-height: 0;
    padding: 8px;
  }

  .junk-drawer-premier__visual img {
    max-height: 150px;
  }

  .junk-drawer-shelf {
    margin-top: 30px;
  }

  .junk-drawer-shelf__head {
    margin-bottom: 12px;
  }

  .junk-drawer-compartment {
    gap: 10px;
    border-color: rgb(212 209 196 / 0.52);
  }

  .junk-drawer-btn,
  .junk-drawer-premier__actions {
    width: 100%;
  }

  .junk-drawer-directory {
    gap: 12px;
  }

  .junk-drawer-grid {
    gap: 10px;
  }

  .junk-drawer-card {
    box-shadow: 0 3px 0 #d4d1c4;
  }

  .junk-drawer-card__type {
    margin-bottom: 9px;
  }

  .junk-drawer-card p {
    margin-bottom: 10px;
  }

  .junk-drawer-card__meta {
    margin-bottom: 10px;
  }

  .junk-drawer-card__visual {
    min-height: 48px;
    margin-bottom: 10px;
    border-color: rgb(212 209 196 / 0.48);
  }

  .junk-drawer-card__visual--convert,
  .junk-drawer-card__visual--compress {
    gap: 6px;
    padding: 7px;
  }

  .junk-drawer-card__visual--convert span {
    min-height: 31px;
  }

  .junk-drawer-card__visual--character {
    min-height: 66px;
    padding: 9px;
  }

  .junk-drawer-card__visual--character span {
    font-size: 3rem;
  }

  .junk-drawer-card__visual--lemon-dom,
  .junk-drawer-card__visual--free-source {
    min-height: 70px;
    padding: 9px;
  }

  .junk-drawer-card__visual--free-source strong,
  .junk-drawer-card__visual--free-source span {
    max-width: calc(100% - 74px);
  }

  .junk-drawer-card__visual--free-source b {
    right: 10px;
    bottom: 10px;
    padding: 6px 7px;
  }
}
