/* Constellation: a new star named on the night sky. The page below reads as annotations on a star chart. */
:root {
    --te-radius: 0;
    --cn-w: 66rem;
    --cn-fig: min(92vw, 36rem);
    --cn-hair: color-mix(in srgb, var(--te-primary) 34%, transparent);
    --cn-star: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    --cn-ticks: repeating-linear-gradient(90deg, var(--cn-hair) 0 1px, transparent 1px .75rem);
}
.te-site {
    background-color: var(--te-bg);
    background-image:
        radial-gradient(1px 1px at 12% 22%, color-mix(in srgb, var(--te-primary) 70%, transparent), transparent),
        radial-gradient(1px 1px at 41% 68%, color-mix(in srgb, var(--te-primary) 45%, transparent), transparent),
        radial-gradient(1.5px 1.5px at 73% 14%, color-mix(in srgb, var(--te-accent) 70%, transparent), transparent),
        radial-gradient(1px 1px at 88% 79%, color-mix(in srgb, var(--te-primary) 55%, transparent), transparent),
        radial-gradient(1px 1px at 27% 92%, color-mix(in srgb, var(--te-accent) 45%, transparent), transparent);
    background-size: 19rem 19rem;
}

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: var(--te-menu-bg, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-size: 1.625rem; font-weight: 400; }
.te-nav-link { min-height: 2.75rem; border-radius: 0; font-weight: 300; opacity: .9; }
.te-nav-link.is-active { background: none; box-shadow: inset 0 -1px 0 var(--te-primary-text); }
.te-nav-sheet { background: var(--te-surface); }
.te-btn, .te-btn-outline { border-radius: 999px; box-shadow: none; font-weight: 400; }
.te-btn-sm { min-height: 2.75rem; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); border: 1px solid var(--cn-hair); }
.te-btn-soft { background: transparent; color: var(--te-primary-text); box-shadow: inset 0 0 0 1px var(--cn-hair); }
.te-chip { border-radius: 0; padding: 0; background: none; color: var(--te-accent-text); font-weight: 300; }
.te-field, .te-choice { border-radius: 0; }

/* Hero */
.cn-hero { position: relative; isolation: isolate; overflow: hidden; padding: 1.5rem 1rem 4rem; text-align: center; }
.cn-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; stroke-linecap: round; }
.cn-s1 { stroke: var(--te-primary); stroke-width: 1.3; opacity: .45; }
.cn-s2 { stroke: var(--te-primary); stroke-width: 2.2; opacity: .75; }
.cn-s3 { stroke: var(--te-accent); stroke-width: 3.4; }
.cn-label { font-weight: 300; font-size: 1.0625rem; color: var(--te-accent-text); }
.cn-figure { position: relative; width: var(--cn-fig); aspect-ratio: 1; margin: .25rem auto 0; }
.cn-photo { position: absolute; inset: 27%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px var(--cn-hair); }
.cn-photo > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cn-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.cn-line { stroke: var(--te-primary); stroke-opacity: .7; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; animation: cn-draw .7s ease-out backwards; animation-delay: calc(var(--i) * .2s); }
@keyframes cn-draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .cn-line { animation: none; } }
.cn-node { fill: var(--te-primary); }
.cn-node-far { fill: var(--te-accent); }
.cn-spark { fill: var(--te-primary); }
.cn-title { position: relative; margin-top: calc(var(--cn-fig) * -.2); font-size: calc(var(--fit, 1) * clamp(3.75rem, 18vw, 9rem)); font-weight: 400; line-height: 1; color: var(--te-primary-text); text-shadow: 0 0 .35em var(--te-bg), 0 0 .12em var(--te-bg); overflow-wrap: break-word; }
.cn-sub { max-width: 34rem; margin: 1rem auto 0; font-size: 1.125rem; font-weight: 300; }
.cn-meta { margin-top: .5rem; font-size: .9375rem; font-weight: 300; color: var(--te-muted); }
.cn-hero .te-count { margin-top: 2rem; }
.cn-cta { margin-top: 2rem; }

/* Countdown: chart readings */
.te-count { gap: 0; }
.te-count-cell { flex: 0 1 5.5rem; padding: .25rem .25rem; border-radius: 0; background: none !important; box-shadow: none !important; }
.te-count-cell + .te-count-cell { border-left: 1px solid var(--cn-hair); }
.te-count-num { font-family: var(--te-body); font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 200; }
.te-count-label { font-weight: 300; }

/* Annotations, not cards */
.te-card, .te-tile { background: none; border: 0; border-radius: 0; box-shadow: none; }
a.te-card:hover, a.te-tile:hover { transform: none; box-shadow: none; }
.te-icon-tile, .te-explore svg.te-i, .te-facts svg.te-i, .te-story svg.te-i { display: none; }
.te-eyebrow { margin-top: 0 !important; font-size: .8125rem; font-weight: 300; color: var(--te-accent-text); }
.te-h-card { font-weight: 400; font-size: 1.125rem; }
.te-h-section, .te-h-page { font-weight: 400; font-size: clamp(2.75rem, 9vw, 4.5rem); line-height: 1.1; letter-spacing: 0; }
.te-section-head { max-width: var(--cn-w); margin-inline: auto; text-align: left; }
.te-schedule > .te-section-head, #details > .te-section-head { max-width: calc(var(--cn-w) + 2.5rem); }
.te-section-head::after { content: ""; display: block; height: .4375rem; margin-top: .75rem; background: var(--cn-ticks); }
.te-page-head { max-width: var(--cn-w); margin: 0 auto; border-radius: 0; background: none; text-align: left; }
.te-page-head::after { content: ""; display: block; height: .4375rem; margin-top: 1rem; background: var(--cn-ticks); }

/* Facts and details: labelled stars joined by a chart line */
.te-facts-grid, .te-explore > div, .te-gallery-grid, #details > section.px-5 > .grid { max-width: var(--cn-w) !important; }
.te-facts-grid, #details > section.px-5 > .grid { position: relative; grid-template-columns: 1fr !important; gap: 0 !important; border-left: 1px solid var(--cn-hair); margin-left: .4375rem; }
.te-facts-grid > *, #details > section.px-5 > .grid > * { position: relative; padding: 0 1.5rem 2rem 1.5rem !important; }
.te-facts-grid > *::before, #details > section.px-5 > .grid > *::before { content: ""; position: absolute; left: -.5rem; top: 0; width: 1rem; height: 1rem; background: var(--te-primary); clip-path: var(--cn-star); }
#details > section.px-5 .te-h-card { margin-top: 0 !important; }
.te-facts .te-accent { min-height: 2.75rem; }

/* Explore */
.te-explore .grid { gap: 0 3rem !important; }
.te-explore a.te-card { gap: .875rem; min-height: 3.5rem; padding: .875rem 0 !important; border-bottom: 1px solid var(--cn-hair); }
.te-explore a.te-card::before { content: ""; flex: none; width: .875rem; height: .875rem; background: var(--te-accent); clip-path: var(--cn-star); }

/* Story */
.te-story .te-card { max-width: var(--cn-w) !important; padding: 0 0 0 1.5rem !important; background: repeating-linear-gradient(180deg, var(--cn-hair) 0 1px, transparent 1px .75rem) left top / .4375rem 100% no-repeat; }
.te-story .te-prose { max-width: 42rem; font-weight: 300; }

/* Programme: readings along a graduated meridian */
.te-schedule > div:not(.te-section-head) { max-width: calc(var(--cn-w) + 2.5rem) !important; padding-inline: 1.25rem !important; }
.te-timeline { --time: 5.25rem; padding: .5rem 0 !important; }
.te-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--time) + 1.28rem); width: .4375rem; background: repeating-linear-gradient(180deg, var(--cn-hair) 0 1px, transparent 1px .75rem); }
.te-timeline > li { grid-template-columns: var(--time) 1.5rem 1fr !important; column-gap: .75rem !important; padding-bottom: 1.75rem !important; }
.te-timeline > li:last-child { padding-bottom: .5rem !important; }
.te-timeline li > div:first-child { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; }
.te-timeline li > div:first-child > span:first-child { width: 1.25rem; height: 1.25rem; margin-top: 0; border-radius: 0; background: var(--te-primary); clip-path: var(--cn-star); }
.te-timeline li > div:first-child > span:last-child:not(:first-child) { display: none; }
.te-timeline li > div:last-child { display: contents; }
.te-timeline .te-chip { grid-column: 1; grid-row: 1 / span 2; justify-content: flex-end; align-self: start; margin: 0 !important; text-align: right; color: var(--te-accent-text); font-variant-numeric: tabular-nums; }
.te-timeline .te-h-card { grid-column: 3; }
.te-timeline p { grid-column: 3; }

/* Gallery: eyepiece views */
.te-gallery-grid { gap: 1.75rem 1.25rem !important; }
.te-gallery-item { aspect-ratio: 1 !important; border-radius: 50% !important; outline: 1px solid var(--cn-hair); outline-offset: .3125rem; }
.te-gallery-item img { object-position: 50% 20%; }
.te-gallery-item:nth-child(even) { transform: translateY(1rem); }
.te-gallery { padding-bottom: 5rem !important; }

/* Venue and closing */
#venue .te-card { max-width: var(--cn-w) !important; padding-inline: 0 !important; }
#venue .border-t { border-color: var(--cn-hair) !important; }
.te-closing-panel::before { content: ""; display: block; width: 1.75rem; height: 1.75rem; margin: 0 auto 1.25rem; background: var(--te-primary); clip-path: var(--cn-star); }
.te-closing-panel .te-btn { background: var(--te-primary); color: var(--te-on-primary); }

@media (min-width: 640px) {
    .te-timeline { --time: 8.5rem; }
    .te-gallery-item:nth-child(even) { transform: none; }
    .te-gallery-item:nth-child(3n+2) { transform: translateY(2rem); }
}
@media (min-width: 900px) {
    .te-facts-grid, #details > section.px-5 > .grid { grid-template-columns: repeat(3, 1fr) !important; border-left: 0; margin-left: auto; padding-bottom: 2rem; }
    .te-facts-grid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3rem; background: var(--cn-hair); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpolyline points='0,0 100,30 200,10 300,22' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpolyline points='0,0 100,30 200,10 300,22' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
    .te-facts-grid > *, #details > section.px-5 > .grid > * { padding: 1.5rem 2.5rem 0 0 !important; }
    .te-facts-grid > *::before, #details > section.px-5 > .grid > *::before { left: -.5rem; top: -.5rem; }
    .te-facts-grid > :nth-child(3n+2), #details > section.px-5 > .grid > :nth-child(3n+2) { margin-top: 3rem; }
    .te-facts-grid > :nth-child(3n), #details > section.px-5 > .grid > :nth-child(3n) { margin-top: 1rem; }
    .te-explore .grid { grid-template-columns: repeat(2, 1fr) !important; }
}
