/* ============================================================
   CSS CUSTOM PROPERTIES (design tokens)
   ============================================================ */
:root {
	/* --- Colors --- */
	--color-primary: #62bb46; /* green — CTA, highlights */
	--color-primary-alt: #32ff00; /* vivid green — secondary btn text, accents */
	--color-black: #1e1e1e; /* main text, dark backgrounds */
	--color-white: #ffffff;
	--color-text-muted: #636363; /* body copy, descriptions */
	--color-border: #f6f6f6; /* borders, dividers, light backgrounds */

	/* --- Typography --- */
	--font-headings: "Pano", sans-serif;
	--font-body: "Inter", sans-serif;
	--font-mono: "Inter", monospace; /* labels, tags, small caps */

	--text-xs: 0.75rem; /*  12px */
	--text-sm: 0.875rem; /*  14px */
	--text-base: 1rem; /*  16px */
	--text-md: 1.125rem; /*  18px */
	--text-lg: 1.25rem; /*  20px */
	--text-xl: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem); /*1.5rem; /*  24px */
	--text-2xl: 2rem; /*  32px */
	--text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 3rem); /*2.5rem; /*  40px */
	--text-4xl: 3rem; /*  48px */
	--text-5xl: 3.75rem; /*  60px */
	--text-6xl: 4rem; /*  60px */

	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	--line-height-tight: 1.2;
	--line-height-snug: 1.35;
	--line-height-base: 1.6;
	--line-height-relaxed: 1.75;

	--letter-spacing-tight: -0.02em;
	--letter-spacing-wide: 0.08em; /* for uppercase labels */

	/* --- Spacing (padding / margin scale) --- */
	--space-2: 2px;
	--space-4: 4px;
	--space-8: 8px;
	--space-12: 12px;
	--space-16: 16px;
	--space-24: 24px;
	--space-32: 32px;
	--space-48: 48px;
	--space-64: 64px;
	--space-72: 72px;
	--space-96: 96px;
	--space-128: 128px;

	/* --- Gap scale (flex/grid gaps) --- */
	--gap-8: 8px;
	--gap-16: 16px;
	--gap-24: 24px;
	--gap-32: 32px;
	--gap-48: 48px;

	/* --- Layout --- */
	--container-max: 1280px;
	--container-padding-x: var(--space-24); /* 24px sides */
	--section-padding-y: var(--space-72); /* 72px top/bottom section */

	/* --- Borders --- */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 9999px;

	--border-width: 1.5px;
	--border-color: var(--color-border);

	/* --- Shadows --- */
	--shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);

	/* --- Transitions --- */
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 400ms ease;

	/* --- Button tokens --- */
	--btn-padding-x: var(--space-32); /* 32px left/right */
	--btn-padding-y: var(--space-12); /* 12px top/bottom */
	--btn-radius: var(--radius-full);
	--btn-font-size: var(--text-base);
	--btn-font-weight: var(--font-weight-bold);
	--btn-gap: var(--gap-8); /* gap between label & arrow icon */

	/* --- Z-index layers --- */
	--z-below: -1;
	--z-base: 0;
	--z-raised: 10;
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-modal: 300;
	--z-overlay: 400;
	--z-toast: 500;
}

/* ============================================================
		CSS RESET
		 ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-base);
	color: var(--color-black);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

/* ============================================================
		 BASE TYPOGRAPHY / FONTS
		 ============================================================ */

@font-face {
	font-family: "Pano";
	font-style: bold;
	font-weight: 700;
	font-display: swap;
	src: url("/img/lagom/fonts/Pano-Bold.woff2") format("woff2");
}

/* Headings */
h1,
.h1 {
	font-size: var(--text-5xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
}

h2,
.h2 {
	font-size: var(--text-4xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
}

h3,
.h3 {
	font-size: var(--text-2xl);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-snug);
}

h4,
.h4 {
	font-size: var(--text-xl);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-snug);
}

h5,
.h5 {
	font-size: var(--text-lg);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-base);
}

h6,
.h6 {
	font-size: var(--text-base);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-base);
}

/* generals / rest */

.text__margin-top {
	margin-top: var(--space-24);
	margin-left: var(--space-16);
}
