@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Martian+Mono:wght@300;400&display=swap");

:root {
  --color-bg: #ffffff;
  --color-text-primary: #111111;
  --color-text-secondary: #6f6f6f;
  --color-border-tertiary: #e6e6e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: "Inter", "EB Garamond", serif;
  overflow-x: hidden;
}

.text-style {
  color: #464646;
  margin-top: 0.8rem;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* =========================
   LAYOUT
========================= */
.wrapper {
  margin: auto;
  display: flex;
  align-items: flex-start;
}

/* HEADER */

header {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 1.8rem;
  z-index: 20;
}
.logo {
  text-decoration: none;
  font-family: "Martian Mono", monospace;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.5;
  word-spacing: 2px;
}

nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

nav a,
a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.9;
  transition: 0.3s;
}

nav a:hover {
  color: var(--color-text-primary);
}
.mobile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.mobile_menu_btn {
  margin-left: auto;
}
.mobile_menu_btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

#menuClose {
  display: none;
}

#mobileMenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-top {
  margin-top: 1rem;
}

@media (max-width: 470px) {
  .hero-bg img {
    object-position: center center;
  }

  header {
    padding-top: 10px;
  }
}

/* =========================
   MAIN
========================= */

main {
  flex: 6;
  padding: 0 20px;
}
/* =========================
   ARTIST HERO
========================= */

.artist-hero {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.artist-text {
  flex: 1;
}

.artist-image {
  flex: 1;
}

.artist-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* CV */

.cv-wrap {
  padding: 2.5rem 0 4rem;
  line-height: 1.6;
}

.cv-name {
  font-size: 13px;
  font-family: "Martian Mono", monospace;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.cv-bio {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 2.5rem;
  /* width: 100%; */
}

.cv-divider {
  border: none;
  border-top: 0.5px solid var(--color-border-tertiary);
  margin: 0 0 2rem;
}

.cv-section-title {
  font-family: "Martian Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 16px;
}

.cv-entry .year {
  font-family: "Martian Mono", monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-secondary);
  padding-top: 2px;
  white-space: nowrap;
}

.cv-entry .detail em {
  font-style: italic;
}

.cv-entry .detail .venue {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.edu-entry {
  margin-bottom: 0.7rem;
  font-size: 16px;
}

.edu-entry .degree {
  font-weight: 400;
}

.edu-entry .school {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.subsection-label {
  font-size: 13px;
  font-style: italic;
  color: var(--color-text-secondary);
  margin: 1.2rem 0 0.6rem;
}
.gallery-section {
  margin-bottom: 80px;
}

/* عنوان هر بخش */
.gallery-title {
  font-family: "Martian Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  margin-left: 1rem;
}

/* خط زیر عنوان */
.gallery-divider {
  border: none;
  border-top: 1px solid var(--color-border-tertiary);
  width: 98%;
  margin-bottom: 30px;
}

/* grid خودش همون قبلی */
.exhibitions {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 80px;
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* لوگو */
.footer-logo {
  text-decoration: none;
  font-family: "Martian Mono", monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.65;
}

/* لینک‌ها */
.social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social a {
  text-decoration: none;
  font-family: "Inter", "EB Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: opacity 0.3s ease;
}

.social a:hover {
  opacity: 0.65;
}
.index-footer {
  margin-top: 25rem;
}
.site-footer.index-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
}

/* =========================
   MOBILE
========================= */

.cv-wrap-exhabition {
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

.exhibitions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.card img {
  width: 320px;
  height: 213px;
  object-fit: cover;
}
/* caption */
.caption {
  position: fixed;
  left: 40px;
  bottom: 30px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.85;
  z-index: 10;
}

.painting-gallery {
  width: 92%;
  margin: auto;
  margin-left: 20px;
}

.gallery-info {
  flex: 1;
}
.gallery-info-text {
  display: flex;

  gap: 20px;
}

.gallery-info h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.gallery-info p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.gallery-image {
  flex: 1;
}

.gallery-image img {
  width: 100%;
  display: block;
}
/* =========================
   GALLERY
========================= */

.exhibitions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .exhibitions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
}

/* =========================
   NEWS (SIMPLIFIED)
========================= */

.entry {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 2rem;
  padding: 55px 0;
  border-top: 0.5px solid #ddd;
}

.entry:last-child {
  border-bottom: 0.5px solid #ddd;
}
.news-body {
  color: #1a1a1a;
}
.news-wrap {
  margin: 0 auto;
}
.news-wrap {
  max-width: 1450px;
  margin: auto;
  padding: 80px 40px;
  font-family: Arial, sans-serif;
  color: #111;
}

.entry-body {
  max-width: 100%;
}
.entry-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.entry-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
}

.entry-texts {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4b4b4b;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.divider-top {
  border: none;

  margin-bottom: 2.5rem;
}

.entry-date {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #2e2d2d;
  line-height: 1.5;
  padding-top: 3px;
}

.entry-date .year {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.9;
  color: #2e2d2d;
}

.entry-tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #363636;
  margin-bottom: 0.4rem;
}

.entry-title {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
  color: #2e2e2e;
  padding: 10px 0;
}

.entry-title em {
  font-style: italic;
}

.entry-venue {
  font-size: 14px;
  color: #666;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.entry-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 0.65rem;
}

.entry-text:last-child {
  margin-bottom: 0;
}

.entry-link {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #363636;
  text-decoration: none;

  padding-bottom: 1px;
  display: inline-block;
  margin-top: 0.25rem;
}

.entry-link:hover {
  color: #1a1a1a;
  border-color: #888;
}

.entry-date span {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.entry-date small {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  display: block;
}

.entry-tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  display: block;
  margin-bottom: 12px;
}

.entry-body h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.venue {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.entry-body p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 780px;
  color: #222;
}

.entry-body a {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  text-decoration: none;
  color: #111;
  padding-bottom: 2px;
}

.text-only {
  grid-template-columns: 120px 1fr;
}

.wide {
  max-width: 900px;
}

.links-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2rem;
}

.read-more:hover,
.pdf-link:hover {
  opacity: 0.6;
  border-color: #111;
}
@media (max-width: 768px) {
  /* wrapper stacking */
  .wrapper {
    flex-direction: column;
    padding: 0 16px;
  }

  main {
    flex: unset;
    width: 100%;
  }

  header {
    width: 100%;
  }

  /* artist hero fix */
  .artist-hero {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }

  .artist-text,
  .artist-image {
    width: 100%;
    flex: none;
  }

  /* gallery */
  .card {
    width: 100%;
  }

  /* news */
  .entry {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* CV */
  .cv-entry {
    grid-template-columns: 1fr;
  }
  .page-title {
    margin: 0;
  }
}
.flex-column {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.m-top {
  margin-top: 2rem;
}
/* mobile */
@media (max-width: 768px) {
  .exhibitions {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  header {
    top: 10px;
    left: 20px;
    gap: 12px;
    z-index: 20;
  }

  .logo {
    font-size: 20px;
  }

  nav a {
    font-size: 11px;
  }

  .caption {
    left: 20px;
    bottom: 20px;
    font-size: 10px;
    max-width: 70%;
  }

  .social {
    right: 20px;
    bottom: 20px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .wrapper {
    flex-direction: column;
  }

  header {
    flex: unset;
    width: 100%;
    z-index: 20;
  }

  main {
    flex: unset;
    width: 100%;
  }
  /* ARTIST HERO */
  .artist-hero {
    /* gap: 30px; */
    flex-direction: row-reverse;
    gap: 30px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .entry-date {
    padding-top: 0;
    margin-bottom: 0.4rem;
  }
  .entry-date .year {
    display: inline;
    margin-left: 4px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .hero-bg img {
    object-position: center center;
  }
  .mobile_menu_btn {
    display: block;
  }

  #mobileMenu {
    display: none;
    gap: 8px;
    /* margin-top: 20px; */
  }

  #mobileMenu.active {
    display: flex;
  }
  header {
    padding-top: 10px;
  }
}
