/* CreativLoop, the look "Highlight One Word": one family, one scale, one highlighter. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: block;
}

:root {
  /* Colour: ink and paper carry everything; the highlighter marks one thing. */
  --ink: #141311;
  --ink-raised: #22201c;
  --paper: #f4f1e8;
  --paper-sunk: #e9e5d9;
  --mark: #f4e32c;
  --grey-on-ink: #a5a196;
  --grey-on-paper: #5c5950;
  --rule-on-ink: #3a3732;
  --rule-on-paper: #cfcabb;

  /* Type: one family, three weights, one scale (x1.33 up to 32, then x1.5). */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t1: 14px;   /* label */
  --t2: 18px;   /* body */
  --t3: 24px;   /* lead */
  --t4: 32px;   /* title */
  --t5: 48px;   /* head */
  --t6: 72px;   /* display */
  --t7: 108px;  /* poster */
  --t8: 162px;  /* giant */
  --t9: 243px;  /* billboard */
  --black: 900;
  --bold: 700;
  --regular: 400;
}

/* The wordmark: the name, set in the family's Black, tight. Nothing added. */
.wm {
  font-family: var(--font);
  font-weight: var(--black);
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

/* The lockup: the wordmark, then "Podcast" at half its size, so the descriptor
   still reads in a feed. Size a lockup by its font-size; both parts follow. */
.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  white-space: nowrap;
}
.wm-desc {
  font-family: var(--font);
  font-size: 0.5em;
  font-weight: var(--bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* The mark: CL in Black on the highlighter. Size it by width; the letters follow. */
.mark-cl {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--mark);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--black);
  letter-spacing: -0.06em;
  line-height: 1;
}
.mark-cl span { transform: translate(-0.03em, -0.01em); }
.mark-cl.round { border-radius: 50%; }
.mark-cl.on-ink { background: var(--ink); color: var(--mark); }

/* Tag: a neutral label block. */
.tag {
  display: inline-block;
  font-family: var(--font);
  font-weight: var(--bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1;
  padding: 0.38em 0.55em 0.32em;
}
.on-ink .tag { background: var(--paper); color: var(--ink); }
.on-paper .tag, .on-mark .tag { background: var(--ink); color: var(--paper); }

/* The highlighter: one word per piece, the word to read first. */
mark, .hl {
  background: var(--mark);
  color: var(--ink);
  padding: 0.02em 0.07em 0;
  margin: 0 -0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* On a highlighter ground the mark flips: ink block, yellow word. */
.on-mark mark, .on-mark .hl { background: var(--ink); color: var(--mark); }

/* Beside the network's own logo the podcast adds one highlighted word, never a second name. */
.net-word {
  display: inline-block;
  background: var(--mark);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.22em 0.4em 0.18em;
}

.on-ink { background: var(--ink); color: var(--paper); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-mark { background: var(--mark); color: var(--ink); }

/* Photographs run black and white so the highlighter stays the only colour. */
.photo-bw { filter: grayscale(1) contrast(1.12) brightness(0.96); }
