/*
 * hyd-fonts.css - Hyd Blotto and Hyd Minar display faces, and where they are used.
 *
 * Owns: the two @font-face declarations, the portal title (the large mapping hyderabad heading
 * on the home desktop) and the live postcard hint.
 * Reads: --desktop-font (defined by the desktop skins, for example hyd-classic-desktop.css)
 * as the fallback stack after the display face.
 * Cascade: linked near the end, after hyd-area-controls.css, so these rules sit on top of the
 * earlier .portal-brand h1 and postcard rules. The font files are in fonts/; Minar is also
 * preloaded in hyd-world.html.
 */

/* Manad’s display faces. Controls and Telugu retain their existing fonts. */

/* Hyd Blotto: used for the postcard hint below. unicode-range limits the face to Latin text and
   the punctuation and symbols the site uses (rupee sign, arrows, curly quotes, dashes), so
   Telugu falls through to the next font. font-display swap shows fallback text until it loads. */
@font-face {
  font-family: 'Hyd Blotto';
  src: url('fonts/Blotto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A9, U+00B0, U+00B7, U+00D7, U+00E0-00E5, U+00E7-00EF, U+00F1-00F6, U+00F9-00FC,
    U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+2039-203A, U+20B9, U+2190, U+2192-2193, U+2197,
    U+2212;
}

/* Hyd Minar: used for the portal title here and by several windows in other sheets
   (hyd-guestbook.css, hyd-wishes.css, hyd-pinball.css, hyd-pocket-places.css and
   hyd-player-layout.css). Same ranges as Blotto plus the bullet, black star and black heart
   (U+2022, U+2605, U+2665). */
@font-face {
  font-family: 'Hyd Minar';
  src: url('fonts/Minar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A9, U+00B0, U+00B7, U+00D7, U+00E0-00E5, U+00E7-00EF, U+00F1-00F6, U+00F9-00FC,
    U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20B9, U+2190, U+2192-2193,
    U+2197, U+2212, U+2605, U+2665;
}

/* Portal title. !important on every declaration except font-synthesis: several earlier sheets
   restyle .portal-brand h1 (hyd-personal-web.css, hyd-desktop-refinement.css and
   hyd-mobile-desktop.css, the last also with !important). font-synthesis none because each
   face has one regular weight. Contextual alternates (calt) are off for the whole title; the
   single i gets ss01 instead (last rule). */
html[data-theme] #world #home .portal-brand h1 {
  font-family: 'Hyd Minar',var(--desktop-font) !important;
  font-size: 60px !important;
  font-weight: 400 !important;
  font-synthesis: none;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  font-feature-settings: 'calt' 0 !important;
  text-shadow: 0 2px 3px #151522b0 !important;
}

/* !important: hyd-postcard.css styles the same hint with a Georgia italic font shorthand;
   this keeps Blotto and upright text whatever the order. */
#hyd-postcard .postcard-note-hint {
  font-family: 'Hyd Blotto',var(--desktop-font) !important;
  font-style: normal !important;
  font-synthesis: none;
}

/* Phones: a 40 px title (60 px above). */
@media (max-width: 620px) {
  html[data-theme] #world #home .portal-brand h1 {
    font-size: 40px !important;
    line-height: 1 !important;
  }
}

/* The i in the title is wrapped in span.minar-title-i in hyd-world.html. It turns on stylistic set 1
   (ss01) for that letter; calt stays off here because this declaration replaces the inherited list. */
html[data-theme] #world #home .portal-brand h1 .minar-title-i {
  font-feature-settings:
    'calt' 0,
    'ss01' 1;
}
