/* Tasarım değişkenleri (açık = kırık beyaz, koyu = kullanıcı seçimi ya da sistem ayarı), reset, tipografi */
:root {
	color-scheme: light;

	--bg: #e9e4db;
	--surface: #f2eee6;
	--text: #34323a;
	--muted: #6c6975;
	--accent: #b8a7d9;
	--accent-strong: #7459a6;
	--accent-soft: #e3dcee;
	--on-accent: #ffffff;
	--border: #d6cfc3;
	--warm: #e6d6c4;
	--danger: #b5534f;

	--scratch-a: #d0c6e4;
	--scratch-b: #dcd0bc;
	--scratch-ink: #65578a;

	--radius: 14px;
	--maxw: 42rem;
	--header-h: 3.5rem;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

	--title: #56408a;
}

/*
  Koyu tema iki yoldan gelir; ikisinde de değişkenler aynı olmalı (elle senkron):
  1) Kullanıcı seçim yapmadıysa: sistem ayarı (data-theme yok ya da "dark")
  2) Kullanıcı koyu seçtiyse: :root[data-theme="dark"]
  Kullanıcı açık seçtiyse (data-theme="light") sistem koyu olsa da açık kalır.
*/
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;

		--bg: #15161c;
		--surface: #1d1f27;
		--text: #e6e4ea;
		--muted: #9a97a4;
		--accent: #7f9fc9;
		--accent-strong: #8fb0e0;
		--accent-soft: #262d3d;
		--on-accent: #0f1218;
		--border: #2c2f3a;
		--warm: #2a2530;
		--danger: #e08a85;

		--scratch-a: #3a4560;
		--scratch-b: #4a3d5a;
		--scratch-ink: #aab6d0;

		--title: var(--text);
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;

	--bg: #15161c;
	--surface: #1d1f27;
	--text: #e6e4ea;
	--muted: #9a97a4;
	--accent: #7f9fc9;
	--accent-strong: #8fb0e0;
	--accent-soft: #262d3d;
	--on-accent: #0f1218;
	--border: #2c2f3a;
	--warm: #2a2530;
	--danger: #e08a85;

	--scratch-a: #3a4560;
	--scratch-b: #4a3d5a;
	--scratch-ink: #aab6d0;

	--title: var(--text);
}

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

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.3; color: var(--title, inherit); }

h2 { font-size: 1.7rem; margin: 0 0 .25rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }

p { margin: 0 0 1.1rem; }
a { color: var(--accent-strong); }

.muted { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }

[hidden] { display: none !important; }

:focus-visible {
	outline: 3px solid var(--accent-strong);
	outline-offset: 2px;
}

.hero-title span { display: inline-block; }
.hero-title { text-wrap: balance; }