/*
	thiessen.io — personal site
	Swiss-minimal direction. Display: Space Grotesk · Body: Hanken Grotesk · Mono: Space Mono.
	One accent (signal cobalt), used only for links and the live timeline node.
*/

:root {
	--paper:      #f4f5f7;
	--paper-2:    #ffffff;
	--ink:        #15171c;
	--graphite:   #565d66;
	--graphite-2: #8a919b;
	--mist:       #e4e7ec;
	--signal:     #1f44f0;
	--signal-weak: rgba(31, 68, 240, 0.10);

	--font-display: 'Space Grotesk', 'Hanken Grotesk', system-ui, sans-serif;
	--font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	--font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

	--wrap: 1100px;
}

/* ---------- reset ---------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--signal); color: #fff; }

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

/* ---------- layout ---------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}

.section {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	gap: 2.75rem;
	padding: clamp(3.5rem, 7vw, 6rem) 0;
	border-top: 1px solid var(--mist);
}

.section__label {
	position: sticky;
	top: 2rem;
	align-self: start;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--graphite-2);
}

/* ---------- top bar ---------- */

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.75rem 0;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
}

.topbar__name { color: var(--ink); text-transform: uppercase; }

.status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--graphite);
}

.status__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 4px var(--signal-weak);
	animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px var(--signal-weak); }
	50%      { box-shadow: 0 0 0 7px rgba(31, 68, 240, 0.03); }
}

/* ---------- hero ---------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--graphite-2);
	margin: 0 0 1.5rem;
}

.hero__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(3rem, 9.5vw, 7rem);
	line-height: 0.92;
	letter-spacing: -0.035em;
	margin: 0;
}

.hero__lead {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 2.7vw, 2rem);
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--ink);
	max-width: 30ch;
	margin: 1.75rem 0 0;
}

.hero__meta {
	margin: 1.5rem 0 0;
	color: var(--graphite);
	max-width: 46ch;
}

.hero__meta strong { color: var(--ink); font-weight: 600; }

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	margin: 2.25rem 0 0;
}

.actions a {
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1.5px solid var(--ink);
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.actions a:hover { color: var(--signal); border-color: var(--signal); }

.portrait {
	justify-self: end;
	width: 100%;
	max-width: 280px;
}

.portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--mist);
	filter: grayscale(100%) contrast(1.02);
	transition: filter 0.4s ease;
}

.portrait img:hover { filter: grayscale(0%); }

/* ---------- profile ---------- */

.prose p {
	margin: 0 0 1.25rem;
	color: var(--graphite);
	max-width: 62ch;
	font-size: 1.1rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- experience timeline (the signature) ---------- */

.roles { list-style: none; margin: 0; padding: 0; }

.role {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	column-gap: 1.5rem;
}

.role__rail { position: relative; }

.role__rail::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--mist);
	transform: translateX(-50%);
}

.role:first-child .role__rail::before { top: 0.62rem; }
.role:last-child  .role__rail::before { bottom: auto; height: 0.62rem; }

.role__node {
	position: absolute;
	left: 50%;
	top: 0.62rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--paper);
	border: 1.5px solid var(--ink);
	transform: translate(-50%, -50%);
	z-index: 1;
}

.role--live .role__node {
	background: var(--signal);
	border-color: var(--signal);
	box-shadow: 0 0 0 4px var(--signal-weak);
	animation: pulse 2.6s ease-in-out infinite;
}

.role__body { padding-bottom: 2.75rem; }
.role:last-child .role__body { padding-bottom: 0; }

.role__year {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--graphite-2);
	margin: 0 0 0.5rem;
}

.role--live .role__year { color: var(--signal); }

.role__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.85rem;
}

.role__co {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.4rem;
	letter-spacing: -0.015em;
	margin: 0;
}

.role__loc {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--graphite-2);
}

.role__title {
	margin: 0.35rem 0 0;
	font-weight: 600;
	color: var(--ink);
}

.role__desc {
	margin: 0.55rem 0 0;
	color: var(--graphite);
	max-width: 58ch;
}

/* ---------- stack ---------- */

.stack { display: flex; flex-direction: column; gap: 1.6rem; }

.group {
	display: grid;
	grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
	gap: 0.5rem 1.5rem;
	align-items: baseline;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--mist);
}

.stack .group:last-child { border-bottom: 0; padding-bottom: 0; }

.group__label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--graphite-2);
}

.group__tags {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.95;
	color: var(--graphite-2);
}

.group__tags .t { color: var(--ink); }

/* ---------- contact ---------- */

.contact__intro {
	color: var(--graphite);
	max-width: 50ch;
	font-size: 1.1rem;
	margin: 0 0 1.75rem;
}

.contact__email {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.7rem, 4.5vw, 3rem);
	letter-spacing: -0.025em;
	color: var(--ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.contact__email:hover { color: var(--signal); }

.contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	margin: 2rem 0 0;
}

.contact__links a {
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1.5px solid var(--ink);
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.contact__links a:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- colophon ---------- */

.colophon {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 2.25rem 0 3.5rem;
	border-top: 1px solid var(--mist);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--graphite-2);
}

/* ---------- 404 ---------- */

.notfound { padding: clamp(4rem, 12vw, 9rem) 0; }

.notfound h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.5rem, 8vw, 5rem);
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
}

.notfound p { color: var(--graphite); max-width: 40ch; }

.notfound a {
	color: var(--ink);
	border-bottom: 1.5px solid var(--ink);
	text-decoration: none;
	padding-bottom: 2px;
}

.notfound a:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
	.section { grid-template-columns: 1fr; gap: 1.5rem; }
	.section__label { position: static; top: auto; }
	.group { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.portrait { justify-self: start; order: -1; max-width: 150px; }
	.portrait img { aspect-ratio: 1 / 1; }
}

@media (max-width: 520px) {
	.topbar { flex-wrap: wrap; gap: 0.4rem 1rem; }
}

@media (max-width: 460px) {
	.topbar { font-size: 0.68rem; letter-spacing: 0.05em; }
	.status { letter-spacing: 0.12em; }
}

/* ---------- motion ---------- */

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