/* Blueprint: an engineer's drawing on grid paper. Every section is a numbered sheet. */
:root {
  --te-radius: 0;
  --bp-ink: color-mix(in srgb, var(--te-primary-text) 78%, transparent);
  --bp-hair: color-mix(in srgb, var(--te-primary-text) 34%, transparent);
  --bp-fine: color-mix(in srgb, var(--te-primary-text) 8%, transparent);
  --bp-major: color-mix(in srgb, var(--te-primary-text) 16%, transparent);
  --bp-arrows-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M0 4.5 10 0v9z'/%3E%3C/svg%3E") left center/10px 9px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M10 4.5 0 0v9z'/%3E%3C/svg%3E") right center/10px 9px no-repeat, linear-gradient(#000 0 0) center/100% 1px no-repeat;
  --bp-arrows-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M4.5 0 9 10H0z'/%3E%3C/svg%3E") center top/9px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M4.5 10 0 0h9z'/%3E%3C/svg%3E") center bottom/9px 10px no-repeat, linear-gradient(#000 0 0) center/1px 100% no-repeat;
}
.te-site {
  background-color: var(--te-bg);
  background-image: linear-gradient(var(--bp-major) 1px, transparent 1px), linear-gradient(90deg, var(--bp-major) 1px, transparent 1px), linear-gradient(var(--bp-fine) 1px, transparent 1px), linear-gradient(90deg, var(--bp-fine) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
main { counter-reset: sheet 1; }

/* Chrome */
.te-nav-wrap { padding: 0; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: var(--te-menu-bg, var(--te-bg)); border-bottom: 1px solid var(--bp-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-sheet { border-top: 1px solid var(--bp-hair); }
.te-nav-brand { font-weight: 500; }
.te-nav-link { border-radius: 0; font-size: .8125rem; opacity: 1; }
.te-nav-link.is-active { background: none; box-shadow: inset 0 -1px 0 currentColor; }
.te-btn, .te-btn-outline, .te-btn-sm { border-radius: 0; box-shadow: none; font-family: var(--te-body); font-weight: 600; }
.te-btn:hover { transform: none; }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: none; }
.te-btn-soft { background: transparent; color: var(--te-primary-text); box-shadow: inset 0 0 0 1px var(--bp-ink); }
.te-btn-light { background: #fff; color: #14141c; box-shadow: none; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); border: 1px solid var(--bp-ink); }
.te-chip, .te-chip-accent { border-radius: 0; background: none; color: var(--te-primary-text); box-shadow: inset 0 0 0 1px var(--bp-hair); font-size: .75rem; }
.te-field, .te-choice { border-radius: 0; }
.te-field { background: color-mix(in srgb, var(--te-bg) 86%, transparent); border: 1px solid var(--bp-ink); }
.te-choice-idle { background: none; box-shadow: inset 0 0 0 1px var(--bp-hair); }

/* Dimension lines */
.bp-dim { position: relative; display: flex; align-items: center; justify-content: center; min-block-size: 1.625rem; border-inline: 1px solid var(--bp-ink); color: var(--te-ink); font-size: .8125rem; line-height: 1.3; }
.bp-dim::before { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 9px; transform: translateY(-50%); background: var(--bp-ink); -webkit-mask: var(--bp-arrows-h); mask: var(--bp-arrows-h); }
.bp-dim-text { position: relative; max-inline-size: calc(100% - 3rem); padding-block: .125rem; padding-inline: .625rem; background: var(--te-bg); text-align: center; overflow-wrap: break-word; }
.bp-dim-v { writing-mode: vertical-rl; min-block-size: 0; }
.bp-dim-v .bp-dim-text { max-inline-size: none; }
.bp-dim-v::before { left: 50%; right: auto; top: 1px; bottom: 1px; width: 9px; height: auto; transform: translateX(-50%); -webkit-mask: var(--bp-arrows-v); mask: var(--bp-arrows-v); }

/* Hero sheet */
.bp-hero { padding: clamp(.75rem, 2.5vw, 2rem); }
.bp-sheet { --pad: clamp(1rem, 3.5vw, 3rem); position: relative; display: grid; gap: 2.25rem; max-width: 86rem; margin-inline: auto; padding: var(--pad); border: 1px solid var(--bp-ink); outline: 1px solid var(--bp-hair); outline-offset: .3rem; }
.bp-main { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; min-width: 0; }
.bp-label { color: var(--te-accent-text); font-size: .9375rem; }
.bp-measure { width: fit-content; max-width: 100%; }
.bp-title { margin-bottom: .75rem; color: var(--te-primary-text); font-weight: 500; font-size: calc(var(--fit, 1) * clamp(3.25rem, 12.5vw, 8.5rem)); line-height: 1; letter-spacing: -.03em; overflow-wrap: break-word; }
.bp-sub { max-width: 34rem; color: var(--te-ink); font-size: 1rem; line-height: 1.6; }
.bp-main .te-count { justify-content: flex-start; gap: 0; width: min(100%, 25rem); }
.te-count-cell { background: none; box-shadow: none; border-radius: 0; border: 1px solid var(--bp-hair); margin-left: -1px; }
.te-count-num { color: var(--te-primary-text); font-weight: 500; }
.bp-figure { display: grid; gap: .625rem; align-content: start; min-width: 0; }
.bp-photo-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.125rem; gap: .5rem; }
.bp-photo { position: relative; aspect-ratio: 5/4; isolation: isolate; border: 1px solid var(--bp-ink); background: color-mix(in srgb, var(--te-bg) 80%, #000); }
.bp-photo > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.2) brightness(1.06); mix-blend-mode: screen; }
.bp-block { display: grid; grid-template-columns: 1fr 1fr; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); border-top: 1px solid var(--bp-ink); background: var(--te-bg); }
.bp-cell { min-width: 0; padding: .5rem .75rem; border-bottom: 1px solid var(--bp-hair); border-left: 1px solid var(--bp-hair); }
.bp-cell:first-child, .bp-cell-wide { border-left: 0; }
.bp-cell:last-child, .bp-cell:nth-last-child(2) { border-bottom: 0; }
.bp-cell:nth-last-child(2) { border-left: 0; }
.bp-cell:last-child { border-left: 1px solid var(--bp-hair); }
.bp-cell-wide { grid-column: 1 / -1; }
.bp-cell dt { color: var(--te-muted); font-size: .6875rem; line-height: 1.3; }
.bp-cell dd { color: var(--te-ink); font-size: .875rem; line-height: 1.35; overflow-wrap: break-word; }
.bp-cell dd.te-heading { font-size: 1.0625rem; font-weight: 500; color: var(--te-primary-text); }
@media (min-width: 1000px) {
  .bp-sheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 2.5rem; }
  .bp-main { grid-row: 1 / span 2; padding-bottom: 1rem; }
  .bp-title { font-size: calc(var(--fit, 1) * clamp(4rem, 9.2vw, 8.5rem)); }
  .bp-figure { grid-column: 2; grid-row: 1; }
  .bp-block { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; width: min(100%, 25rem); margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; border-left: 1px solid var(--bp-ink); }
}

/* Every section is a drawing sheet with its number in the corner. */
.te-facts, .te-explore, .te-story, .te-schedule, #details, .te-gallery, .te-closing { position: relative; counter-increment: sheet; width: calc(100% - clamp(1.5rem, 5vw, 4rem)); max-width: 86rem; margin: clamp(1.25rem, 3vw, 2.25rem) auto; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem) 4rem !important; border: 1px solid var(--bp-ink); outline: 1px solid var(--bp-hair); outline-offset: .3rem; }
.te-page-head { position: relative; counter-increment: sheet; width: calc(100% - clamp(1.5rem, 5vw, 4rem)); max-width: 86rem; margin: clamp(1.25rem, 3vw, 2.25rem) auto; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem) 4rem; border-radius: 0; border: 1px solid var(--bp-ink); outline: 1px solid var(--bp-hair); outline-offset: .3rem; background: none; text-align: left; }
.te-facts::after, .te-explore::after, .te-story::after, .te-schedule::after, #details::after, .te-gallery::after, .te-closing::after, .te-page-head::after { content: "Sheet " counter(sheet); position: absolute; right: 0; bottom: 0; padding: .375rem .875rem; border-top: 1px solid var(--bp-ink); border-left: 1px solid var(--bp-ink); background: var(--te-bg); color: var(--te-ink); font-size: .75rem; }
.te-page-head .mx-auto { margin-inline: 0; }
.te-section { padding-inline: 0; }
#details .te-section { padding-block: 2.5rem 0; }
#details > section { padding-inline: 0 !important; }

/* Headings carry a dimension line the width of their text. */
.te-section-head { width: fit-content; max-width: 100%; margin: 0 0 1.75rem; padding-inline: 0 !important; text-align: left; }
.te-section-head::after { content: ""; display: block; height: 9px; margin-top: .5rem; background: var(--bp-ink); -webkit-mask: var(--bp-arrows-h); mask: var(--bp-arrows-h); }
.te-h-section, .te-h-page { font-weight: 500; letter-spacing: -.02em; }
.te-h-section { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.te-h-card { font-weight: 500; }

/* Surfaces are outlined cells of the drawing. */
.te-card, .te-tile, .te-tile-accent { background: none; border: 1px solid var(--bp-hair); border-radius: 0; box-shadow: none; }
.te-card { background: color-mix(in srgb, var(--te-bg) 88%, transparent); }
a.te-card:hover, a.te-tile:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--te-primary-text) 9%, var(--te-bg)); }
.te-icon-tile, .te-icon-tile-accent { width: 2.25rem; height: 2.25rem; border-radius: 0; background: none; color: var(--te-primary-text); box-shadow: inset 0 0 0 1px var(--bp-hair); }
.te-explore a.te-card > svg, .te-facts a.te-card svg.te-i-sm, .te-story a svg { display: none; }
.te-facts-grid, .te-explore .grid { gap: 0 !important; max-width: none !important; padding-left: 1px; }
.te-facts-grid > *, .te-explore .grid > * { margin: 0 0 -1px -1px; }
.te-explore > div { max-width: none !important; }
.te-explore a.te-card { min-height: 5.5rem; }
.te-story .te-card { max-width: 46rem; margin-inline: 0; }
#details .mx-auto.grid { max-width: none !important; }
#venue .te-card { max-width: none; }

/* Programme: a numbered schedule of items, ruled like a parts list. */
.te-schedule > div:not(.te-section-head) { max-width: none !important; padding: 1.75rem 0 0 !important; }
.te-timeline { counter-reset: item; padding: 0 !important; border: 1px solid var(--bp-ink); }
.te-timeline li { counter-increment: item; grid-template-columns: 2.75rem minmax(0, 1fr) !important; column-gap: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--bp-hair); }
.te-timeline li:last-child { border-bottom: 0; }
.te-timeline li::before { content: counter(item); display: grid; place-items: center; border-right: 1px solid var(--bp-hair); color: var(--te-muted); font-size: .8125rem; }
.te-timeline li > div:first-child { display: none; }
.te-timeline li > div:last-child { padding: .875rem 1rem; }
.te-timeline .te-chip { margin: 0 0 .25rem !important; padding: 0; background: none; box-shadow: none; color: var(--te-accent-text); font-size: .875rem; }
@media (min-width: 800px) {
  .te-timeline li > div:last-child { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; }
  .te-timeline .te-chip { grid-row: 1 / span 2; margin: 0 !important; }
  .te-timeline p { grid-column: 2; }
}
.te-schedule .mt-6 { margin-inline: 0 !important; justify-content: flex-start !important; max-width: none !important; }

/* Gallery prints as cyanotype. */
.te-gallery-grid { max-width: none !important; gap: 1rem !important; }
.te-gallery-item { position: relative; isolation: isolate; border-radius: 0 !important; border: 1px solid var(--bp-ink); background: color-mix(in srgb, var(--te-bg) 80%, #000); }
.te-gallery-item img { filter: grayscale(1) contrast(1.2) brightness(1.06); mix-blend-mode: screen; }
.te-gallery > .mt-6 { text-align: left; }

/* Closing sheet */
.te-closing-panel { padding: 0 !important; max-width: none !important; border: 0; background: none; text-align: left !important; }
.te-closing-panel p { margin-inline: 0 !important; }
