:root {
  color-scheme: light;
  --ink: #322735;
  --muted: #695f69;
  --line: #ddd6de;
  --white: #fffdfb;
  --wash: #f5f1f6;
  --display: "Baskervville", Georgia, "Times New Roman", serif;
  font: 100%/1.55 "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: 1.07; }
h1, h2, h3, p, dd, figcaption, th { overflow-wrap: anywhere; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #844487; outline-offset: 4px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; padding: .75rem max(1.2rem, calc((100% - 66rem) / 2)); border-bottom: 1px solid var(--line); background: var(--white); }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; font-family: var(--display); font-size: 1.4rem; white-space: nowrap; font-weight: bold; letter-spacing: -.055em; text-decoration: none; }
.press-mark { display: inline-block; position: relative; width: 1.08rem; height: 1.25rem; border: 2px solid; border-radius: 2px; transform: rotate(-8deg); box-shadow: 3px 3px 0 #e3bad7; }
.press-mark::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 2px; background: currentColor; box-shadow: 0 4px currentColor; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1.2rem; font-size: .875rem; font-weight: 600; }
.page-actions a { text-underline-offset: .2em; }
.print-button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: .55rem .95rem; border-radius: .4rem; }
.print-button:hover { background: #504052; }
.shop { margin: 0 auto 4rem; width: min(100% - 2.5rem, 66rem); }
.shop-head { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); padding: clamp(2.6rem, 7vw, 6rem) 0; border-bottom: .35rem solid var(--shop-accent); }
.shop-logo, .monogram { display: grid; place-items: center; flex: none; width: clamp(4rem, 12vw, 8rem); height: auto; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 17%; object-fit: contain; background: white; }
.monogram { border-color: transparent; background: color-mix(in srgb, var(--shop-accent) 20%, white); font: italic 500 clamp(1.6rem, 4vw, 3.5rem)/1 var(--display); }
.handle { margin-bottom: .6rem; color: var(--muted); font-size: .9rem; }
.handle span { padding: 0 .35rem; color: #9a909b; }
.shop h1 { font-size: clamp(2.3rem, 7.5vw, 5.6rem); }
.bio { max-width: 46rem; margin-top: .95rem; color: var(--muted); white-space: pre-line; }
.category-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.category-links a, .sold-out { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 10rem; text-decoration: none; font-size: .875rem; }
.category-links a:hover { background: var(--wash); }
.catalogue-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 2.5rem 1rem; margin-top: 2.7rem; }
.category { grid-column: 1 / -1; scroll-margin-top: 1rem; min-width: 0; }
.category.single { grid-column: auto; }
.category h2 { margin-bottom: 1.1rem; font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.product { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: .75rem; background: white; overflow: hidden; }
.product-photo { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: var(--wash); }
.product-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-copy { flex: 1; display: flex; flex-direction: column; padding: 1.15rem; }
.product h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.product p { margin-top: .45rem; color: var(--muted); white-space: pre-line; }
.product-meta { margin-top: auto; padding-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.sold-out { padding: .12rem .65rem; color: #674664; background: #f8edf5; border-color: #e8d4e2; }
.empty { margin-top: 2rem; color: var(--muted); }
.invoice-page { background: var(--wash); }
.invoice-wrap { width: min(100% - 2rem, 48rem); margin: clamp(1.25rem, 4vw, 3rem) auto 4rem; }
.invoice-sheet { padding: clamp(1.2rem, 5vw, 3.4rem); border: 1px solid var(--line); border-top: .5rem solid var(--shop-accent); background: var(--white); border-radius: .25rem; box-shadow: 0 .5rem 2.5rem #4532490c; }
.invoice-head { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; padding-bottom: clamp(1.5rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line); }
.invoice-seller { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; max-width: 65%; font: 600 clamp(1.2rem, 3vw, 1.75rem)/1.2 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.invoice-seller .shop-logo, .invoice-seller .monogram { width: 3rem; height: 3rem; font-size: 1.4rem; border-radius: .6rem; }
.invoice-heading { text-align: end; }
.invoice-heading h1 { font-size: clamp(2rem, 6vw, 3.8rem); }
.invoice-number, .amount, .quantity, .product-meta, .total { font-variant-numeric: tabular-nums; }
.invoice-number { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.invoice-details { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 2.3rem; }
.invoice-details dt { color: var(--muted); font-size: .875rem; }
.invoice-details dd { margin-top: .1rem; font-weight: 600; }
.items { width: 100%; border-collapse: collapse; text-align: start; }
.items thead { background: color-mix(in srgb, var(--shop-accent) 11%, white); }
.items th, .items td { text-align: start; padding: .85rem .65rem; vertical-align: top; line-height: 1.3; }
.items thead th { font-size: .875rem; font-weight: 600; }
.items tbody tr { border-bottom: 1px solid var(--line); }
.items tbody th { font-weight: 600; }
.items small { display: block; margin-top: .3rem; font-size: .875rem; font-weight: 400; color: var(--muted); }
.items .amount { text-align: end; overflow-wrap: anywhere; }
.items .quantity { text-align: center; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem; padding: 1rem .65rem; border-bottom: 2px solid var(--ink); font-weight: bold; }
.total strong { font: 600 clamp(1.5rem, 5vw, 2.1rem)/1.1 var(--display); letter-spacing: -.04em; }
.invoice-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.invoice-foot p { flex: 1 1 12rem; white-space: pre-line; }
.qr-block { width: 208px; max-width: 100%; text-align: center; }
.qr-block img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.qr-block figcaption { margin-top: .4rem; font-size: .875rem; font-weight: 600; }
.compact { max-width: 34rem; margin-inline: auto; }
.compact .invoice-head { display: grid; justify-content: stretch; padding-bottom: 1rem; }
.compact .invoice-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; text-align: start; }
.compact .invoice-heading h1 { font-size: 2rem; }
.compact .invoice-details { margin: .8rem 0 1rem; }
.compact .items th, .compact .items td { padding-block: .5rem; }
@media (max-width: 38rem) {
  .masthead { min-height: 4rem; flex-wrap: wrap; }
  .invoice-page .masthead { align-items: flex-start; }
  .invoice-page .page-actions { font-size: .875rem; gap: .6rem; }
  .invoice-wrap { width: min(100% - 1rem, 48rem); }
  .shop-head { align-items: flex-start; }
  .invoice-seller { max-width: 100%; }
  .items th, .items td { padding-inline: .3rem; }
  .invoice-details { gap: 1rem 1.5rem; }
}
@page { size: auto; margin: 14mm; }
@media print {
  :root { font-size: 10.5pt; }
  body, .invoice-page { background: white; }
  .masthead { display: none; }
  .invoice-wrap, .invoice-sheet { margin: 0; width: 100%; }
  .invoice-sheet { padding: 6mm 0; border: 0; border-top: 2mm solid var(--shop-accent); border-radius: 0; box-shadow: none; }
  .invoice-sheet.compact { max-width: 145mm; margin-inline: auto; }
  .invoice-sheet, .qr-block { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .items thead { display: table-header-group; }
  .invoice-head, .items tr, .total, .qr-block { break-inside: avoid; }
  .qr-block { width: 55mm; }
}
