/**
 * Modern CSS Reset — minimal, accessible, sensible defaults.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	min-height: 100svh;
	line-height: var(--evde-lh-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeSpeed;
	background: var(--evde-bg);
	color: var(--evde-text);
	font-family: var(--evde-font-sans);
}

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

/* SVG icons are inline by default so they flow with text. Flex parents override with display:block on individual children when needed. */
svg {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* Default icon sizing so random <svg> without explicit width/height doesn't stretch. */
svg.evde-icon,
svg[class*="evde-icon--"] {
	width: 18px;
	height: 18px;
}

/* Hero media SVG illustration keeps block behavior */
.evde-hero__media svg,
.evde-about__media svg,
.evde-hero__media-illust {
	display: block;
	width: 100%;
	height: 100%;
}

img {
	background-repeat: no-repeat;
	background-size: cover;
	vertical-align: middle;
	font-style: italic;
	shape-margin: 0.75rem;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
	line-height: var(--evde-lh-tight);
	font-family: var(--evde-font-display);
	font-weight: var(--evde-fw-bold);
	color: var(--evde-brand);
	letter-spacing: -0.015em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--evde-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

ul, ol {
	list-style: none;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

#root, #__next {
	isolation: isolate;
}

[hidden] {
	display: none !important;
}

::selection {
	background: var(--evde-accent);
	color: var(--evde-text-invert);
}

/* Turkish-friendly decimal fraction display */
body, input, textarea, button, select {
	font-feature-settings: "cv11", "ss01", "kern";
}
