/* ─────────────────────────────────────────────────────────────────────────
   saimonsekta.slist.net

   Palette + type are SLIST canon, not invention:
     brand/color-canon.md      → one red, three specifications
     brand/brand-system.md     → Times New Roman display / Public Sans body
     brand/visual-standards.md → black ground, #1A1A1A surface, #E0E0E0 text

   The red here is Signal (#FF0000), not Interface (#B91C1C). Canon assigns
   Interface to "things you click" because pure red vibrates and fails contrast
   ON WHITE. This surface is a black brand page — a flyer that happens to have
   links — so Signal is the correct lane. See README §Red.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ff0000;
  --surface: #1a1a1a;
  --text: #e0e0e0;
  --muted: #8a8a8a;
  --hairline: #262626;

  --font-display: "Times New Roman", Times, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --rule: 1px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--black); }

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ── Shared primitives ──────────────────────────────────────────────── */

.wrap {
  padding-inline: var(--gutter);
  max-width: 96rem;
  margin-inline: auto;
}

/* The uppercase Public Sans micro-label. Every piece of chrome on this page
   is one of these; the display face never does small text. */
.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

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

.rule {
  border: 0;
  border-top: var(--rule) solid var(--red);
  margin: 0;
}

.hairline { border-top: var(--rule) solid var(--hairline); }

/* ── Skip link ──────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: var(--black);
  padding: 0.75rem 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.skip:focus { left: 0; }

/* ── Masthead ───────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--black) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--rule) solid var(--red);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 3.25rem;
  /* Wrap rather than overflow. The mark plus four nav links measure ~350px,
     which is the entire content width of a 390px phone — one long word or a
     larger default font size and it would push the page sideways. Wrapping to
     two rows is ugly on a 320px screen exactly once; horizontal scroll is
     ugly everywhere. */
  flex-wrap: wrap;
}

.masthead__mark {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.4vw, 2rem);
  align-items: center;
}

.nav a {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible { color: var(--white); border-bottom-color: var(--red); }

/* Narrow screens keep the four section links and drop the social row — those
   repeat in the footer. Booking must never be one of the ones that falls off. */
@media (max-width: 34rem) {
  .nav a:nth-child(n + 5) { display: none; }
  .nav { gap: 0.8rem; }
  .nav a { font-size: 0.625rem; letter-spacing: 0.12em; }
  .masthead__mark { font-size: 0.625rem; letter-spacing: 0.18em; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3.5rem, 11vh, 8rem) clamp(2rem, 5vh, 3.5rem);
}

/* Edge-to-edge display type, cropped tight — brand directive is "stretch the
   text over the whole field, aggressive cropping, legibility at all sizes". */
.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 17.5vw, 15rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}

.hero__name span { display: block; }
.hero__name span:last-child { color: var(--red); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: 1rem;
  border-top: var(--rule) solid var(--red);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3rem, 9vh, 6.5rem);
  border-top: var(--rule) solid var(--hairline);
  scroll-margin-top: 3.25rem;
}

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.section__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--red);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

/* Gutter grid: index label parked in the left column on wide screens,
   stacked above the content on narrow ones. */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
}

@media (min-width: 60rem) {
  .grid { grid-template-columns: 14rem 1fr; }
  .grid--wide { grid-template-columns: 14rem minmax(0, 1fr); }
}

.prose p {
  margin: 0 0 1.15em;
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }

.aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside dd { margin: 0 0 0.9rem; color: var(--white); }

/* ── Link rows ──────────────────────────────────────────────────────── */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule) solid var(--hairline);
}

.links li { border-bottom: var(--rule) solid var(--hairline); }

.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--white);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.links a:hover,
.links a:focus-visible { color: var(--red); padding-left: 0.5rem; }

.links .links__note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: var(--rule) solid var(--red);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible { background: var(--red); color: var(--black); }

.btn--solid { background: var(--red); color: var(--black); }
.btn--solid:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ── Tabs (gigs) ────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: var(--rule) solid var(--hairline);
  margin-bottom: 0;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--red); }

/* ── Gig rows ───────────────────────────────────────────────────────── */

.gigs { list-style: none; margin: 0; padding: 0; }

.gigs li { border-bottom: var(--rule) solid var(--hairline); }

.gig {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 1.1rem 0 1.1rem 0;
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, padding-left 0.15s ease, background 0.15s ease;
}

a.gig:hover,
a.gig:focus-visible {
  border-left-color: var(--red);
  padding-left: 0.75rem;
  background: #070707;
}

@media (min-width: 48rem) {
  .gig {
    grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 14rem);
    align-items: baseline;
  }
}

.gig__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.gig__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  color: var(--white);
}

.gig__where {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .gig__where { text-align: right; }
}

/* ── Mixes ──────────────────────────────────────────────────────────── */

/* The SoundCloud visual widget wants a fixed height, not a ratio — below ~380px
   it drops the waveform and the track list, which is the whole point of it. */
.player {
  border: var(--rule) solid var(--hairline);
  background: var(--surface);
  width: 100%;
  height: 380px;
}

@media (min-width: 48rem) { .player { height: 450px; } }

.player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Shown instead of the widget when the handle cannot be resolved at build time.
   Never leave a dead white embed box on the page — link out with intent. */
.player--link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-color: var(--red);
  height: auto;
  min-height: clamp(13rem, 26vw, 18rem);
  transition: background 0.15s ease;
}

.player--link:hover, .player--link:focus-visible { background: #0d0d0d; }

.player__cta {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-top: auto;
}

.player--link:hover .player__cta,
.player--link:focus-visible .player__cta { color: var(--red); }

.player__handle {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.player--link:hover .player__handle { color: var(--white); }

.mixes { list-style: none; margin: 0; padding: 0; }
.mixes li { border-bottom: var(--rule) solid var(--hairline); }

.mix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 1.1rem 0;
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, padding-left 0.15s ease, background 0.15s ease;
}

a.mix:hover,
a.mix:focus-visible {
  border-left-color: var(--red);
  padding-left: 0.75rem;
  background: #070707;
}

@media (min-width: 48rem) {
  .mix { grid-template-columns: 9rem minmax(0, 1fr) 6rem; align-items: baseline; }
}

.mix__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.mix__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  color: var(--white);
}

.mix__note { font-size: 0.8125rem; color: var(--muted); }

.mix__dur {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) { .mix__dur { text-align: right; } }

/* ── Empty state ────────────────────────────────────────────────────── */

.empty {
  border: var(--rule) dashed var(--hairline);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--muted);
}

.empty p { margin: 0 0 1rem; max-width: 48ch; }
.empty p:last-child { margin-bottom: 0; }
.empty a { color: var(--white); border-bottom: 1px solid var(--red); }

/* ── Booking ────────────────────────────────────────────────────────── */

.contact {
  border: var(--rule) solid var(--red);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--white);
  word-break: break-word;
  display: inline-block;
  border-bottom: 2px solid var(--red);
}

.contact__email:hover { color: var(--red); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── htmx states ────────────────────────────────────────────────────── */

/* Anything htmx is mid-swap on dims and stops taking clicks. The indicator
   is a text node the build emits next to each trigger. */
.htmx-request.is-target { opacity: 0.35; pointer-events: none; }

.spinner {
  display: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  align-self: center;
}

.htmx-request .spinner,
.htmx-request.spinner { display: inline; }

/* Sections stream in as htmx resolves them; fade the arrival so a slow
   connection reads as loading rather than as a jump. */
.swapped-in { animation: fade 0.35s ease both; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer {
  border-top: var(--rule) solid var(--red);
  padding-block: clamp(2rem, 6vh, 3.5rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer a { color: var(--muted); transition: color 0.15s ease; }
.footer a:hover, .footer a:focus-visible { color: var(--red); }

.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ── Motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
