/* Psalm: the verse is the room. Letters as tall as the wall, and one narrow slot of daylight. */
:root { --te-radius: 0; --pm-gut: clamp(1rem, 2.4vw, 2.25rem); --pm-slot: clamp(5rem, 16vw, 15rem); --pm-rule: 1px solid color-mix(in srgb, var(--te-accent) 42%, transparent); --pm-chrome: 22rem; }
@media (min-aspect-ratio: 1001/1000) { :root { --pm-chrome: 13.5rem; } }

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 400; font-size: 1rem; color: var(--te-ink); }
.te-nav-link { border-radius: 0; }
.te-nav-link.is-active { background: none; color: var(--te-accent-text); }
.te-nav-sheet { background: var(--te-bg); border-top: var(--pm-rule); }
.te-btn, .te-btn-outline { border-radius: 0; box-shadow: none; font-weight: 500; }
.te-btn { background: var(--te-primary); color: var(--te-on-primary); }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: none; }
.te-btn-soft { background: transparent; color: var(--te-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--te-accent) 60%, transparent); }
.te-btn-light { background: #fff; color: #14141c; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); border-color: color-mix(in srgb, var(--te-accent) 60%, transparent); }
.te-chip { border-radius: 0; background: none; padding: 0; color: var(--te-accent-text); font-size: 1rem; }
.te-field, .te-choice { border-radius: 0; }

/* Hero: the wall */
.pm-hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--pm-slot); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--pm-gut); row-gap: 1rem; min-height: calc(100svh - 3.5rem); padding: .5rem var(--pm-gut) var(--pm-gut); }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pm-verse { grid-column: 1; grid-row: 1; container-type: inline-size; min-width: 0; margin: 0; font-family: var(--te-heading); color: var(--te-primary-text); }
.pm-set { display: none; height: 100%; }
.pm-line { display: block; white-space: nowrap; line-height: 1; font-weight: 500; letter-spacing: -.012em; font-size: calc(var(--fit, 1) * min(100cqw, calc((100svh - var(--pm-chrome)) / var(--rise, 1)))); overflow-wrap: break-word; text-shadow: 0 1px 0 rgba(255,255,255,.07), 0 -1px 0 rgba(0,0,0,.55); }
@media (max-aspect-ratio: 1/1) { .pm-set--tall { display: flex; flex-direction: column; justify-content: space-between; } }
@media (min-aspect-ratio: 1001/1000) { .pm-set--wide { display: flex; flex-direction: column; justify-content: space-between; } }
.pm-slot { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 18rem; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--te-accent) 55%, transparent); animation: pm-open 1.8s cubic-bezier(.6, 0, .2, 1) .15s backwards; }
.pm-slot > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
@keyframes pm-open { from { clip-path: inset(48% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .pm-slot { animation: none; } }
.pm-foot { grid-column: 1; grid-row: 2; display: grid; gap: .875rem; align-items: center; padding-top: .875rem; border-top: var(--pm-rule); }
.pm-title { margin: 0; font-size: calc(var(--fit, 1) * clamp(1.5rem, 2.6vw, 2.25rem)); line-height: 1.2; font-weight: 500; color: var(--te-ink); overflow-wrap: break-word; }
.pm-date { margin-top: .25rem; color: var(--te-accent-text); font-size: .9375rem; }
.pm-venue { color: var(--te-ink); font-size: .9375rem; }
.pm-foot .te-btn { justify-self: start; }
.pm-count .te-count { justify-content: flex-start; gap: 1.25rem; }
.te-count-cell { flex: 0 0 auto; background: none !important; box-shadow: none !important; border-radius: 0; padding: 0; text-align: left; }
.te-count-num { font-weight: 500; font-size: clamp(1.625rem, 3vw, 2.25rem); color: var(--te-ink); }
.te-count-label { font-size: .75rem; }
@media (min-width: 900px) { .pm-foot { grid-template-columns: minmax(0, 1fr) auto auto; gap: 2.5rem; } }

/* Everything below keeps reading as lettering cut into the same wall */
.te-section-head { max-width: 80rem; text-align: left; }
.te-h-section, .te-h-page { font-weight: 500; font-size: clamp(3rem, 12vw, 8rem); line-height: 1.04; letter-spacing: -.012em; text-shadow: 0 1px 0 rgba(255,255,255,.07), 0 -1px 0 rgba(0,0,0,.55); }
.te-h-card { font-weight: 500; font-size: 1.5rem; }
.te-card, .te-tile { background: none; border: 0; border-top: var(--pm-rule); border-radius: 0; box-shadow: none; }
.te-tile-accent { background: none; }
a.te-card:hover { transform: none; box-shadow: none; }
.te-icon-tile { display: none; }
.te-eyebrow { color: var(--te-accent-text); font-size: 1rem; }

/* Facts: inscribed in a row */
.te-facts-grid { max-width: 80rem !important; gap: 0 1.5rem !important; }
.te-facts-grid > * { grid-column: auto !important; padding-inline: 0 !important; }
.te-facts-grid .te-eyebrow { margin-top: 0 !important; }
.te-facts-grid .te-h-card { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
.te-facts-grid a:not(.te-card) { min-height: 2.75rem; text-decoration: underline; text-underline-offset: 3px; }
.te-facts-grid .te-i-sm { display: none; }
@media (min-width: 800px) { .te-facts-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* Explore: names on a memorial wall */
.te-explore > div { max-width: 80rem !important; }
.te-explore .grid { gap: 0 !important; grid-template-columns: 1fr !important; }
.te-explore a.te-card { display: block; padding: 1.25rem 0; }
.te-explore a.te-card > .te-icon-tile, .te-explore a.te-card > svg { display: none; }
.te-explore a.te-card .te-h-card { font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1.1; }
.te-explore a.te-card:hover .te-h-card { color: var(--te-accent-text); }

/* Story */
.te-story > .te-card { max-width: 80rem !important; padding-inline: 0; }
.te-story .te-prose { font-family: var(--te-heading); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--te-ink); }

/* Programme: a roll of hours cut into the wall */
.te-schedule > div:not(.te-section-head) { max-width: 82rem !important; }
.te-schedule > .te-section-head, #details > .te-section-head { max-width: 82.5rem; }
#details > section:not(#venue) > div { max-width: 80rem !important; }
#venue > .te-card { max-width: 48rem !important; margin-left: max(0px, calc(50% - 40rem)); padding-inline: 0; }
#details .te-card { padding-inline: 0; }
.te-timeline { padding: 0 !important; border: 0; }
.te-timeline li { grid-template-columns: 1fr !important; padding: 1.25rem 0 !important; border-top: var(--pm-rule); }
.te-timeline li > div:first-child { display: none; }
.te-timeline .te-chip { font-size: 1.0625rem; margin-bottom: .25rem !important; }
.te-timeline .te-h-card { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; }
.te-timeline .te-muted { font-size: 1.0625rem; }
@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 .te-h-card, .te-timeline .te-muted { grid-column: 2; } }

/* Gallery: more narrow slots */
.te-gallery-grid { max-width: 80rem !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: clamp(.375rem, 1.2vw, 1rem) !important; }
.te-gallery-item { aspect-ratio: 1 / 3.4; border-radius: 0 !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--te-accent) 55%, transparent); }
.te-gallery-item img { object-position: 50% 12%; }
@media (max-width: 639px) { .te-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* Inner pages and close */
.te-page-head { margin: 0; border-radius: 0; background: none; text-align: left; padding-inline: var(--pm-gut); }
.te-closing-panel { max-width: 80rem !important; background: none; border: 0; border-top: var(--pm-rule); padding-inline: 0 !important; text-align: left; }
.te-closing-panel .te-muted { margin-inline: 0; }
.te-closing-panel .te-btn { background: var(--te-accent); color: var(--te-on-accent); }
footer a.te-muted { display: inline-flex; align-items: center; min-height: 2.75rem; }
.te-nav-sheet .te-nav-link, .te-nav .te-btn-sm { min-height: 2.75rem; }

/* On phones the verse takes the full width and the photo becomes its own window beneath it. */
@media (max-width: 767px) {
  .pm-hero { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .pm-slot { grid-column: 1; grid-row: auto; min-height: 0; height: 22rem; }
}
