/*
 * Site-specific refinements layered over the HTML5 UP "Stellar" template (main.css).
 * Kept separate so the template can be swapped or updated without losing these.
 */

:root {
	--ink: #2b2b2b;        /* headings, emphasis */
	--text: #4a4a4a;       /* body copy */
	--muted: #767676;      /* secondary info (venues, dates) */
	--rule: #e6e6e6;       /* dividers */
	--accent: #8c1515;     /* Stanford cardinal */
}

/* ---------- Base type: darker, slightly heavier text for readability ---------- */

#main {
	color: var(--text);
	font-weight: 400;
}

#main h2,
#main h3,
#main h4 {
	color: var(--ink);
	font-weight: 400;
}

#main b,
#main strong {
	color: var(--ink);
	font-weight: 600;
}

#main a {
	color: var(--ink);
	border-bottom: 1px solid rgba(140, 21, 21, 0.35);
}

	#main a:hover {
		color: var(--accent);
		border-bottom-color: var(--accent);
	}

#main a.noline,
#main a.button {
	border-bottom: none;
}

#main section.main {
	border-top-color: var(--rule);
}

/* ---------- Header: name and title ---------- */

#header {
	padding-bottom: 2.5em;
}

#header .hspotlight .image img {
	width: 11em;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

#header h2 {
	color: var(--ink);
	font-size: 2.1em;
	font-weight: 400;
	letter-spacing: 0.01em;
	margin-bottom: 0.3em;
}

#header h5 {
	color: var(--muted);
	font-size: 1em;
	font-weight: 400;
	line-height: 1.6;
}

/* ---------- Nav ---------- */

#nav ul li a {
	color: var(--text);
	font-weight: 400;
}

#nav ul li a.active {
	color: var(--accent);
}

/* ---------- Research / news ---------- */

#main .news li b,
#research p b {
	color: var(--accent);
}

/* ---------- Simple lists (Teaching, Awards) ---------- */

ul.plain {
	padding-left: 0;
	margin-bottom: 0;
}

	ul.plain li {
		list-style: none;
		padding: 0.45em 0;
		border-bottom: 1px solid var(--rule);
	}

		ul.plain li:last-child {
			border-bottom: none;
		}

/* ---------- Publications ---------- */

ul.publications {
	padding-left: 0;
}

	ul.publications li {
		list-style: none;
		position: relative;
		padding: 0.6em 0 0.6em 7.5em;
		color: var(--muted);
		line-height: 1.55;
	}

	#main .pubscolor {
		position: absolute;
		left: 0;
		top: 0.6em;
		width: 7em;
		color: var(--accent);
		font-size: 0.9em;
		line-height: 1.75;
	}

		#main .pubscolor b {
			color: inherit;
		}

	ul.publications .pubtitle {
		display: block;
		color: var(--ink);
		font-weight: 600;
	}

	ul.publications .me {
		color: var(--ink);
		font-weight: 600;
	}

	ul.publications a.noline {
		color: var(--muted);
	}

		ul.publications a.noline:hover {
			color: var(--accent);
		}

@media screen and (max-width: 736px) {

	ul.publications li {
		padding-left: 0;
	}

	#main .pubscolor {
		position: static;
		display: block;
		width: auto;
	}

}

/* ---------- Press ---------- */

#press h4 {
	font-size: 1em;
	font-weight: 600;
	margin: 1.5em 0 0.4em 0;
}

	#press header + h4 {
		margin-top: 0;
	}

#press ul.press {
	padding-left: 1.2em;
}

	#press ul.press li {
		padding: 0.15em 0;
	}

/* ---------- Footer ---------- */

#footer h2,
#footer dt {
	color: var(--ink);
}

#footer dd,
#footer .copyright {
	color: var(--text);
}

/* ---------- Teaching ---------- */

#teaching h4 {
	font-size: 1em;
	font-weight: 600;
	margin: 1.5em 0 0.3em 0;
}

	#teaching header + h4 {
		margin-top: 0;
	}

#teaching .terms {
	color: var(--muted);
	margin-left: 0.4em;
}

#teaching .note {
	color: var(--muted);
	font-size: 0.85em;
	margin: 0.4em 0 0 0;
}

/* ---------- Screen-reader-only labels on icon links ----------
   Keeps "PDF" / "Code" / "Video" text available to assistive tech but hidden visually. */

#main a.noline > .label,
#footer .icons .label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Students: spacing between stacked groups ---------- */

.students ul.people + h4 {
	margin-top: 1.5em;
}

/* ---------- Header spacing (photo + name block) ---------- */

#header .hspotlight {
	gap: 3em;
	margin-bottom: 1em;
}

	#header .hspotlight .image {
		margin-left: 0;
		padding: 0;
	}

	#header .hspotlight .content {
		text-align: left;
	}

#header h2 {
	letter-spacing: 0.005em;
	line-height: 1.2;
	margin-bottom: 0.6em;
}

#header h5 {
	letter-spacing: 0.01em;
	line-height: 1.75;
	margin: 0;
}

@media screen and (max-width: 980px) {

	#header .hspotlight {
		gap: 1.75em;
	}

		#header .hspotlight .content {
			text-align: center;
		}

}

/* ---------- Compact header on sub-pages (publications.html, press.html) ---------- */

#header.compact {
	padding-top: 3em;
	padding-bottom: 1.5em;
}

	#header.compact h2 {
		font-size: 1.8em;
		margin-bottom: 0.3em;
	}

		#header.compact h2 a {
			border-bottom: none;
			color: var(--ink);
		}

	#header.compact h5 {
		font-size: 0.95em;
	}

#publications .note {
	color: var(--muted);
	font-size: 0.9em;
}
