/* Each role's page has a look of its own (Mat, 2026-11-15), from
   subTotem's own colours and four of its own: artists black (as the rest
   of subTotem), listeners white (paper), promoters concrete grey, producers
   stone grey, managers oxblood, labels aubergine. A page says which with
   <html data-look="...">; the waiting list takes the look of the role it's
   opened for (?role=).

   The pages' yellow does two jobs, so it's two settings:
     --accent  writing, lines, bullets and focus rings in yellow
     --fill    a yellow block with writing on it (--on-fill): buttons,
               flags, bands, the tag on an open role
   On a dark page both are yellow, as before. On a light one yellow writing
   can't be read (yellow on paper is 1.1 to 1), so --accent turns black and
   yellow is kept for the fills. Loaded after each page's own styles and
   roles.css. */

:root {
  --accent: var(--yel);
  --fill: var(--yel);
  --on-fill: var(--on-yel);
  --fill-hover: var(--ink);
  --on-fill-hover: var(--bg);
  --tint: rgba(234, 251, 23, 0.07);
  --hatch: rgba(234, 251, 23, 0.55);
}

/* ---------- the dark looks: paper writing, yellow as on the artist page ---------- */

/* Promoters: concrete grey. The soft and faint writing are stronger than on
   black to stay readable (6.6 and 5.3 to 1). */
html[data-look="concrete"] {
  --bg: #4A4B48;
  --ink-soft: rgba(252, 249, 245, 0.85);
  --ink-faint: rgba(252, 249, 245, 0.72);
  --rule: rgba(252, 249, 245, 0.32);
  --field: rgba(252, 249, 245, 0.06);
  --on-fill-hover: #0C0D0C;
  --tint: rgba(234, 251, 23, 0.1);
}

/* Managers: oxblood (Mat, 2026-11-15). */
html[data-look="oxblood"] {
  --bg: #5B2027;
  --ink-soft: rgba(252, 249, 245, 0.85);
  --ink-faint: rgba(252, 249, 245, 0.72);
  --rule: rgba(252, 249, 245, 0.3);
  --field: rgba(252, 249, 245, 0.06);
  --on-fill-hover: #0C0D0C;
  --tint: rgba(234, 251, 23, 0.1);
}

/* Labels: aubergine (Mat, 2026-11-15). */
html[data-look="aubergine"] {
  --bg: #3A2E4A;
  --ink-soft: rgba(252, 249, 245, 0.85);
  --ink-faint: rgba(252, 249, 245, 0.72);
  --rule: rgba(252, 249, 245, 0.3);
  --field: rgba(252, 249, 245, 0.06);
  --on-fill-hover: #0C0D0C;
  --tint: rgba(234, 251, 23, 0.1);
}

/* ---------- the light looks: black writing, yellow for fills ---------- */

/* Listeners: white (paper). */
html[data-look="paper"] {
  --bg: #FCF9F5;
  --ink: #0C0D0C;
  --ink-soft: rgba(12, 13, 12, 0.76);
  --ink-faint: rgba(12, 13, 12, 0.6);
  --rule: rgba(12, 13, 12, 0.22);
  --field: rgba(12, 13, 12, 0.03);
  --accent: #0C0D0C;
  --tint: rgba(234, 251, 23, 0.4);
  --hatch: rgba(12, 13, 12, 0.5);
}

/* Producers: stone grey. */
html[data-look="stone"] {
  --bg: #C6C5BE;
  --ink: #0C0D0C;
  --ink-soft: rgba(12, 13, 12, 0.8);
  --ink-faint: rgba(12, 13, 12, 0.7);
  --rule: rgba(12, 13, 12, 0.26);
  --field: rgba(252, 249, 245, 0.3);
  --accent: #0C0D0C;
  --tint: rgba(234, 251, 23, 0.55);
  --hatch: rgba(12, 13, 12, 0.5);
}

/* ---------- what black writing can't show on the light pages ---------- */

/* Yellow next to paper or stone hardly differs in lightness, so a yellow
   block there gets a thin black edge. */
html:is([data-look="paper"], [data-look="stone"]) :is(.btn.fill, .flag, .tag-open, .tag.now, .submit) {
  box-shadow: inset 0 0 0 1px #0C0D0C;
}

/* The yellow word in a headline is a yellow block instead, as the artist
   page's own "add" heading does. */
html:is([data-look="paper"], [data-look="stone"]) h1 .y {
  width: fit-content; margin-left: -0.08em; padding: 0.04em 0.08em 0.12em;
  background: var(--fill); color: var(--on-fill);
}

/* The plan to choose, at the head of what you get: yellow writing on a dark
   page, a yellow tab on a light one. */
html:is([data-look="paper"], [data-look="stone"]) .ft th.on {
  padding-top: 12px; padding-right: 12px; color: var(--on-fill);
  /* Starts part way into the gap before it, so it never touches the plan
     to its left. */
  background: linear-gradient(90deg, transparent clamp(4px, 0.7vw, 10px), var(--fill) 0);
}
html:is([data-look="paper"], [data-look="stone"]) .ft th.on small { color: inherit; }

/* Links and questions turned yellow on hover; with black writing they're
   underlined instead. */
html:is([data-look="paper"], [data-look="stone"]) :is(a, summary):hover {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}

/* select.js draws a drop-down's arrow in yellow; black here. */
html:is([data-look="paper"], [data-look="stone"]) select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C0D0C' stroke-width='1.8'/%3E%3C/svg%3E") !important;
}

/* The role you're on, in the header: yellow writing on a dark page, a
   yellow block on a light one. */
html:is([data-look="paper"], [data-look="stone"]) .nav .rnav[aria-current] {
  background: var(--fill); color: var(--on-fill); box-shadow: 0 0 0 4px var(--fill); text-decoration: none;
}
