/* ===========================================================================
   sldrz — components.css
   The shared primitives every section is built from. Tokens only.
   If you want a different look, change the site's colours, layout or Advanced design — not this file.
   =========================================================================== */

/* --- button ------------------------------------------------------------- */

.s-btn {
  --sx-btn-bg: var(--s-bg-elev);
  --sx-btn-fg: var(--s-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-space-2);
  min-height: 2.5rem;
  padding: var(--s-space-2) var(--s-space-4);
  background: var(--sx-btn-bg);
  color: var(--sx-btn-fg);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border-strong);
  border-radius: var(--s-radius-md);
  font-size: var(--s-text-sm);
  font-weight: var(--s-weight-medium);
  letter-spacing: var(--s-tracking-normal);
  text-transform: var(--s-btn-case);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--s-dur-fast) var(--s-ease),
              border-color var(--s-dur-fast) var(--s-ease),
              transform var(--s-dur-fast) var(--s-ease);
}
.s-btn:hover { border-color: var(--s-accent); transform: translateY(-1px); }
.s-btn:active { transform: translateY(0); }
.s-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.s-btn--primary {
  --sx-btn-bg: var(--s-accent);
  --sx-btn-fg: var(--s-accent-fg);
  border-color: var(--s-accent);
}
.s-btn--primary:hover { --sx-btn-bg: color-mix(in srgb, var(--s-accent) 86%, var(--s-fg)); }

.s-btn--ghost {
  --sx-btn-bg: transparent;
  border-color: var(--s-border);
}
.s-btn--ghost:hover { --sx-btn-bg: var(--s-bg-elev); }

.s-btn--icon { padding: var(--s-space-2); min-width: 2.5rem; }
.s-btn--sm { min-height: 2rem; padding: var(--s-space-1) var(--s-space-3); font-size: var(--s-text-xs); }
.s-btn--block { width: 100%; }

.s-icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  mix-blend-mode: normal;
}
.s-icon--lg { width: 1.5em; height: 1.5em; }

/* --- chip --------------------------------------------------------------- */

.s-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-1);
  padding: var(--s-space-1) var(--s-space-2);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-pill);
  background: var(--s-bg-sunken);
  color: var(--s-fg-muted);
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.s-chip--ok { color: var(--s-success); border-color: color-mix(in srgb, var(--s-success) 40%, transparent); }
.s-chip--warn { color: var(--s-warn); border-color: color-mix(in srgb, var(--s-warn) 40%, transparent); }
.s-chip--off { color: var(--s-danger); border-color: color-mix(in srgb, var(--s-danger) 40%, transparent); }
.s-chip--accent { color: var(--s-accent); border-color: color-mix(in srgb, var(--s-accent) 45%, transparent); }

/* --- surfaces ----------------------------------------------------------- */

.s-card {
  background: var(--s-bg-elev);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-md);
  box-shadow: var(--s-shadow-1);
  overflow: hidden;
}

.s-panel {
  background: var(--s-bg-elev);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-md);
  padding: var(--s-space-5);
}

/* --- media frame -------------------------------------------------------- */

.s-media {
  position: relative;
  display: block;
  aspect-ratio: var(--sx-ratio, var(--s-ratio-square));
  background: var(--s-bg-sunken);
  overflow: hidden;
}
.s-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--s-dur-slow) var(--s-ease);
}
.s-media--hero { --sx-ratio: var(--s-ratio-hero); }
.s-media--card { --sx-ratio: var(--s-ratio-card); }
.s-media__over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--s-space-3);
  background: linear-gradient(to top, var(--s-overlay), transparent 65%);
}

/* --- link row (stores, streams, socials) -------------------------------- */

.s-linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- fields ------------------------------------------------------------- */

.s-field { display: grid; gap: var(--s-space-1); }
.s-field__label {
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
  color: var(--s-fg-muted);
}
.s-field__input {
  width: 100%;
  min-height: 2.5rem;
  padding: var(--s-space-2) var(--s-space-3);
  background: var(--s-bg-sunken);
  color: var(--s-fg);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border-strong);
  border-radius: var(--s-radius-sm);
}
.s-field__input::placeholder { color: var(--s-fg-faint); }
.s-field__note { font-size: var(--s-text-xs); color: var(--s-fg-muted); }

/* --- definition list used by press/credits ------------------------------ */

.s-defs { display: grid; gap: var(--s-space-2); margin: 0; }
.s-defs__row {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr;
  gap: var(--s-space-3);
  padding-bottom: var(--s-space-2);
  border-bottom: var(--s-border-w) var(--s-rule-style) var(--s-border);
  font-size: var(--s-text-sm);
}
.s-defs__key {
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
  color: var(--s-fg-muted);   /* small text: muted (4.5:1), not faint (3:1) - 1.18 */
}

/* --- the player bar (core/player.js) ------------------------------------ */

.s-nowplay {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s-space-3);
  padding: var(--s-space-2) var(--s-gutter);
  background: color-mix(in srgb, var(--s-bg-sunken) 94%, transparent);
  backdrop-filter: blur(.7rem);
  border-top: var(--s-border-w) var(--s-rule-style) var(--s-border-strong);
  box-shadow: var(--s-shadow-2);
}
.s-nowplay[hidden] { display: none; }
.s-nowplay__art { width: 2.75rem; height: 2.75rem; flex: none; background: var(--s-bg-elev); }
.s-nowplay__art img { width: 100%; height: 100%; object-fit: cover; }
.s-nowplay__meta { min-width: 0; flex: 1 1 auto; }
.s-nowplay__title {
  font-size: var(--s-text-sm);
  font-weight: var(--s-weight-medium);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-nowplay__sub {
  font-size: var(--s-text-xs);
  color: var(--s-fg-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-nowplay__controls { display: flex; align-items: center; gap: var(--s-space-1); flex: none; }
.s-nowplay__seek {
  flex: 2 1 10rem;
  display: none;
  align-items: center;
  gap: var(--s-space-2);
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  color: var(--s-fg-muted);
}
.s-nowplay__bar {
  position: relative;
  flex: 1 1 auto;
  height: .35rem;
  background: var(--s-bg-elev);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-pill);
  cursor: pointer;
}
.s-nowplay__fill {
  position: absolute;
  inset-block: 0; inset-inline-start: 0;
  width: 0%;
  background: var(--s-accent);
  border-radius: var(--s-radius-pill);
}

@media (min-width: 48rem) {
  .s-nowplay__seek { display: flex; }
}

/* --- embeds ------------------------------------------------------------- */

.s-embed {
  position: relative;
  aspect-ratio: var(--sx-ratio, var(--s-ratio-hero));
  background: var(--s-bg-sunken);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
}
.s-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- the webring strip (site.json "webring"; filled by render.js / build.py) --
   First on the page, above the header (since 1.14): Previous, the ring's name, Random,
   Next. It spans every column of a layout that lays the page out as a grid, and it
   scrolls away with the page (a sticky header then takes the top). */
.s-ring {
  position: relative;
  z-index: 2;           /* above a banner picture a layout pins behind the page (parallax) */
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 var(--s-space-3);
  padding: var(--s-space-1) var(--s-gutter);
  border-bottom: var(--s-border-w) var(--s-rule-style) var(--s-border);
  background: var(--s-bg);
  color: var(--s-fg-muted);
  font-family: var(--s-font-body);
  font-size: var(--s-text-sm);
}
.s-ring a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-1);
  min-height: 2.5rem;
  padding: 0 var(--s-space-2);
  border-radius: var(--s-radius-sm);
  color: inherit;
  text-decoration: none;
}
.s-ring a:hover { color: var(--s-accent); text-decoration: underline; text-underline-offset: .2em; }
.s-ring a:focus-visible { outline: none; box-shadow: var(--s-ring); }
.s-ring .s-icon { width: 1em; height: 1em; }
.s-ring__name { color: var(--s-fg); font-family: var(--s-font-display); font-weight: var(--s-weight-medium); }
/* the strip sits above the header, so a header that sticks once you scroll still covers
   nothing: it only starts sticking after the strip has gone up */

/* --- "Report this site" (1.21): the last line of every page of a site published through sldrz --- */
.s-report {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--s-space-3) var(--s-gutter) var(--s-space-4);
  text-align: center;
  font-size: var(--s-text-xs);
  background: var(--s-bg);
  color: var(--s-fg-muted);
}
.s-report__link { color: var(--s-fg-muted); text-decoration: underline; text-underline-offset: .2em; }
.s-report__link:hover { color: var(--s-fg); }
