/* Custom additions for Ariel Chan's site */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500&family=Inter:wght@300;400;500;600&display=swap");

:root {
	--accent-purple: #645394;
}

body, input, select, textarea {
	font-family: "Inter", "Source Sans Pro", Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-nav a.brand {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
}

/* Link highlight color, matching the pub-tag purple */
a:hover {
	color: var(--accent-purple) !important;
}

.site-nav {
	background: #14141a;
	padding: 0.9em 2em;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2em;
	font-family: "Inter", sans-serif;
	font-size: 0.85em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-nav a {
	color: #f4f4f4;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.site-nav a:hover {
	color: var(--accent-purple) !important;
}

.site-nav a.brand {
	margin-right: auto;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	font-size: 20px;
}

.pub-entry {
	margin-bottom: 1.75em;
}

.pub-entry .pub-venue {
	font-style: italic;
}

.pub-tag {
	display: inline-block;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent-purple);
	margin-right: 0.75em;
}

/* Hero: fixed Hong Kong skyline background framing a flush photo + bio split (no card chrome) */
.hero-hkbg {
	position: relative;
	min-height: 100vh;
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url("../../images/hk-skyline.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	padding: 4rem 2rem;
	text-align: left;
}

.hero-card {
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	align-items: stretch;
	max-width: 64rem;
	width: 100%;
	min-height: 28rem;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.hero-photo {
	flex: 0 0 40%;
	max-width: 40%;
	background: #f6f4f9;
	overflow: hidden;
}

.hero-photo picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

.hero-text {
	flex: 0 0 60%;
	max-width: 60%;
	background: rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #1c1c1e;
	padding: 3.5rem 3.25rem;
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-text h1,
.hero-text p {
	color: #1c1c1e;
}

.hero-text p {
	text-align: justify;
}

.hero-text .major {
	text-align: left;
}

.hero-email a {
	color: #1c1c1e;
	text-decoration: underline;
}

@media screen and (max-width: 900px) {
	.hero-hkbg {
		padding: 0;
		min-height: auto;
		background-attachment: scroll;
	}

	.hero-card {
		flex-direction: column;
		box-shadow: none;
	}

	.hero-photo,
	.hero-text {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.hero-photo img {
		height: 60vh;
		width: 100%;
		object-fit: cover;
		object-position: center 20%;
	}

	.hero-text {
		padding: 2.5rem 1.5rem;
		text-align: center;
		align-items: center;
	}
}

/* Button hover: match accent purple (theme's .button:hover otherwise wins on specificity) */
.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover {
	box-shadow: inset 0 0 0 1px var(--accent-purple) !important;
	color: var(--accent-purple) !important;
}

/* Font size adjustments */
body, input, select, textarea, p {
	font-size: 16px;
}

h2 {
	font-size: 32px;
}

/* Justify body copy in About and Beyond Research sections */
#about p,
#beyond p {
	text-align: justify;
}

/* Footer social icons (GitHub, Scholar, LinkedIn, Email): hover to match accent purple */
a.icon.style2:hover:before {
	box-shadow: inset 0 0 0 1px var(--accent-purple) !important;
	color: var(--accent-purple) !important;
}

a.icon.style2:active:before {
	background-color: rgba(100, 83, 148, 0.1) !important;
	box-shadow: inset 0 0 0 1px var(--accent-purple) !important;
	color: var(--accent-purple) !important;
}
