/* Fluid layout + calmer interactions (static, no JS required) */
:root {
	--container: 1100px;
	--gutter: 20px;
	--radius: 14px;
	--radius-sm: 12px;
	--header-h: 64px;

	--fs-display: clamp(2.2rem, 4.6vw, 4.25rem);
	--fs-h2: clamp(1.25rem, 2.1vw, 1.75rem);
	--fs-body: clamp(1rem, 1.05vw, 1.1rem);
	--fs-small: 0.95rem;

	--space-1: 8px;
	--space-2: 12px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 32px;
	--space-6: 48px;
	--space-7: 72px;
}

html {
	scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
	background: var(--color1);
	color: var(--text);
	font-weight: 500;
	font-size: var(--fs-body);
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.brand {
	font-weight: 600;
	letter-spacing: 0.3px;
	opacity: 0.95;
}

.brand:hover {
	opacity: 1;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-nav a {
	font-size: 0.92rem;
	font-weight: 500;
	opacity: 0.9;
	padding: 8px 10px;
	border-radius: 999px;
	transition: opacity 160ms ease, background 160ms ease;
}

.site-nav a:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.10);
}

/* Sections */
.page {
	display: block;
}

.section {
	padding: var(--space-7) 0;
}

.hero {
	padding: calc(var(--space-7) + 18px) 0 var(--space-7);
	background:
		radial-gradient(900px 360px at 20% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
		radial-gradient(900px 420px at 85% 15%, rgba(255, 255, 255, 0.10), transparent 55%),
		linear-gradient(180deg, var(--color1), var(--color2));
}

#about {
	background: linear-gradient(180deg, var(--color2), var(--color3));
}

#projects {
	background: linear-gradient(180deg, var(--color3), var(--color4));
}

#interests {
	background: linear-gradient(180deg, var(--color4), var(--color5));
}

#contact {
	background: linear-gradient(180deg, var(--color5), hsl(190, 55%, 18%));
}

.eyebrow {
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.2px;
	opacity: 0.92;
	margin-bottom: var(--space-3);
}

.display {
	font-size: var(--fs-display);
	line-height: 1.03;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin-bottom: var(--space-4);
}

.lede {
	max-width: 70ch;
	font-size: clamp(1.05rem, 1.3vw, 1.25rem);
	line-height: 1.5;
	opacity: 0.95;
}

.h2 {
	font-size: var(--fs-h2);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: var(--space-3);
}

.section-subtitle {
	max-width: 75ch;
	line-height: 1.6;
	opacity: 0.92;
	margin-bottom: var(--space-3);
}

.prose {
	max-width: 75ch;
	line-height: 1.65;
}

.prose p + p {
	margin-top: var(--space-3);
}

/* Buttons */
.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: var(--space-5);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.14);
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.38);
}

.button:active {
	transform: translateY(0px);
}

.button-ghost {
	background: transparent;
}

/* Cards */
.cards {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 14px;
	margin-top: var(--space-5);
}

.card {
	grid-column: span 12;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	overflow: hidden;
	transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.30);
	box-shadow: var(--shadow);
}

.card-media {
	height: 170px;
	background: rgba(0, 0, 0, 0.16);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.95) contrast(1.05);
}

.card-body {
	padding: 16px 16px 18px;
}

.card-title {
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
}

.card-meta {
	opacity: 0.9;
	line-height: 1.45;
	margin-bottom: 10px;
}

.card-link {
	font-size: 0.9rem;
	opacity: 0.85;
}

.note {
	margin-top: var(--space-5);
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.07);
	border: 1px dashed rgba(255, 255, 255, 0.22);
	opacity: 0.95;
}

.note-strong {
	font-weight: 600;
}

/* Footer */
.site-footer {
	background: rgba(0, 0, 0, 0.14);
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	padding: 22px 0;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.92rem;
	opacity: 0.92;
}

.footer-right a {
	opacity: 0.9;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer-right a:hover {
	opacity: 1;
}

/* Responsive refinements */
@media (min-width: 700px) {
	:root { --gutter: 28px; }
	.card { grid-column: span 6; }
}

@media (min-width: 980px) {
	:root { --gutter: 32px; }
	.card { grid-column: span 4; }
	.card-media { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.button:hover, .card:hover { transform: none; }
}
