:root {
	--bg:       #f7f7f5;
	--surface:  #ffffff;
	--text:     #1f1f1f;
	--dim:      #6e6a62;
	--muted:    #bdb9b0;
	--accent:   #4f625a;
	--accent-lo: rgba(79, 98, 90, 0.08);
	--line:     #e2dfd7;
	--focus:    #1f1f1f;
	--font:     ui-monospace, 'SFMono-Regular', 'SF Mono', Consolas, 'Liberation Mono', monospace;
}

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

html {
	background: var(--bg);
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100svh;
	margin: 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 38%),
		var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 13px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 1px solid var(--focus);
	outline-offset: 3px;
}

/* ─── Shell ──────────────────────────────────── */

.page-shell {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	max-width: 560px;
	margin: 0 auto;
	padding: 28px 24px;
}

/* ─── Header ─────────────────────────────────── */

.site-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: auto;
	padding-bottom: 30px;
}

.language-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dim);
}

.lang-sep {
	font-size: 11px;
	color: var(--muted);
}

.language-button {
	padding: 0;
	border: none;
	background: none;
	color: var(--dim);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: color 140ms ease;
}

.language-button:hover {
	color: var(--text);
}

.language-button.is-active {
	color: var(--accent);
}

/* ─── Main content ───────────────────────────── */

.site-main {
	flex: 1;
	display: flex;
	align-items: center;
}

article {
	width: 100%;
}

/* ─── Profile header ─────────────────────────── */

.role {
	margin: 0 0 10px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	color: var(--text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* ─── Divider ────────────────────────────────── */

.divider {
	height: 1px;
	background: var(--line);
	margin: 28px 0;
}

/* ─── Bio ────────────────────────────────────── */

.bio {
	color: #3f3d38;
	font-size: 13px;
	line-height: 1.78;
}

.bio p {
	margin: 0;
}

.bio p + p {
	margin-top: 1em;
}

.company-link {
	color: var(--accent);
	font-weight: 700;
	white-space: nowrap;
}

/* ─── Profile footer ─────────────────────────── */

.profile-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.signature {
	color: var(--dim);
	font-size: 12px;
	font-style: italic;
	letter-spacing: 0.02em;
}

/* ─── Contacts ───────────────────────────────── */

.contacts {
	font-style: normal;
	margin-left:auto;
}

.contact-list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	border-radius: 3px;
	color: var(--dim);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: color 130ms ease, background 130ms ease;
}

.contact-link span {
	display: none;
}

.contact-link:hover {
	color: var(--accent);
	background: var(--accent-lo);
}

/* ─── Site footer ────────────────────────────── */

.site-footer {
	padding-top: 48px;
	margin-top: auto;
	color: var(--muted);
}

.site-footer small {
	font-size: 11px;
	letter-spacing: 0.04em;
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 480px) {
	.page-shell {
		padding: 22px 20px;
	}

	h1 {
		font-size: 19px;
	}
}
