/* The gift-idea pages (/custom-pet-gifts/, /pet-memorial-gifts/, /christmas-gifts-for-pet-lovers/, /pet-birthday-gift/) and
   the examples page (/examples/). On top of kit.css + hub.css: same paper, inks, tape and puppets as the landing page.
   Pictures are only our two example pets, Pepper and Maple (assets/examples/, copied by sync_examples.py), always marked
   as examples. */

/* ---------- a gift-idea page ---------- */
.g-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 48px 0 8px; }
.g-hero .hand { margin: 0 0 6px; }
.g-hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; margin: 0 0 18px; text-wrap: balance; }
.g-hero .lead { font-size: 19px; color: var(--kp-soft); max-width: 34em; margin: 0 0 24px; }
.g-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.g-hero .price-line { margin: 18px 0 0; color: var(--kp-soft); font-size: 15px; }
.g-hero .price-line strong { color: var(--kp-ink); font: 400 20px var(--kp-serif); margin-right: 4px; }

/* the picture beside the heading: a yellow paper cut-out with example pieces laid on it */
.g-art { position: relative; aspect-ratio: 1 / .92; max-width: 520px; width: 100%; justify-self: center; }
.g-art > .cutout { position: absolute; inset: 9% 6% 7% 8%; transform: rotate(-2deg); }
.g-art .piece { position: absolute; }
.g-art .polaroid { width: 38%; }
.g-art .polaroid > img { aspect-ratio: .82; object-position: 50% 30%; }
.g-art .note { position: absolute; margin: 0; font: 400 21px/1.1 var(--kp-hand); color: var(--kp-pen); text-align: center; }
.g-art .note small { display: block; font-size: 16px; color: var(--kp-soft); }
.g-art .stampbox, .g-art .ringbox { position: absolute; display: grid; place-items: center; }
.g-art .stampbox > img, .g-art .ringbox > img { width: 100%; grid-area: 1 / 1; }
.g-art .stampbox .in { width: 74%; grid-area: 1 / 1; }
.g-art .ringbox .in { width: 66%; grid-area: 1 / 1; }

/* "what they get": three rows, each in its product's ink */
.g-get { padding-top: 80px; }
.g-get > p { color: var(--kp-soft); max-width: 40em; margin: 0 0 26px; }
.g-rows { display: grid; gap: 18px; }
.g-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--kp-paper); padding: 18px 22px; box-shadow: var(--kp-lift); }
.g-row .pic { position: relative; height: 112px; display: grid; place-items: center; }
.g-row .pic img { max-height: 112px; max-width: 100%; object-fit: contain; }
.g-row .pic .card-face { max-height: 116px; transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(40, 30, 20, .25); }
.g-row h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 4px; }
.g-row p { margin: 0; color: var(--kp-soft); }
.g-row .example { position: absolute; right: -4px; bottom: -8px; font-size: 15px; }

/* the occasion's own notes, on a taped strip */
.g-notes { padding-top: 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.g-notes .strip h2 { margin-top: 0; }
.g-notes .strip ul { margin: 0; padding-left: 1.2em; }
.g-notes .strip li + li { margin-top: 8px; }
.g-notes .side p { color: var(--kp-soft); }
.g-notes .side h2 { margin-top: 0; }

/* a band pointing at the examples page */
.g-see { margin-top: 80px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; background: var(--kp-page-2); }
.g-see .pair { display: flex; align-items: end; }
.g-see .pair img { height: 92px; width: auto; }
.g-see .pair img + img { margin-left: -14px; }
.g-see h2 { font-size: 24px; margin: 0 0 4px; }
.g-see p { margin: 0; color: var(--kp-soft); }

/* more ideas: kraft tags */
.g-ideas { padding-top: 80px; }
.g-ideas ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.g-ideas a { display: block; padding: 10px 18px 10px 26px; background: #d9b98c; color: var(--kp-ink); text-decoration: none; font: 400 15px/1.3 var(--kp-typed);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.g-ideas a:hover { background: #cfa974; }

/* a remembered pet's page puts the kit's .kp-remember on its picture: blue-grey paper, ink shadows */

@media (max-width: 900px) {
  .g-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; }
  .g-art { max-width: 400px; }
  .g-notes { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; }
  .g-get, .g-ideas { padding-top: 64px; }
  .g-see { grid-template-columns: 1fr; margin-top: 64px; }
}
@media (max-width: 560px) {
  .g-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .g-row .pic { height: 84px; } .g-row .pic img { max-height: 84px; } .g-row .pic .card-face { max-height: 88px; }
  .g-row h3 { font-size: 19px; }
}

/* ---------- the examples page ---------- */
.x-head { padding: 48px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.x-head h1 { font-size: clamp(38px, 5.6vw, 60px); margin: 0 0 14px; }
.x-head .lead { font-size: 19px; color: var(--kp-soft); max-width: 36em; margin: 0; }
.x-head .snaps { display: flex; gap: 10px; }
.x-head .snaps .polaroid { width: 150px; }
.x-head .snaps .polaroid + .polaroid { transform: rotate(5deg); margin-top: 18px; }
.x-head .snaps .polaroid > img { aspect-ratio: .8; object-position: 50% 30%; }
.x-jump { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }

.x-pet { padding-top: 88px; }
.x-pet > header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--kp-ink); padding-bottom: 10px; }
.x-pet > header h2 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.x-pet > header .typed { color: var(--kp-soft); }
.x-part { margin-top: 40px; }
.x-part > h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 6px; }
.x-part > p { color: var(--kp-soft); margin: 0 0 18px; max-width: 46em; }

/* the poses on a paper stage */
.x-stage { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 26px 16px 18px; background: var(--kp-paper); box-shadow: var(--kp-lift); }
.x-stage::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 30px; height: 2px; background: var(--kp-rule); }
.x-stage figure { margin: 0; width: 120px; text-align: center; position: relative; z-index: 1; }
.x-stage img { width: 120px; height: 120px; object-fit: contain; }
.x-stage figcaption { font: 400 13px/1.2 var(--kp-typed); color: var(--kp-soft); margin-top: 4px; }

/* the show's script: five scenes, each line can be played */
.x-show { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; margin-top: 26px; }
.x-script { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.x-script li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--kp-rule); }
.x-script .scene { display: block; font: 400 13px/1.3 var(--kp-typed); color: var(--kp-red-ink); margin-bottom: 2px; }
.x-script q { font: 400 17px/1.5 var(--kp-sans); color: var(--kp-ink); quotes: '“' '”'; }
.x-play { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--kp-ink); color: #fbf7ee; cursor: pointer; display: grid; place-items: center; }
.x-play svg { width: 16px; height: 16px; }
.x-play:hover { background: #1b2340; }
.x-play[aria-pressed="true"] { background: var(--kp-red-ink); }
.x-said { position: relative; background: #fff3d6; padding: 22px 22px 18px; transform: rotate(.6deg); box-shadow: var(--kp-lift); }
.x-said .typed { color: var(--kp-soft); margin: 0 0 6px; }
.x-said blockquote { margin: 0 0 10px; font: 400 26px/1.15 var(--kp-hand); color: var(--kp-pen); }
.x-said img { width: 62%; display: block; margin: 4px auto 0; }
.x-said p { margin: 6px 0 0; font-size: 15px; color: var(--kp-soft); }
.x-said .tape.c { top: -18px; width: 110px; left: calc(50% - 55px); }

/* five little roles */
.x-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.x-roles figure { margin: 0; background: var(--kp-paper); padding: 12px 10px 10px; text-align: center; box-shadow: var(--kp-lift); }
.x-roles img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.x-roles figcaption { font: 400 14px/1.2 var(--kp-typed); color: var(--kp-soft); margin-top: 6px; }

/* sixteen stickers */
.x-stickers { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px 8px; padding: 20px; background: var(--kp-dots), #f6f1e4; box-shadow: inset 0 0 0 2px var(--kp-rule); }
.x-stickers figure { margin: 0; text-align: center; }
.x-stickers img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.x-stickers figcaption { font: 400 12.5px/1.2 var(--kp-typed); color: var(--kp-soft); }

/* the tale: cards, as the draw shows them */
.x-tale { padding-top: 88px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.x-cards { display: flex; justify-content: center; padding: 10px 0 20px; }
.x-cards img { width: 30%; max-width: 170px; box-shadow: 0 3px 10px rgba(40, 30, 20, .28); }
.x-cards img:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.x-cards img:nth-child(2) { transform: rotate(-1deg); margin: 0 -18px; position: relative; z-index: 1; }
.x-cards img:nth-child(3) { transform: rotate(8deg) translateY(12px); }

/* friends' pets: real orders, shown with their people's permission */
.x-friends { padding-top: 96px; }
.x-friends > header h2 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 8px; }
.x-friends > header p { color: var(--kp-soft); max-width: 44em; margin: 0; }
.x-friend { margin-top: 48px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.x-friend > .polaroid { width: 160px; }
.x-friend > .polaroid > img { aspect-ratio: .82; object-position: 50% 35%; }
.x-friend h3 { font-size: 28px; margin: 0 0 2px; }
.x-friend .typed { color: var(--kp-soft); margin: 0 0 16px; }
.x-friend h4 { display: flex; align-items: center; gap: 10px; font: 400 20px/1.2 var(--kp-serif); margin: 24px 0 10px; }
.x-friend h4:first-of-type { margin-top: 0; }
.x-friend .x-stickers { grid-template-columns: repeat(8, minmax(0, 1fr)); }
/* white and cream pets need a darker sheet to stand out */
.x-friend .x-stickers { background: radial-gradient(circle, rgba(39, 48, 79, .1) 1px, transparent 1.4px) 0 0 / 18px 18px, #dcd3bf; }
.x-friend .x-stickers figcaption { color: var(--kp-ink); }
.x-film { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; }
.x-film video { width: 100%; aspect-ratio: 540 / 836; background: #1d1830; display: block; box-shadow: var(--kp-lift); }
.x-film p { color: var(--kp-soft); margin: 0 0 10px; }
.x-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.x-shots img { width: 100%; display: block; box-shadow: var(--kp-lift); background: var(--kp-page-2); }
.x-shots.tall { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }

.x-end { margin-top: 88px; text-align: center; padding: 36px 20px; background: var(--kp-paper); box-shadow: var(--kp-lift); }
.x-end h2 { margin: 0 0 8px; }
.x-end p { color: var(--kp-soft); margin: 0 auto 20px; max-width: 34em; }
.x-end .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .x-head { grid-template-columns: 1fr; padding-top: 32px; }
  .x-head .snaps { justify-content: center; }
  .x-show, .x-tale { grid-template-columns: 1fr; }
  .x-stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px; }
  .x-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-pet, .x-tale { padding-top: 64px; }
  .x-friends { padding-top: 72px; }
  .x-friend { grid-template-columns: 1fr; gap: 16px; }
  .x-friend > .polaroid { width: 130px; }
  .x-friend .x-stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .x-film { grid-template-columns: minmax(0, 260px); justify-content: center; }
  .x-shots { grid-template-columns: 1fr; }
  .x-shots.tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .x-head .snaps .polaroid { width: 128px; }
  .x-stage figure { width: 23%; } .x-stage img { width: 100%; height: auto; aspect-ratio: 1; }
  .x-stage::after { display: none; }
  .x-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-said blockquote { font-size: 23px; }
}
