@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%;
}
