/* ==========================================================================
   base.css — self-host fontlar, reset, temel tipografi
   ========================================================================== */

/* --------------------------------------------------------- @font-face
   Dosyalar Google Fonts'un variable woff2 build'leridir; her ağırlık için
   ayrı @font-face aynı dosyayı gösterir (wght ekseni bildirime kilitlenir).
   latin-ext subset'i Türkçe ğ İ ş için zorunludur.
   -------------------------------------------------------------------- */

/* Syne — Display */
@font-face {
	font-family: "Syne";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/syne-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Syne";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/syne-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans — Body */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/jakarta-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — Mono */
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/jbmono-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/jbmono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- Reset */

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

* {
	margin: 0;
}

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

body {
	min-height: 100vh;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

img,
video {
	height: auto;
}

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

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

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

/* ------------------------------------------------------------ Tipografi */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.1;
	text-wrap: balance;
}

/* §1.2 ölçek — clamp ile desktop → mobil */
.t-hero {
	font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
	line-height: 1;
}

.t-section {
	font-size: clamp(2.25rem, 5.5vw + .5rem, 4.5rem);
	line-height: 1;
}

.t-page {
	font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
	line-height: 1.05;
}

.t-card {
	font-size: var(--text-card-title);
	line-height: 1.3;
}

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

strong,
b {
	font-weight: 600;
}

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

::selection {
	background: hsl(var(--primary) / .28);
}

/* --------------------------------------------------------------- Odak */

:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 2px;
	border-radius: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

/* --------------------------------------------------------- Skip link */

.skip-link {
	position: fixed;
	top: .5rem;
	left: .5rem;
	z-index: calc(var(--z-overlay) + 10);
	padding: .625rem 1rem;
	border-radius: var(--radius-control);
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* -------------------------------------------------- Azaltılmış hareket */

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

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
