/* Sentient trial: on the routes listed in BaseLayout (SENTIENT_ROUTES), every
   "Instrument Serif" on the page renders in Sentient instead, without
   touching each page's CSS. The family NAME stays "Instrument Serif" on
   purpose: these faces are declared after the real ones, so the browser
   uses them first for that name.

   size-adjust: Sentient is ~45% wider than Instrument Serif at the same
   font-size. Measured against the real Instrument files on site headings,
   the width ratio is 0.687 to 0.713 upright and 0.718 to 0.746 italic, so
   each face is set to the low end: no line is ever wider than it was, and
   every layout, nowrap line and two-line title built for Instrument Serif
   still fits. Remove this file's <link> to roll the trial back.

   Sentient (Indian Type Foundry, via Fontshare), ITF Free Font License:
   self-hosting permitted, redistribution not. */
/* Weight 400 uses the static Regular/Italic files: a face with exactly the
   same descriptors as the real Instrument Serif faces (400, normal/italic)
   and declared after them, so it wins. A weight RANGE does not win that tie,
   which is why the variable files only cover the other weights (the trial
   script sets small titles to 450). All files are the official Fontshare
   ones, unconverted (the licence forbids converting or subsetting). */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 68.5%;
  src: url('/fonts/sentient-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  size-adjust: 71.5%;
  src: url('/fonts/sentient-400-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 401 800;
  font-display: swap;
  size-adjust: 68.5%;
  src: url('/fonts/sentient-variable.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 401 800;
  font-display: swap;
  size-adjust: 71.5%;
  src: url('/fonts/sentient-variable-italic.ttf') format('truetype');
}

/* One colour per title. The trial script marks the inline pieces inside
   each Sentient title (.sx-plain): they take the title's own colour, and
   lose underlines, highlight gradients and borders. Italic is kept, so
   emphasis is italics only. .sx-noafter / .sx-nobefore drop a pseudo
   element the script identified as a drawn underline. */
body[data-type="sentient"] .sx-plain {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body[data-type="sentient"] .sx-noafter::after,
body[data-type="sentient"] .sx-nobefore::before { content: none !important; }
