/* ==========================================================================
   Temel stiller
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--fs-300);
	font-weight: 400;
	font-stretch: 100%;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

img {
	height: auto;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
	margin: 0;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.1;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

p, li, dd {
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

button {
	cursor: pointer;
}

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

::selection {
	background: var(--c-accent);
	color: var(--c-ink);
}

/* Klavye odağı: açık zeminde ink, koyu zeminde signal */
:focus-visible {
	outline: 3px solid var(--c-ink);
	outline-offset: 3px;
}

.on-ink :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--c-accent);
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -10rem;
	z-index: 100;
	padding: var(--s-3) var(--s-4);
	background: var(--c-ink);
	color: var(--c-on-ink);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: var(--s-2);
}

/* Tipografi yardımcıları */
.t-display {
	font-size: var(--fs-900);
	font-weight: 760;
	font-stretch: var(--stretch-display);
	letter-spacing: -0.025em;
	line-height: 0.98;
}

.t-h1 {
	font-size: var(--fs-800);
	font-weight: 740;
	font-stretch: var(--stretch-display);
	letter-spacing: -0.02em;
	line-height: 1;
}

.t-h2 {
	font-size: var(--fs-700);
	font-weight: 720;
	font-stretch: var(--stretch-heading);
	letter-spacing: -0.018em;
	line-height: 1.04;
}

.t-h3 {
	font-size: var(--fs-500);
	font-weight: 650;
	font-stretch: 102%;
	letter-spacing: -0.008em;
	line-height: 1.18;
}

.t-lead {
	font-size: var(--fs-400);
	line-height: 1.5;
	max-width: 44em;
}

.t-small {
	font-size: var(--fs-200);
}

.t-muted {
	color: var(--c-muted);
}

.on-ink .t-muted {
	color: var(--c-on-ink-muted);
}

.t-num {
	font-variant-numeric: tabular-nums lining-nums;
}

/* Uzun metin (haber, yasal sayfalar) */
.prose {
	max-width: var(--measure);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 2em;
	font-size: var(--fs-500);
	font-weight: 650;
	font-stretch: 102%;
	line-height: 1.2;
}

.prose h3 {
	margin-top: 1.6em;
	font-size: var(--fs-400);
	font-weight: 650;
}

.prose ul,
.prose ol {
	padding-left: 1.2em;
}

.prose li + li {
	margin-top: 0.4em;
}

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