/* normalize-like base styles for consistent default rendering
  Place this in /Users/nikitazanella/Documents/workspaces/getfyra/web/assets/styles.css
  Lightweight, original adjustments inspired by common normalize patterns
*/

/* 1. Use border-box everywhere for predictable sizing */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margins and set sensible body defaults */
html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: transparent;
	color: inherit;
	font-family:
		system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		"Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: 400;
	font-size: 16px;
}

/* 3. Make images, videos and svg responsive */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* 4. Remove list styles where appropriate */
ul[class],
ol[class] {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* 5. Headings: don't add weird margins beyond sensible defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: inherit;
	line-height: 1.2;
}

/* 6. Paragraphs: consistent spacing */
p {
	margin: 0 0 1rem 0;
}

/* 7. Links: inherit color, maintain underline for accessibility */
a {
	color: inherit;
	text-decoration: underline;
	background-color: transparent;
}
a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

/* 8. Forms: inherit font and remove inconsistent margins */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	margin: 0;
	background: none;
	border: none;
	padding: 0;
	line-height: inherit;
}

/* 9. Buttons: reset and keep accessibility focus */
button {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: transparent;
	border: none;
	padding: 0;
}
button:disabled,
[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
}

/* 10. Preserve focus outlines for keyboard users */
:focus {
	outline: 2px dotted Highlight;
	outline-offset: 2px;
}

/* 11. Tables: collapse borders and set sensible defaults */
table {
	border-collapse: collapse;
	border-spacing: 0;
}
th,
td {
	text-align: left;
	vertical-align: top;
	padding: 0;
}

/* 12. Code and pre: readable defaults */
pre,
code,
kbd,
samp {
	font-family:
		ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono",
		"Noto Mono", monospace;
	font-size: 0.95em;
}

/* 13. Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* 14. Form element defaults for accessibility */
legend {
	padding: 0;
	white-space: normal;
}
fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* 15. Remove native progress and meter padding differences */
progress {
	vertical-align: baseline;
}

/* 16. Dialog and details */
details {
	display: block;
}
summary {
	display: list-item;
}

/* 17. Utility: root-level CSS variables for consistent spacing & radius (optional) */
:root {
	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 16px;
	--space-lg: 24px;
	--radius-sm: 4px;
	--radius-md: 8px;
}

/* 18. Print-safe defaults */
@media print {
	*,
	*::before,
	*::after {
		box-shadow: none !important;
		text-shadow: none !important;
	}
	a::after {
		content: " (" attr(href) ")";
		font-weight: normal;
	}
	img {
		max-width: 100% !important;
	}
}
