* { box-sizing: border-box; }
body { margin: 0; background: #faf6ff; color: #30203d; font: 1rem/1.55 system-ui,sans-serif; }
a { color: #782250; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #724ba8; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3 { color: #3e2453; font-family: Georgia,serif; line-height: 1.1; }
h1 { font-size: clamp(2.35rem,6vw,4.65rem); margin: .2em 0; }
h2 { font-size: clamp(1.7rem,3vw,2.5rem); }
h3 { font-size: 1.45rem; margin: .25em 0; }
main { max-width: 1260px; margin: auto; padding: 24px clamp(16px,4vw,52px) 52px; }
section { margin-top: 44px; scroll-margin-top: 12px; }
.catalog-header, footer { padding: 16px clamp(16px,4vw,52px); background: #fff; }
.catalog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e7ddef; flex-wrap: wrap; }
.catalog-header nav, .related { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.catalog-header nav a { font-weight: 650; }
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand img { width: 144px; }
.breadcrumbs { margin-bottom: 20px; }
.meta { color: #6e4269; font-weight: 650; font-size: .9rem; }
.intro { font-size: 1.15rem; max-width: 62ch; }
.library-intro { padding: clamp(18px,4vw,45px); border-radius: 24px; background: linear-gradient(125deg,#f6dfed,#e7eafd); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 24px; }
[hidden] { display: none !important; }
.filters label { display: grid; gap: 4px; font-weight: 650; }
.filters select, .filters button { border: 1px solid #b8a2c3; border-radius: 9px; background: white; color: inherit; font: inherit; min-height: 44px; padding: 6px 10px; }
.filters p { margin: 0 0 9px; }
.product-grid, .sample-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 18px; }
.product-card { border: 1px solid #e6daea; border-radius: 16px; overflow: hidden; background: white; }
.product-card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.product-card a:focus-visible { outline-offset: -4px; }
.product-card img { width: 100%; }
.product-card a div { padding: 14px 17px 19px; }
.product-card p { margin: 0 0 9px; }
.card-link { text-decoration: underline; color: #782250; font-weight: 650; }
.product-detail { display: grid; grid-template-columns: minmax(220px,390px) 1fr; gap: clamp(20px,5vw,64px); align-items: start; }
.product-cover img, figure img { border: 1px solid #e4d9e9; border-radius: 9px; }
figure { margin: 0; }
.pill { display: inline-block; border-radius: 28px; background: #f7dce9; padding: 10px 16px; font-weight: 650; }
.skip-link { position: absolute; left: 12px; top: -200px; background: white; padding: 8px; z-index: 2; }
.skip-link:focus { top: 12px; }
@media(max-width: 630px) { .product-detail { grid-template-columns: 1fr; } .product-cover img { max-width: min(100%,340px); } }

.read-aloud {
  max-width: 62ch;
  margin: 2rem auto;
  font: 1.2rem/1.8 Georgia, serif;
}

.shop .library-intro .intro {
  max-width: 85ch;
  text-wrap: pretty;
}

.shop > section > h2 {
  text-align: center;
}

.shop-collections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
}

.shop-collections a {
  padding: 8px 10px;
  font-size: .9375rem;
  background: #fff;
  border: 1px solid #e6daea;
  border-radius: 24px;
  font-weight: 650;
}

.product-license {
  max-width: 65ch;
  margin-block: 1rem;
  font-size: .9375rem;
}

.product-license p {
  margin-block: .4rem;
}

.shop .product-card img {
  aspect-ratio: 640 / 828;
  object-fit: contain;
  background: #f3ebfa;
}


.shop .product-card a:hover .card-link {
  color: #44225a;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.resize-tool { max-width: 720px; }
.resize-tool fieldset { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.resize-tool fieldset p { margin: 0; }
.resize-tool label { display: grid; gap: 5px; }
.resize-tool .target-size { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.resize-tool input { min-width: 0; }
.resize-tool .image-copy-option { display: flex; align-items: center; }

.printable-library-intro .intro {
  max-width: none;
}

#traditions > h2 {
  text-align: center;
}

.product-card .compact-holiday-title {
  font-size: 1.25rem;
}

.product-grid.three-card-rows {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

.shop .product-card {
  display: flex;
  flex-direction: column;
}
.shop .product-card > a:first-child {
  height: auto;
  flex: 1;
}
.shop .product-card > .shop-buy-link {
  height: auto;
  align-self: center;
  margin: 0 17px 19px;
  padding: 9px 14px;
  border-radius: 12px;
  color: #72244f;
  background: #f7dce9;
  font-weight: 700;
}
.shop .product-card > .shop-buy-link:hover {
  background: #efd0e1;
  text-decoration: underline;
}

.guide-cards .product-card > div,
.learn-hub .product-card > div,
.activity-cards .product-card > div,
.free-hub .product-card > div {
  padding: 1rem 1.1rem;
}
.guide-cards .product-card h2,
.free-hub .product-card h2 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 .65rem;
  text-wrap: balance;
}
.learn-hub > section > h2 {
  text-align: center;
}
.learn-hub .product-card,
.activity-cards .product-card,
.free-hub .product-card {
  text-align: center;
}
.guide-cards .product-card h2 a,
.learn-hub .product-card h3 a {
  text-decoration: underline;
}
.free-hub .product-card > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.free-hub .product-card .pill {
  display: grid;
  place-items: center;
  align-self: center;
  height: auto;
  margin-top: auto;
}
@supports (grid-template-rows: subgrid) {
  .free-hub .product-grid > .product-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .free-hub .product-card > div {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    height: auto;
  }
  .free-hub .product-card .pill {
    align-self: stretch;
    justify-self: center;
    margin-top: 0;
  }
}

.activity-cards .product-card,
.activity-cards .product-card > div {
  display: flex;
  flex-direction: column;
}

.activity-cards .product-card > div {
  align-items: center;
  flex: 1;
}

.activity-cards .activity-card-art {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.activity-cards .product-card,
.shop .product-card {
  container-type: inline-size;
  text-align: center;
}

.activity-cards h3,
.shop .product-card h3 {
  font-size: clamp(.875rem, 6cqi, 1.45rem);
  text-wrap: balance;
}

.activity-cards .product-card p {
  text-wrap: pretty;
}

.activity-cards .meta,
.shop .product-card .meta,
.shop .product-card .card-link,
.shop .product-card .shop-buy-link {
  white-space: nowrap;
}


.activity-cards .activity-buy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  height: auto;
  padding: .35rem .85rem;
  margin-top: auto;
  border-radius: 999px;
  background: #f7ddeb;
  color: #782250;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-cards .activity-buy-link:hover {
  background: #efd0e1;
  text-decoration: underline;
}

.pack-prep dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .35rem 1rem;
  max-width: 42rem;
}

.pack-prep dt { font-weight: 700; }
.pack-prep dd { margin: 0; }

.pack-samples .sample-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  max-width: 58rem;
}

.pack-samples figure {
  background: #fff;
  border: 1px solid #e6daea;
  border-radius: 1rem;
  padding: 1rem;
}

.pack-samples figure img { width: 100%; }
.pack-samples figcaption { margin-top: .6rem; font-weight: 700; }
.pack-samples figure p { margin: .4rem 0 0; }

.activity-text-preview summary { cursor: pointer; font-weight: 700; }
.activity-text-preview { margin: 1rem 0; }
.activity-grid-scroll { max-width: 100%; overflow: auto; }
.activity-grid { border-collapse: collapse; background: #fff; }
.activity-grid caption { font-weight: 700; text-align: left; padding: .4rem 0; }
.activity-grid :is(th,td) { padding: .32rem .48rem; border: 1px solid #cebcd4; text-align: center; }
.activity-grid th { background: #f2e8f5; }
