/**
 * Design token fallbacks — ensures styling even if Tailwind CDN is delayed.
 */

:root {
	--awf-primary: #004ac6;
	--awf-on-primary: #ffffff;
	--awf-background: #fcf9f8;
	--awf-surface: #fcf9f8;
	--awf-on-surface: #1c1b1b;
	--awf-on-surface-variant: #434655;
	--awf-on-background: #1c1b1b;
	--awf-surface-container: #f0eded;
	--awf-surface-container-low: #f6f3f2;
	--awf-surface-container-lowest: #ffffff;
	--awf-outline-variant: #c3c6d7;
	--awf-outline: #737686;
	--awf-secondary: #9d4300;
	--awf-secondary-container: #fd761a;
	--awf-secondary-fixed-dim: #ffb690;
	--awf-tertiary: #943700;
	--awf-tertiary-container: #bc4800;
	--awf-primary-fixed: #dbe1ff;
	--awf-on-primary-fixed: #00174b;
	--awf-primary-fixed-dim: #b4c5ff;
	--awf-error-container: #ffdad6;
	--awf-error: #ba1a1a;
	--awf-margin-mobile: 20px;
	--awf-container-max: 1280px;
	--awf-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--awf-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--awf-font-sans);
	background-color: var(--awf-background);
	color: var(--awf-on-surface);
}

::selection {
	background-color: var(--awf-primary-fixed);
	color: var(--awf-on-primary-fixed);
}

/* Layout */
.max-w-container-max {
	max-width: var(--awf-container-max);
}

.px-margin-mobile {
	padding-left: var(--awf-margin-mobile);
	padding-right: var(--awf-margin-mobile);
}

/* Background colors */
.bg-background { background-color: var(--awf-background); }
.bg-surface { background-color: var(--awf-surface); }
.bg-primary { background-color: var(--awf-primary); }
.bg-surface-container { background-color: var(--awf-surface-container); }
.bg-surface-container-low { background-color: var(--awf-surface-container-low); }
.bg-surface-container-lowest { background-color: var(--awf-surface-container-lowest); }
.bg-on-background { background-color: var(--awf-on-background); }

/* Text colors */
.text-on-surface { color: var(--awf-on-surface); }
.text-on-surface-variant { color: var(--awf-on-surface-variant); }
.text-on-primary { color: var(--awf-on-primary); }
.text-primary { color: var(--awf-primary); }
.text-outline { color: var(--awf-outline); }
.text-secondary { color: var(--awf-secondary); }
.text-secondary-container { color: var(--awf-secondary-container); }
.text-tertiary { color: var(--awf-tertiary); }
.text-primary-fixed-dim { color: var(--awf-primary-fixed-dim); }
.text-secondary-fixed-dim { color: var(--awf-secondary-fixed-dim); }
.text-error-container { color: var(--awf-error-container); }

/* Border colors */
.border-outline-variant { border-color: var(--awf-outline-variant); }
.border-primary { border-color: var(--awf-primary); }
.border-2.border-primary { border-width: 2px; border-color: var(--awf-primary); }

.hover\:border-primary:hover { border-color: var(--awf-primary); }

/* Typography — font family */
.font-headline-md,
.font-headline-lg,
.font-headline-xl,
.font-headline-xl-mobile,
.font-body-md,
.font-body-lg {
	font-family: var(--awf-font-sans);
}

.font-label-md,
.font-label-sm {
	font-family: var(--awf-font-mono);
}

/* Typography — sizes */
.text-headline-md {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
}

.text-headline-lg {
	font-size: 32px;
	line-height: 40px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.text-headline-xl,
.text-\[40px\] {
	font-size: 40px;
	line-height: 1.1;
	font-weight: 700;
}

.text-headline-xl-mobile {
	font-size: 32px;
	line-height: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.text-body-md {
	font-size: 16px;
	line-height: 24px;
}

.text-body-lg {
	font-size: 18px;
	line-height: 28px;
}

.text-label-md {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.text-label-sm {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
}

/* Header */
header.bg-surface\/80 {
	background-color: rgb(252 249 248 / 0.8);
}

/* Opacity variants */
.bg-primary\/10 { background-color: rgb(0 74 198 / 0.1); }
.bg-primary\/50 { background-color: rgb(0 74 198 / 0.5); }
.bg-secondary\/50 { background-color: rgb(157 67 0 / 0.5); }
.bg-error\/50 { background-color: rgb(186 26 26 / 0.5); }
.bg-secondary-container\/10 { background-color: rgb(253 118 26 / 0.1); }
.bg-tertiary-container\/10 { background-color: rgb(188 72 0 / 0.1); }

.shadow-primary\/20 {
	--tw-shadow-color: rgb(0 74 198 / 0.2);
}

.shadow-primary\/5 {
	--tw-shadow-color: rgb(0 74 198 / 0.05);
}

/* Buttons & links */
a.bg-primary,
button.bg-primary {
	text-decoration: none;
}

.hover\:bg-surface-container-low:hover {
	background-color: var(--awf-surface-container-low);
}

/* Essential layout fallbacks (in case Tailwind CDN is slow or blocked) */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.left-6 { left: 1.5rem; }
.-top-4 { top: -1rem; }
.left-1\/2 { left: 50%; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-white\/5 { border-color: rgb(255 255 255 / 0.05); }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.pt-16 { padding-top: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-16 { margin-top: 4rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.max-w-xl { max-width: 36rem; }
.max-w-sm { max-width: 24rem; }
.h-px { height: 1px; }
.w-px { width: 1px; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-90 { opacity: 0.9; }
.grayscale { filter: grayscale(100%); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.transition-all { transition-property: all; transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.duration-700 { transition-duration: 700ms; }
.object-cover { object-fit: cover; }
.grid { display: grid; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-95:hover { opacity: 0.95; }
.active\:scale-95:active { transform: scale(0.95); }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
.animate-pulse { animation: awf-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-outline-variant { --tw-gradient-stops: var(--tw-gradient-from), var(--awf-outline-variant), var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }

@keyframes awf-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Material icons */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
}
