.rv-stamp-book-document {
  background: #f6f1e5;
  color: #1c3a33;
  color-scheme: light;
}

.stamp-book {
  --stamp-forest: #21463c;
  --stamp-rule: #c6c9b9;
  --stamp-paper: #fff9e8;
}

.stamp-hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 35%, #346053 0%, #21463c 50%, #193831 100%);
  color: #fff2d8;
}

.stamp-hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 72px);
  padding-block: clamp(32px, 4vw, 64px);
}

.stamp-hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 795;
  letter-spacing: -.06em;
  line-height: .98;
}

.stamp-hero p {
  max-width: 36ch;
  margin-block: 15px 22px;
  color: #eee5d0;
  font-size: clamp(1.015rem, 1.6vw, 1.2rem);
}

.stamp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; }

.stamp-button,
.stamp-secondary,
.stamp-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 750;
  text-decoration: none;
}

.stamp-button,
.stamp-secondary {
  padding: .62rem .85rem;
  border: 1px solid transparent;
  border-radius: 6px;
}

.stamp-button { background: var(--stamp-forest); color: var(--stamp-paper); }
.stamp-button:hover { background: #18372f; }
.stamp-hero .stamp-button { background: #f5dba3; color: #243c33; }
.stamp-hero .stamp-button:hover { background: #ffe9bb; }
.stamp-secondary { border-color: #fff2d871; }
.stamp-secondary:hover { background: #fff2d818; }
.stamp-text-link { color: #25594c; text-underline-offset: .24em; }
.stamp-text-link:hover { text-decoration: underline; }
.stamp-button:focus-visible,
.stamp-secondary:focus-visible,
.stamp-text-link:focus-visible,
.stamp-card a:focus-visible,
.stamp-remove:focus-visible,
.stamp-search input:focus-visible { outline-color: #9d493b; }
.stamp-hero a:focus-visible { outline-color: #f5dba3; }

.stamp-examples {
  width: 100%;
  max-width: 545px;
  justify-self: end;
}

.stamp-deck { position: relative; aspect-ratio: 1.73; }

.stamp-deck > div {
  position: absolute;
  width: 53%;
  padding: 3%;
  border: 1px solid #faf4df;
  border-radius: 7px;
  background: #fcf3da;
  box-shadow: 0 11px 26px #10261f94;
}

.stamp-deck canvas,
.stamp-card canvas { display: block; width: 100%; height: auto; }
.stamp-deck > div:nth-child(1) { top: 10%; left: 2%; transform: rotate(-12deg); }
.stamp-deck > div:nth-child(2) { top: 12%; right: 3%; transform: rotate(11deg); }
.stamp-deck > div:nth-child(3) { top: 33%; left: 26%; transform: rotate(-4deg); }
.stamp-deck[data-count="1"] > div:first-child { top: 9%; left: 17%; width: 66%; transform: rotate(-6deg); }
.stamp-deck[data-count="2"] > div:nth-child(2) { top: 26%; }

.stamp-examples figcaption {
  margin-top: 5px;
  color: #e9dfc6;
  font: 650 .72rem/1.4 var(--label);
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}

.stamp-collection { min-height: 350px; padding-block: clamp(31px, 4.8vw, 72px); }

.stamp-collection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.stamp-collection h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 790;
  letter-spacing: -.062em;
  line-height: 1.03;
}

#stamp-count { margin-top: 7px; color: #52665b; }
.stamp-status { color: #4a6056; }
.stamp-search label { font-size: .88rem; font-weight: 700; }
.stamp-search > div { position: relative; margin-top: 4px; }
.stamp-search svg { position: absolute; top: 12px; left: 11px; color: #49685d; pointer-events: none; }
.stamp-search input {
  width: min(310px, 100%);
  min-height: 44px;
  padding: 7px 11px 7px 38px;
  border: 1px solid #95a697;
  border-radius: 6px;
  background: #fffcf3;
  color: #1c3a33;
}

.stamp-empty {
  display: flex;
  align-items: start;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px dashed #9caf9e;
  border-radius: 8px;
  background: #eaede0;
}

.stamp-empty > svg { margin-top: 3px; color: #345c50; }
.stamp-empty h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.035em; line-height: 1.17; }
.stamp-empty p { margin: 6px 0 10px; color: #465e54; }

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stamp-rule);
  border-radius: 8px;
  background: #fdfaf0;
}

.stamp-card-art {
  padding: clamp(5px, 2vw, 24px);
  border-bottom: 1px dashed #d4c9ad;
  background-color: #f5ead3;
  background-image: repeating-linear-gradient(26deg, #86765308 0 1px, transparent 1px 5px);
}

.stamp-card-details {
  position: relative;
  padding: 12px max(38px, 3.3vw) 14px 13px;
  overflow-wrap: anywhere;
}

.stamp-card-details a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
}
.stamp-card-details a:hover { text-decoration: underline; text-underline-offset: .16em; }
.stamp-card-details h3 { font-size: clamp(1.02rem, 2vw, 1.4rem); letter-spacing: -.03em; line-height: 1.14; }
.stamp-card-details p { margin-top: 5px; color: #4e655b; font-size: .85rem; line-height: 1.25; }
.stamp-remove {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #6b594b;
}
.stamp-remove:hover { color: #8b3e30; }
.stamp-remove:focus-visible { outline-offset: -5px; }
.stamp-remove:disabled { opacity: .55; }
#stamp-more { margin-top: 12px; }

@media (max-width: 740px) {
  .stamp-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
    padding-block: 29px 26px;
  }
  .stamp-examples { width: min(100%, 425px); justify-self: center; }
  .stamp-hero h1 { font-size: clamp(2.9rem, 10.2vw, 4.4rem); }
  .stamp-hero p { margin-block: 10px 16px; }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .stamp-button, .stamp-secondary { padding-inline: .58rem; font-size: .92rem; }
  .stamp-examples { width: min(100%, 315px); }
  .stamp-collection-head { align-items: start; flex-direction: column; margin-bottom: 13px; }
  .stamp-search { width: 100%; }
  .stamp-search input { width: 100%; }
  .stamp-empty { gap: 9px; }
  .stamp-empty > svg { width: 22px; height: 22px; }
  .stamp-card-details { padding: 9px 39px 11px 8px; }
  .stamp-card-details a > svg { display: none; }
}
