@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Newsreader', serif;
  background: #fff;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

body.interior header {
  height: calc(52px + 2rem);
  background: linear-gradient(to bottom, #fff 0%, #fff 52px, rgba(255, 255, 255, 0) 100%);
}

body.interior nav {
  height: 52px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 52px;
}

.site-title {
  font-size: 1rem;
}

nav ul {
  list-style: none;
  display: contents;
}

nav ul a {
  text-decoration: none;
  font-size: 1rem;
  color: #111;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

nav ul a:hover,
nav ul a.active {
  color: #111;
}

/* ── Slideshow ── */
/* ── Slideshow ── */
.viewer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 52px);
  margin-top: 52px;
  padding: 2rem;
  padding-top: 1rem;
  box-sizing: border-box;
}

#viewer {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

#viewer-img {
  -webkit-user-drag: none;
}

/* painting size classes — set via -s / -m / -l / -xl suffix in filename */
#viewer.size-xl #viewer-img { max-height: 100%; }
#viewer.size-l #viewer-img  { max-height: 80%; }
#viewer.size-m #viewer-img  { max-height: 62%; }
#viewer.size-s #viewer-img  { max-height: 45%; }

#viewer-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
}

#viewer-img.loaded {
  opacity: 1;
}

#caption {
  flex: 0 0 auto;
  margin-top: 1.8rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #111;
  width: 100%;
  text-align: left;
  align-self: flex-start;
}

/* ── Interior pages ── */
.page-content {
  max-width: 560px;
  margin: 5rem 0 4rem;
  padding: 0 2rem;
  line-height: 1.75;
  font-size: 1rem;
}

.page-content h1 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: #333;
}

/* ── About page ── */
.about-columns {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-block {
  margin-bottom: 2rem;
}

.about-block h2 {
  font-size: 1rem;
  font-weight: normal;
  color: #111;
  margin-bottom: 0.6rem;
}

.about-block ul {
  list-style: none;
}

.about-block li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  margin-bottom: 0.4rem;
}

.year {
  color: #111;
}

.note {
  grid-column: 2;
  margin-top: 0.4rem;
  color: #111;
}


/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

.page-content a {
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}

.page-content a:hover {
  border-color: #111;
}

@media (max-width: 600px) {
  nav {
    padding: 0 1rem;
    gap: 1.2rem;
  }

  .viewer-wrap {
    padding: 1rem;
  }

  .page-content {
    padding: 0 1rem;
  }

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