/* ----------------------------------------------------------
   SEED COLOUR & TINTED ACCENTS
---------------------------------------------------------- */

:root {
  --seed: #221C35; /* #221C35; #2B303E; */
  --accent: var(--seed);
  --bg: #f8f8f8;
  --fg: #222;

  /* Default site name font settings 
  --sitename-font-colour: white;
  --sitename-font-family: inherit;
  --sitename-font-size: 1.5rem;
  --sitename-font-weight: 400;
  --sitename-letter-spacing: 0;
  --sitename-vertical-offset: 0;
 */

  /* Agent Diamond brand name font settings */
  --sitename-font-colour: white;
  --sitename-font-family: 'Sankofa Display';
  --sitename-font-size: xx-large;
  --sitename-font-weight: bold; /* 400 is default */
  --sitename-letter-spacing: 0.05em;
  --sitename-vertical-offset: -0.15em; /* Pixels are precise and do not scale well, please use em's */

  /* Responsive heading scale */
  --h1-size: 1.6rem;
  --h2-size: 1.4rem;
  --h3-size: 1.2rem;
  --h4-size: 1rem;
  --h5-size: 0.9rem;
  --h6-size: 0.85rem;

  /* Link styling */
  --link: var(--seed);
  --link-hover: color-mix(in srgb, var(--seed) 60%, black);

  /* Univeral rail tints */
  --accent-rail: color-mix(in srgb, var(--seed) 40%, white);
  --accent-rail-hover: color-mix(in srgb, var(--seed) 60%, white);

  /* Global spacing */
  --section-space: 2rem;
  --layout-horizontal-padding: 1.5rem;
}

@font-face {
  font-family: 'Sankofa Display';
  src: url('/core/assets/fonts/sankofa/sankofa400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@media (min-width: 768px) {
  :root {
    --h1-size: 1.9rem;
    --h2-size: 1.6rem;
    --h3-size: 1.35rem;
    --h4-size: 1.05rem;
    --h5-size: 0.95rem;
    --h6-size: 0.9rem;
  }
}

/* ----------------------------------------------------------
   SPACING RULES
---------------------------------------------------------- */

section,
article,
main {
  margin-bottom: var(--section-space);
}

section:last-child,
article:last-child,
main:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   FLOW / STACK LAYOUT UTILITY
---------------------------------------------------------- */

.flow > * + * {
  margin-top: var(--flow-space, 2rem);
}

/* ----------------------------------------------------------
   GLOBAL THEME SETTNGS
---------------------------------------------------------- */

/* Site name font */
.site-name {
  font-colour: var(--sitename-font-colour);
  font-family: var(--sitename-font-family);
  font-position: var(--sitename-font-position);
  font-size: var(--sitename-font-size);
  font-weight: var(--sitename-font-weight);
  letter-spacing: var(--sitename-letter-spacing);
  padding-left: var(--layout-horizontal-padding);
  transform: translateY(var(--sitename-vertical-offset));
}

/* Light seed tint for backgrounds */
.seed-tint {
  background: color-mix(in srgb, var(--seed) 10%, white);
}

/* Stronger tint for emphasis */
.seed-tint-strong {
  background: color-mix(in srgb, var(--seed) 20%, white);
}

/* Seed border accent */
.seed-border {
  border-left: 4px solid var(--seed);
}

/* Seed underline accent */
.seed-underline {
  border-bottom: 2px solid var(--seed);
  padding-bottom: 0.25rem;
}

/* ----------------------------------------------------------
   RESET / NORMALIZE
---------------------------------------------------------- */

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

html {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

ul, ol {
  padding-left: 1.25rem;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ----------------------------------------------------------
   GLOBAL HEADING NORMALISATION
---------------------------------------------------------- */

:root h1,
:root h2,
:root h3,
:root h4,
:root h5,
:root h6 {
  margin: 0 0 0.75rem 0;
  padding: 0;
  color: var(--seed);
  font-weight: inherit;
  line-height: 1.2;
}

/* Responsive heading sizes */
:root h1 { font-size: var(--h1-size); }
:root h2 { font-size: var(--h2-size); }
:root h3 { font-size: var(--h3-size); }
:root h4 { font-size: var(--h4-size); }
:root h5 { font-size: var(--h5-size); }
:root h6 { font-size: var(--h6-size); }

/* Hierarchy styling */
:root h1,
:root h2,
:root h3 {
  padding-bottom: 0.25rem;
}

:root h4 {
  font-weight: 700;
  text-transform: uppercase;
}

:root h5,
:root h6 {
  font-weight: 600;
}

/* ----------------------------------------------------------
   TOOLTIP SYSTEM
---------------------------------------------------------- */

abbr,
[data-tip] {
  position: relative;
  cursor: help;
  text-decoration: none;
}

abbr {
  border-bottom: 1px dotted var(--seed);
}

[data-tip]:hover::after,
[data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 0.55rem);
  background: #fff;
  color: var(--seed);
  padding: 0.35rem 0.55rem 0.45rem;
  border: 1px solid var(--seed);
  border-radius: 0.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

[data-tip]:hover::before,
[data-tip]:focus::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: calc(100% + 0.05rem);
  width: 0;
  height: 0;
  border-left: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  border-bottom: 0.5rem solid var(--seed);
  z-index: 21;
}


/* ----------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}


/* ----------------------------------------------------------
   GLOBAL LAYOUT
---------------------------------------------------------- */

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
}


/* ----------------------------------------------------------
   GLOBAL LINKS
---------------------------------------------------------- */

a {
  color: var(--link);
  text-decoration-color: var(--link);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 0;
  background: var(--seed);
  color: #fff;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.primary-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
}

.header-cta {
  border: 1px solid white;
}


/* ----------------------------------------------------------
   SIDEBAR
---------------------------------------------------------- */

.sidebar {
  width: 260px;
  background: #f8f8f8;
  padding: var(--layout-horizontal-padding);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--seed) 10%, white);
}

/* Sidebar spacing */
.sidebar .search-block {
  margin-bottom: 1.5rem;
}

.sidebar nav {
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   SIDEBAR TITLES
---------------------------------------------------------- */

.sidebar-title,
.sidebar h2,
.sidebar h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--seed);
}


/* ----------------------------------------------------------
   SIDEBAR NAV LIST
---------------------------------------------------------- */

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}


/* ----------------------------------------------------------
   LINK BASE STYLE
---------------------------------------------------------- */

.sidebar nav a {
  position: relative;
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  border-radius: 4px;
  color: var(--seed);
  text-decoration: none;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
}

/* FIXED: universal hover tint */
.sidebar nav a:hover {
  background: color-mix(in srgb, var(--seed) 10%, white);
}


/* ----------------------------------------------------------
   LINK INDICATORS (all links)
---------------------------------------------------------- */

.sidebar nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-rail);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.sidebar nav a:hover::before {
  background: var(--accent-rail-hover);
}


/* ----------------------------------------------------------
   ACTIVE LINK — REAL STATE
---------------------------------------------------------- */

.sidebar nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--seed) 12%, white);
  font-weight: 600;
  color: var(--seed);
}

.sidebar nav a[aria-current="page"]::before {
  background: var(--seed);
  width: 4px;
}


/* ----------------------------------------------------------
   ACTIVE LINK — DEV / TESTING ONLY
---------------------------------------------------------- */

.sidebar nav a.active {
  background: color-mix(in srgb, orange 10%, white);
  font-weight: 600;
  color: var(--seed);
}

.sidebar nav a.active::before {
  background: orange;
  width: 4px;
}


/* ----------------------------------------------------------
   SIDEBAR SECTION SEPARATORS
---------------------------------------------------------- */

.sidebar section,
.sidebar nav {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--seed) 25%, #ddd);
}

.sidebar section:last-child,
.sidebar nav:last-child {
  border-bottom: none;
}


/* ----------------------------------------------------------
   SIDEBAR SEARCH
---------------------------------------------------------- */

.sidebar .search-block input[type="search"] {
  width: 100%;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--seed) 40%, #ccc);
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  color: var(--fg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .search-block input[type="search"]:focus {
  border-color: var(--seed);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--seed) 30%, transparent);
  outline: none;
}


/* ----------------------------------------------------------
   SIDEBAR STATUS
---------------------------------------------------------- */

.sidebar-status ul {
  list-style: none;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.sidebar-status li {
  position: relative;
  overflow: visible;
  padding-right: 1.4rem;
  margin: 0.35rem 0;
  color: var(--seed);
  display: block;
}

.sidebar-status li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #000;
  z-index: 2;
}

.sidebar-status li.status-green::after {
  background: #2ecc71;
}

.sidebar-status li.status-orange::after {
  background: #f39c12;
}

.sidebar-status li.status-red::after {
  background: #e74c3c;
}


/* ----------------------------------------------------------
   SIDEBAR FOOTER
---------------------------------------------------------- */

.sidebar-footer {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--seed) 60%, #555);
  opacity: 0.8;
  margin-top: auto;
  line-height: 1.4;
}


/* ----------------------------------------------------------
   MAIN CONTENT
---------------------------------------------------------- */

.main-content {
  flex: 1;
  padding: 2rem;
  background: #fff;
  overflow-y: auto;
  border-left: 1px solid var(--seed);
  border-right: 1px solid var(--seed);
}

.breadcrumbs ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
  content: "";
}


/* ----------------------------------------------------------
   RELEASE HEADER
---------------------------------------------------------- */

.release-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.release-cover img {
  border-radius: 4px;
}


/* ----------------------------------------------------------
   TRACKLIST
---------------------------------------------------------- */

.tracklist ol {
  padding-left: 1.5rem;
}

.tracklist li {
  margin-bottom: 0.5rem;
}


/* ----------------------------------------------------------
   ROLE BADGES
---------------------------------------------------------- */

.role-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  background: color-mix(in srgb, var(--seed) 15%, white);
  color: var(--seed);
  border: 1px solid color-mix(in srgb, var(--seed) 40%, white);
}

.role-vocals {
  background: color-mix(in srgb, var(--seed) 30%, white);
}

.role-guitars {
  background: color-mix(in srgb, var(--seed) 20%, white);
}

.role-producer {
  background: color-mix(in srgb, var(--seed) 10%, white);
}


/* ----------------------------------------------------------
   PROFILE LINKS
---------------------------------------------------------- */

.profile-links {
  display: inline-block;
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  background: var(--seed);
  color: gold;
  border: 1px solid color-mix(in srgb, var(--seed) 40%, white);
}

.collective-performer {
  background: var(--seed);
  color: ghostwhite;
  border: 2px dotted gold;
}


/* ----------------------------------------------------------
   FORMS & INPUTS
---------------------------------------------------------- */

form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--seed);
  font-size: 0.9rem;
}

input,
textarea {
  background: #fff;
  color: var(--fg);
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--seed) 40%, #ccc);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--seed);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--seed) 30%, transparent);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: var(--seed);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: color-mix(in srgb, var(--seed) 80%, black);
}


/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

.site-footer {
  background: var(--seed);
  color: #eee;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-meta,
.footer-social {
  margin-bottom: 1rem;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}


/* ----------------------------------------------------------
   ACCESSIBILITY HELPERS
---------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------
   SEARCH BLOCK
---------------------------------------------------------- */

.search-block {
  margin-bottom: 2rem;
}

.search-block input[type="search"] {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}


/* ----------------------------------------------------------
   META LIST
---------------------------------------------------------- */

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
}

.meta-list dt {
  font-weight: bold;
  color: var(--seed);
}

.meta-list dd {
  margin: 0;
}


/* ----------------------------------------------------------
   TAGS
---------------------------------------------------------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 0.25rem 0.75rem;
  background: var(--seed);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
}


/* ----------------------------------------------------------
   LINEUP GRID
---------------------------------------------------------- */

.lineup-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 1fr 2fr;
  gap: 0.25rem 0;
  margin: 1.5rem 0;
}

/* Virtual rows */
.lineup-row {
  display: contents;
}

/* Header cells */
.lineup-header span {
  font-weight: bold;
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

/* Rounded header edges */
.lineup-header span:first-child {
  border-top-left-radius: 4px;
}

.lineup-header span:last-child {
  border-top-right-radius: 4px;
}

/* Body cells */
.lineup-row span {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

/* Optional: subtle column separators */
.lineup-row span + span,
.lineup-header span + span {
  border-left: 1px solid #f5f5f5;
}


/* ----------------------------------------------------------
   CREDITS GRID: MOBILE STACKING
---------------------------------------------------------- */

@media (max-width: 600px) {
  .lineup-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lineup-header {
    display: none;
  }

  .lineup-row span {
    padding: 0.5rem 1rem;
  }

  /* First cell becomes the label */
  .lineup-row span:nth-child(1) {
    font-weight: bold;
    background: #fafafa;
  }

  /* Optional zebra striping */
  .lineup-row span:nth-child(odd) {
    background: #fafafa;
  }
}


/* ----------------------------------------------------------
   HTML SPECTRUM TEST AREA
---------------------------------------------------------- */

.html-spectrum blockquote {
  border-left: 4px solid var(--seed);
  padding-left: 1rem;
  margin: 1rem 0;
  color: #444;
}

.html-spectrum pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

.html-spectrum figure {
  margin: 1.5rem 0;
}

.html-spectrum figcaption {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}
