/* Homepage — Yasodara Córdova. Margin-note grid layout on top of the site's existing base (styles.css). */

:root {
	--yellow: #dace09;
	--yellow-dark: #8a8206;
	--yellow-mark: #D9C611;
	--yellow-flash: rgba(255, 224, 55, .5);
	--yellow-flash-soft: rgba(255, 224, 55, .35);
}

html, body {
	margin: 0;
	padding: 0;
	background: #fff;
	color: #000;
	-webkit-font-smoothing: antialiased;
}

/* ---- top nav ---- */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: #000;
	font-family: 'Playfair Display', Georgia, serif;
}
.site-nav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 48px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 40px;
}
.site-nav-links {
	display: flex;
	gap: 36px;
}
.site-nav-social {
	display: flex;
	align-items: center;
	gap: 22px;
}
.nav-link {
	position: relative;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 400;
	padding: 6px 0;
	transition: color .2s;
	display: flex;
}
.nav-link:hover {
	color: var(--yellow-mark);
	text-decoration: none;
}
.nav-link.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--yellow-mark);
}
.nav-link-speaking {
	font-weight: 500;
	color: #E7D30D;
}
.nav-link-muted {
	color: #777;
}
.site-nav-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	padding: 0 8px;
	cursor: pointer;
	margin-right: -8px;
}
.site-nav-burger span {
	display: block;
	height: 1.5px;
	background: #fff;
}
.site-nav-menu {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: #000;
	padding: 8px 40px 20px;
}
.site-nav-menu.is-open {
	display: flex;
}
.site-nav-menu .nav-link {
	padding: 12px 0;
}
.site-nav-menu-divider {
	height: 1px;
	background: #333;
	margin: 8px 0;
}
.site-nav-menu .site-nav-social {
	padding: 12px 0;
}
.site-nav-tab {
	position: fixed;
	top: 48px;
	left: 0;
	width: 390px;
	height: 8px;
	background: var(--yellow);
	z-index: 99;
}

/* ---- page content ---- */

.page-content {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	line-height: 1.6;
	text-align: justify;
	max-width: 1120px;
	margin: 0 auto;
	padding: 120px 40px 96px;
}

.site-header {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 30%;
	column-gap: 55px;
	align-items: start;
	padding-bottom: 48px;
	min-height: 220px;
}
.site-header-neuron {
	position: absolute;
	left: -40px;
	top: -72px;
	width: 315px;
	height: 478px;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: auto, 315px 100px, 313px 476px;
	background-position: 0 0, 0 -200px, 1px 1px;
	background-image: url(../images/neuronio1.svg), radial-gradient(ellipse, #fff 50%, transparent 100%), linear-gradient(#EFEFEF, #EFEFEF);
	animation: brilho 7s linear infinite;
	z-index: 0;
	opacity: 0.5;
}
.site-header-name {
	position: relative;
	z-index: 1;
	padding-top: 100px;
}
.site-header-name h1 {
	font-size: 44px;
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}
.home-link {
	color: inherit;
	text-decoration: none;
}

.page-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 30%;
	column-gap: 55px;
	align-items: stretch;
}
.main-col {
	padding-top: 24px;
}
.margin-rail {
	position: relative;
	padding-top: 10px;
	min-height: 100%;
}

.main-col p {
	margin: 0 0 24px;
}

.section-heading {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #333;
	margin: 56px 0 20px;
}
.section-heading[id] {
	scroll-margin-top: 80px;
}
.section-heading-muted {
	color: #999;
}
.main-col p.muted {
	color: #999;
}

.work-title {
	font-size: 24px;
	font-weight: 500;
	margin: 0 0 8px;
	line-height: 1.25;
}
.main-col p.work-body {
	margin: 0 0 32px;
}

.main-col p.contact-body {
	margin: 0 0 16px;
}

/* ---- footnote-style margin notes ---- */

a.margin-note {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--yellow);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	cursor: pointer;
}
a.margin-note:hover {
	color: var(--yellow-dark);
	text-decoration: underline;
	text-decoration-color: var(--yellow-dark);
}
a.margin-note .fn {
	display: inline-block;
	text-decoration: none;
	font-size: 0.65em;
	color: var(--yellow-mark);
	vertical-align: super;
	line-height: 0;
	margin-left: 1px;
	font-weight: 500;
	transition: background-color .25s;
	border-radius: 2px;
	padding: 0 1px;
}
a.margin-note .fn.flash {
	background: var(--yellow-flash);
}
.mn {
	position: absolute;
	left: 0;
	right: 0;
	font-size: 0.65em;
	line-height: 1.5;
	color: #444;
	padding: 0 40px 20px 10px;
	text-align: left;
	transition: background-color .25s;
	border-radius: 2px;
}
.mn .num {
	position: absolute;
	left: -10px;
	top: 0;
	color: var(--yellow-mark);
	font-weight: 500;
}
.mn.flash {
	background: var(--yellow-flash-soft);
}
.mn-inline {
	display: none;
}

@keyframes brilho {
	0%, 95% { background-position: 0 0, 0 -200px, 1px 1px; }
	100% { background-position: 0 0, 0 300px, 1px 1px; }
}

/* ---- mobile ---- */

@media (max-width: 760px) {
	.page-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0 !important;
	}
	.margin-rail {
		display: none !important;
	}
	.site-header {
		grid-template-columns: 1fr !important;
	}
	.site-header-neuron {
		left: -20px !important;
		transform: scale(.8);
		transform-origin: top left;
	}
	.site-nav-links,
	.site-nav-inner > .site-nav-social {
		display: none !important;
	}
	.site-nav-burger {
		display: flex !important;
	}
	.mn-inline {
		display: block;
		font-size: 0.65em;
		line-height: 1.5;
		color: #444;
		text-align: left;
		border-left: 2px solid var(--yellow-mark);
		padding: 2px 0 2px 16px;
		margin: -8px 0 24px;
		list-style: none;
	}
	.mn-inline li {
		position: relative;
		padding-left: 20px;
		margin: 0 0 6px;
	}
	.mn-inline li .num {
		position: absolute;
		left: 0;
		color: var(--yellow-mark);
		font-weight: 500;
	}
}
