/*
 * Type for The Horizon Living, per Brand Atlas section 03.
 *
 * The Atlas names exactly three roles and one cut for each:
 *
 *   HEADINGS / DISPLAY   Lora Medium
 *   SUBHEADINGS          Avenir Roman, all caps, tracking 50
 *   BODY COPY            Avenir Book, ample leading
 *
 * So there are three families here and no weight axis to speak of. Avenir
 * Book and Avenir Roman are BOTH weight 400: they are different cuts, not
 * different weights, which is why each gets its own family name rather than
 * a font-weight to tell them apart.
 *
 * This replaced a weight ladder that asked for 300, 600 and 700. Avenir has
 * none of those (Light 300, Book 400, Roman 400, Medium 500, Black 800,
 * Heavy 900), and CSS resolves a missing weight above 500 UPWARDS, so every
 * semibold label was one deploy away from rendering in Black. The Atlas ladder
 * removes the problem rather than working around it: nothing asks for a
 * weight that does not exist.
 *
 * Lora: SIL Open Font License 1.1, fsType 0. Its licence at
 * /assets/horizon/fonts/OFL.txt must travel with these files.
 * Avenir: Linotype/Monotype, under the web licence Avenir Senior Living holds.
 */

/* ------------------------------------------ headings and display: Lora -- */

@font-face {
  font-family: 'Lora';
  src: url('/assets/horizon/fonts/lora-variable-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Real italic. The pull quotes were being synthesised, the browser slanting
   the roman rather than drawing the italic letterforms, which in a serif is
   visible: Lora's italic 'a' and 'e' are different shapes, not sloped ones. */
@font-face {
  font-family: 'Lora';
  src: url('/assets/horizon/fonts/lora-italic-variable-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------- body copy: Avenir Book -- */

@font-face {
  font-family: 'Avenir Book';
  src: url('/assets/horizon/fonts/avenir-book-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------- emphasis: Avenir 85 Heavy -- */

/*
 * THE FAMILY'S REAL BOLD, AND THE REASON IT ARRIVED LATE.
 *
 * Brand compliance Round 3 A4 asks for true Avenir Bold on the Day in the Life
 * line items and says it is licensed. It is, but nothing called "Avenir Bold"
 * exists: Avenir's weights are named, not numbered, and the family in use runs
 * Light 35, Book 45, Roman 55, Medium 65, HEAVY 85, Black 95. Heavy is the
 * bold. The foundry agrees: AvenirLTStd-Heavy declares usWeightClass 700.
 *
 * The licensed set also contains AvenirNextLTPro-Bold, which is genuinely
 * called Bold and is NOT this typeface: Avenir Next is a 2004 redesign with
 * different letterforms. Taking it would have put two Avenirs on one page.
 *
 * IT IS THE SAME DESIGN AS WHAT ALREADY SHIPS, CHECKED RATHER THAN ASSUMED.
 * The shipped faces carry Apple's naming ("Avenir Book", PostScript
 * Avenir-Book) and the licensed files carry Adobe's ("Avenir LT Std", 45
 * Book), which is the kind of difference that hides a different cut. Compared
 * directly: identical unitsPerEm 1000, xHeight 468, capHeight 708, and
 * identical advance widths on every glyph sampled. Same outlines, different
 * name tables. So this Heavy sits with them rather than beside them.
 *
 * DECLARED AT 400 UNDER ITS OWN FAMILY NAME, like Book and Roman above, and
 * for the same reason recorded there: this project addresses Avenir cuts by
 * NAME and never by weight, because CSS resolves a missing weight above 500
 * upwards and a `font-weight: 700` on a face that lacks one renders synthesized
 * Black. Asking for this family gets these outlines and nothing else can.
 */
@font-face {
  font-family: 'Avenir Heavy';
  src: url('/assets/horizon/fonts/avenir-heavy-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*
 * SEMI-BOLD: AVENIR 65 MEDIUM, Round 6 items 12 and 15 (Jose, 6 October 2026):
 * the Your Home card and box titles "in a semi-bold weight, which is a clear
 * step up from the current weight but not as heavy as full bold". Medium is
 * that step in this family: Roman 55, MEDIUM 65 (usWeightClass 550), Heavy 85.
 * From the licensed AvenirLTStd-Medium.otf Lisa supplied, subset to exactly the
 * codepoints the Heavy face above ships; unitsPerEm, xHeight and capHeight match
 * the faces already here. Declared at 400 under its own name, like the others.
 */
@font-face {
  font-family: 'Avenir Medium';
  src: url('/assets/horizon/fonts/avenir-medium-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------- subheadings: Avenir Roman -- */

@font-face {
  font-family: 'Avenir Roman';
  src: url('/assets/horizon/fonts/avenir-roman-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
