/* Kavvish — gallery styles */
:root {
  --paper: #faf8f5;
  --white: #ffffff;
  --ink: #1b1a18;
  --muted: #6b675f;
  --line: #e6e1d8;
  --tint: #f1ede6;
  --dark: #1b1a18;
  --accent: #8c3b2b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --r: 2px;
}

*, *::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 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker a { text-decoration: none; }
.lede { font-size: 19px; line-height: 1.6; color: #3a3833; max-width: 36em; }
.link { font-weight: 500; text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: var(--r);
  padding: 14px 26px; font: 500 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { display: block; text-align: center; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo img { width: 118px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.nav .nav-cta { border: 1px solid var(--ink); padding: 9px 18px; border-radius: var(--r); }
.nav .nav-cta:hover { background: var(--ink); color: var(--white); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; margin-right: -10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hero-img img { width: 100%; box-shadow: 0 30px 60px rgba(27, 26, 24, .10); }
.hero-ex { padding-bottom: 56px; }

/* Sections */
.sec { padding: 96px 0; }
.sec-tight { padding: 40px 0 96px; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--dark); color: #efe9df; }
.sec-dark h2 { color: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head h2 { margin: 0; }
.page-head { padding: 72px 0 24px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta p { margin: 0; opacity: .85; }
.cta-plain { border-top: 1px solid var(--line); padding-top: 48px; }

/* Grid of works — natural proportions, aligned on the image bottom */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; align-items: end; }
.card { display: block; text-decoration: none; }
.card:hover { color: inherit; }
.card-img { position: relative; background: var(--white); overflow: hidden; margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.card-artist { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.card-title { font-size: 21px; margin: 0 0 2px; }
.card-meta { font-size: 14px; color: var(--muted); margin: 0; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; }
.empty { color: var(--muted); padding: 40px 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; }
.chip { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 400 14px var(--sans); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.toggle { margin-left: 12px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.card[hidden] { display: none; }

/* Artists */
.artist-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.artist-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--serif); font-size: 22px; }
.artist-list a { text-decoration: none; }
.artist-list span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.artist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.artist-card { text-decoration: none; display: block; }
.artist-card:hover { color: inherit; }
.artist-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); margin-bottom: 16px; }
.artist-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.artist-card:hover .artist-img img { transform: scale(1.03); }
.artist-card h2 { font-size: 28px; margin-bottom: 4px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps p { color: var(--muted); margin: 0; }
.steps-v { grid-template-columns: 1fr; gap: 28px; }

/* Artwork page */
.work { padding: 48px 0 80px; }
.work-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: start; }
.work-imgs { display: grid; gap: 24px; }
.work-imgs img { width: 100%; background: var(--white); }
.work-info { position: sticky; top: 112px; }
.work-info h1 { font-size: clamp(36px, 4vw, 54px); margin-bottom: 8px; }
.work-artist { font-family: var(--serif); font-size: 24px; margin-bottom: 20px; }
.work-artist a { text-decoration: none; }
.status { display: inline-block; font-size: 14px; border: 1px solid var(--line); padding: 6px 12px; margin-bottom: 24px; }
.status.sold { background: var(--ink); color: var(--white); border-color: var(--ink); }
.facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.statement { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.statement summary { cursor: pointer; font-weight: 500; }
.statement p { color: #3a3833; font-size: 15px; margin-top: 12px; }

/* Prose */
.prose p { color: #3a3833; }
.prose-lg p { font-size: 19px; line-height: 1.7; }

/* Forms */
.enquiry { display: grid; gap: 18px; margin-top: 28px; }
.enquiry label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; font: 400 16px var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--ink); outline: none; }
.enquiry .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enquiry .btn { justify-self: start; }
.enquiry .hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.4em; margin: 0; font-size: 15px; }
.form-note.ok { color: #2f6b3a; }
.form-note.err { color: #a1291d; }
.contact-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 72px; }
.contact-side { border-top: 1px solid var(--ink); padding-top: 20px; }

/* Team & FAQ */
.team { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team img, .initials { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.initials { display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font-family: var(--serif); font-size: 40px; }
.team h3 { margin-bottom: 2px; }
.faq { margin-top: 64px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.ftr { background: var(--tint); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 15px; }
.ftr-in { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr .8fr 1fr; gap: 36px; }
.ftr h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.ftr p { color: var(--muted); }
.ftr a { text-decoration: none; }
.ftr-logo { width: 100px; margin-bottom: 14px; }
.ftr-base { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.ftr-note { max-width: 68ch; line-height: 1.6; margin-bottom: 10px; }
.ftr-base a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Responsive */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-in, .work-in, .split, .contact-in { grid-template-columns: 1fr; gap: 40px; }
  .work-info { position: static; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .hdr { backdrop-filter: none; background: var(--paper); }
  .nav { position: fixed; inset: 82px 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 28px 40px;
    font-family: var(--serif); font-size: 30px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 24px; width: auto; border: 1px solid var(--ink); font-family: var(--sans); font-size: 16px; padding: 12px 22px; }
  .open .nav { visibility: visible; opacity: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .artist-grid, .team, .steps { grid-template-columns: 1fr 1fr; }
  .sec { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hdr-in { height: 70px; }
  .nav { inset: 70px 0 0; }
  .logo img { width: 100px; }
  .hero { padding: 40px 0 64px; }
  .lede, .prose-lg p { font-size: 17px; }
  .artist-grid, .team, .steps { grid-template-columns: 1fr; }
  .artist-list { columns: 1; }
  .enquiry .two { grid-template-columns: 1fr; }
  .card-title { font-size: 19px; }
  .ftr-in { grid-template-columns: 1fr; }
  .toggle { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
