:root {
  color-scheme: light;
  --ink: #202a24;
  --muted: #4f5951;
  --pine: #244b39;
  --line: #d5d7cc;
  --paper: #fffdf8;
  --sans: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --serif: "DM Serif Text", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--sans); }
a { color: var(--pine); text-underline-offset: .2em; }
a:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #943d51; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; inset: .4rem auto auto .4rem; padding: .7rem 1.1rem; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }
.wrap { width: min(80rem, 100%); padding-inline: clamp(1rem, 4.8vw, 4.5rem); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); background: var(--paper); }
.mast-inner,.mast nav,.foot { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: 4.5rem; gap: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .16em; min-height: 44px; color: var(--pine); font: 500 clamp(1.4rem, 2.5vw, 2rem)/1.1 var(--serif); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand span { font-size: .76em; }
.mast nav { gap: clamp(.55rem, 3vw, 2rem); }
.mast nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font-weight: 650; }
.mast a:hover,.crumb a:hover,.foot a:hover { text-decoration: underline; }
.mast .cart { gap: .4rem; padding: .5rem .85rem; color: white; background: var(--pine); border-radius: .24rem; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: .55rem 0 0; column-gap: .55rem; }
.crumb li { display: inline-flex; align-items: center; }
.crumb li + li:before { content: "/"; color: #767b72; margin-right: .55rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; font-size: .93rem; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { text-wrap: pretty; }
h1,h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.55rem, 5.5vw, 4.7rem); letter-spacing: -.055em; line-height: 1.04; color: #233d2d; }
.shop-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .6rem 2rem; margin: .45rem 0 1.7rem; }
.shop-heading p { color: var(--muted); max-width: 30rem; }
.dept-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2.4vw, 2.1rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.dept { display: flex; flex-direction: column; min-width: 0; border: 1px solid #daddd1; border-radius: .35rem; overflow: hidden; text-decoration: none; background: white; color: var(--ink); }
.dept:hover,.dept:focus-visible { border-color: var(--pine); }
.dept:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.paper-scene { isolation: isolate; position: relative; overflow: hidden; aspect-ratio: 1.9; background: var(--scene); border-bottom: 1px solid #daddd1; }
.paper-scene img { position: absolute; object-fit: contain; display: block; width: auto; max-width: 55%; height: 84%; background: white; box-shadow: 0 4px 11px #1b241d36; }
.paper-scene .front-sheet { top: 13%; left: 17%; transform: rotate(-8deg); }
.paper-scene .back-sheet { top: 7%; right: 15%; transform: rotate(9deg); }
.holidays { --scene: #d7bba3; }
.weddings { --scene: #d4c4b7; }
.craft-files { --scene: #d8c2bf; }
.kids-school { --scene: #d2c69b; }
.home-planners { --scene: #c5cfc2; }
.faith { --scene: #b9c5bd; }
.dept-title { padding: .85rem 1rem 1rem; }
.dept h2 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.12; letter-spacing: -.035em; }
.dept p { font-size: .93rem; margin-top: .37rem; color: var(--muted); }
.collection-heading { margin: .5rem 0 1.1rem; }
.subcategories { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem .55rem; padding-bottom: 1.3rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.subcategories a,.add { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--pine); }
.subcategories a { padding: .4rem .85rem; border: 1px solid #9baca0; border-radius: 1.6rem; background: #fff; }
.subcategories a:hover,.add:hover { background: #eaf0e8; }
.product-section { padding: 1.1rem 0 1.2rem; }
.product-section > h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.16; margin: .45rem 0 .95rem; letter-spacing: -.035em; scroll-margin-top: 1rem; }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.8rem clamp(.8rem, 2vw, 1.6rem); }
.product { display: flex; align-items: start; flex-direction: column; min-width: 0; }
.product-detail { width: 100%; color: var(--ink); text-decoration: none; }
.product-detail:hover h3,.product-detail:hover .result-product-name { text-decoration: underline; }
.product-image { aspect-ratio: 1; background: #f4f1e9; border-radius: .25rem; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.product-image img { display: block; height: 100%; width: 100%; object-fit: contain; }
.product h3,.product .result-product-name { margin-top: .6rem; font: 600 clamp(1rem,1.3vw,1.1rem)/1.32 var(--sans); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.product .price { margin: .28rem 0 .55rem; }
.add { margin-top: auto; min-width: 7rem; padding: .44rem .85rem; border: 1px solid var(--pine); background: transparent; border-radius: .2rem; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4.5vw, 4rem); align-items: start; margin: 1rem 0 3rem; }
.detail > img { width: 100%; max-height: 68vh; object-fit: contain; border: 1px solid var(--line); background: #f4f1e9; border-radius: .3rem; }
.detail h1 { font-size: clamp(1.8rem, 3.5vw, 3.25rem); line-height: 1.1; overflow-wrap: anywhere; }
.detail h2 { font-size: 1.5rem; }
.detail h2,.detail p,.detail .desc { margin-top: 1rem; }
.detail .price { font-size: 1.4rem; margin: .65rem 0; }
.detail .buy { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .6rem 1.8rem; border-radius: .25rem; background: var(--pine); color: white; font-weight: 700; text-decoration: none; }
.detail .buy:hover,.cart:hover { background: #173726; }
.detail ul { padding-inline-start: 1.3rem; }
.detail .desc { white-space: pre-line; }
footer { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.foot { flex-wrap: wrap; gap: .4rem 1.7rem; padding-block: 1.1rem; }
.foot > a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .brand { margin-right: auto; }
@media(max-width: 850px) {
  .dept-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 600px) {
  .mast-inner { min-height: 3.6rem; }
  .mast nav { gap: .65rem; }
  .shop-nav { font-size: .92rem; }
  .crumb ol { margin-top: .2rem; }
  .shop-heading { margin: .15rem 0 1.15rem; }
  .shop-heading p { max-width: 33ch; }
  .dept-grid { gap: .8rem .6rem; }
  .dept-title { padding: .7rem .65rem .8rem; }
  .dept h2 { font-size: 1.22rem; }
  .dept p { font-size: .89rem; line-height: 1.35; }
  .paper-scene { aspect-ratio: 1.35; }
  .paper-scene img { max-width: 62%; height: 78%; }
  .paper-scene .front-sheet { top: 17%; left: 9%; }
  .paper-scene .back-sheet { top: 10%; right: 8%; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .subcategories { gap: .4rem; }
  .subcategories a { padding-inline: .65rem; font-size: .95rem; }
  .detail { grid-template-columns: 1fr; gap: 1.1rem; }
  .detail > img { max-height: 43vh; }
  .foot { gap: .3rem .9rem; }
}
@media(max-width: 330px) {
  .mast .shop-nav { display: none; }
  .dept-grid,.products { grid-template-columns: 1fr; }
}
.in-cart { background: #edf2ed; }
.cart-feedback:not([hidden]) { position: fixed; z-index: 3; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 1.2rem; width: max-content; max-width: calc(100% - 2rem); border: 1px solid #77907c; border-radius: .3rem; padding: .1rem 1rem; background: #203e2f; color: white; box-shadow: 0 3px 13px #162a2033; }
.cart-feedback a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; font-weight: 650; color: white; }
.mast-inner > .cart { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.mast nav { margin-left: auto; margin-right: clamp(.3rem, 1.7vw, 1.3rem); }
@media(max-width: 680px) {
  .mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding-top: .3rem; }
  .mast nav { grid-row: 2; grid-column: 1 / -1; margin: 0; justify-content: flex-start; gap: clamp(.7rem, 4vw, 1.5rem); flex-wrap: wrap; }
  .mast nav a { font-size: .93rem; }
  .mast-inner > .cart { grid-row: 1; grid-column: 2; }
}

.catalog-search { width: min(100%, 42rem); margin: 0 0 1.7rem; }
.catalog-search label, .search-tools label { display: block; margin-bottom: .35rem; font-weight: 650; }
.search-bar { display: flex; gap: .45rem; }
.search-bar input, .search-tools select { min-width: 0; min-height: 48px; font: inherit; color: var(--ink); background: white; border: 1px solid #728278; padding: .55rem .8rem; border-radius: .25rem; }
.search-bar input { flex: 1; }
.search-bar input::placeholder { color: #53635a; }
.search-bar button { min-height: 48px; padding: .55rem 1.15rem; border: 1px solid var(--pine); border-radius: .25rem; background: var(--pine); color: white; font: 650 1rem var(--sans); cursor: pointer; }
.search-bar button:focus-visible, .catalog-search input:focus-visible, .search-tools select:focus-visible { outline: 3px solid #943d51; outline-offset: 3px; }
.search-tools:not([hidden]) { display: flex; gap: .75rem; align-items: center; }
.search-tools label { margin: 0; }
.search-summary { margin-block: 1rem; font-weight: 600; }
.search-summary:empty { display: none; }
.search-suggestions p { font-weight: 650; }
.search-suggestions a, .search-categories a, .search-paging a { display: inline-flex; min-height: 44px; align-items: center; padding-right: 1.15rem; }
.search-results .result-department { margin-top: .3rem; font-size: .92rem; color: var(--muted); }
.search-paging:not([hidden]) { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.search-paging a { padding: .5rem .85rem; border: 1px solid var(--pine); border-radius: .25rem; }
.search-categories { margin: 2rem 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.search-categories h2 { font-size: 1.6rem; }
.search-categories ul { display: flex; flex-wrap: wrap; gap: 0 .4rem; list-style: none; margin: .25rem 0 0; padding: 0; }
