:root {
	--ink: #11141b;
	--panel: #171b24;
	--panel-2: #1d222d;
	--line: #2a2f3c;
	--text: #dde2ec;
	--text-dim: #8a91a3;

	--kw: #c295e8;
	--str: #a9d18d;
	--fn: #7fc4dc;
	--num: #e3a86b;
	--tag: #e78b9b;

	--mono: "JetBrains Mono", ui-monospace, monospace;
	--sans: "Inter", system-ui, sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
}
::selection {
	background: var(--kw);
	color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--fn);
	outline-offset: 3px;
	border-radius: 2px;
}

.wrap {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- NAV ---------- */
header.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(17, 20, 27, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.nav-inner {
	max-width: 920px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	font-family: var(--mono);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}
.brand .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--str);
	display: inline-block;
	box-shadow: 0 0 0 3px rgba(169, 209, 141, 0.15);
}
nav.links {
	display: flex;
	gap: 28px;
	font-family: var(--mono);
	font-size: 13px;
}
nav.links a {
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.15s ease;
	position: relative;
}
nav.links a:hover,
nav.links a.active {
	color: var(--text);
}
nav.links a::before {
	content: "./";
	color: var(--fn);
	opacity: 0;
	transition: opacity 0.15s ease;
}
nav.links a:hover::before,
nav.links a.active::before {
	opacity: 1;
}
.nav-cta {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink);
	background: var(--str);
	padding: 7px 14px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.nav-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(169, 209, 141, 0.25);
}

/* ---------- HERO (homepage) ---------- */
.hero {
	padding: 76px 0 60px;
}
.editor {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.editor-bar,
.log-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--line);
}
.editor-bar .traffic,
.log-bar .traffic {
	display: flex;
	gap: 6px;
	margin-right: 10px;
}
.editor-bar .traffic span,
.log-bar .traffic span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
}
.editor-bar .traffic span:nth-child(1),
.log-bar .traffic span:nth-child(1) {
	background: #e78b9b;
}
.editor-bar .traffic span:nth-child(2),
.log-bar .traffic span:nth-child(2) {
	background: #e3a86b;
}
.editor-bar .traffic span:nth-child(3),
.log-bar .traffic span:nth-child(3) {
	background: #a9d18d;
}
.editor-tab,
.log-title {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--text-dim);
}
.editor-tab {
	background: var(--ink);
	border: 1px solid var(--line);
	border-bottom: none;
	padding: 6px 12px;
	border-radius: 6px 6px 0 0;
}
.editor-body {
	font-family: var(--mono);
	font-size: 14.5px;
	padding: 28px 26px 32px;
	overflow-x: auto;
}
.editor-body .ln {
	color: #454c5e;
	display: inline-block;
	width: 26px;
	user-select: none;
}
.code-line {
	white-space: pre;
}
.kw {
	color: var(--kw);
}
.str {
	color: var(--str);
}
.fn {
	color: var(--fn);
}
.num {
	color: var(--num);
}
.tag {
	color: var(--tag);
}
.cm {
	color: #5a6072;
	font-style: italic;
}

.hero-name {
	font-family: var(--mono);
	font-weight: 700;
	font-size: clamp(28px, 5vw, 44px);
	margin: 8px 0 6px;
	color: var(--text);
	letter-spacing: -0.01em;
}
.hero-role {
	font-family: var(--mono);
	color: var(--fn);
	font-size: clamp(15px, 2vw, 18px);
	margin-bottom: 18px;
}
.cursor {
	display: inline-block;
	width: 9px;
	height: 1.1em;
	background: var(--str);
	vertical-align: text-bottom;
	animation: blink 1s steps(2) infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero-actions {
	display: flex;
	gap: 14px;
	margin-top: 26px;
	flex-wrap: wrap;
}
.btn-primary,
.btn-ghost {
	font-family: var(--mono);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 6px;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.btn-primary {
	background: var(--str);
	color: var(--ink);
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(169, 209, 141, 0.25);
}
.btn-ghost {
	border: 1px solid var(--line);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--fn);
	color: var(--fn);
}

/* ---------- PAGE HEAD (sub-pages) ---------- */
.page-head {
	padding: 56px 0 10px;
}
.page-title {
	font-family: var(--mono);
	font-weight: 700;
	font-size: clamp(28px, 5vw, 40px);
	margin: 10px 0 14px;
	color: var(--text);
	letter-spacing: -0.01em;
}
.page-sub {
	color: var(--text-dim);
	max-width: 640px;
	font-size: 16px;
}

/* ---------- SECTION SCAFFOLD ---------- */
section {
	padding: 56px 0;
}
.sec-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 30px;
}
.sec-tag {
	font-family: var(--mono);
	color: var(--fn);
	font-size: 13px;
}
.sec-title {
	font-family: var(--mono);
	font-size: 21px;
	font-weight: 700;
	color: var(--text);
}
.sec-rule {
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* ---------- ABOUT-STYLE STORY ---------- */
.story {
	font-size: 16.5px;
	color: var(--text);
	max-width: 700px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.story .accent {
	color: var(--str);
	font-family: var(--mono);
	font-size: 15px;
}
.story .fn-accent {
	color: var(--fn);
	font-family: var(--mono);
	font-size: 15px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.about-text {
	font-size: 16.5px;
	color: var(--text);
	max-width: 680px;
}
.about-text .accent {
	color: var(--str);
	font-family: var(--mono);
	font-size: 15px;
}
.stat-row {
	display: flex;
	gap: 28px;
	margin-top: 28px;
	flex-wrap: wrap;
}
.stat {
	font-family: var(--mono);
}
.stat b {
	display: block;
	font-size: 24px;
	color: var(--str);
}
.stat span {
	font-size: 12.5px;
	color: var(--text-dim);
}

/* ---------- LOG / TIMELINE ---------- */
.log {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}
.log-body {
	font-family: var(--mono);
	font-size: 14px;
	padding: 22px 24px;
}
.log-line {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.log-line:last-child {
	border-bottom: none;
}
.log-date {
	color: var(--num);
	white-space: nowrap;
	min-width: 120px;
}
.log-text {
	color: var(--text);
}
.log-text b {
	color: var(--fn);
	font-weight: 600;
}

/* ---------- VALUES ---------- */
.values-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.value-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 22px 24px;
}
.value-card .idx {
	font-family: var(--mono);
	color: var(--fn);
	font-size: 13px;
	margin-bottom: 10px;
	display: block;
}
.value-card h3 {
	font-family: var(--mono);
	font-size: 15.5px;
	color: var(--text);
	margin-bottom: 8px;
}
.value-card p {
	font-size: 14.5px;
	color: var(--text-dim);
}

/* ---------- OUTSIDE / LIST CARD ---------- */
.outside {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 26px 28px;
}
.outside ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.outside li {
	padding-left: 22px;
	position: relative;
	font-size: 15px;
	color: var(--text);
}
.outside li::before {
	content: ">";
	position: absolute;
	left: 0;
	color: var(--str);
	font-family: var(--mono);
	font-weight: 700;
}

/* ---------- EXPERIENCE (job cards) ---------- */
.job {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 26px 28px;
	position: relative;
	overflow: hidden;
	margin-bottom: 22px;
}
.job:last-child {
	margin-bottom: 0;
}
.job::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--fn);
}
.job.freelance::before {
	background: var(--str);
}
.job-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}
.job-title {
	font-family: var(--mono);
	font-weight: 700;
	font-size: 17px;
	color: var(--text);
}
.job-date {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--fn);
	background: rgba(127, 196, 220, 0.1);
	padding: 3px 9px;
	border-radius: 20px;
	white-space: nowrap;
}
.job-date.ongoing {
	color: var(--str);
	background: rgba(169, 209, 141, 0.1);
}
.job-org {
	color: var(--text-dim);
	font-size: 14px;
	margin-bottom: 16px;
	font-family: var(--mono);
}
.job ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.job li {
	padding-left: 22px;
	position: relative;
	font-size: 15px;
	color: var(--text);
}
.job li::before {
	content: ">";
	position: absolute;
	left: 0;
	color: var(--str);
	font-family: var(--mono);
	font-weight: 700;
}
.job-note {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	font-size: 13px;
	color: var(--text-dim);
	font-style: italic;
}

/* ---------- SKILLS ---------- */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.skill-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 20px 22px;
}
.skill-card h3 {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--fn);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.skill-card h3::before {
	content: "#";
	color: var(--num);
}
.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pill {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--text);
	background: var(--ink);
	border: 1px solid var(--line);
	padding: 6px 11px;
	border-radius: 5px;
}
.highlight-pill {
	border-color: var(--str);
	color: var(--str);
}
.soft-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.soft-list li {
	font-size: 14.5px;
	color: var(--text);
	padding-left: 18px;
	position: relative;
}
.soft-list li::before {
	content: "•";
	color: var(--str);
	position: absolute;
	left: 0;
}

/* ---------- EDUCATION ---------- */
.edu-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 26px 28px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}
.edu-degree {
	font-family: var(--mono);
	font-weight: 700;
	font-size: 16.5px;
	color: var(--text);
	margin-bottom: 6px;
}
.edu-school {
	color: var(--text-dim);
	font-size: 14.5px;
}
.edu-date {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--num);
	background: rgba(227, 168, 107, 0.1);
	padding: 5px 12px;
	border-radius: 20px;
	white-space: nowrap;
}

.edu-detail-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 26px 28px;
}
.edu-detail-card h3 {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--fn);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}

/* ---------- HOMEPAGE NAV CARDS ---------- */
.nav-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.nav-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 22px 22px 20px;
	text-decoration: none;
	display: block;
	transition:
		border-color 0.15s ease,
		transform 0.15s ease;
}
.nav-card:hover {
	border-color: var(--fn);
	transform: translateY(-2px);
}
.nav-card .idx {
	font-family: var(--mono);
	color: var(--num);
	font-size: 12px;
	display: block;
	margin-bottom: 10px;
}
.nav-card h3 {
	font-family: var(--mono);
	font-size: 16px;
	color: var(--text);
	margin-bottom: 8px;
}
.nav-card p {
	font-size: 13.5px;
	color: var(--text-dim);
	margin-bottom: 14px;
}
.nav-card .arrow {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--fn);
}

/* ---------- CONTACT ---------- */
.contact,
.cta-band {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 44px 36px;
	text-align: center;
}
.contact .sec-tag {
	display: block;
	margin-bottom: 10px;
}
.contact h2,
.cta-band h2 {
	font-family: var(--mono);
	font-size: clamp(22px, 4vw, 30px);
	color: var(--text);
	margin-bottom: 14px;
}
.contact p,
.cta-band p {
	color: var(--text-dim);
	max-width: 480px;
	margin: 0 auto 28px;
}
.contact-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}
.contact-links a {
	font-family: var(--mono);
	font-size: 13.5px;
	color: var(--text);
	border: 1px solid var(--line);
	padding: 11px 18px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.15s ease;
}
.contact-links a:hover {
	border-color: var(--str);
	color: var(--str);
	transform: translateY(-1px);
}

footer {
	padding: 34px 0 46px;
	text-align: center;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--text-dim);
	border-top: 1px solid var(--line);
	margin-top: 20px;
}
footer .cm {
	color: #454c5e;
}

@media (max-width: 720px) {
	nav.links {
		display: none;
	}
	.skills-grid {
		grid-template-columns: 1fr;
	}
	.values-grid {
		grid-template-columns: 1fr;
	}
	.nav-cards {
		grid-template-columns: 1fr;
	}
	.editor-body {
		font-size: 13px;
		padding: 22px 16px;
	}
	.editor-body .ln {
		width: 20px;
	}
	.log-line {
		flex-direction: column;
		gap: 4px;
	}
}
