/* Colors come from the game: the HUD rose family (Docs/ui-reference.md),
   the shop wallpaper stripes and the wood of the room (Docs/cat-mail-style.md). */
:root {
  --frame: #5b2f45;
  --head: #c98aa5;
  --body: #f3c4d3;
  --row: #fbe0e8;
  --text-soft: #8a4e68;
  --gold: #e9c942;
  --accept: #6cc04a;
  --pop: #e8649a;
  --stripe: #8676b8;
  --stripe-2: #7c6cb0;
  --cream: #efe3cf;
  --wood: #97663f;
  --wood-light: #b07c52;
  --wood-dark: #684230;
  --wood-deep: #42291f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 18px/1.5 Fredoka, system-ui, sans-serif;
  color: var(--frame);
  /* the shop wallpaper */
  background: repeating-linear-gradient(90deg, var(--stripe) 0 64px, var(--stripe-2) 64px 66px, var(--cream) 66px 130px, #e4d6c0 130px 132px);
}

img, video { display: block; max-width: 100%; height: auto; }
b { font-weight: 600; }
a { color: inherit; }

/* Hero */
.hero { position: relative; background: var(--wood-deep); overflow: hidden; }
.hero-art img { width: 100%; height: min(86vh, 56vw); min-height: 460px; object-fit: cover; object-position: 80% 50%; }
.hero-text {
  position: absolute; inset: 0 auto 0 0; width: min(46%, 560px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 24px 24px 24px clamp(24px, 6vw, 96px);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 62%;
  background: linear-gradient(90deg, rgba(43, 20, 36, .82) 30%, rgba(43, 20, 36, 0));
}
.hero h1 { margin: 0; }
.hero h1 img { width: clamp(200px, 26vw, 380px); filter: drop-shadow(0 4px 0 var(--frame)); }
.sub {
  margin: 8px 0 0; padding: 2px 16px;
  font: 800 clamp(18px, 2vw, 26px)/1.4 "Baloo 2", sans-serif; letter-spacing: .04em;
  color: var(--frame); background: var(--gold); border: 3px solid var(--frame); border-radius: 8px;
  transform: rotate(-2deg);
}
.note { margin: 20px 0; font: 400 clamp(20px, 2.1vw, 28px)/1.25 "Patrick Hand", cursive; }
.when { margin: 14px 0 0; font-weight: 500; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 26px 8px;
  font: 800 24px/1.3 "Baloo 2", sans-serif; color: #fff; text-decoration: none;
  text-shadow: 0 2px 0 rgba(43, 20, 36, .45);
  background: var(--accept); border: 3px solid var(--frame); border-radius: 14px;
  box-shadow: 0 6px 0 var(--frame);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--frame); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--frame); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 30px; height: 30px; fill: #fff; margin-top: -2px; }

/* The wooden counter under the hero, and the footer */
.counter, footer {
  background:
    repeating-linear-gradient(90deg, transparent 0 238px, var(--wood-dark) 238px 240px),
    linear-gradient(var(--wood-light), var(--wood));
  border-top: 4px solid var(--wood-deep);
  border-bottom: 4px solid var(--wood-deep);
}
.counter { height: 36px; }

/* Content */
main { max-width: 1120px; margin: 0 auto; padding: 40px 16px 64px; }
section { margin-top: 56px; }

.card {
  margin: 0; overflow: hidden;
  background: var(--row); border: 3px solid var(--frame); border-radius: 14px;
  box-shadow: 0 6px 0 var(--frame);
}

.intro { margin-top: 0; padding: 20px 28px; background: var(--body); font-size: 21px; font-weight: 500; text-align: center; }
.intro p { margin: 0; }

h2 { margin: 0 0 20px; font: 800 34px/1.2 "Baloo 2", sans-serif; }
h2 span {
  display: inline-block; padding: 4px 22px 0;
  color: var(--row); background: var(--frame); border-radius: 10px;
  transform: rotate(-1.5deg);
}

.steps, .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps { counter-reset: step; }
.steps video { width: 100%; aspect-ratio: 616 / 346; object-fit: cover; background: var(--wood-deep); border-bottom: 3px solid var(--frame); }
figcaption { position: relative; padding: 12px 14px 14px 54px; min-height: 58px; line-height: 1.3; }
figcaption::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 12px; width: 30px; height: 30px;
  font: 800 18px/32px "Baloo 2", sans-serif; text-align: center;
  color: var(--row); background: var(--pop); border: 2px solid var(--frame); border-radius: 50%;
}

.grow { display: grid; grid-template-columns: 5fr 6fr; align-items: center; }
.grow img { height: 100%; object-fit: cover; border-right: 3px solid var(--frame); }
.grow div { padding: 24px 28px; }
.grow p { margin: 0 0 18px; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 3px 12px; font-weight: 500; font-size: 16px; background: var(--body); border: 2px solid var(--frame); border-radius: 8px; }

.shots a { transition: transform .08s; }
.shots a:hover { transform: translateY(-3px); }
.shots img { width: 100%; }

.wish { margin-top: 56px; padding: 28px 20px 34px; background: var(--body); text-align: center; }
.wish p { margin: 0 0 20px; font-size: 20px; }
.wish iframe { display: block; width: 100%; max-width: 646px; margin: 0 auto 24px; border: 3px solid var(--frame); border-radius: 8px; }

footer { padding: 28px 16px; border-bottom: 0; color: #fff3e2; text-align: center; }
footer img { margin: 0 auto 10px; border: 3px solid var(--wood-deep); border-radius: 14px; }
footer p { margin: 0; font-weight: 500; }
footer .small { margin-top: 6px; font-size: 13px; font-weight: 400; opacity: .8; }

@media (max-width: 900px) {
  .steps, .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero::before { display: none; }
  .hero-art img { height: 62vw; min-height: 300px; object-position: 50% 62%; }
  .hero-text { position: static; width: auto; align-items: center; padding: 20px 16px 28px; text-align: center; background: var(--frame); }
  .hero h1 img { width: 210px; filter: none; }
  .note { margin: 16px 0; }
  .grow { grid-template-columns: 1fr; }
  .grow img { border-right: 0; border-bottom: 3px solid var(--frame); aspect-ratio: 16 / 9; }
  .intro { font-size: 18px; padding: 16px; }
  main { padding-top: 28px; }
  section { margin-top: 40px; }
}

@media (max-width: 560px) {
  .steps, .shots { grid-template-columns: 1fr; }
  .btn { font-size: 21px; padding: 9px 20px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .shots a { transition: none; }
}
