* {
  box-sizing: border-box;
}

:root {
  --paper: #f5f2ec;
  --ink: #1f1f1f;
  --muted: #706b62;
  --stone: #c7c4bd;
  --soft: #ebe6dc;
  --white: #fffaf4;
  --charcoal: #24262c;
  --line: rgba(31, 31, 31, 0.14);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}

img {
  max-width: 100%;
}

/* Homepage banner */
.hero {
  height: 64vh;
  min-height: 470px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), url("images/main-artwork.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.navbar,
.page-navbar {
  width: 100%;
  padding: 28px 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.page-navbar {
  background: rgba(35, 35, 35, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.navbar a,
.page-navbar a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  position: relative;
}

.navbar a::after,
.page-navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.page-navbar a:hover::after {
  width: 100%;
}

.logo,
.page-navbar .logo {
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.welcome-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 105px 25px 160px;
  text-align: center;
}

.welcome-section h1,
.portfolio-page h1,
.exhibitions-page h1,
.contact-page h1,
.single-exhibition h1 {
  font-size: clamp(30px, 4vw, 50px);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: normal;
  line-height: 1.08;
  margin-bottom: 12px;
}

.welcome-section h2 {
  font-size: 18px;
  font-style: italic;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 34px;
  color: var(--muted);
}

.welcome-section p,
.page-intro,
.contact-page p {
  font-size: 17px;
  line-height: 1.95;
  font-style: italic;
}

/* About page */
.about-page {
  background: var(--paper);
  padding-bottom: 90px;
}

.about-banner {
  max-width: 1120px;
  margin: 55px auto 70px;
  padding: 0 30px;
}

.about-banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  box-shadow: 0 28px 60px rgba(0,0,0,0.12);
}

.about-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 78px;
  align-items: center;
}

.about-text h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 20px;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 370px;
  height: auto;
  display: inline-block;
}

.about-button,
.contact-form button {
  display: inline-block;
  margin-top: 25px;
  padding: 13px 28px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
  font-size: 13px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.8px;
}

.about-button:hover,
.contact-form button:hover {
  background: #111;
}

/* Portfolio and exhibitions overview pages */
.portfolio-page,
.exhibitions-page,
.contact-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 36px;
  text-align: center;
}

.page-intro {
  max-width: 800px;
  margin: 0 auto 70px;
  color: var(--muted);
}

.portfolio-grid,
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: stretch;
}

.portfolio-card,
.exhibition-card {
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
}

.portfolio-card:hover,
.exhibition-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.14);
}

.portfolio-card img,
.exhibition-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.5s ease;
}

.portfolio-card:hover img,
.exhibition-card:hover img {
  transform: scale(1.035);
}

.portfolio-card h2,
.exhibition-card h2 {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: normal;
  line-height: 1.18;
  margin: 28px 28px 10px;
}

.portfolio-card p,
.exhibition-card p {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.85;
  margin: 0 28px 34px;
  color: var(--muted);
}

/* Individual series pages */
.series-page,
.single-exhibition {
  max-width: 1480px;
  margin: 0 auto;
  padding: 95px 38px 110px;
}

.series-intro {
  max-width: 1180px;
  margin: 0 auto 85px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.series-intro h1 {
  font-size: clamp(38px, 5vw, 72px);
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-weight: normal;
  line-height: 0.98;
  margin: 0;
}

.series-intro p {
  font-size: 18px;
  line-height: 2;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}

/* Editorial masonry-style artwork layout */
.artwork-grid {
  column-count: 2;
  column-gap: 46px;
}

.artwork-card {
  margin: 0 0 52px;
  background: transparent;
  text-align: left;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.artwork-card img {
  width: 100%;
  height: auto;
  min-height: 520px;
  max-height: 760px;
  object-fit: cover;
  display: block;
  background: var(--soft);
  box-shadow: 0 22px 52px rgba(0,0,0,0.11);
}

.artwork-card:nth-child(2n) img {
  min-height: 620px;
}

.artwork-card:nth-child(3n) img {
  min-height: 470px;
}

.artwork-card:nth-child(5n) img {
  min-height: 700px;
}

.artwork-card figcaption {
  padding: 22px 6px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.artwork-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: normal;
  line-height: 1.15;
}

.artwork-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  font-style: italic;
  color: var(--muted);
}

/* Exhibition gallery */
.single-exhibition {
  text-align: center;
}

.single-exhibition .location {
  font-style: italic;
  margin-bottom: 55px;
  color: var(--muted);
}

.exhibition-gallery {
  column-count: 3;
  column-gap: 26px;
  text-align: left;
}

.exhibition-gallery img {
  width: 100%;
  height: auto;
  display: inline-block;
  margin: 0 0 26px;
  break-inside: avoid;
  box-shadow: 0 18px 42px rgba(0,0,0,0.10);
}

.back-link {
  display: table;
  margin: 60px auto 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  font-style: italic;
}

/* Contact */
.contact-page {
  max-width: 820px;
}

.contact-form {
  margin: 50px auto 0;
  text-align: left;
  background: var(--white);
  padding: 44px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0,0,0,0.08);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid #c7c4bd;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

footer {
  padding: 34px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .portfolio-grid,
  .exhibition-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card img,
  .exhibition-card img {
    height: 480px;
  }

  .series-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .artwork-grid {
    column-count: 1;
  }

  .exhibition-gallery {
    column-count: 2;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 45vh;
    min-height: 320px;
  }

  .navbar,
  .page-navbar {
    padding: 20px;
    flex-direction: column;
    gap: 13px;
    font-size: 11px;
  }

  .left-menu,
  .right-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .navbar a,
  .page-navbar a {
    margin: 0;
  }

  .welcome-section {
    padding: 65px 25px 105px;
  }

  .portfolio-page,
  .exhibitions-page,
  .contact-page,
  .series-page,
  .single-exhibition {
    padding: 65px 22px 85px;
  }

  .about-banner {
    margin: 30px auto 40px;
    padding: 0 20px;
  }

  .about-banner img {
    height: 280px;
  }

  .about-content {
    gap: 35px;
    padding: 0 25px;
  }

  .about-image {
    order: -1;
  }

  .portfolio-card img,
  .exhibition-card img {
    height: auto;
  }

  .artwork-card img {
    min-height: 0;
    max-height: none;
  }

  .exhibition-gallery {
    column-count: 1;
  }

  .contact-form {
    padding: 26px;
  }
}
