/* Shared look for the gift guide pages, the FAQ page and the 404 page. Same colors as index.html. */
:root {
  --cream: #FAF6F0;
  --blush: #F4C5C2;
  --blush-l: #FDF1EF;
  --rose-d: #C4535C;
  --rose-dd: #a8434c;
  --teddy: #3D2C24;
  --muted: #7A6255;
  --shadow: 0 12px 32px -8px rgba(232, 122, 130, .25), 0 4px 12px rgba(61, 44, 36, .05)
}

* { box-sizing: border-box }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.55 Outfit, system-ui, sans-serif;
  color: var(--teddy);
  background: var(--cream) radial-gradient(var(--blush) 1.5px, transparent 1.5px) 0 0/28px 28px;
  display: grid;
  place-items: flex-start;
  padding: 24px
}

/* Your character cursor on links and buttons. */
a, button {
  cursor: url('images/my-hover-pointer.png') 9 9, pointer;
  cursor: -webkit-image-set(url('images/my-hover-pointer.png') 1x, url('images/my-hover-pointer-2x.png') 2x) 9 9, pointer;
  cursor: image-set(url('images/my-hover-pointer.png') 1x, url('images/my-hover-pointer-2x.png') 2x) 9 9, pointer
}

:focus-visible { outline: 3px solid var(--rose-d); outline-offset: 2px }

main { max-width: 900px; margin: 0 auto }
h1 { font: 600 clamp(28px, 5vw, 36px)/1.2 Fredoka, sans-serif; margin: 0 0 12px }
h2 { font: 600 22px Fredoka, sans-serif; margin: 28px 0 12px }
h3 { font: 600 18px Fredoka, sans-serif; margin: 20px 0 6px }
p { margin: 0 0 14px; color: var(--muted) }

.card {
  background: linear-gradient(var(--blush-l), #fff);
  border: 4px solid #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 28px
}

/* Pink pill buttons. */
.card a.btn {
  display: inline-block;
  background: var(--rose-d);
  color: #fff;
  padding: 12px 26px;
  border-radius: 99px;
  text-decoration: none;
  margin-top: 10px
}
.card a.btn:hover { background: var(--rose-dd) }
.card a.btn:active { transform: scale(.95) }
.card a.btn { transition: transform .15s, background .2s }

/* Normal text links. */
.card p a { color: var(--rose-d) }

/* One product row: photo left, text right. */
.product { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin: 18px 0; align-items: center }
.product img { width: 120px; height: auto; border-radius: 18px; box-shadow: 0 8px 20px rgba(232, 122, 130, .12) }
.product .name { font-weight: 600; font-size: 18px }
.product .desc { color: var(--muted); font-size: 14px }
.price { font-weight: 600; color: var(--rose-d) }

table { width: 100%; border-collapse: collapse; margin: 20px auto }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .06) }
th { background: var(--blush-l); color: var(--teddy); font-weight: 600 }
.strong { font-weight: 600 }

/* Wide tables scroll sideways on small phones instead of breaking the page. */
.table-wrap { overflow-x: auto }

@media(prefers-reduced-motion:reduce) {
  * { animation: none !important; transition: none !important }
}

/* Small line above the title ("Cutopia › page") and the "Updated" line. */
.crumbs { font-size: 13px; margin: 0 0 6px }
.crumbs a { color: var(--rose-d); text-decoration: none }
.updated { font-size: 13px; margin: -4px 0 16px }

/* The short answer at the top of each guide. */
.quick { background: #fff; border: 2px solid var(--blush); border-radius: 20px; padding: 14px 18px; margin: 0 0 8px; color: var(--teddy) }

/* "More gift guides" links at the bottom. */
.related { margin-top: 24px; font-size: 14px; line-height: 1.9 }
.related a { color: var(--rose-d) }

/* Small phones: a little less padding so everything fits nicely. */
@media(max-width:420px) {
  body { padding: 12px }
  .card { padding: 20px 16px; border-radius: 28px }
  .product { grid-template-columns: 96px 1fr }
  .product img { width: 96px }
  .card a.btn { display: block; text-align: center; margin-top: 10px }
}

/* Product pages (public/products/), written by tools/build.js. */
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start }
.pp-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.pp-photos img:first-child { grid-column: 1 / -1 }
.pp-photos img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 8px 20px rgba(232, 122, 130, .12) }
.pp-emoji { aspect-ratio: 1; border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: 96px }
.pp-tag { display: inline-block; background: #fff; color: var(--rose-d); border: 1px solid var(--blush); border-radius: 99px; padding: 3px 12px; font: 600 13px Fredoka, sans-serif; margin-bottom: 8px }
.pp-price { font: 600 26px Fredoka, sans-serif; color: var(--rose-d); margin: 0 0 10px }
.pp-buy { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 }
.pp-buy .btn { margin: 0 }
.card a.btn.wa { background: #1f8f5f }
.card a.btn.wa:hover { background: #17724c }
.pp-facts { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 2 }
.pp-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.pp-more a { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 18px; padding: 8px; text-decoration: none; color: var(--teddy); box-shadow: 0 8px 20px rgba(232, 122, 130, .1) }
.pp-more img { width: 100%; height: auto; border-radius: 12px }
.pp-more span { aspect-ratio: 1; display: grid; place-items: center; font-size: 44px; background: var(--blush-l); border-radius: 12px }
.pp-more b { font: 600 14px Fredoka, sans-serif }
.pp-more small { color: var(--rose-d); font-weight: 600 }
@media(max-width:700px) {
  .pp { grid-template-columns: 1fr; gap: 16px }
  .pp-more { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .pp-buy .btn { flex: 1 1 40%; text-align: center; padding: 12px 10px }
  .pp-buy .btn.wa { flex-basis: 100% }
}
