/* Yossi Ben Menda — site styles
   Palette taken from the paintings: linen ground, ink text, terracotta accent, teal (store). */
:root {
  --bg: #F5EFE6;
  --surface: #EDE4D6;
  --paper: #FBF8F3;
  --ink: #1F2528;
  --ink-soft: #3E3833;
  --muted: #5E5650;
  --line: #D8CCBA;
  --line-strong: #B9AC98;
  --accent: #9C4A24;
  --accent-hover: #7A3818;
  --accent-on-dark: #E8B48F;
  --teal: #2C5755;
  --teal-soft: #E3EDEC;
  --on-dark: #EDE4D6;
  --on-dark-muted: #B3AA9E;
  --shadow-art: 0 24px 48px -24px rgba(60, 35, 15, 0.5);
  --font-display: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --font-body: 'Assistant', 'Segoe UI', system-ui, sans-serif;
  --container: 1224px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 48px); }
.section-head .stack { display: flex; flex-direction: column; gap: 10px; }
.more-link { font-weight: 700; font-size: 17px; }
.section--dark .more-link { color: var(--accent-on-dark); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 2px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s;
}
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #33393C; color: var(--bg); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--teal { background: var(--teal); color: var(--bg); }
.btn--teal:hover { background: #1F4241; color: var(--bg); }
.btn--teal-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--teal-outline:hover { background: var(--teal); color: var(--bg); }
.btn--block { width: 100%; }

/* Header */
.preview-banner { background: var(--teal); color: var(--bg); text-align: center; font-weight: 700; font-size: 15px; padding: 8px var(--gutter); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
.brand__sub { font-size: 14px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 17px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a:not(.cart-link) { position: relative; }
.site-nav a:not(.cart-link)::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-shop { color: var(--teal); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--teal) !important; }
.cart-count { position: absolute; top: 2px; inset-inline-start: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .brand__sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .cart-link { width: auto; justify-content: flex-start; gap: 8px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
.hero__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(48px, 7vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 440px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__art { flex: 1.3 1 480px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero__art img { width: 100%; height: clamp(300px, 45vw, 560px); object-fit: cover; box-shadow: var(--shadow-art); }
.caption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.caption strong { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); }

/* Art grid & cards */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 32px; align-items: start; }
.art-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.art-card:hover { color: var(--ink); }
.art-card__frame { background: var(--surface); padding: 22px; height: 400px; display: flex; align-items: center; justify-content: center; }
.section--surface .art-card__frame { background: var(--paper); }
.art-card__frame img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 18px 36px -18px rgba(60,35,15,.5); transition: transform .3s ease; }
.art-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.art-card__title span:first-child { font-family: var(--font-display); font-size: 24px; }
.art-card__meta { font-size: 15px; color: var(--muted); margin-top: -6px; }
.art-card[hidden] { display: none; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; border: 1.5px solid currentColor; }
.badge--available { color: var(--teal); }
.badge--sold { color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-block: 1px solid var(--line); margin-bottom: 44px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Page head */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: clamp(48px, 7vw, 72px) 40px; }
.page-head h1 { font-size: clamp(48px, 7vw, 68px); line-height: 1; }
.page-head .stack { display: flex; flex-direction: column; gap: 12px; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 420px; }

/* Split rows (label column + content) */
.split { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }
.split__label { flex: 0 1 240px; display: flex; flex-direction: column; gap: 10px; }
.split__label h2 { font-size: 34px; }
.split__body { flex: 1 1 520px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.85; color: var(--ink-soft); max-width: 760px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; flex-wrap: wrap; gap: 6px 32px; padding-block: 20px; border-top: 1px solid #D0C3AE; }
.timeline__year { flex: 0 0 110px; font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.timeline__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.timeline__title { font-size: 19px; font-weight: 700; }
.timeline__detail { font-size: 16px; color: var(--muted); }

/* About */
.about-teaser { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-teaser__media { flex: 0 1 400px; height: 480px; overflow: hidden; }
.about-teaser__media img, .about-portrait img, .contact-art img { position: relative; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.about-portrait { flex: 1 1 320px; max-width: 380px; height: 460px; overflow: hidden; }
.contact-art { height: 300px; overflow: hidden; }
.about-teaser__text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 22px; }
.about-teaser__text h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1.15; }
.about-teaser__text p { font-size: 19px; line-height: 1.75; color: var(--ink-soft); }
.pull-quote { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.5; color: var(--ink-soft); }
.membership { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 28px 32px; border: 1px solid var(--line); background: var(--paper); }
.membership strong { font-size: 20px; }
.membership span { font-family: var(--font-display); font-size: 20px; color: var(--accent); }

/* Exhibitions */
.exh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.exh-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-top: 1px solid #4A5256; }
.exh-card__year { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--accent-on-dark); }
.exh-card__title { font-size: 20px; font-weight: 700; }
.exh-card__detail { font-size: 16px; color: #C9C1B6; }
.solo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: start; }
.solo-card { background: var(--ink); color: var(--bg); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.solo-card__year { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--accent-on-dark); }
.solo-card h3 { font-size: 28px; }
.solo-card__meta { font-size: 17px; color: #C9C1B6; }
.solo-card details { margin-top: 8px; border-top: 1px solid #4A5256; padding-top: 14px; }
.solo-card summary { cursor: pointer; font-weight: 700; color: var(--accent-on-dark); min-height: 44px; display: flex; align-items: center; }
.solo-card details p { font-size: 17px; line-height: 1.8; color: #DDD5CA; margin-top: 12px; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.photo-strip button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-strip img { width: 100%; height: 340px; object-fit: cover; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.press-card { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; text-align: start; font: inherit; color: var(--ink); cursor: zoom-in; }
.press-card img { width: 100%; height: 340px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.press-card__title { font-family: var(--font-display); font-size: 23px; }
.press-card__source { font-size: 15px; color: var(--muted); }
.article { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); background: var(--paper); border: 1px solid var(--line); margin-top: 56px; }
.article__head { flex: 0 1 300px; display: flex; flex-direction: column; gap: 12px; }
.article__head h3 { font-size: 32px; line-height: 1.25; }
.article blockquote { margin: 8px 0; padding: 4px 24px 4px 0; border-right: 3px solid var(--accent); font-family: var(--font-display); font-size: 21px; line-height: 1.7; color: var(--ink); }
.article blockquote footer { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Artwork page */
.breadcrumbs { display: flex; gap: 10px; font-size: 15px; color: var(--muted); padding-top: 28px; }
.artwork { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding-block: 32px 72px; }
.artwork__media { flex: 1.5 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.artwork__stage { background: var(--surface); padding: clamp(20px, 4vw, 48px); height: clamp(380px, 60vw, 720px); display: flex; align-items: center; justify-content: center; border: 0; width: 100%; cursor: zoom-in; }
.artwork__stage img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 30px 60px -28px rgba(60,35,15,.55); }
.artwork__hint { font-size: 14px; color: var(--muted); }
.artwork__info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 26px; padding-top: 16px; }
.artwork__info h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; font-size: 17px; padding-block: 22px; border-block: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.buy-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1.5px solid var(--teal); background: var(--paper); }
.buy-box__note { font-size: 15px; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 700; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 2px;
  background: #fff; font: inherit; font-size: 17px; color: var(--ink);
}
.field textarea { padding-block: 14px; resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 16px; }
.notice[hidden] { display: none; }
.notice--ok { background: var(--teal-soft); color: #1E4442; }
.notice--warn { background: #FBE7D6; color: #6E3416; }
.contact-layout { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); padding-block: clamp(48px, 7vw, 72px) clamp(64px, 8vw, 104px); }
.contact-layout__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 28px; }
.contact-layout__intro h1 { font-size: clamp(44px, 6vw, 60px); line-height: 1.05; }
.contact-layout__intro img { width: 100%; height: 300px; object-fit: cover; }
.contact-layout .form { flex: 1.2 1 420px; }

/* Store */
.store-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 36px 40px; border: 1.5px solid var(--teal); color: var(--teal); background: var(--paper); }
.store-band h2 { font-size: 30px; }
.shop-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 104px; }
.shop-layout .art-grid { flex: 999 1 560px; min-width: 0; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-item { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 88px; height: 88px; object-fit: cover; }
.cart-item__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cart-item__title { font-family: var(--font-display); font-size: 20px; }
.cart-item button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* CTA + footer */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(36px, 5vw, 54px); }
.cta p { font-size: 19px; color: var(--muted); }
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 48px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand span:first-child { font-family: var(--font-display); font-size: 26px; }
.site-footer__brand span:last-child { font-size: 14px; color: var(--on-dark-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20, 22, 24, 0.92); }
.lightbox__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #EDE4D6; padding-top: 10px; }
.lightbox__bar button { min-width: 48px; min-height: 48px; border: 1px solid #5E6366; background: transparent; color: #EDE4D6; font: inherit; font-size: 16px; cursor: pointer; }
.lightbox__bar button:hover { background: #33393C; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
