/*
Theme Name: Résumé — Minimal Timeline
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal, black-and-white WordPress theme built for single-page résumé and CV sites. Features a vertical timeline for work experience and education, a customizer-driven personal info panel, and no dependencies on page builders or plugins.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: resume-timeline
Tags: portfolio, resume, one-column, custom-menu, custom-colors, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
	/* Color — pure ink/paper, no accent color by design */
	--ink: #0a0a0a;
	--ink-soft: #333333;
	--gray-600: #5c5c5c;
	--gray-400: #8a8a8a;
	--gray-300: #d4d4d4;
	--gray-150: #ececec;
	--gray-100: #f5f5f5;
	--paper: #ffffff;
	--line: #dddddd;

	/* Type */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	/* Scale */
	--step-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
	--step-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
	--step-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--step-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.375rem);
	--step-2xl: clamp(2.75rem, 2.1rem + 3vw, 4.75rem);

	/* Rhythm */
	--gutter: clamp(1.5rem, 4vw, 3.5rem);
	--content-width: 780px;
	--radius: 2px;
}

/* =========================================================
   DARK MODE
   All components are built on the tokens above, so overriding
   them here is enough to reskin the whole site.
   ========================================================= */
[data-theme="dark"] {
	--ink: #f2f2f2;
	--ink-soft: #cfcfcf;
	--gray-600: #a3a3a3;
	--gray-400: #7d7d7d;
	--gray-300: #454545;
	--gray-150: #2a2a2a;
	--gray-100: #1a1a1a;
	--paper: #0a0a0a;
	--line: #2c2c2c;
}
[data-theme="dark"] .site-header {
	background: rgba(10,10,10,0.92);
}
body {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration-color: var(--gray-300); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
	padding: 0.75em 1.25em; z-index: 1000;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

/* Eyebrow / label style used throughout for structural metadata */
.eyebrow {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gray-600);
}

/* =========================================================
   SITE HEADER / NAV
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.1rem;
}
.site-header__name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.site-header__name a { text-decoration: none; }

.site-header__right {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
}

.primary-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav a {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--gray-600);
	transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--ink); }

.theme-toggle {
	position: relative;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle__icon {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ink);
	-webkit-mask: radial-gradient(circle at 65% 35%, transparent 35%, black 36%);
	mask: radial-gradient(circle at 65% 35%, transparent 35%, black 36%);
	transition: transform 0.25s ease;
}
[data-theme="dark"] .theme-toggle__icon {
	-webkit-mask: none;
	mask: none;
	transform: rotate(180deg);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--ink);
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
	content: ''; position: absolute; width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle span { position: relative; display: block; width: 18px; height: 1px; background: var(--ink); }
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(5px); }

@media (max-width: 640px) {
	.primary-nav { position: fixed; inset: 0; top: 64px; background: var(--paper); padding: 2rem var(--gutter);
		transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
	.primary-nav ul { flex-direction: column; gap: 1.25rem; }
	.primary-nav a { font-size: 1rem; }
	.primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
	.nav-toggle { display: inline-flex; position: relative; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
	padding-block: clamp(3rem, 10vw, 7rem) clamp(2.5rem, 8vw, 5rem);
	border-bottom: 1px solid var(--line);
}
.hero__grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}
.hero__photo {
	width: clamp(88px, 12vw, 128px);
	height: clamp(88px, 12vw, 128px);
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
	grid-row: 1 / 3;
}
.hero__eyebrow { margin-bottom: 0.9rem; }
.hero__name {
	font-size: var(--step-2xl);
	letter-spacing: -0.01em;
}
.hero__title {
	font-family: var(--font-mono);
	font-size: var(--step-lg);
	color: var(--gray-600);
	margin-top: 0.6rem;
	font-weight: 400;
}
.hero__bio {
	max-width: 60ch;
	margin-top: 1.5rem;
	color: var(--ink-soft);
	font-size: var(--step-base);
}
.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin-top: 1.75rem;
}
.hero__meta li {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	color: var(--gray-600);
}
.hero__meta a { text-decoration: none; color: var(--gray-600); }
.hero__meta a:hover { color: var(--ink); }

.hero__resume-download {
	display: inline-block;
	margin-top: 1.75rem;
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	text-decoration: none;
	color: var(--paper);
	background: var(--ink);
	padding: 0.7em 1.2em;
	border-radius: var(--radius);
	transition: opacity 0.15s ease;
}
.hero__resume-download:hover { opacity: 0.85; }

@media (max-width: 560px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__photo { grid-row: auto; }
}

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	gap: 1rem;
}
.section__title { font-size: var(--step-xl); }
.section__count { font-family: var(--font-mono); font-size: var(--step-sm); color: var(--gray-400); }

/* =========================================================
   TIMELINE (signature element)
   Vertical spine down the left edge; each entry is a node.
   Dates are set in mono type — they are data, not decoration.
   ========================================================= */
.timeline { position: relative; }
.timeline::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--gray-300);
}
.timeline-entry {
	position: relative;
	padding-left: clamp(2rem, 6vw, 3rem);
	padding-bottom: clamp(2rem, 5vw, 3rem);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-entry.is-visible { opacity: 1; transform: translateY(0); }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-entry::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 15px;
	height: 15px;
	background: var(--paper);
	border: 1px solid var(--ink);
	transform: rotate(45deg);
}
.timeline-entry--current::before { background: var(--ink); }

.timeline-entry__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}
.timeline-entry__dates {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	color: var(--gray-600);
	white-space: nowrap;
}
.timeline-entry__kind {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gray-400);
	margin-bottom: 0.35rem;
	display: block;
}
.timeline-entry__role {
	font-family: var(--font-display);
	font-size: var(--step-lg);
	font-weight: 600;
}
.timeline-entry__org {
	font-size: var(--step-base);
	color: var(--ink-soft);
	margin-top: 0.15rem;
}
.timeline-entry__location {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	color: var(--gray-400);
	margin-top: 0.15rem;
}
.timeline-entry__desc {
	margin-top: 0.85rem;
	color: var(--ink-soft);
	max-width: 62ch;
}
.timeline-entry__desc :last-child { margin-bottom: 0; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-list { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; }
.skills-list li {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	border: 1px solid var(--line);
	padding: 0.4em 0.85em;
	border-radius: var(--radius);
	color: var(--ink-soft);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}
.project-card {
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
.project-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); border-bottom: 1px solid var(--line); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.project-card__title { font-size: var(--step-lg); }
.project-card__title a { text-decoration: none; }
.project-card__title a:hover { text-decoration: underline; }
.project-card__desc { color: var(--ink-soft); font-size: var(--step-sm); }
.project-card__desc p:last-child { margin-bottom: 0; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.project-card__tags li {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gray-600);
	border: 1px solid var(--line);
	padding: 0.25em 0.6em;
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */
.cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}
.cert-card {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--line);
}
.cert-card__badge {
	flex: none;
	width: 56px;
	height: 56px;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--gray-100);
}
.cert-card__badge img { width: 100%; height: 100%; object-fit: contain; }
.cert-card__badge-fallback { color: var(--gray-400); font-size: 1.1rem; }
.cert-card__body { min-width: 0; }
.cert-card__title { font-size: var(--step-base); font-weight: 600; font-family: var(--font-body); }
.cert-card__issuer { color: var(--ink-soft); font-size: var(--step-sm); margin-top: 0.15rem; }
.cert-card__validity {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--gray-400);
	margin-top: 0.4rem;
}
.cert-card__link {
	display: inline-block;
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}
.cert-card__link:hover { border-color: var(--ink); }

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.site-footer { padding-block: clamp(2.5rem, 7vw, 4rem); }
.site-footer__cta {
	font-family: var(--font-display);
	font-size: var(--step-xl);
	max-width: 20ch;
}
.site-footer__links {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}
.site-footer__links a {
	font-family: var(--font-mono);
	font-size: var(--step-sm);
	text-decoration: none;
	color: var(--gray-600);
	border-bottom: 1px solid var(--line);
	padding-bottom: 2px;
}
.site-footer__links a:hover { color: var(--ink); border-color: var(--ink); }
.site-footer__meta {
	margin-top: 3rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--gray-400);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* =========================================================
   PRINT — a résumé site should print cleanly
   ========================================================= */
@media print {
	.site-header, .nav-toggle, .theme-toggle, .hero__resume-download, .skip-link { display: none; }
	.section { border: none; padding-block: 1.25rem; }
	.timeline-entry { opacity: 1 !important; transform: none !important; }
	a { color: var(--ink); text-decoration: none; }
	body { font-size: 11pt; }
}
