/* Ataker Art House — the public site (spec 0004).
   A quiet gallery look: warm paper background, ink text, serif display type, generous space.
   System fonts only (nothing to download); no inline styles anywhere (CSP style-src 'self').
   Colours: change the :root variables; keep text contrast at 4.5:1 or more. */

:root {
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --card: #ebe5dc;
  --ink: #1c1a17;
  --ink-2: #4a453e;
  --muted: #6c665d;
  --line: #d9d2c6;
  --accent: #7a4b2e;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3, .h3 { font-size: 19px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* --- buttons --------------------------------------------------------------------------- */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover, button:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.link-arrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* --- header ------------------------------------------------------------------------------ */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; }
.header-left, .header-right { display: flex; align-items: center; gap: 18px; }
.header-right { justify-content: flex-end; }
.brand { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.logo { display: block; line-height: 0; }
.logo img { height: 68px; width: auto; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.menu-toggle { display: none; min-height: 40px; padding: 0 4px; background: transparent; border: 0; color: var(--ink); }
.menu-toggle:hover { background: transparent; color: var(--accent); }
.main-nav ul { list-style: none; display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); margin: 0; padding: 0 0 16px; }
.main-nav a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; color: var(--ink); }

/* --- footer ------------------------------------------------------------------------------ */
.site-footer { margin-top: 96px; background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 13px; font-family: var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-brand { display: inline-block; line-height: 0; margin-bottom: 14px; }
.footer-brand img { height: 110px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: 12px; }

/* --- page intro ---------------------------------------------------------------------------- */
.page-intro { text-align: center; max-width: 760px; margin: 0 auto; padding: 48px 0 32px; }
.page-intro p { color: var(--ink-2); }
.breadcrumbs { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 24px 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span[aria-hidden] { margin: 0 8px; }

/* --- hero ------------------------------------------------------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); background: var(--paper-2); }
.hero-media { position: relative; overflow: hidden; background: var(--card); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); }
.hero-text h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; }
.hero-text p { font-size: 17px; color: var(--ink-2); max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-plain { grid-template-columns: 1fr; text-align: center; }
.hero-plain .hero-text { align-items: center; }

.section { padding-top: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

/* --- product grid ------------------------------------------------------------------------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.product-card a { display: block; text-decoration: none; }
.product-card a:hover { color: var(--ink); }
.product-media { position: relative; aspect-ratio: 4 / 5; background: var(--card); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10%; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; box-shadow: 0 10px 24px rgba(28, 26, 23, .18); }
.product-card a:hover .product-media img { transform: scale(1.03); }
.product-media .placeholder { font-family: var(--serif); color: var(--muted); font-size: 14px; text-align: center; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.product-info { padding-top: 14px; }
.product-title { font-size: 14px; line-height: 1.45; margin: 0; }
.product-title .work { font-family: var(--serif); font-size: 16px; }
.empty-state { text-align: center; padding: 64px 0; color: var(--muted); }

/* --- catalogue toolbar ---------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 32px; }
.toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filters { position: relative; }
.filters summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary { color: var(--accent); }
.filter-panel { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; gap: 16px; align-items: end; padding-top: 16px; }
.count { font-size: 13px; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 5px 12px; font-size: 12px; text-decoration: none; background: var(--white); }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* --- forms -------------------------------------------------------------------------------- */
label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink);
  font: 15px/1.4 var(--sans);
}
textarea { min-height: 160px; resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1a17' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.inline-select { display: flex; align-items: center; gap: 10px; }
.inline-select label { margin: 0; white-space: nowrap; }
.inline-select select { min-height: 38px; width: auto; min-width: 180px; font-size: 13px; }
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { border: 1px solid #b4533a; background: #fbefea; color: #7a2d1b; padding: 12px 16px; margin-bottom: 20px; }
.success { border: 1px solid #5d7a52; background: #eef4ea; color: #2f4a26; padding: 16px 20px; }

/* --- product page ------------------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gallery-main { background: var(--card); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 8%; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 18px 40px rgba(28, 26, 23, .2); }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.thumbs button { padding: 4px; min-height: 0; width: 84px; height: 84px; background: var(--card); border: 1px solid transparent; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { border-color: var(--ink); background: var(--card); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-panel { position: sticky; top: 140px; }
.product-panel .artist-name { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.product-panel .artist-name a { text-decoration: none; }
.product-panel h1 { margin-bottom: 14px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 24px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5d7a52; }
.stock.out::before { background: #b4533a; }
.stock.ask::before { background: #b8913a; }
.lead { font-size: 16px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose blockquote { border-left: 2px solid var(--accent); margin: 1.5em 0; padding-left: 20px; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.enquire-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* --- artists ------------------------------------------------------------------------------ */
.artist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px; }
.artist-card a { text-decoration: none; display: block; text-align: center; }
.artist-photo { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--card); margin: 0 auto 14px; max-width: 220px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 42px; color: var(--muted); }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-card .name { font-family: var(--serif); font-size: 19px; display: block; }
.artist-card .role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.artist-hero { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 32px 0 56px; }
.artist-hero .artist-photo { max-width: 280px; margin: 0; }
.artist-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: var(--paper-2); padding: 24px; margin-top: 32px; }
.artist-box .artist-photo { width: 96px; margin: 0; font-size: 28px; }

/* --- journal ------------------------------------------------------------------------------- */
.journal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.journal-card a { text-decoration: none; }
.journal-card .media { aspect-ratio: 3 / 2; background: var(--card); overflow: hidden; margin-bottom: 16px; }
.journal-card .media img { width: 100%; height: 100%; object-fit: cover; }
.journal-card time { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.journal-card h3 { margin: 6px 0 8px; font-size: 21px; }
.article { max-width: 760px; margin: 0 auto; }
.article-head { text-align: center; padding: 40px 0 28px; }
.article-cover { margin: 0 auto 36px; max-width: 1040px; }
.article-meta { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* --- misc ---------------------------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 56px; font-size: 13px; }
.pager a { text-decoration: none; border: 1px solid var(--line); padding: 10px 18px; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.narrow { max-width: 680px; margin: 0 auto; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 6vw, 96px); padding-top: 24px; }
.about-work { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; background: var(--paper-2); padding: 16px; margin-bottom: 24px; }
.about-work img { width: 88px; height: 88px; object-fit: contain; background: var(--card); }
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 40px; }
.error-page { text-align: center; padding: 96px 0; }

/* --- narrow screens -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .header-row { min-height: 60px; }
  .logo img { height: 48px; }
  .menu-toggle { display: inline-flex; }
  .header-right .label { display: none; }
  .main-nav { display: none; border-top: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .no-js .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .main-nav a { display: block; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 56vh; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-layout, .contact-layout, .artist-hero { grid-template-columns: 1fr; }
  .artist-hero { text-align: center; }
  .artist-hero .artist-photo { margin: 0 auto; max-width: 200px; }
  .product-panel { position: static; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .filter-panel, .form-row { grid-template-columns: 1fr; }
  .inline-select select { min-width: 0; }
}
@media (max-width: 420px) {
  .brand { letter-spacing: .1em; font-size: 16px; }
  .header-left { gap: 8px; }
  .logo img { height: 40px; }
  .product-title .work { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
