/*
 * The public website's own pieces.
 *
 * Loaded after styles.css, which is the donor site's stylesheet served as
 * this site's: the brand tokens, the type scale, buttons, fields, the
 * masthead, page sections, people cards, the timeline, the numbers and the
 * floor plan all come from there. This file adds only what the donor site
 * never needed — navigation for seven pages, events, the art, photographs —
 * and uses its tokens, never a colour of its own.
 */

/* ---- The announcement ribbon ------------------------------------------- */

.ribbon {
  background: var(--ink);
  color: var(--on-ink);
}

.ribbon .constrain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
}

.ribbon__kind {
  color: var(--on-ink-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.ribbon__title {
  font-weight: 600;
}

.ribbon a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--on-ink);
  font-weight: 600;
}

/* ---- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

/* The header sticks, so a jump link must land below it. */
[id] {
  scroll-margin-top: 96px;
}

.site-nav__support {
  min-height: 44px;
  margin-left: 8px;
  padding: 10px 18px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .site-header .constrain {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-toggle:hover,
  .nav-toggle[aria-expanded='true'] {
    background: var(--accent);
    color: var(--on-accent);
  }

  .nav-toggle__bars {
    display: grid;
    gap: 4px;
  }

  .nav-toggle__bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 12px;
    gap: 0;
  }

  .js .site-nav:not(.is-open) {
    display: none;
  }

  .site-nav__link {
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav__link[aria-current='page'] {
    border-bottom: 1px solid var(--line);
    box-shadow: inset 6px 0 0 var(--accent);
    padding-left: 16px;
  }

  .site-nav__support {
    margin: 12px 0 0;
  }
}

/* A phone: the mark, the name and the menu button share one line. */
@media (max-width: 440px) {
  .site-header .constrain {
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .site-header .brand {
    min-width: 0;
    flex: 1;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__word {
    font-size: 14px;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .js .nav-toggle {
    width: 48px;
    justify-content: center;
    padding: 0;
  }
}

/* ---- Home: the front door ----------------------------------------------- */

.front {
  background: var(--accent);
  color: var(--on-accent);
  border-bottom: 2px solid var(--line-strong);
}

.front__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 960px) {
  .front__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.front .t-eyebrow {
  color: var(--on-accent);
  margin-bottom: 12px;
}

.front__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--on-accent);
  overflow-wrap: anywhere;
}

.front__intro {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 27px;
  color: var(--on-accent);
}

.front__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.front .button--outline {
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.front .button--outline:hover {
  background: var(--on-accent);
  color: var(--accent);
}

/* A stack of photographs that fan out on hover. */
.front__photos {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}

.front__photo {
  position: absolute;
  margin: 0;
  border: 3px solid var(--on-accent);
  background: var(--surface-sunken);
  box-shadow: 8px 8px 0 var(--on-accent);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.front__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front__photo--main {
  inset: 6% 12% 12% 0;
  z-index: 2;
}

.front__photo--side {
  inset: 0 0 42% 58%;
  z-index: 1;
  transform: rotate(4deg);
}

.front__photo--low {
  inset: 58% 4% 0 46%;
  z-index: 3;
  transform: rotate(-3deg);
}

.front__photos:hover .front__photo--main {
  transform: translate(-10px, -6px) rotate(-1.5deg);
}

.front__photos:hover .front__photo--side {
  transform: translate(14px, -10px) rotate(7deg);
}

.front__photos:hover .front__photo--low {
  transform: translate(10px, 12px) rotate(-6deg);
}

.front__caption {
  position: absolute;
  left: 0;
  bottom: 2%;
  z-index: 4;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ---- Pillars: what MAX does -------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

a.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

a.pillar:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.pillar__number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  color: var(--highlight);
}

.pillar__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 24px;
  text-transform: uppercase;
}

.pillar__body {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 23px;
}

.pillar__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

a.pillar:hover .pillar__go span {
  transform: translateX(4px);
}

.pillar__go span {
  transition: transform 120ms ease;
}

/* ---- Section heads with a link on the right ----------------------------- */

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-bar .section-head {
  margin-bottom: 0;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.page-section--ink .more-link {
  color: var(--on-ink);
}

/* ---- Filter chips -------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.chip-button:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}

.chip-button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--on-ink);
}

.chip-button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.chip-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 11px;
}

.chip-button[aria-pressed='true'] .chip-button__count {
  background: var(--accent);
  color: var(--on-accent);
}

/* Category dots, shared with the about page's program calendar. */
.kind-dot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-sunken);
}

.kind-dot--exhibition { background: #d497a9; }
.kind-dot--class { background: #b3c6d4; }
.kind-dot--talk { background: #c6b7da; }
.kind-dot--community { background: #c1cba6; }
.kind-dot--fundraiser { background: #ffd500; }
.kind-dot--performance { background: #e0a970; }

/* ---- Events -------------------------------------------------------------- */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

@media (min-width: 860px) {
  .featured {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.featured:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.featured__art {
  position: relative;
  min-height: 240px;
  background: var(--accent);
}

.featured__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.featured__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.98;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.featured__when {
  font-weight: 600;
  font-size: 16px;
}

/* A date, as a block: the month over the day, the way a ticket prints it. */
.datebox {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 76px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  transition: background 120ms ease;
}

.datebox__month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.datebox__day {
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 32px;
}

.datebox__weekday {
  font-size: 11px;
  color: var(--ink-muted);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.event-card:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.event-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--line-strong);
  background: var(--surface-sunken);
}

.event-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  display: flex;
  flex: 1;
  gap: 14px;
  padding: 16px;
}

.event-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-card__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
}

.event-card__meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}

.event-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Art-less events get a poster of their own: the kind's colour and the date. */
.poster-fill {
  container-type: inline-size;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
}

.poster-fill::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 58%;
  aspect-ratio: 1;
  border: 14px solid var(--on-accent);
  border-radius: 50%;
  opacity: 0.14;
}

.poster-fill--exhibition { background: #d497a9; }
.poster-fill--class { background: #b3c6d4; }
.poster-fill--talk { background: #c6b7da; }
.poster-fill--community { background: #c1cba6; }
.poster-fill--performance { background: #e0a970; }

.poster-fill,
.poster-fill[class*='--'] {
  color: #17140f;
}

.poster-fill__word {
  position: relative;
  font-family: var(--display);
  font-weight: 900;
  /* Sized to the card, so the longest kind ("Performance") stays whole. */
  font-size: min(44px, 9cqw);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.poster-fill__sub {
  position: relative;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* The programme, month by month. */
.months {
  display: grid;
  gap: 36px;
}

.month__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--line-strong);
}

.month__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 28px;
  text-transform: uppercase;
}

.event-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 96px;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.event-row:hover {
  background: var(--surface);
}

.event-row:hover .datebox {
  background: var(--accent);
  color: var(--on-accent);
}

.event-row:hover .datebox__weekday {
  color: var(--on-accent);
}

.event-row:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: -3px;
}

.event-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-row__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 23px;
}

.event-row__thumb {
  flex: none;
  width: 120px;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line-strong);
  object-fit: cover;
}

@media (max-width: 620px) {
  .event-row__thumb {
    display: none;
  }
}

.event-row__chev {
  flex: none;
  color: var(--ink-faint);
  transition: transform 120ms ease;
}

.event-row:hover .event-row__chev {
  transform: translateX(4px);
  color: var(--ink);
}

.past {
  margin-top: 40px;
  border-top: 2px solid var(--line-strong);
}

.past summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-weight: 600;
  cursor: pointer;
}

.past summary:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.past .event-row {
  opacity: 0.8;
}

/* Every month: the programs that repeat. */
.regulars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.regular {
  padding: 18px;
  border: 2px solid rgba(247, 244, 236, 0.35);
  border-radius: 4px;
  transition: border-color 120ms ease;
}

.regular:hover {
  border-color: var(--on-ink-accent);
}

.regular__when {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--on-ink-accent);
}

.page-section--ink .regular .t-heading {
  margin-bottom: 6px;
}

/* ---- Announcements ----------------------------------------------------- */

.notices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 2px solid var(--line-strong);
  border-left-width: 8px;
  border-radius: 4px;
  background: var(--surface);
}

.notice--call {
  border-left-color: var(--highlight);
}

.notice--notice {
  border-left-color: var(--warning);
}

.notice--class {
  border-left-color: var(--success);
}

.notice--news {
  border-left-color: var(--accent);
}

.notice__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.notice__body {
  margin: 0;
  white-space: pre-line;
}

.notice__link {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---- Dialogs: one event, one artwork, one artist, one photo ------------- */

html.has-modal {
  overflow: hidden;
}

.modal {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.modal[open] {
  animation: modal-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.modal::backdrop {
  background: rgba(23, 20, 15, 0.72);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.modal__close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.modal__close:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .modal__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }
}

.modal__media {
  position: relative;
  min-height: 260px;
  background: var(--surface-sunken);
}

.modal__media > img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.modal__cover {
  margin: 0;
  border-bottom: 2px solid var(--line-strong);
  background: var(--ink);
}

.modal__cover img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
}

.modal__single .modal__text {
  max-width: 760px;
}

.modal__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.modal__text .t-title {
  margin: 0;
  padding-right: 40px;
}

.modal__facts {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
}

.fact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.fact dd {
  margin: 0;
}

.modal__body {
  white-space: pre-line;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.modal__section {
  padding: 24px 28px 28px;
  border-top: 2px solid var(--line-strong);
}

.modal__section .t-heading {
  margin-bottom: 14px;
}

.host {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.host:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--line-strong);
}

/* Images in a dialog step through. */
.slides {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.slides__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 240ms ease;
}

.slides__img.is-current {
  opacity: 1;
}

.slides__nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.round-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.round-button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.round-button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.slides__count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 600;
}

/* ---- The art ------------------------------------------------------------ */

.art-grid {
  columns: 4 240px;
  column-gap: 16px;
}

.art-card {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  break-inside: avoid;
  overflow: hidden;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.art-card:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

/* Artwork keeps its own proportions everywhere: the width and height
   attributes only reserve space, and height always follows the width. */
.art-card__img {
  width: 100%;
  height: auto;
  min-height: 140px;
  object-fit: contain;
  background: var(--surface-sunken);
  border-bottom: 2px solid var(--line-strong);
}

.art-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
}

.art-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
}

.art-card__by {
  font-size: 13px;
  color: var(--ink-muted);
}

.art-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.art-strip > * {
  scroll-snap-align: start;
  margin: 0;
}

/* In the strip every card is the same height, so a piece is shown whole
   inside it rather than cropped or stretched to fit. */
.art-strip .art-card__img {
  height: 300px;
  aspect-ratio: auto !important;
  object-fit: contain;
  padding: 10px;
}

.availability {
  align-self: flex-start;
}

.class-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* An artist's own work, inside their dialog. */
.mini-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.mini-work {
  padding: 0;
  border: 2px solid var(--line-strong);
  background: var(--surface-sunken);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  transition: transform 120ms ease;
}

.mini-work:hover {
  transform: scale(1.03);
}

.mini-work img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

/* ---- Photographs --------------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 120px;
  gap: 12px;
}

.photo {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  margin: 0;
  padding: 0;
  border: 2px solid var(--line-strong);
  background: var(--surface-sunken);
  overflow: hidden;
  cursor: zoom-in;
}

.photo--wide {
  grid-column: span 8;
  grid-row: span 3;
}

.photo--tall {
  grid-row: span 3;
}

@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
  }

  .photo,
  .photo--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .photo--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.photo:hover img {
  transform: scale(1.05);
}

.photo:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.photo__caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.photo:hover .photo__caption,
.photo:focus-visible .photo__caption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .photo__caption {
    opacity: 1;
    transform: none;
  }
}

.lightbox {
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-ink);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(13, 11, 10, 0.92);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: #f7f4ec;
}

.lightbox .round-button {
  flex: none;
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
}

/* ---- The building: a story beside a picture ------------------------------ */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .story--flip > :first-child {
    order: 2;
  }
}

.story__photo {
  margin: 0;
  border: 2px solid var(--line-strong);
  box-shadow: 10px 10px 0 var(--accent);
  background: var(--surface-sunken);
}

.story__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story__text {
  display: grid;
  gap: 14px;
}

.story__text .t-title {
  margin: 4px 0 0;
}

/* The plan on the building page: the donor site's plan and panel, laid out
   the same way, without the naming. */
.building-plan .plan__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .building-plan .plan__body {
    grid-template-columns: minmax(0, 1fr) var(--panel-width);
  }
}

.room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---- Steps -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
}

.step .t-heading {
  margin-bottom: 6px;
}

/* ---- Tiers (affiliate levels) ------------------------------------------- */

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.level {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.level:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.level--lead {
  background: var(--accent);
  color: var(--on-accent);
}

.level__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 24px;
  text-transform: uppercase;
}

.level__price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 30px;
}

.level__price small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
}

.level .checklist {
  margin-top: 4px;
}

.level--lead .checklist__item::before {
  background: var(--on-accent);
  color: var(--accent);
}

/* ---- Visit -------------------------------------------------------------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 860px) {
  .visit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.visit__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.visit__card .t-heading {
  margin-bottom: 2px;
}

.visit__card .button {
  align-self: flex-start;
  margin-top: auto;
}

.hours {
  white-space: pre-line;
  font-size: 15px;
  line-height: 25px;
}

.open-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.open-now::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.open-now.is-open {
  color: var(--success);
}

.open-now.is-closed {
  color: var(--ink-muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

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

/* ---- Questions ----------------------------------------------------------- */

.faq {
  max-width: 860px;
  border-top: 2px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 4px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  transition: transform 160ms ease, background 120ms ease;
}

.faq summary:hover::after {
  background: var(--accent);
  color: var(--on-accent);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.faq details > div {
  padding: 0 4px 20px;
  max-width: 72ch;
}

.faq details > div p + p {
  margin-top: 10px;
}

/* ---- Support MAX, on every page's foot ---------------------------------- */

.support-band {
  background: var(--accent);
  color: var(--on-accent);
  border-top: 2px solid var(--line-strong);
}

.support-band .t-title,
.support-band .t-body,
.support-band .t-eyebrow {
  color: var(--on-accent);
}

.support-band .next-path {
  border-color: var(--on-accent);
  color: var(--on-accent);
}

.support-band .next-path:hover {
  background: var(--on-accent);
  border-color: var(--on-accent);
  color: var(--accent);
}

.support-band .next-path:hover .t-eyebrow {
  color: var(--accent);
}

/* ---- Empty and loading states -------------------------------------------- */

.empty {
  padding: 28px;
  border: 2px dashed var(--line);
  border-radius: 4px;
  color: var(--ink-muted);
}

.empty .t-heading {
  color: var(--ink);
  margin-bottom: 6px;
}

.skeleton {
  min-height: 120px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-sunken), var(--surface), var(--surface-sunken));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Words edited in the portal are swapped in on load; lib.js lifts this. */
.copy-pending [data-edit],
.copy-pending [data-copy],
.copy-pending img[data-image] {
  visibility: hidden;
}

/* Sections rise into place as they are reached. The class goes on only when
   script runs, and a timer shows everything regardless. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.site-footer__portal {
  margin-top: 16px !important;
}

.site-footer .socials {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .front__photo,
  .modal[open],
  .skeleton,
  .photo img {
    animation: none;
    transition: none;
  }
}

/* ---- The page, arranged in the portal (site_layouts, blocks.js) --------- */

/* A section or piece taken off the page in the website editor. The editor
   itself shows these faded, so they can be put back. */
html:not(.is-editing) [data-removed] {
  display: none !important;
}

/* A block's piece of text with nothing in it yet. */
html:not(.is-editing) [data-field][data-empty] {
  display: none;
}

.block-body p {
  margin: 0;
}

.block-body p + p {
  margin-top: 14px;
}

.block-photo {
  margin: 0;
}

.block-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  background: var(--surface-sunken);
}

.block-photo--standard img {
  aspect-ratio: 4 / 3;
}

.block-photo--square img {
  aspect-ratio: 1;
}

.block-photo--tall img {
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
}

.block-photo figcaption,
.block-video figcaption {
  margin-top: 10px;
}

.block-gallery .photo {
  cursor: default;
}

.block-gallery .photo img {
  display: block;
}

.block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pull-quote {
  max-width: 860px;
  margin: 0;
  padding-left: 24px;
  border-left: 8px solid var(--accent);
}

.pull-quote__words {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.pull-quote__by {
  margin: 0;
}

.block-video {
  margin: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line-strong);
  background: var(--ink);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame--empty {
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
}

.block--divider,
.block--space {
  padding: 0;
}

.block-rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--line-strong);
}

.block-space {
  height: 32px;
}

.block-space--medium {
  height: 64px;
}

.block-space--large {
  height: 120px;
}

/* The website editor's Form block (blocks.js, migration 0090). */
.site-form { max-width: 820px; }
.site-form .engage-consents { display: grid; gap: 8px; margin: 16px 0 4px; }
.site-form .engage-consent { display: flex; gap: 10px; align-items: flex-start; }
.site-form .engage-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--highlight, #e0157a); flex: none; }
.site-form__done { max-width: 820px; padding: 24px 0; }

/* The "what are you interested in" tick list on /partners: a plain grid of
   the site's own .agree rows, two columns once there is room. */
.partner-wants {
  border: 0;
  margin: 0;
  padding: 0;
}

.partner-wants legend {
  margin-bottom: 10px;
}

.partner-wants__grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .partner-wants__grid {
    grid-template-columns: 1fr 1fr;
  }
}
