/* Santiago Pintos — minimal personal site */

:root {
	--ink: #14110f;
	--ink-soft: #2e2926;
	--accent: #c45c26;
	--accent-deep: #9a3f14;
	--font-display: "Lora", "Georgia", serif;
	--font-body: "Karla", "Segoe UI", sans-serif;
	--max: 38rem;
	--pad: clamp(1.25rem, 4vw, 2rem);
}

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

html {
	color-scheme: light;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.15rem);
	line-height: 1.65;
	color: var(--ink);
	background:
		radial-gradient(ellipse 90% 60% at 8% -8%, rgba(196, 92, 38, 0.12), transparent 55%),
		radial-gradient(ellipse 65% 45% at 100% 5%, rgba(212, 148, 60, 0.14), transparent 50%),
		linear-gradient(165deg, #faf6f1 0%, #f8f3eb 48%, #f3ebe3 100%);
	background-attachment: fixed;
}

.page {
	width: min(100% - (var(--pad) * 2), var(--max));
	margin: 0 auto;
	padding: clamp(2.5rem, 8vh, 4.5rem) 0 clamp(3rem, 10vh, 5rem);
}

.hero {
	text-align: center;
	margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
}

.hero__photo {
	position: relative;
	display: grid;
	place-items: center;
	width: 9rem;
	height: 9rem;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	overflow: hidden;
	background-color: rgba(196, 92, 38, 0.14);
	box-shadow: 0 0 0 3px rgba(255, 252, 248, 0.85), 0 12px 28px rgba(21, 37, 42, 0.12);
	transition: transform 0.35s ease;
}

.hero__photo:hover {
	transform: scale(1.03);
}

.hero__initials,
.hero__photo img {
	grid-area: 1 / 1;
}

.hero__initials {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent-deep);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__name {
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: clamp(2.35rem, 1.8rem + 2.2vw, 3.15rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.hero__tagline {
	margin: 0;
	font-size: 1.1rem;
	color: var(--ink-soft);
}

.section {
	margin-bottom: clamp(2.25rem, 5vh, 3rem);
}

.section h2 {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.section p {
	margin: 0 0 0.9rem;
	color: var(--ink-soft);
}

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

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-underline-offset 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--accent-deep);
	text-underline-offset: 0.28em;
}

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

.focus-list,
.work-list,
.link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.work-list li {
	margin-bottom: 1.15rem;
}

.work-list li:last-child {
	margin-bottom: 0;
}

.work-list__meta {
	margin: 0 0 0.25rem;
	font-weight: 600;
	color: var(--ink);
}

.work-list__tag {
	color: var(--accent-deep);
}

.work-list__desc {
	margin: 0;
	color: var(--ink-soft);
}

.focus-list li {
	position: relative;
	padding-left: 1.15rem;
	margin-bottom: 0.55rem;
	color: var(--ink-soft);
}

.focus-list li:last-child {
	margin-bottom: 0;
}

.focus-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--accent);
}

.link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	margin-bottom: 1rem;
}

.link-list a {
	font-weight: 500;
}

.email {
	margin: 0;
	font-size: 0.98rem;
	color: var(--ink-soft);
	letter-spacing: 0.01em;
}

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

@media (max-width: 480px) {
	.hero__photo {
		width: 7.5rem;
		height: 7.5rem;
	}

	.link-list {
		flex-direction: column;
		gap: 0.55rem;
	}
}
