/* Evde Doktorum — base reset + typography */

/* Inter variable font, self-hosted (supports Turkish via Latin-Ext) */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-variable-latin.woff2") format("woff2-variations"),
	     url("../fonts/inter-variable-latin.woff2") format("woff2");
}

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	scroll-behavior: smooth;
	line-height: var(--ed-lh-base);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--ed-font);
	font-size: var(--ed-fs-base);
	font-weight: 400;
	line-height: var(--ed-lh-base);
	color: var(--ed-body);
	background: var(--ed-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video, canvas, audio, iframe, embed, object {
	display: block;
	max-width: 100%;
}

img, video {
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--ed-s4);
	font-family: var(--ed-font-display);
	font-weight: 800;
	color: var(--ed-ink);
	line-height: var(--ed-lh-tight);
	letter-spacing: -0.02em;
}

h1 { font-size: var(--ed-fs-h1); }
h2 { font-size: var(--ed-fs-h2); }
h3 { font-size: var(--ed-fs-h3); font-weight: 700; }
h4 { font-size: var(--ed-fs-lg); font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: var(--ed-fs-md); font-weight: 700; }
h6 { font-size: var(--ed-fs-base); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

p {
	margin: 0 0 var(--ed-s4);
	line-height: var(--ed-lh-relaxed);
}

a {
	color: var(--ed-primary-500);
	text-decoration: none;
	transition: color var(--ed-dur) var(--ed-ease);
}

a:hover {
	color: var(--ed-accent-600);
}

a:focus-visible {
	outline: none;
	box-shadow: var(--ed-ring);
	border-radius: var(--ed-r-sm);
}

strong, b { font-weight: 700; color: var(--ed-ink); }
em, i { font-style: italic; }
small { font-size: var(--ed-fs-sm); }

ul, ol {
	padding-inline-start: var(--ed-s5);
	margin: 0 0 var(--ed-s4);
}

blockquote {
	margin: var(--ed-s5) 0;
	padding: var(--ed-s4) var(--ed-s5);
	border-inline-start: 4px solid var(--ed-accent);
	background: var(--ed-surface-2);
	border-radius: var(--ed-r-md);
	color: var(--ed-ink-soft);
	font-size: var(--ed-fs-md);
	font-style: italic;
}

code, kbd, samp, pre {
	font-family: var(--ed-font-mono);
	font-size: 0.95em;
}

code {
	padding: 0.15em 0.4em;
	background: var(--ed-surface-2);
	border-radius: var(--ed-r-xs);
	color: var(--ed-primary);
}

pre {
	overflow: auto;
	padding: var(--ed-s4);
	background: var(--ed-surface-2);
	border-radius: var(--ed-r-md);
	border: 1px solid var(--ed-line);
}

hr {
	border: 0;
	height: 1px;
	background: var(--ed-line);
	margin: var(--ed-s7) 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--ed-s5) 0;
}

th, td {
	padding: var(--ed-s3) var(--ed-s4);
	text-align: start;
	border-bottom: 1px solid var(--ed-line);
}

th {
	font-weight: 700;
	color: var(--ed-ink);
	background: var(--ed-surface-2);
}

figure { margin: 0; }

figcaption {
	color: var(--ed-muted);
	font-size: var(--ed-fs-sm);
	padding-top: var(--ed-s2);
}

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

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

::selection {
	background: var(--ed-accent);
	color: var(--ed-primary);
}

::placeholder { color: var(--ed-muted); opacity: 1; }

/* Skip link */
.ed-skip-link.screen-reader-text,
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ed-skip-link:focus,
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	background: var(--ed-primary);
	color: #fff;
	display: block;
	font-size: var(--ed-fs-sm);
	font-weight: 700;
	height: auto;
	left: var(--ed-s4);
	line-height: normal;
	padding: var(--ed-s3) var(--ed-s4);
	text-decoration: none;
	top: var(--ed-s4);
	width: auto;
	z-index: 200;
	border-radius: var(--ed-r-sm);
}

/* Focus ring unified */
:focus-visible {
	outline: none;
	box-shadow: var(--ed-ring);
	border-radius: 4px;
}

/* Utility: hide scrollbars for carousel */
.ed-hide-scrollbar {
	scrollbar-width: none;
}
.ed-hide-scrollbar::-webkit-scrollbar { display: none; }

/* Motion preference overrides ensure no distracting anims */
@media (prefers-reduced-motion: reduce) {
	.ed-animate-in { opacity: 1 !important; transform: none !important; }
}
