
:root {
  --paper: #f3eee5;
  --ink: #191817;
  --muted: #77716a;
  --line: #d5cec4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .58;
}


/* ==================================================
   GLOBAL LAYOUT
================================================== */

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}


/* ==================================================
   SIDEBAR
================================================== */

aside {
  padding: 53px 30px 30px 52px;

  display: flex;
  flex-direction: column;

  position: sticky;
  top: 0;

  height: 100vh;
}

.brand {
  font-size: 25px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.brand small {
  display: block;

  margin-top: 9px;

  font: 9px Arial, sans-serif;
  letter-spacing: .32em;
}


/* ==================================================
   NAVIGATION
================================================== */

.nav {
  margin-top: 105px;

  display: flex;
  flex-direction: column;
  gap: 22px;

  font: 12px Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav a.active {
  font-weight: 700;
}


/* Paintings expanded section */

.paintings-menu {
  display: flex;
  flex-direction: column;
}

.paintings-menu-title {
  font-weight: 700;
  cursor: default;
}

.paintings-menu-sub {
  margin-top: 14px;
  margin-left: 3px;

  padding-left: 13px;

  border-left: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  gap: 8px;

  font: 9px Arial, sans-serif;
  letter-spacing: .13em;
  line-height: 1.25;
}

.paintings-menu-current {
  color: var(--ink);
  cursor: default;
}

.paintings-menu-sub a {
  color: var(--muted);
}

.paintings-menu-sub a:hover {
  color: var(--ink);
  opacity: 1;
}


/* ==================================================
   SIDEBAR BOTTOM
================================================== */

.foot {
  margin-top: auto;

  color: var(--muted);

  font: 9px Arial, sans-serif;
  letter-spacing: .14em;
}

.lang-switch {
  margin-top: 20px;

  display: flex;
  align-items: center;
  gap: 12px;

  font: 11px Arial, sans-serif;
  letter-spacing: .12em;
}

.lang-switch button {
  padding: 4px 0;

  border: 0;
  background: none;

  color: var(--muted);

  cursor: pointer;

  font: inherit;
  letter-spacing: inherit;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;

  border-bottom: 1px solid var(--ink);
}

.lang-switch span {
  color: var(--line);
}


/* ==================================================
   MAIN CONTENT
================================================== */

main {
  min-width: 0;

  padding:
    72px
    clamp(28px, 6vw, 110px)
    65px
    3vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 24px;

  color: var(--muted);

  font: 10px Arial, sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 30px;

  font-size: clamp(38px, 4.5vw, 78px);
  font-weight: 400;

  letter-spacing: -.035em;
  line-height: 1.04;
}

p {
  max-width: 550px;

  margin: 0 0 20px;

  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.65;
}

.subtle {
  color: var(--muted);

  font: 12px/1.8 Arial, sans-serif;
  letter-spacing: .02em;
}

.rule {
  height: 1px;

  margin: 36px 0;

  background: var(--line);
}


/* ==================================================
   GENERIC ARTWORK
   Shared by all artwork collections
================================================== */

.figure {
  margin: 0;
  min-width: 0;
}

.image-slot {
  width: 100%;

  display: block;

  overflow: hidden;

  background: transparent;
  border: 0;
}

.image-slot::before {
  content: none;
}

.image-slot img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
}

/* Universal artwork captions */

figcaption {
  margin-top: 14px;

  color: var(--muted);
  text-align: center;

  font: 11px Arial, sans-serif;
  letter-spacing: .08em;
}

figcaption .artwork-title {
  display: block;

  margin-bottom: 7px;

  color: var(--ink);

  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
}

figcaption .artwork-detail {
  display: block;

  margin-top: 4px;

  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
}


/* ==================================================
   HOME PAGE
================================================== */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: clamp(18px, 3vw, 48px);

  align-items: start;

  margin-top: 48px;
}

.home-grid .image-slot {
  aspect-ratio: 1 / 1;
}

.home-grid .image-slot img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* ==================================================
   SCULPTURES / GENERIC COLLECTION
   Used by sculptures.html
================================================== */

.collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 48px;

  margin-top: 35px;

  width: 100%;
  max-width: 1050px;
}

.collection .image-slot {
  width: 100%;
  height: 400px;
}

.collection .image-slot img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* ==================================================
   PAINTINGS PAGE
   Independent grid — does NOT use .collection
================================================== */

.paintings-page {
  width: 100%;
  max-width: none;

  justify-content: flex-start;
}

.gallery-contact {
  margin: -12px 0 42px;

  max-width: none;

  color: var(--muted);

  font: 12px/1.7 Arial, sans-serif;
  letter-spacing: .015em;
}

.gallery-contact a {
  color: var(--ink);

  border-bottom: 1px solid rgba(25, 24, 23, .30);
}

.gallery-contact a:hover {
  opacity: 1;
  border-bottom-color: var(--ink);
}

.paintings-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  column-gap: 24px;
  row-gap: 34px;

  align-items: start;
}

.paintings-grid img {
  display: block;

  width: 100%;
  min-width: 0;
  height: auto;

  aspect-ratio: 1 / 1;

  object-fit: contain;

  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
}


/* ==================================================
   ABOUT / SHARED
================================================== */

.section-intro {
  max-width: 600px;
}

.about-links {
  display: flex;
  gap: 28px;
  align-items: center;

  margin-top: 38px;
}

.social {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  font: 12px Arial, sans-serif;
  letter-spacing: .08em;
}

.social svg {
  width: 19px;
  height: 19px;
}

.mini-note {
  margin-top: 25px;

  color: var(--muted);

  font: 11px Arial, sans-serif;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 760px) {

  .layout {
    display: block;
  }

  aside {
    height: auto;
    position: static;

    padding: 26px 24px 10px;
  }

  .brand {
    font-size: 22px;
  }

  .nav {
    margin-top: 35px;
    gap: 18px;
  }

  .paintings-menu-sub {
    margin-top: 11px;
    margin-left: 2px;

    padding-left: 12px;

    gap: 7px;
  }

  .foot {
    margin-top: 22px;
  }

  .lang-switch {
    margin-top: 16px;
  }

  main {
    padding: 55px 24px 65px;

    justify-content: flex-start;
  }

  h1 {
    font-size: 44px;
  }

  .home-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  /* Sculptures */

  .collection {
    grid-template-columns: 1fr;

    gap: 36px;

    max-width: none;
  }

  .collection .image-slot {
    height: 380px;
  }

  /* Paintings */

  .gallery-contact {
    margin-top: -12px;
    margin-bottom: 30px;
  }

  .paintings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 14px;
    row-gap: 24px;
  }

}


/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 420px) {

  aside {
    padding-left: 20px;
    padding-right: 20px;
  }

  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .paintings-grid {
    column-gap: 10px;
    row-gap: 20px;
  }

}
