/* Layout and type follow the original Wix site (measured at a 1440px-wide window). */
:root {
  --ink: #282936;
  --muted: #94949b;
  --rule: #282626;
  --pink: #c2274b;
  --avenir: "Nunito Sans", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  --forum: "Forum", Georgia, serif;
  --anton: "Anton", Impact, sans-serif;
  --caslon: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --ease: cubic-bezier(0.37, 0, 0.63, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--avenir);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
button { font: inherit; color: inherit; }

/* 980px Wix grid */
.grid { width: 980px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ Header */
.site-header {
  position: relative;
  z-index: 5;
  height: 181px;
  padding: 24px 72px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.page-artists .site-header { border-bottom: 1px solid #ececee; }
.logo { font-family: var(--anton); font-size: 30px; line-height: 42px; white-space: nowrap; }
.nav { display: flex; gap: 33px; padding-top: 10px; }
.nav a { font-size: 16px; line-height: 22px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin: 2px -8px 0 0; cursor: pointer; }
.menu-btn svg { display: block; }

/* ------------------------------------------------------------ Footer */
.site-footer { padding: 42px 0 40px; }
.foot-brand { width: 980px; max-width: calc(100% - 40px); margin: 0 auto; padding-left: 10px; }
.foot-name { font-family: var(--anton); font-size: 30px; line-height: 44px; letter-spacing: .3px; }
.foot-tag { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; line-height: 23px; margin-top: 9px; letter-spacing: .16px; }
.footer-forum .foot-name { font-family: var(--forum); }
.footer-forum .foot-tag { font-family: var(--forum); font-weight: 400; margin-top: 5px; }
.copyright { text-align: center; font-size: 14px; margin-top: 48px; }
.footer-copyright .copyright { margin-top: 30px; }

/* ------------------------------------------------------------ Home */
.home-slides { padding-top: 93px; }
.slideshow { position: relative; width: 786px; max-width: calc(100% - 40px); aspect-ratio: 786 / 510; margin: 0 auto; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; z-index: 1; }
.slide a { display: block; height: 100%; }
.frame { position: relative; display: block; height: 100%; }
.frame img { height: 100%; width: auto; max-width: none; }
.cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .8);
  font-size: 16px;
  opacity: 0;
  transition: opacity .3s ease;
}
.slide a:hover .cap { opacity: 1; }
.count { position: absolute; top: 0; right: 0; z-index: 2; font-size: 12px; padding: 6px 8px; }

.rule { border: 0; border-top: 1px solid var(--rule); width: calc(100% - 174px); margin: 0 auto; }
.rule-1 { margin-top: 100px; }
.acq { display: flex; align-items: flex-start; gap: 43px; padding: 112px 0 0 18px; }
.acq-img { flex: 0 0 395px; }
.acq-img img { width: 395px; height: 391px; object-fit: cover; }
.acq-text { padding-top: 81px; max-width: 523px; }
.acq-text h2 { font-family: var(--forum); font-size: 56px; line-height: 62px; }
.acq-text p { margin-top: 28px; line-height: 28.8px; }
.read-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; font-weight: 800; font-size: 14px; line-height: 40px; }
.read-more svg { transition: transform .3s ease; }
.read-more:hover svg { transform: translateX(4px); }
.rule-2 { margin-top: 136px; }
.recommended { padding: 41px 0 0 18px; }
.recommended h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 50px; line-height: 61px; }
.rec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 930px; max-width: 100%; margin: 59px 0 0 12px; }
.rec-card { display: block; background: #fff; border: 1px solid #ececec; min-height: 536px; }
.rec-card img { width: 100%; aspect-ratio: 289 / 216; object-fit: cover; }
.rec-body { padding: 28px 24px 25px; }
.rec-body h3 { font-family: var(--forum); font-size: 22px; line-height: 30.8px; }
.rec-body p { margin-top: 10px; font-size: 14px; line-height: 21px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rec-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ Artists */
.artists-head { padding: 125px 75px 0; }
.artists-head h1 { font-family: var(--forum); font-size: 60px; line-height: 67px; }
.quote { margin-top: 24px; max-width: 700px; font-size: 20px; line-height: 28px; }
.quote .cite { padding-left: 23px; }

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding: 80px 75px 40px;
}
.pair { display: flex; gap: 40px; }
.pair .tile-kaede { flex: 0.8277 1 0; aspect-ratio: 221 / 267; }
.pair .tile-weitong { flex: 1.3333 1 0; aspect-ratio: 356 / 267; }
.tile-yuchen { aspect-ratio: 617 / 463; }
.tile-ziwen { aspect-ratio: 618 / 824; }
@media (max-width: 1599px) {
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: min-content 1fr; }
  .pair { grid-column: 1; grid-row: 1; }
  .tile-yuchen { grid-column: 2; grid-row: 1 / span 2; }
  .tile-ziwen { grid-column: 1; grid-row: 2; }
}
.tile { position: relative; display: block; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(24, 24, 24, .4);
  opacity: 0;
  transition: opacity .4s;
}
.tile-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: 42px 66px 42px;
  color: #fff;
  text-align: left;
  opacity: 0;
  transition: opacity .4s;
}
.tile-name { display: block; flex: none; font-family: var(--forum); font-size: 24px; line-height: 33.6px; padding: 24px 0 12px; }
.tile-intro { display: block; min-height: 0; overflow: hidden; font-size: 16px; line-height: 22.4px; }
.tile-intro p + p { margin-top: 22.4px; }
.tile:hover::before, .tile:hover .tile-info, .tile:focus-visible::before, .tile:focus-visible .tile-info { opacity: 1; }

/* ------------------------------------------------------------ Artist page */
.artist-hero { position: relative; margin: -85px 35px 0; aspect-ratio: 1355 / 900; overflow: hidden; }
.artist-hero img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.3) 0%, rgba(255,255,255,.3) 55%, rgba(255,255,255,.85) 88%, #fff 100%);
}
.artist-hero h1 { position: absolute; z-index: 1; left: 80px; bottom: 21.9%; font-family: var(--forum); font-size: 72px; line-height: 80px; }
.artist-body { padding: 103px 115px 0; }
.facts { display: flex; }
.facts > div { width: 291px; }
.facts h2 { font-family: var(--forum); font-size: 20px; line-height: 28px; }
.facts p { margin-top: 5px; line-height: 22.4px; }
.artist-intro { margin-top: 48px; max-width: 600px; line-height: 22.4px; }
.artist-intro p + p { margin-top: 22.4px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 100px; margin-top: 101px; }
.work { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; }
.work img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.work:hover img { opacity: .85; }
.pager { display: flex; justify-content: space-between; margin-top: 52px; font-family: var(--forum); font-size: 20px; }
.pager a { display: inline-flex; align-items: center; gap: 18px; padding: 0 0 0 0; }
.pager a:hover { color: var(--muted); }

/* Artwork viewer */
.viewer {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 380px;
  background: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.viewer.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 110px 90px; min-height: 0; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .25s var(--ease); }
.viewer-info { padding: 120px 40px 40px 0; overflow-y: auto; }
.viewer-info h2 { font-family: var(--forum); font-size: 22px; line-height: 30px; }
.viewer-info p { margin-top: 18px; font-size: 14px; line-height: 20px; white-space: pre-line; }
.viewer button { position: absolute; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.viewer .v-close { top: 22px; right: 24px; }
.viewer .v-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 20px; top: 50%; transform: translateY(-50%); }
.viewer button:hover { opacity: .6; }
.viewer [hidden] { display: none; }

/* ------------------------------------------------------------ Articles */
.blog { padding: 30px 20px 0; }
.all-posts { font-size: 14px; line-height: 19.6px; color: var(--pink); }
.all-posts.dark { color: var(--ink); }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 50px; }
.post-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: #fff; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(40, 41, 54, .55); transition: background .3s; }
.post-card:hover::before { background: rgba(40, 41, 54, .45); }
.post-meta { position: absolute; z-index: 2; top: 30px; left: 30px; font-size: 12px; line-height: 17px; }
.post-card h2 { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 27px; font-family: var(--forum); font-size: 26px; line-height: 29px; }
.stay { display: flex; align-items: flex-start; gap: 62px; padding: 75px 0 0 16px; }
.stay-text { width: 475px; font-family: var(--anton); font-size: 50px; line-height: 70px; }
.stay-insta { display: inline-flex; align-items: center; gap: 14px; margin-top: 4px; font-family: var(--anton); font-size: 30px; line-height: 44px; color: #000; }

/* Article page */
.post-wrap { padding: 30px 20px 0; }
.post { margin-top: 50px; padding: 63px 100px 60px; border: 1px solid rgba(255, 240, 236, .75); background: #fff; }
.post-top { font-size: 14px; line-height: 21px; }
.post h1 { margin: 13px 0 34px; font-family: var(--forum); font-size: 40px; line-height: 56px; }
.post p { font-size: 18px; line-height: 27px; margin-bottom: 27px; }
.post figure { margin: 0 auto 27px; }
.post figure img { width: 100%; }
.post figcaption { padding-top: 6px; font-size: 14px; line-height: 27px; text-align: center; }
.related { margin-top: 60px; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; }
.related-head h2 { font-size: 18px; line-height: 27px; font-family: var(--avenir); font-weight: 300; }
.related-head a { font-size: 14px; }
.rel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.rel-card { display: block; border: 1px solid #ececec; }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rel-card h3 { padding: 22px 25px 28px; font-family: var(--forum); font-size: 18px; line-height: 24px; }
.rel-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ About */
.about { position: relative; padding: 136px 0 83px; }
.about h1 { text-align: center; font-family: var(--caslon); font-weight: 700; font-size: 40px; line-height: 56px; }
.about-text { width: 487px; margin: 61px 0 0 -4px; font-family: var(--caslon); font-size: 14.4px; line-height: 22.4px; letter-spacing: -0.1px; }
.about-text p + p { margin-top: 22.4px; }
.about-photo { position: absolute; left: 595px; top: 369px; width: 360px; }
.about-photo img { width: 360px; height: 363px; object-fit: cover; }
.about-photo figcaption { margin-top: 10px; text-align: right; padding-right: 5px; font-family: "Times New Roman", Times, serif; font-size: 16px; }

/* ------------------------------------------------------------ Contact */
.contact { padding-top: 120px; text-align: center; }
.contact h1 { font-family: var(--forum); font-size: 56px; line-height: 62px; }
.contact-email { margin-top: 32px; font-size: 20px; overflow-wrap: anywhere; }
.contact-email a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ Smaller screens */
@media (max-width: 1020px) {
  .acq { padding-left: 0; }
  .recommended { padding-left: 0; }
  .rec-cards { margin-left: 0; }
  .about-photo { position: static; margin: 48px 0 0 auto; }
  .about-text { margin-left: 0; width: auto; max-width: 560px; }
  .artist-body { padding-left: 60px; padding-right: 60px; }
  .works { gap: 48px; }
}

@media (max-width: 749px) {
  .site-header { height: auto; padding: 20px 20px 18px; align-items: center; }
  .logo { font-size: 24px; line-height: 34px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 20px 16px; background: #fff; border-bottom: 1px solid #ececee; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 18px; }

  .home-slides { padding-top: 24px; }
  .slideshow { aspect-ratio: 4 / 3; }
  .frame { height: auto; max-height: 100%; display: flex; align-items: center; }
  .slide a { display: flex; align-items: center; }
  .frame img { height: auto; max-height: 100%; width: 100%; max-width: 100%; object-fit: contain; }
  .count { right: 0; top: -26px; }
  .cap { opacity: 1; position: static; background: none; padding: 8px 0 0; display: none; }
  .rule { width: calc(100% - 40px); }
  .rule-1 { margin-top: 48px; }
  .acq { flex-direction: column; gap: 24px; padding-top: 48px; }
  .acq-img, .acq-img img { flex: none; width: 100%; height: auto; aspect-ratio: 395 / 391; }
  .acq-text { padding-top: 0; }
  .acq-text h2 { font-size: 40px; line-height: 46px; }
  .rule-2 { margin-top: 56px; }
  .recommended h2 { font-size: 38px; line-height: 46px; }
  .rec-cards { grid-template-columns: 1fr; margin-top: 28px; }
  .rec-card { min-height: 0; }

  .artists-head { padding: 48px 20px 0; }
  .artists-head h1 { font-size: 46px; line-height: 52px; }
  .quote { font-size: 17px; line-height: 25px; }
  .collage { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; padding: 40px 20px 20px; }
  .pair { gap: 20px; }
  .pair, .tile-yuchen, .tile-ziwen { grid-column: auto; grid-row: auto; }
  .tile-info { padding: 20px 24px; }
  .tile-name { padding-top: 6px; }

  .artist-hero { margin: 0 20px; aspect-ratio: 4 / 5; }
  .artist-hero h1 { left: 20px; bottom: 8%; font-size: 48px; line-height: 54px; }
  .artist-body { padding: 48px 20px 0; }
  .facts > div { width: 50%; }
  .works { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
  .pager { font-size: 17px; }

  .viewer { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .viewer-stage { padding: 64px 44px 16px; }
  .viewer-info { padding: 8px 24px 32px; max-height: 40vh; }
  .viewer .v-prev { left: 2px; }
  .viewer .v-next { right: 2px; }

  .blog, .post-wrap { padding: 20px 0 0; }
  .post-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .post-card h2 { font-size: 24px; }
  .stay { flex-direction: column; gap: 16px; padding: 40px 0 0; }
  .stay-text { width: auto; font-size: 36px; line-height: 48px; }
  .post { margin-top: 20px; padding: 28px 18px 20px; }
  .post h1 { font-size: 32px; line-height: 42px; margin-bottom: 24px; }
  .post p { font-size: 17px; line-height: 26px; }
  .rel-cards { grid-template-columns: 1fr; }

  .about { padding-top: 48px; }
  .about-text { margin-top: 32px; }
  .about-photo, .about-photo img { width: 100%; height: auto; }
  .contact { padding-top: 56px; }
  .contact h1 { font-size: 44px; }
  .foot-brand { padding-left: 0; }
  .copyright { margin-top: 32px; }
}
