/* ============================================================
   VASZ — Visual Art Studio Zurich
   Shared site stylesheet
   ============================================================
   Page types currently using this file:
     - artists/[slug].html       (artist profile)
     - works/[slug]-[code].html  (artwork detail — to be added)
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- TOKENS ---------- */
:root {
  --black: #0d0d0d;
  --white: #fff;
  --off:   #f8f7f4;       /* page background — warm off-white */
  --mid:   #5a5a5a;       /* secondary text */
  --light: #e0ddd8;       /* borders, dividers */
  --brick: #7a2020;       /* single accent — Florentine brick */
  --brick-dark: #5e1818;  /* CTA hover */
  --card-bg: #f0efeb;     /* image placeholder background */

  --fd: "Barlow Condensed", sans-serif;   /* display + UI labels */
  --fb: "Barlow", sans-serif;              /* body */
  --fc: "Cormorant Garamond", serif;       /* reserved for editorial use */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  font-weight: 300;
  font-size: 17px;
  background: var(--off);
  color: var(--black);
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 60px;
  background: rgba(248, 247, 244, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
}

.nav-logo img {
  height: 34px;
  mix-blend-mode: multiply;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  opacity: .4;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  opacity: 1 !important;
  background: var(--brick);
  color: var(--white) !important;
  padding: 8px 18px;
  font-size: 10px !important;
}
.nav-cta:hover { background: var(--brick-dark) !important; }

/* ============================================================
   STICKY NAME BAR (artist profile)
   ============================================================ */
.name-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 90;
  background: rgba(248, 247, 244, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
  padding: 10px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.name-bar.visible { transform: translateY(0); }

.name-bar-name {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.name-bar-medium {
  font-size: 13px;
  color: var(--mid);
  margin-left: 16px;
}
.name-bar-link {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  text-decoration: none;
}

/* ============================================================
   PROFILE HERO — portrait left, bio right
   ============================================================ */
.profile-hero {
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.profile-photo {
  position: relative;
  overflow: hidden;
  background: #e8e5e0;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profile-info {
  padding: 40px 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-back {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  transition: color .2s;
}
.profile-back:hover { color: var(--black); }

.profile-name {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 80px);
  line-height: .88;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.profile-meta {
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 32px;
  border-left: 3px solid var(--brick);
  padding-left: 14px;
}

.profile-bio {
  font-size: 17px;
  line-height: 1.85;
  color: #444;
  max-width: 420px;
  margin-bottom: 36px;
}
.profile-bio p + p { margin-top: 16px; }

.profile-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--light);
  padding-bottom: 3px;
  transition: border-color .2s;
  align-self: flex-start;
}
.profile-ig:hover { border-color: var(--black); }

/* Solid black CTA — "Enquire for commission", "Enquire to buy" etc. */
.btn-solid {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 24px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  align-self: flex-start;
  border: 1px solid var(--black);
  transition: background .2s, color .2s;
}
.btn-solid:hover { background: transparent; color: var(--black); }

/* Outlined variant — pairs with .btn-solid (e.g. "Try it on your wall") */
.btn-outline {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 24px;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  align-self: flex-start;
  border: 1px solid var(--black);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ============================================================
   WORKS GRID — used on artist profile + "More from artist" rows
   ============================================================ */
.works-section { padding: 80px 56px; }

.works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--black);
}
.works-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.works-count {
  font-size: 14px;
  color: var(--mid);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--card-bg);
}
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.work-card:hover .work-card-image img { transform: scale(1.03); }

.work-card-info { padding: 12px 0 20px; }

.work-card-title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: 2px;
}
.work-card-meta {
  font-size: 13px;
  color: var(--mid);
}
.work-card-meta + .work-card-meta { margin-top: 2px; }

/* Auction badge (top-right corner of card image) */
.auction-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brick);
  color: var(--white);
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
}

/* Sold overlay (full image cover with "SOLD" label) */
/* Sold badge (top-right corner of card image) — matches the auction badge
   layout but in a muted tone, so the artwork stays fully visible underneath. */
.sold-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 13, 13, .82);
  padding: 3px 8px;
}
.sold-overlay span {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  padding: 36px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--light);
}

.footer-logo img {
  height: 26px;
  filter: invert(1);
  opacity: .45;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #ccc; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-ig,
.footer-email {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.footer-ig:hover,
.footer-email:hover { color: #ccc; }

.footer-copy {
  font-size: 11px;
  color: #777;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   ARTWORK PAGE — split layout, sticky image + scrolling info
   ============================================================ */
.artwork-wrap {
  padding-top: 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: calc(100vh - 60px);
}

.artwork-image {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: #ece9e3;
  cursor: zoom-in;
}
.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.artwork-info {
  padding: 56px 48px;
  overflow-y: auto;
}

.artwork-back {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  transition: color .2s;
}
.artwork-back:hover { color: var(--black); }

.artwork-artist {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 10px;
}

.artwork-code {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 8px;
}

.artwork-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.info-table {
  width: 100%;
  border-top: 1px solid var(--light);
  margin-bottom: 20px;
  border-collapse: collapse;
}
.info-table tr td {
  padding: 11px 0;
  border-bottom: 1px solid var(--light);
  font-size: 15px;
}
.info-table td:first-child {
  color: var(--mid);
  font-size: 13px;
  letter-spacing: .04em;
  width: 40%;
}

.artwork-desc {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 28px;
}

/* Tag pills */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.tag {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #ece9e3;
  color: var(--mid);
  padding: 3px 9px;
}

/* Action block (under tags / above "view all" link) */
.artwork-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

/* Logistics line (framing + location) — sits above the action buttons.
   Compact, secondary, but visible. */
.artwork-logistics {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--light);
  background: rgba(0, 0, 0, .015);
}
.artwork-logistics strong {
  color: var(--black);
  font-weight: 500;
}

/* Bundle / cross-link callout (e.g. "Also available as a set") */
.artwork-bundle-note {
  font-size: 14px;
  color: var(--black);
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--brick);
  background: rgba(122, 32, 32, .04);
}
.artwork-bundle-note a {
  color: var(--brick);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--brick);
}
.artwork-bundle-note a:hover { color: var(--brick-dark); border-bottom-color: var(--brick-dark); }

/* Bottom secondary section: link back to artist + commission CTA */
.artwork-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.artwork-bottom-link {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
}
.artwork-bottom-link:hover { color: var(--black); }

/* ============================================================
   FULLSCREEN OVERLAY (click image to zoom)
   ============================================================ */
.fs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.fs-overlay.open { display: flex; }
.fs-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}
.fs-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: 1px solid #444;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 1000;
}

/* ============================================================
   "MORE FROM [ARTIST]" SECTION — variant of works-grid,
   smaller cards (used on artwork detail pages)
   ============================================================ */
.more-section {
  padding: 64px 56px;
  border-top: 1px solid var(--light);
}
.more-header {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 28px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.more-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.more-card-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ece9e3;
}
.more-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.more-card:hover .more-card-image img { transform: scale(1.03); }
.more-card-info { padding: 10px 0 0; }
.more-card-title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
}
.more-card-meta {
  font-size: 13px;
  color: var(--mid);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav, .name-bar { padding: 0 20px; }
  .name-bar { padding: 10px 20px; }

  .profile-hero { grid-template-columns: 1fr; }
  .profile-photo { height: 70vw; }
  .profile-info { padding: 48px 24px; }

  .works-section { padding: 56px 24px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .artwork-wrap { grid-template-columns: 1fr; }
  .artwork-image { position: relative; height: 70vw; }
  .artwork-info { padding: 40px 24px; }

  .more-section { padding: 48px 24px; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }

  footer {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
