:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --ink: #202321;
  --muted: #55584f;
  --line: #ddd8cd;
  --clay: #a6442d;
  --lavender: #e6ddee;
  --sage: #dce5ce;
  font: 16px/1.55 'Segoe UI', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #985942; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: .75rem; left: .75rem; padding: .7rem; background: white; }
.header { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.52rem; font-weight: 740; letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.brand span:not(.dot) { padding-inline: .09em; font-family: Georgia, serif; font-style: italic; font-weight: normal; }
.dot { color: var(--clay); }
nav { display: flex; gap: clamp(.9rem, 4vw, 2.2rem); }
nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: .25rem; }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.03; letter-spacing: -.05em; }
h1 { font-size: clamp(3.4rem, 6.8vw, 7.1rem); }
h1 em { color: var(--clay); font-weight: 400; }
h2 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.8rem); padding-block: clamp(2rem, 6vw, 5.1rem); }
.hero p { max-width: 34ch; font-size: clamp(1.13rem, 2.1vw, 1.35rem); margin: 1.45rem 0; color: var(--muted); }
.hero-visual { aspect-ratio: 1.2; min-height: 248px; border-radius: 1.3rem; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 24% 17%, #f7e7ed, #e2d4e9 66%); }
.hero-stamp { font: 600 clamp(3rem, 10vw, 8rem)/1 Georgia, serif; color: #694f66; letter-spacing: -.125em; padding: .45em .6em .5em .45em; border: 1px solid #896c83; border-radius: 50%; transform: rotate(-12deg); }
.hero-stamp span { font: italic .52em Georgia, serif; margin-inline: .11em; }
.hero-visual.has-photo { background: var(--lavender) url('assets/editorial.webp') center / cover no-repeat; }
.hero-visual.has-photo .hero-stamp { display: none; }
.button { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.05rem; border: 1px solid var(--ink); border-radius: .6rem; background: transparent; color: var(--ink); text-decoration: none; font-weight: 660; transition: background-color .2s ease, color .2s ease; }
.button.dark { background: var(--ink); color: white; }
.button.dark:hover:not(:disabled) { background: #474d42; }
.button:hover:not(.dark) { background: var(--sage); }
.button, .filters button, .contact-links a, nav a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:active, .filters button:active, .contact-links a:active { transform: scale(.98); }
.catalog { border-top: 1px solid var(--line); padding-block: 2.4rem 3.35rem; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
input, textarea, select { width: 100%; padding: .65rem .8rem; border-radius: .5rem; border: 1px solid #a8a69d; color: var(--ink); background: #fffcf8; }
.search { width: min(100%, 300px); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.15rem; }
.filters button { min-height: 44px; padding: .45rem .78rem; border-radius: 2rem; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr)); gap: 1rem; }
.product { border: 1px solid var(--line); background: #fffdf8; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; transition: transform .24s ease, box-shadow .24s ease; }
.product-image { min-height: 190px; aspect-ratio: 1.75; display: grid; place-items: center; background: var(--sage); color: #263c32; padding: .8rem; overflow: hidden; }
.product[data-type=partner] .product-image { background: #e9d6c9; }
.product[data-type=affiliate] .product-image { background: var(--lavender); }
.product-image img { max-width: 100%; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-main { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.2rem; }
.product-main p { color: var(--muted); margin: .65rem 0 1rem; }
.product-main .category { margin: 0 0 .45rem; font-size: .9rem; }
.product-main .product-meta { margin-top: auto; font-weight: 650; color: var(--ink); }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .65rem; margin-top: auto; margin-bottom: .8rem; }
.product-price strong { color: var(--ink); font-size: 1.2rem; }
.product-price del { color: var(--muted); }
.offer { color: #843924; font-weight: 650; font-size: .875rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.empty { padding: 1rem; border-radius: .65rem; background: #f1ece3; }
.seller { padding-block: 2.4rem 3.3rem; border-top: 1px solid var(--line); }
.seller > p { max-width: 58ch; color: var(--muted); margin: .75rem 0 1.25rem; }
.listing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.listing-option { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 3vw, 1.7rem); border-radius: 1rem; border: 1px solid var(--line); background: #fffdf8; }
.listing-option p { margin: .45rem 0 .8rem; }
.listing-option .listing-rate { margin-top: .8rem; }
.listing-rate strong { font-size: 1.13rem; }
.listing-option .button { margin-top: auto; }
.contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; padding: clamp(1.25rem, 5vw, 3rem); border-radius: 1rem; background: var(--lavender); margin-bottom: 2.8rem; }
.contact-panel p { margin-top: .65rem; }
.contact-links { display: grid; gap: .45rem; max-width: 24rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.contact-links a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; min-height: 44px; padding: .55rem .75rem; border: 1px solid #ad9db3; border-radius: .55rem; text-decoration: none; }
.contact-links a:hover span { text-decoration: underline; text-underline-offset: .2rem; }
.contact-links span { overflow-wrap: anywhere; }
.contact-panel form label { display: grid; gap: .25rem; margin-bottom: .6rem; font-weight: 600; }
.inquiry > label { display: block; font-weight: 650; margin-bottom: .35rem; }
.inquiry > select { display: block; margin-bottom: .7rem; }
.inquiry form { margin-top: .95rem; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
textarea { resize: vertical; }
#turnstile { margin-bottom: .6rem; }
.field-note { font-size: .9rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding-block: 1rem 2rem; }
.footer p { margin: 0; color: var(--muted); }
dialog { width: min(690px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #20192988; }
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled), .contact-links a:hover { transform: translateY(-2px); box-shadow: 0 5px 13px #2023211e; }
  .product:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #20232115; }
  .filters button:hover { border-color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .45s ease both; }
  .hero-visual { animation: enter .55s ease both; }
  dialog[open] { animation: enter .24s ease both; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.close-form { position: sticky; top: .55rem; height: 0; margin-right: .55rem; display: flex; justify-content: flex-end; z-index: 1; }
.close { min-width: 44px; min-height: 44px; border-radius: 50%; background: #fffdf8; font-size: 1.45rem; border: 1px solid var(--line); }
dialog .product-image { aspect-ratio: 2.05; }
dialog .product-main { padding: clamp(1rem, 4vw, 2rem); }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .contact-panel, .listing-options { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1.55; }
  .header { min-height: 68px; }
}
@media (max-width: 475px) {
  .header { flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem; padding-block: .55rem .2rem; }
  .header nav { flex-wrap: wrap; gap: 0 .85rem; }
  .catalog-heading { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .form-pair { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { min-height: 185px; }
  .brand { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
