:root {
	--bg: #efeee9;
	--ink: #0e0e0d;
	--muted: #5a5954;
	--rule: #d6d5cf;
	--accent: #b4441f;
	--sans: 'Inter Tight', system-ui, sans-serif;
	--gutter: clamp(20px, 5vw, 64px);
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c0c0b;
		--ink: #efeee9;
		--muted: #9a9991;
		--rule: #262622;
		--accent: #e0683e;
	}
}

* {
	box-sizing: border-box;
}
html {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
body {
	margin: 0;
	min-height: 100dvh;
	display: grid;
	align-items: center;
}
a {
	color: inherit;
	text-decoration: none;
}
::selection {
	background: var(--ink);
	color: var(--bg);
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Main */
main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	padding: 64px var(--gutter);
}

/* Illustration: çay, simit and tulip, right-aligned on the page margin */
.art {
	margin: 0;
	display: flex;
	justify-content: flex-end;
}
.art img {
	display: block;
	width: auto;
	height: min(26vw, 46vh, 420px);
	animation: fade 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
@media (max-width: 820px) {
	main {
		grid-template-columns: 1fr;
	}
	.art {
		display: none;
	}
}
h1 {
	margin: 0;
	font-size: clamp(44px, 7vw, 112px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.045em;
}
main p {
	margin: 28px 0 0;
	max-width: 42ch;
	font-size: clamp(17px, 1.9vw, 26px);
	line-height: 1.38;
	letter-spacing: -0.012em;
	color: var(--muted);
	text-wrap: pretty;
}
main strong {
	font-weight: 400;
	color: var(--ink);
}
/* Turkish words that swap to English on hover: a small extra for mouse users.
   The English is decorative, so it is hidden from screen readers (the `/ ""`
   alt text), and the words are not focusable, since they are not interactive.
   `lang="tr"` in the HTML makes screen readers pronounce them in Turkish. */
[data-en] {
	position: relative;
	display: inline-block;
	text-align: center;
	transition: color 0.3s ease;
}
/* Only hint at the hover where hovering is possible */
@media (hover: hover) {
	[data-en] {
		text-decoration: underline dotted var(--rule);
		text-underline-offset: 0.2em;
	}
}
/* Invisible copy of the English word, so the box fits whichever is wider */
[data-en]::before {
	content: attr(data-en);
	content: attr(data-en) / "";
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}
[data-en]::after {
	content: attr(data-en);
	content: attr(data-en) / "";
	position: absolute;
	inset: 0;
	text-align: center;
	white-space: nowrap;
	color: var(--muted);
	opacity: 0;
	filter: blur(4px);
	transform: translateY(0.35em);
	transition:
		opacity 0.3s ease,
		filter 0.3s ease,
		transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
	pointer-events: none;
}
[data-en]:hover {
	color: transparent;
}
[data-en]:hover::after {
	opacity: 1;
	filter: none;
	transform: none;
}
main nav {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 40px;
	font-size: 17px;
	letter-spacing: -0.01em;
}
main nav a {
	padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
	transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
main nav a:hover {
	background-size: 100% 1px;
	background-position: 0 100%;
}
main p,
main nav {
	animation: fade 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
main nav {
	animation-delay: 0.4s;
}
@keyframes fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

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