:root {
  --brand-red: #E3020C;
  --brand-cream: #FEF1E0;
  --brand-sand: #E8D1B5;
  --text: #3B2B21;
  --radius: 28px;
  --radius-img: 24px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .14);
}

* {
  box-sizing: border-box
}

html {
  font-size: clamp(14px, 1.4vw, 17px)
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--brand-cream), var(--brand-sand));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55
}

img {
  display: block;
  max-width: 100%
}

.wrap {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: 16px
}

/* header */
.pm-header {
  padding: 12px 0
}

.pm-logo img {
  height: 36px;
  width: auto
}

/* return banner */
.pm-return {
  background: #ffffffcc;
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, .06)
}

.pm-return-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0
}

.pm-return .pm-go {
  background: var(--brand-red);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none
}

.pm-return .pm-link {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer
}

/* main */
.pm-main {
  padding: 18px 0 10px;
  text-align: center;
  min-height: 83vh;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4.6vw, 40px);
  font-family: "Baloo 2", system-ui;
  font-weight: 800;
  letter-spacing: .2px
}

.sub {
  margin: 0 0 18px;
  opacity: .9
}

/* cards layout */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 12px auto 32px
}

@media (min-width:900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
  }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit
}

.card-in {
  position: relative;
  background: #e7d2b6;
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .16s ease, box-shadow .16s ease
}

.card:hover .card-in {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18)
}

.card-head {
  text-align: left
}

.card-head .over {
  display: block;
  font-size: .9rem;
  opacity: .85
}

.card-head .title {
  margin: .1rem 0 10px;
  font-size: clamp(26px, 5.2vw, 44px);
  font-family: "Baloo 2", system-ui;
  font-weight: 800;
  letter-spacing: .4px
}

.card-fig {
  margin: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #00000010
}

.card-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-img)
}

/* floating action button */
.fab {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 10px 28px rgba(227, 2, 12, .28)
}

/* saved highlight */
.card.is-saved .card-in {
  outline: 3px solid var(--brand-red);
  box-shadow: 0 16px 44px rgba(227, 2, 12, .22)
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand-red);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 6px 16px rgba(227, 2, 12, .28)
}

/* ------- COMPACT MODE: <= 900px -------- */
@media (max-width: 900px) {

  /* shrink header & spacing */
  .pm-header {
    padding: 6px 0
  }

  .pm-return-in {
    padding: 6px 0
  }

  .pm-main {
    padding: 10px 0 6px
  }

  h1 {
    font-size: clamp(20px, 5.2vw, 28px)
  }

  .sub {
    margin: 0 0 10px;
    font-size: clamp(13px, 3.6vw, 15px)
  }

  /* keep BOTH cards visible without scroll */
  .cards {
    gap: 10px;
    margin: 8px auto 10px;
    height: calc(100dvh - 140px);
    /* approx header+texts */
    grid-template-rows: 1fr 1fr;
    align-content: stretch
  }

  .card-in {
    padding: 12px;
    border-radius: 20px
  }

  .card-head .title {
    font-size: clamp(18px, 6vw, 24px);
    margin: 2px 0 6px
  }

  .card-head .over {
    font-size: .8rem
  }

  /* image height capped by viewport to fit 2 cards */
  .card-fig img {
    height: min(22dvh, 200px);
    aspect-ratio: auto
  }

  .fab {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 12px;
    font-size: 1.05rem
  }

  .badge {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: .72rem
  }
}

/* footer wave */
.pm-footer {
  margin-top: 10px
}

.wave path {
  fill: var(--brand-red)
}

.wave {
  display: block
}