/*** Fonts ***/

@font-face {
  font-family: 'Montserrat Local';
  src: url('/assets/fonts/montserrat-v31-latin/montserrat-v31-latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat Local';
  src: url('/assets/fonts/montserrat-v31-latin/montserrat-v31-latin-ext-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Candal Local';
  src: url('/assets/fonts/candal-v16-latin/candal-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  }

/*** Layout ***/
body {
   font-family: 'Montserrat Local', sans-serif;
   font-size: 1rem;
   font-weight: 400;
   line-height: 1.6;
   color: #313131;
   background-image: url("/assets/multimedia/longplay-background.webp");
   width: 100%;
   margin: 0;
}

*, *::before, *::after {
	box-sizing: border-box;
}

header {
   grid-area: header;
}
main {
   grid-area: main;
   opacity: 0;
   animation: fadeIn 2s ease-out forwards
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

aside {
   grid-area: sidebar;
}

footer {
   grid-area: footer;
	margin-top: 5rem;
	padding: 3rem 1.5rem 2.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
	text-align: center;
}

img {
   height: auto;
   max-width: 100%;
   vertical-align: top;
}

mark {
	display: inline;
	padding: 0.08em 0.26em 0.14em;
	background: linear-gradient(
		to bottom,
		rgba(255, 235, 59, 0.92),
		rgba(243, 222, 59, 0.96)
	);
	color: inherit;
	line-height: 0.95;
	border-radius: 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hand-underlined {
	position: relative;
	display: inline-block;
	color: inherit;
	text-decoration: none;
	padding-bottom: 0.08em;
	transition: color 0.2s ease;
}

.hand-underlined::after {
	content: "";
	position: absolute;
	left: -0.5em;
	right: -0.5em;
	bottom: -0.04em;
	height: 2px;
	background: rgba(0, 0, 0, 0.92);
	border-radius: 999px;
	transform: rotate(-.0.5deg);
	transform-origin: left center;
	transition: transform 0.2s ease, height 0.2s ease;
	pointer-events: none;
}

.hand-underlined:hover::after {
	height: 3px;
	transform: rotate(-1deg) scaleX(1.022);
}

.top-bar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(248, 240, 186, .92);
	border-bottom: 1px solid rgba(120,100,60,.12);
	padding: .45rem 1rem;
	text-align: center;
	box-shadow:
		0 1px 0 rgba(255,255,255,.35) inset,
		0 2px 6px rgba(0,0,0,.04);

	font-size: .92rem;
	color: #4b4335;
}

.lead {
	text-align: right;
	padding-right: 6rem;
	font-size: 1.5rem;
	}

.homepage-articles, #related-posts > div {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 25px;
}

.main-section {
	padding-left: 3rem;
	padding-right: 3rem;
}

.article-list-item {
	border: 3px solid;
	border-radius: 20px;
	padding: 20px;
}

.hero-h1-top {
	font-family: 'Montserrat Local', sans-serif;
	font-size: 0.8rem;
}

.hero-h1-bottom {
	font-family: 'Candal Local', sans-serif;
	font-weight: 800;
	display: inline-block;
	line-height: 1.25;
}

.services {
}

.main-section h1 {
	padding-left: 6rem;
}

.section-dropdown {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: right;
	margin-bottom: 5px;
	padding-right: 6rem;
	cursor: pointer;
	color: grey;
}	

.section-dropdown:hover, .section-dropdown:hover + hr, .section-dropdown.active {
	color: black;
	border-color: black;
}

hr.active {
	border: 1px solid black;
}

.brow-heading {
	font-size: 0.8rem;
}

.inner-text {
	overflow: hidden;
	max-height: 0;
	width: 100%;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0;
	padding: 0;
	transition: max-height 1s ease, padding .3s ease;
}

.inner-text p:first-of-type {
	padding-top: 1rem;
}

.inner-text p:last-of-type {
	padding-bottom: 1rem;
}

.inner-text.open  {
	opacity: 1;
	max-height: 5000px;
	padding-left: 2rem;
	padding-right: 2rem;
}

.main-section hr {
        width: 100vw;
        margin-left: 50%;
	transform: translateX(-50%);
	box-sizing: border-box;
}

.section-collapse {
	display: block;
	margin-right: auto;
	margin-top: 1.5rem;
	background: none;
	border: 0;
	padding: 0.2rem 0.4rem;
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: rgba(0,0,0,.55);
	transition: color .2s ease, transform .2s ease;
}

.section-collapse:hover {
	color: rgba(0,0,0,.9);
	transform: translateY(-2px);
}

@media (max-width: 1024px) {
	.main-section h1 {
		padding-left: 4rem;
	}
	.section-dropdown, .lead {
		padding-right: 4rem;
	}	
}

@media (max-width: 768px) {
	.main-section {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
	.main-section h1 {
		padding-left: 1.25rem;
	}
	.section-dropdown, .lead {
		padding-right: 1.25rem;
	}

	.homepage-articles,
	.collab-grid,
	#related-posts > div {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 425px) {
	.main-section {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	.main-section h1 {
		padding-left:1.5rem;
	}
	.section-dropdown, .lead {
		font-size: 1.2rem;
		padding-right: 1.5rem;
	}
	.inner-text p:first-of-type {
		padding-top: 0.5rem;
	}
	.inner-text p:last-of-type {
		padding-bottom: 0.5rem;
	}
	.inner-text {
		font-size: 0.9rem;
	}
}

@media (max-width: 360px) {
	.main-section {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.main-section h1 {
		padding-left: 1rem;
	}
	.section-dropdown, .lead {
		padding-right: 1rem;
	}
}
