/* Gallery 98 Fine Art · Edi A.
   Layout: full-width white gallery walls; the paintings lead, type stays quiet and sans-serif.
   Single light theme by design (Shams' brief: white background, dark text, no dark theme). */
:root {
  --paper: #ffffff;
  --wall: #f4f5f8;        /* tinted band, a cool gallery-wall grey */
  --ink: #12141a;
  --muted: #5b6070;
  --line: #e3e5ec;
  --accent: #1f3eb5;      /* the ultramarine of Edi's koi water */
  --koi: #d9401c;         /* used only for the Sold tag */
  --wa: #128c4a;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r: 999px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

.eyebrow, .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow { margin-bottom: 12px; }
.label { margin-bottom: 6px; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.placeholder { color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub { font: 500 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); align-self: center; padding-block: 4px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r); font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--wall); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--wall); font-weight: 500; }
@media (max-width: 560px) { .brand-sub { display: none; } .brand-logo { height: 26px; } .nav a { padding: 6px 9px; font-size: 0.9rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r); background: var(--ink); color: var(--paper); text-decoration: none; font: 500 0.98rem/1 var(--body); border: 1px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.display { font-size: clamp(3.2rem, 9vw, 7.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.display span { display: block; font-size: 0.36em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; color: var(--muted); margin-top: 18px; max-width: 18ch; }
.display-sm { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; max-width: 22ch; }
.hero-art { position: relative; display: block; text-decoration: none; }
.hero-art img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: 4px; }
.hero-caption { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.hero-caption strong { color: var(--ink); font-weight: 600; }

/* Sections */
.band { padding-block: clamp(56px, 8vw, 112px); }
.band-flush { padding-top: 8px; }
.band-tint { background: var(--wall); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.page-head { padding-block: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.note { margin-top: 28px; font-size: 0.88rem; }

/* Cards / masonry */
.masonry { columns: 1; column-gap: clamp(16px, 2.4vw, 32px); }
@media (min-width: 620px) { .masonry { columns: 2; } }
@media (min-width: 1040px) { .masonry { columns: 3; } }
.masonry .card { break-inside: avoid; margin-bottom: clamp(28px, 3.4vw, 48px); }
.card { display: grid; gap: 14px; }
.card[hidden] { display: none !important; }
.card-img { display: block; overflow: hidden; border-radius: 3px; background: var(--wall); }
.card-img img { width: 100%; max-height: 36rem; object-fit: cover; transition: transform .5s ease; }
.card-img:hover img { transform: scale(1.025); }
.card-body { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.card-text { min-width: 0; flex: 1 1 180px; }
.card-title { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-sub { display: block; font-size: 0.92rem; color: var(--muted); font-style: italic; }
.card-meta { font-size: 0.88rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.tag-sold { color: var(--koi); border: 1px solid var(--koi); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-grid { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.row-grid .card-img img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font: 500 0.95rem/1 var(--body); padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--line); }

/* Story teaser */
.story-teaser, .visit, .about-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .story-teaser { grid-template-columns: 0.85fr 1fr; } .visit { grid-template-columns: 1fr 1fr; } .about-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.story-img img, .visit-img img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 3px; }
.story-text, .visit-text { display: grid; gap: 18px; min-width: 0; max-width: 60ch; }
figure { margin: 0; }
blockquote { margin: 8px 0; padding-left: 20px; border-left: 3px solid var(--accent); font: 500 1.35rem/1.35 var(--display); letter-spacing: -0.01em; }
blockquote cite { display: block; margin-top: 8px; font: 400 0.85rem/1.4 var(--body); color: var(--muted); font-style: normal; }

/* Series */
.series-grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.series-tile { display: grid; gap: 10px; text-decoration: none; }
.series-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; transition: transform .5s ease; }
.series-tile:hover img { transform: scale(1.02); }
.series-name { font: 600 1.4rem/1.1 var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.series-name small { font: 400 0.85rem var(--body); color: var(--muted); }
.series-note { font-size: 0.92rem; color: var(--muted); }

/* Instagram band */
.band-ig { border-top: 1px solid var(--line); }
.ig-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.ig-links { display: flex; gap: 10px; flex-wrap: wrap; }
.ig-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 800px) { .ig-strip { grid-template-columns: repeat(6, 1fr); } }
.ig-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.ig-tile:hover img { opacity: .85; }

/* Artwork page */
.work { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.work .crumbs { margin-bottom: clamp(18px, 3vw, 32px); }
.work-grid { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 960px) { .work-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } .work-art { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } }
.work-art { display: grid; gap: 10px; }
.zoom { all: unset; cursor: zoom-in; display: block; }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.zoom img { width: 100%; max-height: 86vh; object-fit: contain; background: var(--wall); border-radius: 3px; }
.work-info { display: grid; gap: 16px; align-content: start; min-width: 0; max-width: 56ch; }
.work-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.035em; }
.work-sub { font-size: 1.15rem; color: var(--muted); font-style: italic; margin-top: -6px; }
.work-artist { font-weight: 500; }
.specs { margin: 8px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 0.92rem; }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.work-cta { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.work-cta .btn { min-width: 200px; }
.series-copy { color: var(--muted); }
.small-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 20px; }
.pager a { text-decoration: none; font: 600 1.05rem/1.25 var(--display); min-width: 0; }
.pager a:hover { color: var(--accent); }
.pager small { display: block; font: 400 0.8rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .next { text-align: right; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(255,255,255,0.97); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lb-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); right: max(16px, env(safe-area-inset-right, 0px)); background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r); padding: 10px 16px; font: 500 0.9rem var(--body); cursor: pointer; }

/* About */
.about-portrait img { width: 100%; border-radius: 3px; }
.about-portrait figcaption, .photo-pair figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.prose { display: grid; gap: 20px; max-width: 64ch; min-width: 0; }
.two-col { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 0.7fr 1.3fr; } }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl-when { font: 600 1.05rem/1.4 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.photo-pair { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.qas { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.qa dt { color: var(--muted); font-size: 0.92rem; }
.qa dd { margin: 0; font: 500 1.3rem/1.3 var(--display); letter-spacing: -0.01em; }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.form { display: grid; gap: 18px; max-width: 640px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
input, select, textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; }
.form-error { color: var(--koi); font-weight: 500; }
.contact-side { display: grid; gap: 28px; padding: 28px; background: var(--wall); border-radius: 14px; min-width: 0; }
.contact-side .btn { margin-top: 10px; }
.big-line { font: 600 1.5rem/1.2 var(--display); }
.select { user-select: all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; background: var(--paper); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid p + p { margin-top: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { font: 600 1.2rem var(--display); margin-bottom: 6px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; font-size: 0.82rem; }
