:root {
  color-scheme: light;
  --ink: #201632;
  --ink-light: #564e61;
  --paper: #f9f8f5;
  --white: #fff;
  --line: #ded9e1;
  --purple: #593e82;
  --violet-light: #eee9f5;
  --lime: #e4ff72;
  --error: #a02d42;
  --radius: 1rem;
  --shell: 76rem;
  font-family: 'Aptos', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
body, input, select, textarea, button { font-size: 1rem; }
button, input, select, textarea { font-family: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #7961a5; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
p { line-height: 1.55; }
[hidden] { display: none !important; }
main { min-height: 59vh; }
main:focus { outline: none; }
.shell { width: min(calc(100% - 5rem), var(--shell)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; left: 1rem; top: 1rem; z-index: 10; background: var(--lime); padding: .8rem; }

.preview-banner { padding: .55rem 1rem; background: var(--ink); color: #f2ebfb; text-align: center; font-size: .875rem; font-weight: 600; }
.preview-banner span { margin-inline: .28rem; color: var(--lime); }
.site-header { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.7rem; }
.wordmark { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; font-size: 1.23rem; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.wordmark-secondary { font-weight: 650; }
.brand-mark { width: 1.75rem; height: 1.75rem; margin-right: .35rem; display: inline-block; background: url('/favicon.svg') center / contain no-repeat; }
.main-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(1.125rem, 3.3vw, 2.8rem); }
.main-nav a, .footer-inner nav a { text-decoration: none; font-size: .95rem; font-weight: 650; }
.main-nav a:hover, .footer-inner nav a:hover, .main-nav a[aria-current] { text-decoration: underline; text-underline-offset: .38em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.8rem; padding: .68rem 1rem; border: 1px solid transparent; border-radius: .5rem; background: none; color: var(--ink); text-decoration: none; line-height: 1.15; font-weight: 700; text-align: center; }
.button:hover { filter: brightness(.95); }
.button:disabled { cursor: wait; opacity: .7; }
.button svg { width: 1.05rem; height: 1.05rem; flex: none; }
.quote-nav { border-color: var(--line); background: var(--white); white-space: nowrap; }
.quote-count { display: inline-grid; min-width: 1.45rem; padding: .12rem .25rem; min-height: 1.45rem; place-items: center; border-radius: .3rem; background: var(--ink); color: var(--white); font-size: .84rem; }
.button-lime { background: var(--lime); }
.button-outline { border-color: #b4a2ca; color: var(--white); }
.button-outline:hover { background: #ffffff12; }
.button-primary { background: var(--ink); color: var(--white); }
.button-secondary { border-color: var(--line); background: var(--white); }
.text-link { color: var(--purple); font-weight: 700; text-underline-offset: .2em; }

.hero { display: grid; grid-template-columns: 1fr 1.06fr; margin-top: 1.65rem; min-height: 27rem; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.hero-copy { padding: clamp(2.25rem, 4vw, 4rem); align-self: center; }
.eyebrow { font-size: .875rem; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.hero-copy .eyebrow { color: var(--lime); margin-bottom: 1.15rem; }
.hero h1, .page h1, .catalog-page h1 { font-size: clamp(2.7rem, 6vw, 5.15rem); letter-spacing: -.078em; font-weight: 800; }
.hero-copy > p:not(.eyebrow) { max-width: 27rem; color: #ece3f7; margin-top: 1.35rem; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.hero-image { background: #765497 url('/hero.png') center / cover no-repeat; min-width: 0; }

.catalog { padding-block: 3.6rem 5rem; scroll-margin-top: 5.2rem; }
.catalog-page { padding-block: 3.5rem 5rem; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-kicker { color: var(--purple); margin-bottom: .65rem; }
.catalog h2 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); letter-spacing: -.065em; }
.catalog-note { max-width: 24rem; color: var(--ink-light); }
.catalog-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.2rem; padding-block: .95rem; border-block: 1px solid var(--line); }
.search-field { display: flex; align-items: center; width: min(100%, 23rem); flex: 1 1 16rem; min-width: 0; position: relative; }
.search-field svg { position: absolute; width: 1.2rem; height: 1.2rem; left: .9rem; color: var(--purple); pointer-events: none; }
input, select, textarea { min-width: 0; width: 100%; min-height: 2.9rem; color: var(--ink); padding: .65rem .75rem; background: var(--white); border: 1px solid #bdb4c8; border-radius: .45rem; }
input::placeholder, textarea::placeholder { color: #6b6077; opacity: 1; }
.search-field input { padding-left: 2.65rem; }
.categories { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.categories button { min-height: 2.75rem; border-radius: .45rem; padding: .5rem .83rem; border: 1px solid transparent; background: transparent; color: var(--ink-light); font-size: .92rem; font-weight: 680; }
.categories button:hover { background: var(--violet-light); }
.categories button[aria-pressed='true'] { background: var(--ink); color: var(--white); }
.results-count { margin-block: .82rem; color: var(--ink-light); font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.product-card { border: 1px solid var(--line); background: var(--white); border-radius: .75rem; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.card-image { display: block; background: var(--white); }
.product-visual { min-width: 0; aspect-ratio: 1.57; container-type: inline-size; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 28% 15%, var(--ambient), transparent 85%), var(--ground); }
.product-photo { background: var(--white); grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tone-graphite { --ground: #b1a8bf; --ambient: #e7e0ee; --pack: #463c52; --edge: #211b2a; --highlight: #7c6b89; --pack-ink: #f1eaf2; }
.tone-lilac { --ground: #baa9db; --ambient: #ece4fb; --pack: #937cbb; --edge: #5d467d; --highlight: #c3b0e0; --pack-ink: #211333; }
.tone-berry { --ground: #db9ca9; --ambient: #f8dde0; --pack: #7d2d49; --edge: #4b192d; --highlight: #b56179; --pack-ink: #fff2f5; }
.tone-clay { --ground: #d5a189; --ambient: #f7dfd1; --pack: #a65b45; --edge: #6a3227; --highlight: #ce8a72; --pack-ink: #fff4ed; }
.tone-plum { --ground: #ac91b9; --ambient: #e4d2ee; --pack: #674075; --edge: #42284c; --highlight: #9167a1; --pack-ink: #fff2fc; }
.tone-ink { --ground: #8795a6; --ambient: #cdd8e5; --pack: #425261; --edge: #263542; --highlight: #667d92; --pack-ink: #f3f7ff; }
.packaging { width: 34cqw; height: 43cqw; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; position: relative; padding: 3cqw; transform: translateY(2cqw) rotate(-12deg); border-radius: .6cqw; background: linear-gradient(120deg, #ffffff12, transparent 55%), repeating-linear-gradient(90deg, transparent 0 .43cqw, #ffffff0a .55cqw .68cqw), var(--pack); color: var(--pack-ink); box-shadow: 5cqw 5cqw 6cqw #26142e50; }
.packaging::before, .packaging::after { position: absolute; content: ''; }
.packaging::before { bottom: 0; left: 100%; width: 6cqw; height: 100%; transform: skewY(-26deg); transform-origin: left bottom; background: var(--edge); }
.packaging::after { bottom: 100%; left: 0; width: 100%; height: 3cqw; transform: skewX(-64deg); transform-origin: left bottom; background: var(--highlight); }
.pack-mark { font-size: 10cqw; line-height: .9; font-weight: 900; letter-spacing: -.1em; }
.pack-rule { width: 100%; border-top: 1px solid currentColor; margin-block: 1.6cqw .7cqw; }
.pack-label { font-size: 3cqw; font-weight: 700; letter-spacing: .14em; }
.art-caption { position: absolute; right: .55rem; bottom: .45rem; padding: .22rem .35rem; border-radius: .2rem; background: var(--paper); color: var(--ink); font-size: .75rem; font-weight: 650; }
.tone-lilac .packaging, .tone-plum .packaging { width: 24cqw; height: 47cqw; transform: translateY(1.5cqw) rotate(15deg); }
.tone-berry .packaging, .tone-ink .packaging { width: 43cqw; height: 32cqw; transform: translateY(3cqw) rotate(-10deg); }
.card-info { padding: 1rem; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.card-meta { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.card-meta .model { flex: none; }
.card-category { color: var(--ink-light); font-size: .775rem; font-weight: 650; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.model { color: var(--purple); font-family: ui-monospace, Consolas, monospace; font-size: .875rem; font-weight: 700; letter-spacing: .025em; }
.card-info h3 { margin-top: .38rem; font-size: clamp(1.18rem, 2vw, 1.55rem); letter-spacing: -.035em; }
.card-info h3 a { text-decoration: none; }
.card-info h3 a:hover { text-decoration: underline; }
.variant { color: var(--ink-light); margin-top: .28rem; margin-bottom: .9rem; }
.button-card { justify-content: flex-start; width: 100%; margin-top: auto; background: var(--paper); border-color: var(--line); }
.button-card.is-selected { background: #e9f2cb; border-color: #bacb83; }
.empty-state { grid-column: 1 / -1; padding: 2rem; border: 1px dashed #bdb4c8; border-radius: var(--radius); background: var(--white); }
.empty-state p { margin-block: .65rem 1rem; color: var(--ink-light); }

.loading, .page { padding-block: 3.4rem 5rem; }
.page-heading { max-width: 49rem; margin-bottom: 2rem; }
.page-heading > p:last-child { margin-top: 1rem; color: var(--ink-light); font-size: 1.08rem; }
.breadcrumbs { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.4rem; color: var(--ink-light); }
.breadcrumbs a { text-underline-offset: .2em; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.detail-art { aspect-ratio: 1; border-radius: var(--radius); position: relative; }
.product-gallery { min-width: 0; }
.gallery-stage { border: 1px solid var(--line); cursor: zoom-in; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.gallery-thumb { width: clamp(2.8rem, 10vw, 4rem); aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid var(--line); border-radius: .45rem; background: var(--white); }
.gallery-thumb[aria-pressed='true'] { border-color: var(--purple); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; }
.supplier-details { max-width: 62rem; margin: clamp(2rem, 5vw, 4rem) auto 0; scroll-margin-top: 7rem; }
.supplier-details h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); letter-spacing: -.045em; margin-bottom: 1rem; }
.supplier-details h3 { font-size: 1.22rem; letter-spacing: -.025em; margin-bottom: .85rem; }
.detail-copy { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.detail-copy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .85rem; }
.detail-copy-grid > div { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); overflow-wrap: anywhere; }
.detail-copy-grid h4 { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.3; }
.detail-copy-grid p { color: var(--ink-light); }
.detail-specifications { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.detail-specifications dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin: 0; }
.detail-specifications dl > div { min-width: 0; padding: .8rem .9rem; border-radius: .55rem; background: var(--paper); }
.detail-specifications dt { color: var(--ink-light); font-size: .875rem; line-height: 1.4; }
.detail-specifications dd { margin: .25rem 0 0; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.detail-specifications p { margin-top: .85rem; color: var(--ink-light); font-size: .9rem; }
.detail-photo-section { margin-top: clamp(1.5rem, 3vw, 2.2rem); }
.detail-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .9rem; }
.detail-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.detail-photo a { display: block; aspect-ratio: 4 / 3; background: var(--paper); cursor: zoom-in; }
.detail-photo a:focus-visible { outline-offset: -3px; }
.detail-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-photo figcaption { padding: .8rem .9rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.detail-photo-grid > .detail-photo:only-child { width: min(100%, 32rem); }
.detail-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: fitting-step; margin: 0; padding: 0; list-style: none; }
.detail-steps li { min-width: 0; counter-increment: fitting-step; }
.detail-steps figcaption { display: flex; gap: .6rem; align-items: baseline; }
.detail-steps figcaption::before { flex: none; content: counter(fitting-step) "."; color: var(--purple); }
@media (min-width: 64rem) {
  .detail-photo-grid:has(> .detail-photo:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.detail-info h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); margin-bottom: .6rem; }
.product-summary { margin-block: .85rem 1.2rem; color: var(--ink-light); }
.specs { margin-block: 1rem 1.35rem; }
.specs div { display: flex; justify-content: space-between; gap: .75rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-light); }
.specs dd { margin: 0; font-weight: 650; text-align: right; }
.detail-form { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.detail-form .field { width: 7.25rem; }
.field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23201632' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2rem; }
textarea { resize: vertical; }
.muted { color: var(--ink-light); }
.field label .muted { font-weight: 500; }

.quote-layout { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1.25rem; align-items: start; }
.quote-panel { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.quote-panel h2, .empty-state h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: -.04em; }
.panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.quote-lines { list-style: none; padding: 0; margin: 1rem 0 0; }
.quote-line { display: grid; grid-template-columns: 3.7rem minmax(0, 1fr) minmax(4.5rem, 7.5rem); align-items: start; gap: .7rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.quote-art { aspect-ratio: 1; border-radius: .4rem; }
.quote-art .art-caption { display: none; }
.line-about { display: grid; justify-items: start; gap: .25rem; }
.line-about > a { font-weight: 750; text-decoration: none; }
.line-about > a:hover { text-decoration: underline; }
.line-about span { font-size: .875rem; color: var(--ink-light); }
.remove { border: 0; padding: .3rem 0; min-height: 1.95rem; background: transparent; color: var(--purple); text-decoration: underline; text-underline-offset: .17em; font-size: .875rem; }
.quote-total { padding-top: .8rem; border-top: 1px solid var(--line); font-weight: 700; }
.quote-buyer .muted { margin-block: .45rem 1.1rem; }
.quote-buyer .field { margin-bottom: .85rem; }
.field-error:empty { display: none; }
.field-error, .form-error { color: var(--error); font-size: .875rem; font-weight: 650; }
[aria-invalid='true'] { border-color: var(--error); }
.form-error { margin-bottom: .8rem; }
.form-privacy { color: var(--ink-light); margin-bottom: .9rem; font-size: .9rem; }
.form-privacy a { text-underline-offset: .18em; }
.submit { width: 100%; }
.receipt { max-width: 46rem; margin-inline: auto; padding: clamp(1.4rem, 5vw, 3.5rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.receipt h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-block: .7rem; }
.receipt-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--lime); border-radius: 50%; }
.receipt-icon svg { width: 1.3rem; }
.receipt-reference { display: grid; gap: .15rem; background: var(--violet-light); padding: .8rem; margin-block: 1rem 1.2rem; border-radius: .45rem; overflow-wrap: anywhere; }
.receipt-reference span { font-size: .875rem; }
.receipt-reference strong { font-family: ui-monospace, Consolas, monospace; }
.info-sections { max-width: 49rem; margin-bottom: 1.5rem; }
.info-sections section { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.info-sections section h2 { font-size: 1.4rem; letter-spacing: -.035em; margin-bottom: .5rem; }
.info-sections section p { color: var(--ink-light); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; min-height: 6rem; padding-block: 1.2rem; }
.footer-inner nav { flex-wrap: wrap; gap: .6rem 1.25rem; }
.footer-note { color: var(--ink-light); font-size: .875rem; }
.toast { position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 5; max-width: calc(100% - 2.2rem); padding: .8rem 1rem; border-radius: .5rem; color: var(--white); background: var(--ink); box-shadow: 0 .2rem 1rem #20163230; opacity: 0; pointer-events: none; }
.toast.is-visible { opacity: 1; }

@media (max-width: 56rem) {
  .shell { width: calc(100% - 3rem); }
  .hero { min-height: 23rem; }
  .hero-copy { padding: 2rem; }
  .hero-break { display: none; }
  .hero-image { background-position: 55% center; }
  .quote-panel { padding: 1rem; }
  .quote-line { grid-template-columns: 3rem minmax(0, 1fr) 4.65rem; gap: .55rem; }
}

@media (max-width: 40rem) {
  .detail-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .detail-steps figcaption { gap: .35rem; padding: .6rem; font-size: .9rem; }
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 .65rem; padding-top: .55rem; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; gap: 1.45rem; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 2.6rem; font-size: .9rem; }
  .quote-nav { padding: .49rem .6rem; min-height: 2.65rem; font-size: .9rem; }
  .hero { margin-top: .85rem; grid-template-columns: 1fr; }
  .hero-copy { padding: 1.55rem 1.15rem 1.3rem; }
  .hero h1 { max-width: 21rem; font-size: clamp(2.9rem, 12vw, 4.5rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: .75rem; font-size: 1rem; }
  .hero-copy .eyebrow { margin-bottom: .55rem; }
  .hero-actions { margin-top: .95rem; }
  .hero-actions .button { padding-inline: .65rem; font-size: .9rem; }
  .hero-image { min-height: 9.8rem; aspect-ratio: 2.5; background-position: 50% 64%; }
  .catalog { padding-block: 2.1rem 3rem; scroll-margin-top: 6.5rem; }
  .catalog-heading { display: block; margin-bottom: .8rem; }
  .catalog-note { margin-top: .45rem; }
  .catalog-tools { display: grid; gap: .55rem; padding-block: .65rem; }
  .search-field { width: 100%; }
  .categories { gap: .2rem; }
  .categories button { min-height: 2.65rem; padding-inline: .48rem; font-size: .875rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-visual { aspect-ratio: 1.26; }
  .card-info { padding: .68rem; }
  .button-card { padding-inline: .45rem; gap: .25rem; font-size: .875rem; }
  .loading, .page { padding-block: 1.75rem 3rem; }
  .detail-grid, .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-art { aspect-ratio: 1.45; }
  .quote-art { aspect-ratio: 1; }
  .breadcrumbs { margin-bottom: .85rem; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 22rem) {
  .hero-actions { gap: .4rem; }
  .hero-actions .button { padding-inline: .45rem; }
  .header-inner .wordmark { font-size: 1rem; }
  .main-nav { gap: 1rem; }
}
