:root {
  --page: #fff;
  --text: #111;
  --muted: #555;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  padding: 28px 34px 0;
}

.name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  letter-spacing: .02em;
}

nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

main { padding: 54px 34px 100px; }

.page-title {
  margin: 0 0 32px;
  font-size: 13px;
  font-weight: 400;
}

.thumb-index {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 160px;
}

.thumb-index a {
  display: block;
  line-height: 0;
}

.thumb-index img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94px;
  max-height: 94px;
}

.work {
  margin: 0 0 180px;
  scroll-margin-top: 28px;
}

.work-meta {
  margin-bottom: 18px;
  max-width: 720px;
}

.work-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.work-details {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.work-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, 100%);
  max-height: 86vh;
}

.back {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
}

@media (max-width: 700px) {
  .site-header {
    display: block;
    padding: 20px 18px 0;
  }
  nav { margin-top: 16px; gap: 14px; }
  main { padding: 42px 18px 70px; }
  .thumb-index { margin-bottom: 100px; gap: 12px; }
  .thumb-index img { max-width: 76px; max-height: 76px; }
  .work { margin-bottom: 120px; }
  .work-image { max-height: none; width: 100%; }
}

/* Text page */
.page-context {
  max-width: 650px;
  margin: -8px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.text-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 150px;
  font-size: 13px;
  letter-spacing: 0;
}

.text-index a:hover { text-decoration: underline; text-underline-offset: 3px; }

.text-piece {
  max-width: 650px;
  margin: 0 0 170px;
  scroll-margin-top: 28px;
}

.text-heading { margin-bottom: 28px; }

.text-heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.text-subtitle {
  margin: 2px 0 0;
  font-size: 14px;
}

.text-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.prose {
  font-size: 15px;
  line-height: 1.55;
}

.prose p { margin: 0 0 1.15em; }
.prose .intro-note { color: var(--muted); font-size: 13px; }
.prose .poem { line-height: 1.6; }

@media (max-width: 700px) {
  .text-index { margin-bottom: 100px; }
  .text-piece { margin-bottom: 120px; }
  .prose { font-size: 14px; }
}

/* About page */
.about-page {
  max-width: 650px;
}

.about-prose {
  margin-bottom: 90px;
}

.contact-block {
  font-size: 14px;
}

.contact-block p {
  margin: 0 0 6px;
}

.about-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}

.contact-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Exhibitions page */
.exhibition {
  max-width: 1180px;
}

.exhibition-heading {
  margin: 0 0 38px;
}

.exhibition-heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.exhibition-subtitle {
  margin: 2px 0 0;
  font-size: 14px;
}

.exhibition-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.exhibition-index {
  margin-bottom: 130px;
  max-width: 900px;
}

.exhibition-index img {
  max-width: 104px;
  max-height: 78px;
}

.exhibition-gallery {
  max-width: 1180px;
}

.exhibition-view {
  margin: 0 0 120px;
  scroll-margin-top: 28px;
}

.exhibition-view img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
}

.exhibition-back {
  margin-top: -70px;
}

@media (max-width: 700px) {
  .exhibition-index { margin-bottom: 90px; }
  .exhibition-index img { max-width: 82px; max-height: 66px; }
  .exhibition-view { margin-bottom: 80px; }
  .exhibition-view img { width: 100%; max-height: none; }
  .exhibition-back { margin-top: -40px; }
}


/* Tile archive */
.tile-header {
  align-items: flex-start;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tile-subnav {
  margin-top: 12px;
  gap: 14px;
  font-size: 11px;
}

.press-grid {
  columns: 280px;
  column-gap: 28px;
  max-width: 1320px;
}

.press-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 28px;
  line-height: 0;
}

.press-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .tile-header > nav[aria-label="Primary"] {
    margin-top: 18px;
  }

  .tile-subnav {
    margin-top: 10px;
  }

  .press-grid {
    columns: 1;
  }

  .press-item {
    margin-bottom: 22px;
  }
}


/* Tiles page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tiles-page {
  max-width: 1380px;
}



.archive-date {
  margin: 0 0 6px;
  color: #777;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
}

.tile-montage {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 54px;
}

.large-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 72px;
}

.large-tile-item,
.tile-item {
  line-height: 0;
}

.large-tile-item img,
.tile-item img {
  display: block;
  width: 100%;
  height: auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .large-tile-grid {
    gap: 16px;
    margin-bottom: 52px;
  }

  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .tile-montage {
    margin-bottom: 36px;
  }

  .large-tile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }

  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
