@charset "UTF-8";

/* ========================================
   CARD NOTE FONTS
   The web fonts in the card note menu (templates/card-set/_default/_blocks/fonts.html).
   Loaded wherever a card note is shown: write-card (write-card.php) and the review and
   pickup pages (Card_Sprout::getCardFromDB()). A browser downloads a font only when text
   on the page uses it, so a card's pickup page fetches only that card's font.

   Files: cache.e-cards.com/fonts/google/<Family_Name>/ (ecardsmedia bucket), made with
   other/fonts/make-woff2.py (Latin, Latin-1, Latin Extended-A, punctuation, €).
   Served as font/woff2 with access-control-allow-origin: * (CloudFront fonts/* behavior).
   A changed file gets a new name (-v02), as for card media.

   Quicksand, Architects Daughter and Caveat Brush are the site's own fonts: their
   @font-face rules are in ec-core.css.
   If a font can't be shown, the note falls back to Card_Sprout::NOTE_FONT_FALLBACK.

   size-adjust evens the fonts out, so a note at size 1 looks about the same size in every
   font (Helvetica as the guide; measured from each font's small letters, then judged by eye,
   since loops make handwriting look larger). Switching fonts then doesn't make the note jump.
   Nunito, Lora and Shadows Into Light Two need none.
   ======================================== */

/* Plain */
@font-face {
	font-family: 'Nunito';
	src: url('https://cache.e-cards.com/fonts/google/Nunito/Nunito-VariableFont_wght.woff2') format('woff2');
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Nunito';
	src: url('https://cache.e-cards.com/fonts/google/Nunito/Nunito-Italic-VariableFont_wght.woff2') format('woff2');
	font-weight: 200 1000;
	font-style: italic;
	font-display: swap;
}

/* Classic */
@font-face {
	font-family: 'Lora';
	src: url('https://cache.e-cards.com/fonts/google/Lora/Lora-VariableFont_wght.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Lora';
	src: url('https://cache.e-cards.com/fonts/google/Lora/Lora-Italic-VariableFont_wght.woff2') format('woff2');
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* Handwritten */
@font-face {
	font-family: 'Caveat';
	src: url('https://cache.e-cards.com/fonts/google/Caveat/Caveat-VariableFont_wght.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	size-adjust: 130%;
}
@font-face {
	font-family: 'Shadows Into Light Two';
	src: url('https://cache.e-cards.com/fonts/google/Shadows_Into_Light_Two/ShadowsIntoLightTwo-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Homemade Apple';
	src: url('https://cache.e-cards.com/fonts/google/Homemade_Apple/HomemadeApple-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 90%;
}
@font-face {
	font-family: 'Momo Signature';
	src: url('https://cache.e-cards.com/fonts/google/Momo_Signature/MomoSignature-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 90%;
}

/* Script */
@font-face {
	font-family: 'Oooh Baby';
	src: url('https://cache.e-cards.com/fonts/google/Oooh_Baby/OoohBaby-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 125%;
}
@font-face {
	font-family: 'Italianno';
	src: url('https://cache.e-cards.com/fonts/google/Italianno/Italianno-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 150%;
}
@font-face {
	font-family: 'Butterfly Kids';
	src: url('https://cache.e-cards.com/fonts/google/Butterfly_Kids/ButterflyKids-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 140%;
}


/* ========================================
   HOLIDAY FONTS
   Offered only on cards of their holiday's group: each holiday's menu entries are in
   templates/card-set/<group>/_blocks/holiday-fonts.html, which write-card.php adds to the
   font menu (the _default copy is empty). The @font-face rules are kept here, not in the
   holiday stylesheets, because some fonts serve two holidays (Henny Penny, Griffy) and a
   saved card must show its font wherever it is opened. Unused fonts are never downloaded.
   Frank Ruhl Libre and Bellefair keep their Hebrew letters (make-woff2.py keeps Hebrew).
   ======================================== */
@font-face {
	font-family: 'Mountains of Christmas';
	src: url('https://cache.e-cards.com/fonts/google/Mountains_of_Christmas/MountainsofChristmas-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 110%;
}
@font-face {
	font-family: 'Mountains of Christmas';
	src: url('https://cache.e-cards.com/fonts/google/Mountains_of_Christmas/MountainsofChristmas-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	size-adjust: 110%;
}
@font-face {
	font-family: 'Festive';
	src: url('https://cache.e-cards.com/fonts/google/Festive/Festive-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 130%;
}
@font-face {
	font-family: 'Henny Penny';
	src: url('https://cache.e-cards.com/fonts/google/Henny_Penny/HennyPenny-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 90%;
}
@font-face {
	font-family: 'Creepster';
	src: url('https://cache.e-cards.com/fonts/google/Creepster/Creepster-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Butcherman';
	src: url('https://cache.e-cards.com/fonts/google/Butcherman/Butcherman-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 90%;
}
@font-face {
	font-family: 'Griffy';
	src: url('https://cache.e-cards.com/fonts/google/Griffy/Griffy-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Frank Ruhl Libre';
	src: url('https://cache.e-cards.com/fonts/google/Frank_Ruhl_Libre/FrankRuhlLibre-VariableFont_wght.woff2') format('woff2');
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
	size-adjust: 105%;
}
@font-face {
	font-family: 'Bellefair';
	src: url('https://cache.e-cards.com/fonts/google/Bellefair/Bellefair-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 120%;
}
@font-face {
	font-family: 'Poiret One';
	src: url('https://cache.e-cards.com/fonts/google/Poiret_One/PoiretOne-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 110%;
}
@font-face {
	font-family: 'Marcellus';
	src: url('https://cache.e-cards.com/fonts/google/Marcellus/Marcellus-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Parisienne';
	src: url('https://cache.e-cards.com/fonts/google/Parisienne/Parisienne-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	size-adjust: 120%;
}
@font-face {
	font-family: 'Madimi One';
	src: url('https://cache.e-cards.com/fonts/google/Madimi_One/MadimiOne-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
