:root {
    color-scheme: light;
    --ink: #211a2c;
    --muted: #62596d;
    --accent: #6039ad;
    --paper: #ffffff;
    --soft: #f7f4fb;
    --line: #e5ddec;
    --spectrum: linear-gradient(115deg, #f09978, #ed83bc 24%, #b68bf3 47%, #79aafb 69%, #51d5cb 89%, #bee872);
    --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --page: 74rem;
    --radius: 1.15rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .6em; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 1.4em; }
h3 { font-size: 1.24rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
.wrap { width: min(calc(100% - 2.5rem), var(--page)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row, .footer-row, .main-nav, .site-footer nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; }
.header-row { justify-content: space-between; min-height: 4.8rem; padding-block: .65rem; }
.wordmark { display: inline-flex; gap: .58rem; align-items: center; color: var(--ink); text-decoration: none; font: 750 1.3rem/1 var(--display); letter-spacing: -.05em; }
.wordmark-image { position: relative; display: block; width: 9.5rem; aspect-ratio: 5; overflow: hidden; }
.wordmark-image img { position: absolute; top: 50%; left: 50%; width: 113%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.brand-mark { display: inline-block; width: 1.75rem; height: 1.75rem; background: repeating-linear-gradient(0deg, transparent 0 4px, rgb(255 255 255 / .6) 4px 5px), var(--spectrum); border-radius: .48rem; transform: skewY(-8deg); }
.main-nav a, .site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.basket { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--line); border-radius: 40px; padding: .4rem .7rem .4rem .88rem; min-height: 2.65rem; }
.basket span { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 1rem; color: var(--accent); background: var(--soft); font-size: .8rem; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.content { padding-block: 2rem 4rem; min-height: 65vh; }
.hero { position: relative; overflow: hidden; min-height: 29rem; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; border-radius: calc(var(--radius) * 2); background: radial-gradient(ellipse at 86% 22%, #f4edfd 0, transparent 54%), linear-gradient(130deg, #f9f5fb, #faf9fc 55%, #eaf5f8); border: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; padding: clamp(1.65rem, 5.4vw, 4.5rem); }
.hero h1 { font-size: clamp(3rem, 7.1vw, 6.1rem); letter-spacing: -.09em; line-height: .94; margin-bottom: .29em; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 31ch; color: var(--muted); font-size: clamp(1rem, 1vw + .5rem, 1.24rem); margin-bottom: 1.6rem; }
.hero .button span { margin-left: .5rem; }
.print-visual { position: relative; min-height: 26rem; align-self: stretch; perspective: 1050px; pointer-events: none; }
.print-bed { position: absolute; width: min(95%, 36rem); height: 66%; right: 8%; bottom: -13%; transform: rotateX(57deg) rotateZ(-26deg); border: 1px solid rgb(96 57 173 / .18); border-radius: 10%; background: repeating-linear-gradient(0deg, transparent 0 23px, #d9d0ec 23px 24px), repeating-linear-gradient(90deg, #fbf9ff 0 23px, #ded8ee 23px 24px); box-shadow: 0 22px 42px rgb(68 44 108 / .16); }
.print-object { position: absolute; right: 9%; top: 10%; height: 76%; width: min(80%, 28rem); filter: drop-shadow(18px 24px 28px rgb(76 40 123 / .23)); }
.print-object i { display: block; position: absolute; inset-inline: 6%; top: calc(var(--i) * 2.18%); height: 34%; border-radius: 50%; transform: translateX(calc((var(--i) - 17) * .55%)) rotate(-11deg) scaleX(calc(1 - (var(--i) - 5) * .01)); background: linear-gradient(116deg, hsl(calc(280 - var(--i) * 4.5) 72% 77%), hsl(calc(318 - var(--i) * 5) 67% 64%) 47%, hsl(calc(348 - var(--i) * 5) 78% 76%)); box-shadow: inset 0 -2px 0 rgb(46 19 75 / .12), inset 0 3px 9px rgb(255 255 255 / .24); z-index: calc(35 - var(--i)); }
.print-object i:first-child::after { content: ""; position: absolute; inset: 15% 11%; border-radius: 50%; background: radial-gradient(ellipse at 65% 82%, #f1a5cb, #8a53ab 78%); box-shadow: 0 1px 4px rgb(255 255 255 / .5), inset 0 8px 15px rgb(77 27 103 / .42); }
.partner-hero { display: flex; align-items: center; gap: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.3rem, 4vw, 3rem); background: linear-gradient(115deg, color-mix(in srgb, var(--partner-primary) 11%, white), color-mix(in srgb, var(--partner-secondary) 14%, white)); }
.partner-hero h1, .section-heading h1, .section-heading h2, .section-heading h3 { margin: 0; }
.partner-hero img { object-fit: contain; border-radius: .75rem; background: white; }
.partner-label { margin-bottom: .3rem; }
.catalog-section { padding-top: 2.8rem; scroll-margin-top: 1.25rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; margin-bottom: 1rem; }
.section-heading p { margin: .35rem 0 0; }
.category-nav, .admin-nav, .pagination { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1rem; }
.category-nav a, .admin-nav a, .pagination a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); text-decoration: none; }
.category-nav a[aria-current], .admin-nav a[aria-current] { color: var(--accent); background: var(--soft); border-color: var(--accent); font-weight: 650; }
.pagination { margin-top: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.product-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.product-card { overflow: hidden; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-photo { display: grid; place-items: center; min-height: 12rem; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; color: var(--muted); }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-detail .product-photo { border-radius: var(--radius); }
.card-body, .panel { padding: clamp(.95rem, 2.2vw, 1.5rem); }
.panel + .panel { margin-top: .75rem; }
.panel h2:first-child { margin-top: 0; }
.back { display: inline-block; margin-bottom: 1rem; }
.description { overflow-wrap: anywhere; max-width: 64ch; }
.muted, .small { color: var(--muted); }
.small { font-size: .85rem; }
.price { font-size: 1.25rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-weight: 500; }
.empty { min-height: 6rem; display: grid; align-content: center; justify-items: start; gap: .4rem; border: 1px dashed #ccc1d9; border-radius: var(--radius); padding: 1.25rem 1.45rem; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .6rem 1rem; background: var(--accent); border: 1px solid transparent; border-radius: .68rem; color: white; font-weight: 650; text-decoration: none; }
.button:hover { filter: brightness(.92); }
.secondary { background: var(--paper); color: var(--accent); border-color: var(--line); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.feedback { border: 1px solid var(--line); border-radius: .7rem; padding: .75rem 1rem; background: var(--soft); margin-bottom: 1rem; overflow-wrap: anywhere; }
.feedback p:last-child { margin-bottom: 0; }
.feedback-ok { color: #14563b; background: #eefaf2; }
.feedback-error { color: #8b2835; background: #fff2f3; }
.feedback-warn { color: #714914; background: #fff7e9; }
.form { display: grid; gap: .95rem; justify-items: start; }
.form > * { max-width: 100%; }
.form label, .inline-form label { display: grid; gap: .24rem; width: 100%; font-weight: 600; }
.form-grid, .stats { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem 1.05rem; }
.form-grid.top, .cart-layout { align-items: start; }
.form-grid.top, .variant-form { margin-block: 1rem; }
.form-grid .panel, .stats .panel { margin-top: 0; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 2.75rem; padding: .48rem .62rem; color: var(--ink); background: var(--paper); border: 1px solid #c9bfd3; border-radius: .55rem; }
input[type=color] { width: 4rem; }
input[type=file] { min-width: 0; }
textarea { min-height: 6rem; resize: vertical; }
fieldset { width: 100%; min-inline-size: 0; border-radius: .55rem; border: 1px solid var(--line); padding: .8rem; }
legend, summary { font-weight: 650; }
.checks { display: grid; gap: .4rem; margin-top: .55rem; }
.form .checks label, .form label.check { display: flex; align-items: center; gap: .6rem; }
.narrow { max-width: 39rem; }
.stats { margin-block: 1rem 1.5rem; }
.stats strong { display: block; font-size: 1.5rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; text-align: left; }
td, th { padding: .75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--soft); }
tr:last-child td { border-bottom: none; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.cart-items { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0; }
.cart-line { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem 1rem; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; }
.inline-form label { width: 7rem; }
.summary > * + * { margin-top: .65rem; }
.definitions { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: .5rem 1rem; }
.definitions dd { margin: 0; overflow-wrap: anywhere; }
.definitions dt { font-weight: 650; }
.copyable, pre { overflow-wrap: anywhere; white-space: pre-wrap; }
.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-row { min-height: 4.5rem; padding-block: 1rem; }
@media (max-width: 45rem) {
    .wrap { width: calc(100% - 1.5rem); }
    .content { padding-top: 1.25rem; }
    .hero, .product-detail, .cart-layout { grid-template-columns: 1fr; }
    .hero { min-height: 0; }
    .hero-copy { padding-bottom: 0; }
    .hero h1 { max-width: 9ch; }
    .print-visual { min-height: 14rem; }
    .print-object { right: 12%; width: 68%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .product-photo { min-height: 0; }
    .main-nav { gap: .55rem .85rem; }
}
@media (max-width: 25rem) {
    .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.product-gallery { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: .7rem 0 0; list-style: none; }
.product-gallery img { object-fit: contain; background: var(--soft); border-radius: .5rem; }
