@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Libre+Caslon+Display&display=swap');

:root {
  --paper: #f7f4ee;
  --ink: #24231f;
  --muted: #747168;
  --line: #d9d4ca;
  --panel: #ebe5da;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header, main, .site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.site-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .9rem;
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 2rem;
  justify-self: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav a { padding-block: 8px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--ink); }
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font: inherit;
  justify-self: end;
}

.hero {
  display: grid;
  grid-template-columns: .78fr 1.35fr;
  min-height: 430px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem 3.25rem 2.75rem 0;
}
h1, h2, h3 { font-weight: 400; margin-top: 0; }
h1, h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  line-height: 1.08;
}
h1 { font-size: clamp(2.35rem, 4vw, 4.3rem); letter-spacing: -.035em; margin-bottom: 2rem; }
h2 { font-size: clamp(1.9rem, 3vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: 1rem; margin: .9rem 0 .15rem; }
p { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.intro, .lead { font-size: .98rem; max-width: 44rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  margin-top: 1.6rem;
  padding-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  border-bottom: 1px solid var(--ink);
}
.placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(0,0,0,.05)),
    repeating-linear-gradient(45deg, #ddd4c5 0 14px, #e8e1d6 14px 28px);
  color: rgba(36,35,31,.62);
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
}
.placeholder span {
  padding: .55rem .8rem;
  background: rgba(247,244,238,.8);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
}
.hero-art { min-height: 430px; }
.section { padding-block: 3.75rem; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.75rem; }
.section-heading h2 { margin-bottom: 0; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: start; }
.work-card { display: block; }
.work-card p { margin: 0; font-size: .82rem; }
.work-card:hover .placeholder { filter: contrast(1.03); }
.portrait { aspect-ratio: 4 / 3; margin-top: 0; }
.landscape { aspect-ratio: 4 / 3; margin-top: 0; }
.square { aspect-ratio: 4 / 3; margin-top: 0; }
.about-preview { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6vw; align-items: center; }
.studio-photo { aspect-ratio: 4/5; }
.about-copy { max-width: 610px; }
.announcement { max-width: 900px; margin-left: 0; }
.site-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: center;
  font-size: .85rem;
}
.site-footer p { margin: .25rem 0; }
.footer-links { display: flex; gap: 1.2rem; }

.page { padding-block: 4.5rem 6rem; }
.page-header { max-width: 850px; margin-bottom: 3.5rem; }
.page-header p:last-child { font-size: 1.08rem; }
.works-page { grid-template-columns: repeat(3, 1fr); }
.split-page { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.tall { min-height: 560px; }
.timeline article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.timeline h2 { font-family: "DM Sans", Arial, sans-serif; font-size: 1.4rem; margin-bottom: .25rem; }
.timeline p { margin: 0; }
.contact-layout { align-items: stretch; }
.artwork-detail { display: grid; grid-template-columns: 1.55fr .7fr; gap: 7vw; align-items: start; }
.artwork-main { min-height: 620px; }
.artwork-info { position: sticky; top: 2rem; }
.artwork-info h1 { font-size: clamp(3rem, 5vw, 5rem); }
dl { margin: 2rem 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 110px 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; }

@media (max-width: 900px) {
  .site-header, main, .site-footer { width: min(calc(100% - 30px), var(--max)); }
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
  }
  .menu-toggle { display: block; }
  .header-socials {
    justify-self: end;
    gap: .75rem;
  }
  .nav {
    display: none;
    position: absolute;
    left: 15px; right: 15px; top: 76px;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem;
    border: 1px solid var(--line);
    z-index: 10;
  }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem 0; }
  .hero-art { min-height: 460px; }
  .works-grid, .works-page { grid-template-columns: repeat(2, 1fr); }
  .about-preview, .split-page, .artwork-detail { grid-template-columns: 1fr; }
  .artwork-info { position: static; }
  .artwork-main, .tall { min-height: 520px; }
  .site-footer { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 3rem; }
}
@media (max-width: 560px) {
  .works-grid, .works-page { grid-template-columns: 1fr; }
  .landscape, .square { aspect-ratio: 4 / 3; margin-top: 0; }
  .section { padding-block: 3.75rem; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 1rem; }
  .hero-art { min-height: 360px; }
  h1 { font-size: 3.3rem; }
}

/* Compact refinement */
.hero-copy .eyebrow { margin-bottom: .9rem; }
.hero-copy h1 { margin-bottom: 1.35rem; }
.hero-copy .text-link { margin-top: 1.1rem; }
.work-card h3 { margin-top: .7rem; }
.work-card p { font-size: .76rem; }
.section-heading .eyebrow { margin-bottom: .75rem; }

/* Further compact homepage refinement */
.hero-copy .eyebrow { margin-bottom: .65rem; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .intro { margin-block: 0; }
.hero-copy .text-link { margin-top: .9rem; }
.section-heading h2 { line-height: 1; }


.header-socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-socials a {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-socials a:hover {
  opacity: .6;
}

@media (max-width: 520px) {
  .header-socials { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
}

/* Uniform artwork thumbnails */
.work-thumb {
  aspect-ratio: 4 / 3;
  margin-top: 0;
  width: 100%;
}

/* When real artwork images are added, this keeps every thumbnail uniform
   while showing a cropped portion of the full work. */
.work-thumb img,
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Structured portfolio */
.collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: -1rem 0 4rem;
}
.filter-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: .55rem .9rem;
  font: inherit;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter-button:hover,
.filter-button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.year-group {
  padding: 0 0 5rem;
}
.year-heading {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-bottom: 2rem;
}
.year-heading h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  margin: 0;
}
.collection-label {
  color: var(--ink) !important;
  font-size: .7rem !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem !important;
}
.portfolio-item[hidden],
.year-group[hidden] {
  display: none;
}
.artwork-gallery {
  display: grid;
  gap: 1.25rem;
}
.artwork-detail-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.artwork-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding-top: 1.5rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.artwork-pagination a:nth-child(2) {
  text-align: center;
}
.artwork-pagination a:last-child {
  text-align: right;
}
@media (max-width: 700px) {
  .artwork-pagination {
    grid-template-columns: 1fr;
  }
  .artwork-pagination a,
  .artwork-pagination a:nth-child(2),
  .artwork-pagination a:last-child {
    text-align: left;
  }
}
