/* Mixtape: a cassette with a hand-written label, its J-card open beside it, the programme as sides A and B. */
:root { --te-radius: .375rem; }
.te-site { --shell: color-mix(in srgb, var(--te-accent) 12%, #17181c); --paper: var(--te-primary); --on-paper: var(--te-on-primary); --ruled: color-mix(in srgb, var(--on-paper) 15%, transparent); }

/* Chrome */
.te-nav-wrap { padding: 0; }
.te-nav { max-width: none; border-radius: 0; background: var(--te-menu-bg, var(--shell)); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 700 !important; font-size: 1.5rem; color: var(--te-menu-text, var(--paper)); }
.te-nav-toggle { color: var(--te-menu-text, var(--paper)); }
.te-nav-link { border-radius: .25rem; opacity: .9; color: var(--te-menu-text, var(--paper)); }
.te-nav-link.is-active { background: var(--paper); color: var(--on-paper); }
.te-btn, .te-btn-outline { border-radius: .25rem; font-weight: 700; }
.te-btn { background: var(--paper); color: var(--on-paper); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 5px 0 color-mix(in srgb, var(--paper) 55%, #000); margin-bottom: 5px; }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 5px 0 color-mix(in srgb, var(--te-accent) 55%, #000); }
.te-btn-soft { background: var(--te-tint-strong); color: var(--te-ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 5px 0 color-mix(in srgb, var(--te-tint-strong) 55%, #000); }
.te-btn-light { background: #fff; color: #14141c; box-shadow: 0 5px 0 #b9b6ad; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); box-shadow: none; margin-bottom: 0; }
.te-btn:hover { transform: none; filter: brightness(1.06); }
.te-btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 1px 0 color-mix(in srgb, currentColor 40%, #000); }
.te-chip { border-radius: .25rem; }
.te-field, .te-choice { border-radius: .25rem; }

/* Hero */
.mx-hero { display: grid; gap: 1.75rem; max-width: 80rem; margin-inline: auto; padding: 1.5rem 1rem 2rem; }
.mx-tape { position: relative; width: 100%; aspect-ratio: 640 / 420; container-type: inline-size; filter: drop-shadow(0 22px 22px rgba(0,0,0,.42)); }
.mx-shell { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-body { fill: var(--shell); }
.mx-bevel { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 2; }
.mx-paper { fill: var(--paper); }
.mx-rule { fill: none; stroke: var(--ruled); stroke-width: 1.5; }
.mx-band { fill: var(--te-accent); }
.mx-band2 { fill: color-mix(in srgb, var(--te-accent) 55%, var(--on-paper)); }
.mx-side { font-family: var(--te-body); font-weight: 800; font-size: 40px; fill: var(--on-paper); }
.mx-mins { font-family: var(--te-body); font-weight: 600; font-size: 22px; fill: var(--on-paper); }
.mx-well { fill: #0e0d10; }
.mx-pack { fill: color-mix(in srgb, var(--te-accent) 16%, #2a1c16); }
.mx-hub { fill: #efece3; }
.mx-hole { fill: #0e0d10; }
.mx-reel { transform-box: fill-box; transform-origin: center; animation: mx-turn 9s linear infinite; }
@keyframes mx-turn { to { transform: rotate(360deg); } }
.mx-glass { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.28); stroke-width: 2; }
.mx-tick { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.5; }
.mx-foot { fill: color-mix(in srgb, var(--shell) 82%, #fff); }
.mx-felt { fill: color-mix(in srgb, var(--te-accent) 40%, #2a1c16); }
.mx-screw circle { fill: #b9b6ad; stroke: rgba(0,0,0,.5); }
.mx-screw path { fill: none; stroke: #3d3a35; stroke-width: 2; }
.mx-label { position: absolute; left: 8%; right: 8%; top: 8.5%; height: 26%; display: flex; align-items: center; justify-content: center; }
h1.mx-title { font-weight: 700; font-size: calc(var(--mx-t, 1) * var(--fit, 1) * clamp(1.875rem, 13.5cqw, 5.75rem)); line-height: 1; letter-spacing: 0; text-align: center; color: var(--on-paper); rotate: -1.5deg; overflow-wrap: break-word; max-width: 100%; }

.mx-jcard { background: var(--paper); color: var(--on-paper); box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
.mx-front > * { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 18%; }
.mx-spine { padding: .375rem 1rem; background: var(--te-accent); color: var(--te-on-accent); font-family: var(--te-heading); font-weight: 700; font-size: 1.125rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 3px 3px -2px rgba(0,0,0,.35), inset 0 -3px 3px -2px rgba(0,0,0,.35); }
.mx-liner { display: grid; justify-items: start; gap: .5rem; padding: 1.25rem 1.25rem 1.5rem; background: repeating-linear-gradient(180deg, transparent 0 1.9375rem, var(--ruled) 1.9375rem 2rem); }
.mx-hand { font-family: var(--te-heading); font-weight: 700; font-size: 1.875rem; line-height: 1.1; }
.mx-sub { font-size: 1.0625rem; }
.mx-when { font-weight: 700; font-size: 1.0625rem; }
.mx-where { font-size: .9375rem; }
.mx-liner .te-count { width: 100%; justify-content: flex-start; margin-block: .5rem; }
.mx-liner .te-count-cell { background: var(--shell) !important; border-radius: .25rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important; }
.mx-liner .te-count-num { color: #f4f1e8; font-family: var(--te-body); font-weight: 700; }
.mx-liner .te-count-label { color: rgba(255,255,255,.8); }
.mx-liner .te-count-done { color: var(--on-paper); }
@media (min-width: 1000px) {
  .mx-hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 3rem; }
  .mx-jcard { rotate: 1.5deg; }
}

/* Paper and strips below */
.te-tile, .te-card { background: var(--paper); color: var(--on-paper); border: 0; border-radius: .25rem; box-shadow: 0 12px 22px -14px rgba(0,0,0,.55); --te-muted: color-mix(in srgb, var(--on-paper) 74%, var(--paper)); --te-primary-text: var(--on-paper); --te-accent-text: color-mix(in srgb, var(--te-accent) 60%, var(--on-paper)); --te-ink: var(--on-paper); --te-line: var(--ruled); --te-tint: color-mix(in srgb, var(--on-paper) 8%, transparent); --te-tint-strong: color-mix(in srgb, var(--on-paper) 14%, transparent); --te-tint-accent: color-mix(in srgb, var(--on-paper) 8%, transparent); --te-tint-accent-strong: color-mix(in srgb, var(--on-paper) 14%, transparent); }
.te-card .te-btn:not(.te-btn-accent, .te-btn-soft, .te-btn-outline, .te-btn-light), .te-closing-panel .te-btn:not(.te-btn-accent) { background: var(--shell); color: var(--paper); box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 5px 0 #000; }
.te-card .te-field { color: var(--on-paper); background: rgba(255,255,255,.55); border-color: color-mix(in srgb, var(--on-paper) 30%, transparent); }
.te-card .te-count-cell { background: var(--shell) !important; }
.te-tile-accent { background: var(--te-accent); color: var(--te-on-accent); --te-muted: var(--te-on-accent); --te-primary-text: var(--te-on-accent); --te-accent-text: var(--te-on-accent); }
.te-tile-accent * { color: inherit !important; }
.te-tile-accent .te-icon-tile { background: rgba(0,0,0,.14); }
.te-icon-tile { background: var(--shell); color: var(--paper); border-radius: 50%; }
.te-h-card { font-family: var(--te-heading); font-weight: 700; font-size: 1.625rem; line-height: 1.15; }
.te-section-head { max-width: 72rem; text-align: left; }
.te-h-section, .te-h-page { font-weight: 700; font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1; color: var(--te-primary-text); }
.te-h-section::after { content: ""; display: block; width: 8rem; height: .625rem; margin-top: .25rem; background: var(--te-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 10'%3E%3Cpath d='M2 6C20 1 34 9 52 5s34-3 74 1' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 10'%3E%3Cpath d='M2 6C20 1 34 9 52 5s34-3 74 1' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.te-closing-panel .te-h-section::after { margin-inline: auto; }
.te-explore a.te-card > svg, .te-facts-grid a > span > svg, .te-story a svg { display: none; }

/* Facts: one folded insert with crease lines */
.te-facts-grid { max-width: 72rem !important; gap: 0 !important; grid-template-columns: 1fr !important; }
.te-facts-grid > * { border-radius: 0; box-shadow: none; grid-column: auto !important; }
.te-facts-grid > * + * { border-top: 1px dashed color-mix(in srgb, var(--on-paper) 40%, transparent); }
@media (min-width: 1024px) { .te-facts-grid { grid-template-columns: repeat(3, 1fr) !important; } .te-facts-grid > * + * { border-top: 0; border-left: 1px dashed color-mix(in srgb, var(--on-paper) 40%, transparent); } }

/* Explore: a stack of cassette spines */
.te-explore > div { max-width: 72rem !important; }
.te-explore .grid { grid-template-columns: 1fr !important; gap: .25rem !important; }
.te-explore a.te-card { border-radius: .125rem; padding-block: .75rem !important; box-shadow: none; border-left: 1.25rem solid var(--te-accent); }
.te-explore a.te-card:nth-child(even) { border-left-color: var(--shell); }
.te-explore .te-icon-tile { display: none; }
.te-explore a.te-card:hover { transform: translateX(.5rem); box-shadow: none; }

.te-page-head { margin: 0; border-radius: 0; background: var(--paper); color: var(--on-paper); text-align: left; border-bottom: 10px solid var(--te-accent); }
.te-page-head .te-h-page, .te-page-head * { color: inherit; }
.te-page-head .te-h-page::after { display: none; }

/* Programme: the track list, split evenly into sides A and B */
.te-schedule > div { max-width: 72rem !important; }
.te-timeline { counter-reset: trk; padding: 1.25rem 1.25rem 1.5rem !important; background: repeating-linear-gradient(180deg, transparent 0 2.4375rem, var(--ruled) 2.4375rem 2.5rem), var(--paper); }
.te-timeline * { color: inherit !important; }
.te-timeline::before { content: "Side A"; display: block; height: 2.75rem; font-family: var(--te-heading); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }
.te-timeline li { --side: "A"; counter-increment: trk; position: relative; grid-template-columns: 2.25rem 1fr !important; column-gap: .5rem !important; padding: .625rem 0 !important; break-inside: avoid; }
.te-timeline li > div:first-child { display: none; }
.te-timeline li::before { content: var(--side) counter(trk); font-weight: 700; font-size: .9375rem; line-height: 2rem; }
.te-timeline li::after { content: var(--bside, none); position: absolute; top: 0; left: 0; font-family: var(--te-heading); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }
.te-timeline li > div:last-child { display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; align-items: baseline; }
.te-timeline .te-h-card { grid-column: 1; grid-row: 1; font-size: 1.5rem; }
.te-timeline .te-chip { grid-column: 2; grid-row: 1; background: none; padding: 0; margin: 0 !important; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: 0; }
.te-timeline li p { grid-column: 1 / -1; margin-top: 0; opacity: .82; }
.te-timeline li:is(:nth-child(2):nth-last-child(1), :nth-child(3):nth-last-child(1), :nth-child(3):nth-last-child(2), :nth-child(4):nth-last-child(2), :nth-child(4):nth-last-child(3), :nth-child(5):nth-last-child(3), :nth-child(5):nth-last-child(4), :nth-child(6):nth-last-child(4), :nth-child(6):nth-last-child(5), :nth-child(7):nth-last-child(5), :nth-child(7):nth-last-child(6), :nth-child(8):nth-last-child(6), :nth-child(8):nth-last-child(7), :nth-child(9):nth-last-child(7), :nth-child(9):nth-last-child(8), :nth-child(10):nth-last-child(8), :nth-child(10):nth-last-child(9), :nth-child(11):nth-last-child(9), :nth-child(11):nth-last-child(10)) { --side: "B"; --bside: "Side B"; counter-reset: trk; padding-top: 3.375rem !important; break-before: column; }
.te-timeline li:is(:nth-child(2):nth-last-child(1), :nth-child(3):nth-last-child(1), :nth-child(3):nth-last-child(2), :nth-child(4):nth-last-child(2), :nth-child(4):nth-last-child(3), :nth-child(5):nth-last-child(3), :nth-child(5):nth-last-child(4), :nth-child(6):nth-last-child(4), :nth-child(6):nth-last-child(5), :nth-child(7):nth-last-child(5), :nth-child(7):nth-last-child(6), :nth-child(8):nth-last-child(6), :nth-child(8):nth-last-child(7), :nth-child(9):nth-last-child(7), :nth-child(9):nth-last-child(8), :nth-child(10):nth-last-child(8), :nth-child(10):nth-last-child(9), :nth-child(11):nth-last-child(9), :nth-child(11):nth-last-child(10)) ~ li { --side: "B"; }
@media (min-width: 860px) {
  .te-timeline { columns: 2; column-gap: 3rem; column-rule: 1px dashed color-mix(in srgb, var(--on-paper) 40%, transparent); padding: 1.75rem 2rem 2rem !important; }
}

/* Gallery: cases with a coloured spine */
.te-gallery-grid { max-width: 72rem !important; gap: .75rem !important; }
.te-gallery-item { border-radius: .125rem !important; padding: .375rem .375rem .375rem 0; background: var(--paper); border-left: .875rem solid var(--te-accent); }
.te-closing-panel { border-top: 12px solid var(--te-accent); max-width: 72rem !important; }

@media (prefers-reduced-motion: reduce) { .mx-reel { animation: none; } }
