/* Avoryn Artist Page
   Design language taken from the homepage: dark brown + warm beige + gold,
   Cormorant Garamond headings, Manrope body, square corners, no heavy effects.
   Colours/fonts below were matched by eye from screenshots; edit the tokens to fine-tune. */

.av-artist {
  --av-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --av-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --av-dark: #15110c;          /* "Meet The Artists" section background */
  --av-beige: #ede5d8;         /* "Selected Works" section background */
  --av-ink: #3a3128;           /* headings on beige */
  --av-cream: #f3ece0;         /* headings on dark */
  --av-gold: #a98b4a;          /* gold button */
  --av-gold-line: #c4a35e;     /* gold button border / rules */
  --av-gold-gradient: linear-gradient(135deg, #b8964a 0%, #8a7040 55%, #3d3426 100%);

  --av-width: 1100px;
  --av-gutter: 24px;
  --av-card-w: 340px;          /* width of each artwork card */
  --av-card-ratio: auto;       /* "auto" keeps each artwork uncropped; set 4 / 5 for uniform tiles like the homepage */

  overflow-x: clip;
  font-family: var(--av-sans);
}

.av-artist *,
.av-artist *::before,
.av-artist *::after { box-sizing: border-box; }

/* ---------- Hero: dark band with portrait, name and biography ---------- */

.av-artist .av-hero {
  background: var(--av-dark);
  color: var(--av-cream);
  padding: clamp(112px, 13vw, 176px) var(--av-gutter) clamp(72px, 9vw, 128px);
}

.av-artist .av-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(48px, 8vw, 120px);
  align-items: center;
  max-width: var(--av-width);
  margin: 0 auto;
}

.av-artist .av-hero--no-photo .av-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

/* A gold block offset behind the portrait, echoing the gold bio panels on the homepage */
.av-artist .av-hero__media {
  position: relative;
  margin: 0;
}

.av-artist .av-hero__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--av-gold-gradient);
}

.av-artist .av-hero__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.av-artist .av-hero__name {
  margin: 0;
  font-family: var(--av-serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--av-cream);
}

.av-artist .av-hero__name::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 1.75rem 0 2rem;
  background: var(--av-gold-line);
}

.av-artist .av-hero__bio {
  max-width: 60ch;
  font-family: var(--av-sans);
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(243, 236, 224, .85);
}

.av-artist .av-hero__bio p { margin: 0 0 1.1em; }
.av-artist .av-hero__bio p:last-child { margin-bottom: 0; }

.av-artist .av-hero__actions { margin: 2.25rem 0 0; }

/* Gold button, same look as "Meet Our Artists" / "Make an Enquiry" on the homepage */
.av-artist a.av-btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--av-gold);
  border: 1px solid var(--av-gold-line);
  border-radius: 0;
  color: #fff;
  font-family: var(--av-sans);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.av-artist a.av-btn:hover { background: #b99a55; color: #fff; }

.av-artist a.av-btn:focus-visible,
.av-artist a.av-work:focus-visible {
  outline: 2px solid var(--av-gold-line);
  outline-offset: 3px;
}

/* ---------- Works: beige band, centred heading, artwork cards ---------- */

.av-artist .av-works {
  background: var(--av-beige);
  color: var(--av-ink);
  padding: clamp(64px, 8vw, 112px) var(--av-gutter) clamp(80px, 10vw, 136px);
}

.av-artist .av-works__inner {
  max-width: var(--av-width);
  margin: 0 auto;
}

.av-artist .av-works__head {
  margin: 0 0 clamp(36px, 5vw, 56px);
  text-align: center;
}

.av-artist .av-works__title {
  margin: 0;
  font-family: var(--av-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--av-ink);
}

.av-artist .av-works__sub {
  margin: .75rem 0 0;
  font-family: var(--av-sans);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--av-ink);
}

/* Cards stay a fixed width and centre as a group, so one artwork or ten both look intentional */
.av-artist .av-works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--av-card-w)), var(--av-card-w)));
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.av-artist a.av-work {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2a2218;
  color: #fff;
  text-decoration: none;
}

.av-artist .av-work__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--av-card-ratio);
  object-fit: cover;
}

/* Same dark fade and bottom-left caption as the homepage "Selected Works" cards */
.av-artist .av-work__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 72px 28px 26px;
  background: linear-gradient(to top, rgba(12, 9, 5, .82) 0%, rgba(12, 9, 5, 0) 100%);
}

.av-artist .av-work__title {
  margin: 0;
  font-family: var(--av-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.av-artist a.av-work:hover .av-work__title {
  text-decoration: underline;
  text-decoration-color: var(--av-gold-line);
  text-underline-offset: 5px;
}

.av-artist .av-work__meta {
  display: block;
  margin-top: .3rem;
  font-family: var(--av-sans);
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.av-artist .av-works__empty {
  text-align: center;
  font-size: .95rem;
}

/* ---------- Pagination ---------- */

.av-artist .navigation.pagination { margin-top: 56px; }

.av-artist .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.av-artist .nav-links a,
.av-artist .nav-links span {
  min-width: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  font-family: var(--av-sans);
  font-size: .875rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: var(--av-ink);
}

.av-artist .nav-links a:hover { border-color: var(--av-gold-line); }
.av-artist .nav-links .current { border-color: var(--av-gold); background: var(--av-gold); color: #fff; }

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .av-artist { --av-gutter: 20px; }

  .av-artist .av-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }

  .av-artist .av-hero__media { max-width: 400px; margin-right: 22px; }
  .av-artist .av-hero__media::before { inset: 16px -16px -16px 16px; }
  .av-artist .av-work__caption { padding: 56px 22px 20px; }
}
