:root {
  --wall: #ffffff;
  --stone: #eceeea;
  --stone-2: #dfe2dc;
  --ink: #1b2233;
  --ink-soft: #4a5263;
  --emeraude: #0e5e54;
  --emeraude-deep: #0a4841;
  --brass: #a8834f;
  --line: #d4d7d1;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--emeraude); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--wall); padding: 8px 12px; }
main:focus { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { font: italic 500 32px/1 var(--display); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.cart-btn { background: none; border: 1px solid var(--ink); padding: 8px 16px; font-size: 15px; display: inline-flex; gap: 10px; align-items: center; }
.cart-btn:hover { background: var(--ink); color: var(--wall); }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--emeraude); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.mobile-nav a { display: block; padding: 12px 0; font: 400 24px/1.2 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.h-xl { font-size: clamp(56px, 10vw, 148px); line-height: .9; font-style: italic; font-weight: 500; }
.h-l { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.h-m { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 54ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; background: var(--ink); color: var(--wall); border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.btn:hover { background: var(--emeraude-deep); border-color: var(--emeraude-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.btn-block { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--emeraude); }

/* ---------- Passe-partout (the framed look) ---------- */
.mat { background: var(--stone); padding: 9%; position: relative; }
.mat .pic { background: #fff; box-shadow: 0 1px 2px rgba(27,34,51,.18), 0 10px 24px -12px rgba(27,34,51,.35); aspect-ratio: 1; overflow: hidden; }
.mat .pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .4s ease; }
.mat .pic img.is-loaded { opacity: 1; }
.mat.photo .pic img { object-fit: cover; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-name { margin-bottom: 28px; }
.hero-text .lede { margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-frame { position: relative; }
.hero-frame .mat { padding: 11%; animation: hang 1.1s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 0; }
.hero-frame .pic { aspect-ratio: auto; }
.hero-frame .pic img { height: auto; }
@keyframes hang { 0% { opacity: 0; transform: translateY(-18px) rotate(-1.2deg); } 60% { opacity: 1; transform: translateY(2px) rotate(.35deg); } 100% { transform: none; } }

/* ---------- Cartel (museum label) ---------- */
.cartel { font-size: 14px; line-height: 1.45; border-left: 1px solid var(--brass); padding: 2px 0 2px 14px; margin-top: 18px; }
.cartel .t { font: italic 400 17px/1.3 var(--display); color: var(--ink); display: block; }
.cartel .m { color: var(--ink-soft); display: block; }
.cartel .p { color: var(--ink); display: block; margin-top: 4px; }
.hero-frame .cartel { position: absolute; right: -8px; bottom: -64px; background: var(--wall); padding: 12px 18px 12px 16px; border: 1px solid var(--line); border-left: 1px solid var(--brass); min-width: 220px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.alt { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; }

/* Works grid */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.work { text-decoration: none; display: block; }
.work .mat { transition: background .25s ease; }
.work:hover .mat { background: var(--stone-2); }
.section.alt .work .mat { background: var(--wall); }
.section.alt .work:hover .mat { background: #f6f7f4; }
.work .cartel { margin-top: 14px; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--emeraude); color: #fff; font-size: 12px; padding: 3px 9px; z-index: 1; }

/* Horizontal strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 22%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }

/* Collections */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.col-card { background: var(--wall); padding: 28px; text-decoration: none; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; min-height: 152px; }
.col-card:hover { background: #f7f8f5; }
.col-card .thumb { width: 96px; height: 96px; background: var(--stone); padding: 8px; }
.col-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.col-card h3 { font-size: 22px; line-height: 1.15; }
.col-card p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Two universes */
.universes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.universe { text-decoration: none; display: block; }
.universe .mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--stone); padding: 6px; }
.universe .mosaic img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.universe h3 { margin-top: 22px; font-size: clamp(30px, 3.4vw, 44px); }
.universe p { margin: 8px 0 0; color: var(--ink-soft); max-width: 44ch; }
.universe:hover h3 { color: var(--emeraude); }

/* Quote */
.quote { text-align: left; max-width: 900px; }
.quote blockquote { margin: 0; font: italic 400 clamp(28px, 3.6vw, 46px)/1.2 var(--display); }
.quote figcaption { margin-top: 20px; color: var(--ink-soft); }

/* Book */
.book { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.book .cover { box-shadow: 0 30px 50px -28px rgba(27,34,51,.55); }

/* ---------- Shop ---------- */
.shop-head { padding: clamp(40px, 6vw, 80px) 0 28px; }
.shop-head .lede { margin: 16px 0 0; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-top: 36px; overflow-x: auto; }
.tabs a { padding: 12px 20px 12px 0; margin-right: 20px; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 0 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--wall); padding: 7px 14px; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.controls { display: flex; gap: 12px; align-items: center; }
.field { border: 1px solid var(--line); background: var(--wall); padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.field:focus { border-color: var(--ink); outline: none; }
.count { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.more { display: flex; justify-content: center; padding: 56px 0 0; }
.empty { padding: 64px 0; text-align: left; }
.empty p { color: var(--ink-soft); }

/* ---------- Product ---------- */
.crumbs { font-size: 14px; color: var(--ink-soft); padding: 28px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); padding: 28px 0 clamp(56px, 8vw, 104px); align-items: start; }
.product .mat { padding: 7%; }
.product .pic { aspect-ratio: auto; cursor: zoom-in; }
.product .pic img { height: auto; max-height: 76vh; margin: 0 auto; width: auto; }
.zoom-hint { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.product-info { position: sticky; top: 100px; }
.product-info .by { margin: 14px 0 0; color: var(--ink-soft); }
.specs { margin: 28px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }
fieldset.formats { border: 0; padding: 0; margin: 0 0 22px; }
fieldset.formats legend { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; padding: 0; }
.fmt { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; border: 1px solid var(--line); padding: 14px 16px; margin-bottom: -1px; cursor: pointer; position: relative; }
.fmt:has(input:checked) { border-color: var(--ink); z-index: 1; background: #fbfbfa; }
.fmt input { margin: 4px 0 0; accent-color: var(--emeraude); }
.fmt .l { font-weight: 500; font-size: 15px; }
.fmt .d { display: block; font-size: 13px; color: var(--ink-soft); }
.fmt .pr { font: 400 20px/1.2 var(--display); }
.buy { display: flex; gap: 12px; }
.qty { display: flex; border: 1px solid var(--ink); }
.qty button { background: none; border: 0; width: 42px; font-size: 18px; }
.qty input { width: 42px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1; }
.reassure { margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.reassure li { padding: 7px 0 7px 22px; position: relative; }
.reassure li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1px; background: var(--brass); }

/* ---------- Text pages ---------- */
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 30px; margin: 48px 0 12px; }
.prose p { margin: 0 0 16px; }
.artist { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.press { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.press a { text-decoration: none; font: italic 400 20px/1.3 var(--display); }
.press a:hover { color: var(--emeraude); }
.press span { display: block; font-size: 14px; color: var(--ink-soft); }
.note { background: var(--stone); padding: 18px 22px; font-size: 15px; max-width: 68ch; }

/* Carnet */
.carnet { columns: 3 280px; column-gap: 28px; }
.carnet figure { break-inside: avoid; margin: 0 0 28px; background: var(--stone); padding: 14px; }
.carnet img { width: 100%; background: #fff; }
.carnet figcaption { font-size: 14px; color: var(--ink-soft); padding-top: 10px; }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(27,34,51,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--wall); z-index: 41; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.icon-btn { background: none; border: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item .th { background: var(--stone); padding: 6px; }
.line-item .th img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.line-item .t { font: italic 400 16px/1.3 var(--display); text-decoration: none; }
.line-item .f { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 2px; }
.line-item .row { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: 14px; }
.line-item .qty { border-color: var(--line); }
.line-item .qty button { width: 30px; font-size: 15px; }
.line-item .qty input { width: 30px; font-size: 14px; }
.line-item .pr { font-size: 15px; white-space: nowrap; }
.totals div { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.totals .grand { font-size: 18px; font-weight: 600; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.shipping-hint { font-size: 13px; color: var(--emeraude); margin: 10px 0 16px; }
.drawer-empty { padding: 40px 0; }
.drawer-empty p { color: var(--ink-soft); }
.demo-flag { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(255,255,255,.97); display: grid; place-items: center; padding: 56px 16px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px -30px rgba(27,34,51,.6); background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px; z-index: 70; transition: transform .3s ease, visibility .3s; max-width: calc(100% - 32px); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ceda; padding: 64px var(--gutter) 28px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin: 0 0 10px; font-size: 14px; max-width: 36ch; }
.footer-grid a { display: block; font-size: 14px; text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font: italic 500 34px/1 var(--display) !important; color: #fff; }
.footer-title { color: #fff; font-weight: 500; }
.footer-legal { max-width: var(--max); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .bar { gap: 18px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .product, .artist, .book, .universes { grid-template-columns: 1fr; }
  .hero-frame { max-width: 520px; }
  .hero-frame .cartel { position: static; margin-top: 18px; min-width: 0; border: 0; border-left: 1px solid var(--brass); padding: 2px 0 2px 14px; }
  .product-info { position: static; }
  .book .cover { max-width: 280px; }
  .strip { grid-auto-columns: 72%; }
}
@media (max-width: 600px) {
  .brand { font-size: 28px; }
  .cart-btn { padding: 7px 12px; font-size: 14px; }
  .cols { grid-template-columns: 1fr; }
  .col-card { padding: 20px 16px; grid-template-columns: 80px 1fr; min-height: 0; }
  .col-card .thumb { width: 80px; height: 80px; }
  .works { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .work .cartel { padding-left: 10px; font-size: 13px; }
  .work .cartel .t { font-size: 15px; }
  .controls { width: 100%; }
  .controls .field { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .specs div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
