/* yucelt.dev — shared styles for the landing and 404 pages. */

:root {
	--bg: #f4f1ea;
	--surface: #fffdf8;
	--ink: #1b1a17;
	--muted: #6b665c;
	--line: #e2ddd1;
	--accent: #2f7d4f;
	--accent-soft: #e2efe5;
	--shadow: 0 1px 2px rgb(27 26 23 / 6%), 0 12px 40px -12px rgb(27 26 23 / 18%);
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #12130f;
		--surface: #1b1c17;
		--ink: #eeebe3;
		--muted: #a19c90;
		--line: #2d2e27;
		--accent: #7fd39b;
		--accent-soft: #1f3326;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 40px -12px rgb(0 0 0 / 60%);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #12130f;
	--surface: #1b1c17;
	--ink: #eeebe3;
	--muted: #a19c90;
	--line: #2d2e27;
	--accent: #7fd39b;
	--accent-soft: #1f3326;
	--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 40px -12px rgb(0 0 0 / 60%);
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--bg);
	background-image: radial-gradient(var(--line) 1px, transparent 1px);
	background-size: 22px 22px;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Top bar: language + theme toggles */

.toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px;
}

.toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: 600 0.8125rem/1 var(--mono);
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.toggle:hover { border-color: var(--muted); }
.toggle svg { width: 18px; height: 18px; fill: currentColor; }
.toggle .off { opacity: .4; }

/* Card */

main {
	display: grid;
	place-items: center;
	padding: 8px 16px 32px;
}

.card {
	width: 100%;
	max-width: 520px;
	padding: 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
	animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.avatar {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 24px;
	border-radius: 18px;
	background: var(--accent-soft);
	color: var(--accent);
	font: 600 1.5rem/1 var(--display);
	letter-spacing: -0.02em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--muted);
	font: 500 0.8125rem/1.4 var(--mono);
	letter-spacing: 0.02em;
}
.eyebrow::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
	font: 600 clamp(2rem, 7vw, 2.75rem)/1.1 var(--display);
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.role {
	margin-top: 6px;
	color: var(--accent);
	font-weight: 600;
}

.bio {
	margin-top: 16px;
	color: var(--muted);
	text-wrap: pretty;
}

.home-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 600;
	text-decoration: none;
}

/* Landing page: one wider card */

main.page { display: grid; place-items: center; }
.page > .card { max-width: 600px; }

h2 {
	margin: 36px 0 12px;
	color: var(--muted);
	font: 600 0.75rem/1.4 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bio + .bio { margin-top: 12px; }

.work { list-style: none; border-top: 1px solid var(--line); }
.work li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.work .org { font-weight: 600; }
.work .what { grid-row: 2; color: var(--muted); font-size: 0.9375rem; }
.work .when { grid-row: 1 / span 2; align-self: center; color: var(--muted); font: 0.8125rem/1.4 var(--mono); white-space: nowrap; }

.footnote { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }

.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.btn {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.primary { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn.primary:hover { border-color: var(--accent); background: var(--accent); }

footer {
	padding: 0 16px 24px;
	color: var(--muted);
	font: 0.75rem/1.4 var(--mono);
	text-align: center;
}

@media (max-width: 480px) {
	.card { padding: 28px 22px; border-radius: 20px; }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
