:root {
  --paper: #fbfbfa;
  --ink: #101010;
  --muted: #585858;
  --soft: #ece9e3;
  --mint: #f0ede7;
  --mint-deep: #d9e7d3;
  --line: #cfcfca;
  --white: #ffffff;
  --accent: #bd2d18;
  --blue: #1647c8;
  --max: 1540px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-top,
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  padding-right: clamp(18px, 3vw, 42px);
  padding-left: clamp(18px, 3vw, 42px);
}

.header-top {
  min-height: 88px;
}

.main-nav {
  min-height: 72px;
  border-top: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  width: min(35vw, 380px);
  min-width: 220px;
}

.wordmark img {
  display: block;
  width: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink);
  font-size: 14px;
}

.header-meta span,
.utility-bar span {
  display: block;
}

.opening-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.utility-bar {
  display: none;
}

.nav-links,
.nav-tools,
.social-links,
.lang-switch,
.action-row,
.section-tabs,
.card-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: clamp(18px, 2.8vw, 42px);
}

.nav-links a {
  position: relative;
  font-size: 15px;
  text-transform: none;
}

.nav-links a::after,
.section-tabs a::after,
.side-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.72);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover::after,
.section-tabs a:hover::after,
.section-tabs a.active::after,
.side-nav a:hover::after,
.side-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-tools {
  gap: 18px;
}

.social-links {
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--ink);
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.social-icon:hover,
.xhs-link:hover {
  color: var(--accent);
}

.lang-switch {
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang-switch button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.display-title,
h1,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.home-whats-on h2,
.shop-heading,
.about-title {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100vh - 161px);
  border-bottom: 1px solid var(--line);
}

.home-hero .hero-media {
  min-height: 560px;
  border: 0;
  background: var(--soft);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  padding: clamp(34px, 6vw, 92px);
  text-align: center;
}

.hero-copy {
  width: min(100%, 660px);
}

.kicker,
.date-line,
.label,
.programme-type,
.program-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  margin: 14px 0 12px;
  font-size: clamp(42px, 4.8vw, 82px);
  line-height: 1.02;
}

.hero-date {
  margin-bottom: 22px;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 520px;
  margin: 0 auto 36px;
  color: #252525;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.62;
}

.action-row,
.card-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.text-link,
.mail-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0 22px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}

.button.primary,
.button:hover,
.text-link:hover,
.mail-form button {
  background: var(--ink);
  color: var(--white);
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.media-slot,
.image-slot,
.visual-card-media,
.work-image {
  position: relative;
  display: flex;
  min-height: 220px;
  overflow: hidden;
  background: var(--soft);
}

.image-slot img,
.visual-card-media img,
.media-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-contain img,
.work-image img {
  object-fit: contain;
}

.home-whats-on,
.home-section,
.section,
.page-main,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: clamp(18px, 3vw, 42px);
  padding-left: clamp(18px, 3vw, 42px);
}

.home-section,
.section {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.home-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  border-bottom: 1px solid var(--line);
}

.home-whats-on {
  background: var(--paper);
}

.home-about {
  width: 100%;
  max-width: none;
  background: var(--mint);
  padding-right: max(clamp(18px, 3vw, 42px), calc((100vw - var(--max)) / 2 + clamp(18px, 3vw, 42px)));
  padding-left: max(clamp(18px, 3vw, 42px), calc((100vw - var(--max)) / 2 + clamp(18px, 3vw, 42px)));
}

.home-section-rail {
  position: sticky;
  top: 178px;
  align-self: start;
}

.home-section-rail h2,
.page-side-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.home-about .home-section-rail h2,
.page-side-title {
  text-transform: none;
}

.home-about-copy {
  max-width: 980px;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.78;
}

.home-about-copy .quote {
  max-width: 860px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.28;
}

.section-tabs {
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.section-tabs a {
  position: relative;
  font-size: 14px;
}

.section-tabs span {
  color: var(--muted);
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px);
}

.programme-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.programme-card .visual-card-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 0;
}

.programme-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.programme-card p {
  margin-bottom: 0;
}

.programme-card .description {
  max-width: 620px;
  color: #222;
  font-size: 14px;
  line-height: 1.72;
}

.admission {
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 68px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1;
}

.split-section,
.page-section {
  border-top: 1px solid var(--line);
}

.shop-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.shop-preview .section-heading {
  display: block;
  margin-bottom: 0;
}

.artist-grid,
.visual-card-grid,
.shop-artist-grid,
.work-grid,
.visit-grid,
.ticket-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
}

.artist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artist-directory,
.shop-artist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visual-card,
.shop-artist-card,
.work-card {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.visual-card-media {
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin-bottom: 18px;
}

.visual-card-media.square,
.shop-artist-card .visual-card-media {
  aspect-ratio: 1 / 1;
}

.visual-card-media span {
  color: rgba(16, 16, 16, 0.38);
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card h2,
.shop-artist-card h2 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1;
}

.visual-card p:not(.kicker),
.shop-artist-card p:not(.kicker),
.work-card p {
  margin: 0;
  color: var(--muted);
}

.is-empty,
.visual-card.is-empty h2 {
  color: var(--muted);
}

.shop-artist-meta {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.shop-artist-avatar {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.shop-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-artist-card .button {
  width: 100%;
  margin-top: 14px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: end;
  padding-top: clamp(46px, 6vw, 96px);
  padding-bottom: clamp(42px, 6vw, 86px);
}

.page-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1;
}

.detail-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1;
}

.compact-page-hero h1 {
  font-size: clamp(36px, 3.8vw, 56px);
}

.page-lede {
  max-width: 760px;
  margin: 0;
  color: #262626;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.68;
}

.page-section {
  padding-top: clamp(36px, 5vw, 78px);
  padding-bottom: clamp(44px, 6vw, 96px);
}

.whats-on-layout,
.about-layout,
.visit-layout,
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-nav a {
  position: relative;
  width: fit-content;
  font-size: 15px;
}

.programme-section + .programme-section {
  margin-top: clamp(52px, 7vw, 110px);
}

.programme-section h2,
.about-content h2,
.visit-content h2,
.ticket-content h2 {
  margin: 0 0 26px;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.12;
}

.about-cover,
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  border-bottom: 1px solid var(--line);
}

.about-cover .media-slot,
.shop-hero .media-slot {
  height: clamp(420px, 46vw, 620px);
  min-height: 420px;
}

.about-cover-copy,
.shop-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--soft);
  padding: clamp(30px, 5vw, 78px);
  text-align: center;
}

.about-title,
.shop-heading {
  margin: 0 0 22px;
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.about-content {
  display: grid;
  gap: 38px;
}

.about-content p,
.visit-content p,
.ticket-content p {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.78;
}

.info-list,
.ticket-grid,
.visit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.visit-grid > div,
.ticket-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.info-card p,
.ticket-card p,
.visit-grid p {
  margin: 8px 0 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-top: clamp(42px, 6vw, 92px);
  padding-bottom: clamp(36px, 6vw, 78px);
}

.detail-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.poster-detail {
  aspect-ratio: 4 / 5;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(24px, 4vw, 42px);
}

.detail-meta div,
.info-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-meta p,
.info-card p {
  margin: 6px 0 0;
  color: #252525;
}

.text-columns {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
}

.text-columns h2,
.works-section h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1;
}

.text-columns p {
  margin-bottom: 18px;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.68;
}

.text-columns .action-row,
.visit-content .action-row {
  justify-content: flex-start;
  margin-top: 22px;
}

.external-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}

.work-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.work-image img {
  width: 100%;
  height: 100%;
  padding: 14px;
  background: var(--white);
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.05;
}

.program-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 76px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.program-list > * {
  display: block;
  min-height: 210px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.program-list h3 {
  margin: 50px 0 22px;
  font-size: clamp(24px, 2.5vw, 42px);
  line-height: 1;
}

.mail-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.mail-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.mail-form div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.mail-form input {
  min-width: 0;
  min-height: 56px;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--white);
  padding: 0 16px;
}

.mail-form button {
  min-height: 56px;
}

.placeholder-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.address-line {
  margin-top: 22px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.side-nav-with-title {
  gap: 16px;
}

.side-nav-with-title .page-side-title {
  margin-bottom: 12px;
}

.newsletter-signup {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: clamp(34px, 5vw, 66px) clamp(18px, 3vw, 42px);
}

.newsletter-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.newsletter-text {
  margin: 0 auto 20px;
  color: #252525;
  font-size: 13px;
}

.newsletter-signup .mail-form {
  max-width: none;
  margin: 0 auto;
}

.newsletter-signup .mail-form div {
  grid-template-columns: 1fr;
  gap: 16px;
}

.newsletter-signup .mail-form input {
  min-height: 48px;
  border: 1px solid var(--line);
}

.newsletter-signup .mail-form button {
  justify-self: center;
  min-width: 162px;
  min-height: 48px;
  background: transparent;
  color: var(--ink);
}

.newsletter-signup .mail-form button:hover {
  background: var(--ink);
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .home-hero,
  .home-section,
  .home-whats-on,
  .shop-preview,
  .page-hero,
  .detail-hero,
  .whats-on-layout,
  .about-layout,
  .visit-layout,
  .ticket-layout,
  .about-cover,
  .shop-hero,
  .text-columns {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-panel {
    min-height: 420px;
  }

  .home-section-rail {
    position: static;
  }

  .artist-directory,
  .shop-artist-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-top {
    min-height: 74px;
  }

  .main-nav {
    min-height: 64px;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .wordmark {
    width: min(45vw, 210px);
    min-width: 132px;
  }

  .wordmark img {
    max-height: 40px;
  }

  .header-meta {
    display: none;
  }

  .nav-toggle {
    display: block;
    height: 44px;
    min-height: 44px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding: 17px 18px;
  }

  .nav-tools {
    gap: 10px;
  }

  .social-links {
    display: none;
  }

  .lang-switch button {
    min-width: 30px;
    min-height: 32px;
    font-size: 12px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 380px;
    padding: 34px 18px;
  }

  .programme-grid,
  .artist-grid,
  .visual-card-grid,
  .shop-artist-grid,
  .work-grid,
  .visit-grid,
  .ticket-grid,
  .info-list,
  .program-list,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .detail-copy h1 {
    overflow-wrap: anywhere;
    font-size: clamp(34px, 11vw, 52px);
  }

  .home-section-rail h2,
  .compact-page-hero h1 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mail-form div {
    grid-template-columns: 1fr;
  }

  .mail-form input {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }
}
