/*
Theme Name: Allennetic
Template: astra
Description: Allennetic child theme for Astra.
Author: Allennetic Ltd
Version: 1.2.0
Text Domain: allennetic
*/

/* Self-hosted fonts (from Google Fonts, OFL). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/pjs-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/pjs-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/caveat-sub.woff2') format('woff2');
  unicode-range: U+20, U+27, U+2c, U+2e, U+3f, U+41, U+43, U+46, U+4e, U+54, U+61-65, U+67-69, U+6c-70, U+72-75, U+77-79;
}

/* Metric-matched fallback so text doesn't reflow when the web font arrives.
   Measured against Plus Jakarta Sans: Arial runs ~7% narrow at 400-600 and ~2.5% narrow at 700-800. */
@font-face {
  font-family: 'Plus Jakarta Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
  font-weight: 100 600;
  size-adjust: 107%;
  ascent-override: 94%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plus Jakarta Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold');
  font-weight: 700 900;
  size-adjust: 102.5%;
  ascent-override: 98%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
	--an-font: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', system-ui, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--an-font);
	color: #0A1330;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--an-font);
	color: inherit;
}

:focus-visible {
	outline: 3px solid #7EA6FF;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
/* Elementor font variables with a proper fallback stack (Elementor emits the bare family name). */
:root, body, [class*="elementor-kit-"] {
	--an-font-main: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', system-ui, sans-serif !important;
	--an-font-script: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive !important;
}
