/*
Theme Name: Adjacent 2024
Theme URI: 
Author: ITP
Author URI: 
Description: 
Tags: 
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 
*/

@font-face {
    font-family: Archivo;
    src: local("Archivo"),
         url(fonts/Archivo-VariableFont_wdth,wght.ttf);
}

@font-face {
    font-family: "Archivo Italic";
    src: local("Archivo Italic"),
         url(fonts/Archivo-Italic-VariableFont_wdth,wght.ttf);
}

/* CSS rules from WordPress */
.visually-hidden
{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	overflow: hidden;
	word-wrap: normal !important;
}

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font-weight: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

*
{
	box-sizing: border-box;
}

html, body
{
	margin: 0;
	width: 100vw;
	height: 100vh;

	/* turn off global scrollbar */
	overflow-x: hidden;
	overflow-y: hidden;

	--border-width: 2px;
}

body
{
	display: flex;
	flex-direction: column;

	font-family: Archivo, Arial, Helvetica, sans-serif;
}

p {
	margin: 1em 0;
	line-height: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
}

a {
	text-decoration: none;
	color: black;
}

a:hover {
	color: #6A6A6A;
}

.aligncenter {
	clear: both;
	margin: auto;
	text-align: center;
}

header.page
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
	border-bottom: var(--border-width) solid;
	text-transform: uppercase;
}

header.page #logo,
header.page .link
{
	flex: 1;
}

header.page #logo
{
	padding: 0.25rem 0;
}

header.page #logo img
{
	height: 3em;
	width: auto;
}

header.page .link
{
	text-align: center;
}

header.page .search-form
{
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

header.page .search-form formset
{
	flex: 1;
	margin-left: 1rem;
	padding: 0 1rem;
}

/* helps maintain width for visually hidden element */
header.page .search-form.visually-hidden
{
	position: static;
	width: auto;
	margin: 0;
	overflow: visible;
}

header.page .search-form input[type=search]
{
	width: 100%;
	padding: 8px;
	border: none;
	outline: none;
	font-size: 1.4rem;
}

header.page .search-icon
{
	float: right;
	cursor: pointer;
}

header.page .search-icon img
{
	width: 1.2rem;
	height: 1.2rem;
}

header.page .search-form .close
{
	display: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-left: 1rem;
}

header.page.search-mode #logo
{
	flex: 0;
}

header.page.search-mode .link
{
	display: none;
}


header.page.search-mode .search-form
{
	justify-content: space-between;
}

#home .articles
{
	float: left;
	width: 80%;
	max-height: 100vh;
	overflow-y: auto;
	border-right: var(--border-width) solid black;
}

#home article
{
	clear: both;
	height: 20rem;
	overflow: hidden;
	border-bottom: var(--border-width) solid;
}

#home article figure
{
	float: left;
	width: 50%;
	height: 100%;
	overflow: hidden;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

#home article main
{
	float: left;
	width: 50%;
	padding-top: 1rem;
	padding-left: 2.8vw;
	padding-right: 3rem;
	overflow: hidden;
}

#home article h2
{
	font-size: x-large;
	font-weight: 500;
}

#home aside#announcement
{
	float: right;
	width: 20%;
	padding: 1rem;
	overflow-y: auto;
	text-align: center;
}

#home aside#announcement h1
{
	margin-bottom: 1rem;
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: normal;
}

#home aside#announcement h2
{
	margin: 2rem auto;
	text-align: center;
	text-transform: uppercase;
	font-size: large;
}

#home aside#announcement img
{
	width: 100%;
	height: auto;
}

#home aside#announcement p
{
	text-align: inherit;
}

nav#issues-nav
{
	position: relative;
	border-bottom: var(--border-width) solid;
}

nav#issues-nav > ul
{
	display: grid;
	grid-gap: 1px;
}

nav#issues-nav > ul > li
{
	text-align: center;
	text-transform: uppercase;
	padding: 0.5em;
	white-space: nowrap;
}

nav#issues-nav > ul > li img.down-arrow
{
	display: none;
	width: 1em;
	height: 1em;
	padding-left: 0.25rem;
	vertical-align: bottom;
}

nav#issues-nav.closed > ul > li.active img.down-arrow
{
	display: inline-block;
}

nav#issues-nav.open > ul
{
	grid-template-columns: repeat(4, 1fr);
	position: absolute;
	width: 100%;
	z-index: 10;
	background: transparent;
}

nav#issues-nav.open > ul > li
{
	border-right: 1px solid;
	border-bottom: 1px solid;
	box-shadow: 0 0 0 1px black;
	background: white;
}

nav#issues-nav.closed > ul > li
{
	display: none;
}

nav#issues-nav.closed > ul > li.active
{
	display: block;
	margin: auto;
}

#issues
{
	flex: 1;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	overflow-anchor: none;
}

.issue
{
	width: 800px;
	flex-shrink: 0;
	overflow-y: hidden;
	scroll-behavior: smooth;
	border-right: var(--border-width) dashed;
	cursor: pointer;
	padding-bottom: 5rem;
}

.issue *
{
	filter: blur(8px);
	/* transition: filter 0.2s; */ /* Cool but potentially slow */
}

.issue:last-child
{
	border-right: none;
}

.issue.active
{
	overflow-y: auto;
	background-color: white;
	cursor: auto;
}

.issue.active *
{
	filter: none;
}

.issue header
{
	margin: 2rem 2rem 3rem;
	min-height: 8rem;
}

.issue header h2
{
	text-transform: uppercase;
	text-decoration: underline;
	font-weight: normal;
}

.issue header h2 .name
{
	text-transform: none;
}

.issue header .publish-date
{
	font-size: small;
}

.issue > figure
{
	display: block;
	height: 24rem;
	overflow-y: hidden;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.issue > .articles
{
	display: grid;
	grid-template-columns: 2fr 1fr;
	margin: 0 2rem;
	text-align: left;
	width: calc(100% - 4rem);
	font-size: 0.8rem;
}

.issue > .articles .th,
.issue > .articles .td
{
	display: flex;
	align-items: center;
	border-bottom: solid 1px black;
}

.issue > .articles .th
{
	padding-bottom: 0.25rem;
	text-transform: uppercase;
	font-weight: 100;
}

.issue > .articles .td.title
{
	padding: 1rem 8rem 1rem 0;
}

.issue > .articles .td.author
{
	padding: 0.5rem 0;
	padding-right: 4em;
}

.issue > .articles .td h3
{
	text-transform: uppercase;
}

.issue > .articles .td a
{
	text-transform: uppercase;
	font-size: 1rem;
	color: inherit;
}

.issue article.post {
	padding: 0 4rem 5rem;
}

.issue article.post h1 {
	font-size: 2rem;
	text-align: center;
	text-transform: uppercase;
}

.issue article.post main>p:first-child{
  width: calc(100% + 8rem);
  max-height: 30rem;
  height: fit-content;
  background-color: gray;
  margin: 2rem -4rem;
  overflow: hidden;
}

.issue article.post main>p:first-child img {
  width: 100%;
  height: auto;
}

.issue .credits
{
	margin-top: 2rem;
	padding: 2rem;
	font-size: 0.8rem;
}

.issue .credits h3
{
	float: left;
	text-transform: uppercase;
	font-weight: normal;
}

.issue .credit-list
{
	float: left;
	margin-left: 10%;
}

.issue .credit
{
	margin-bottom: 0.5rem;
}

.issue .credit > div
{
	display: inline-block;
	width: 18rem;
}

.issue .credit-type
{
	clear: both;
	text-transform: uppercase;
}

.single-post article
{
	padding-bottom: 2rem;
	overflow-y: auto;
	font-size: 105%;
}

.single-post article main
{
	padding: 0 7vw;
}

.single-post article h1 {
	max-width: 1024px;
	margin: 3rem auto 3rem;
	text-align: center;
	font-size: 36pt;
	text-transform: uppercase;
}

.single-post article .issue-name
{
	margin: 0 auto;
	padding: 0.5rem 0;
	border-bottom: var(--border-width) solid;
	text-align: center;
	font-weight: normal;
	text-transform: uppercase;
}

.single-post article .author {
	text-align: center;
	font-size: larger;
	font-weight: 500;
}

.single-post article .original-url {
	text-align: center;
}

.single-post #hero-image {
  width: calc(100% + 4rem);
  /* max-height: 30rem; */
  margin: 1rem auto;
  overflow: hidden;
}

.single-post #hero-image img {
	width: 100%;
	height: auto;
	background-color: white;
}

.single-post article figure
{
	width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.single-post article img
{
	width: 100%;
	height: auto;
}

.single-post article main h2
{
	margin: 3.5rem auto 1.5rem;
}

.single-post article main p,
.single-post article main pre,
.single-post article main blockquote
{
	margin: 0 auto 3.5rem;
}

.single-post article main pre
{
	max-width: 800px;
}

.single-post article main h2,
.single-post article main p,
.single-post article main blockquote
{
	max-width: 600px;
	text-align: left;
}

.single-post article main p
{
	line-height: 1.5;
	font-weight: 200;
}

.single-post article a
{
	text-decoration: underline;
}

.single-post article main blockquote
{
	margin-top: -2rem;
	padding-left: 4em;
}

.single-post article figcaption
{
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	font-size: 0.75em;
	line-height: 1.2rem;
	color: #777;
}

.single-post article .fn,
.single-post article sup
{
	vertical-align: super;
	font-size: 0.6em;
	margin-left: 2px;
}

.single-post article hr
{
	margin: 2rem auto;
}

.single-post article .wp-block-footnotes
{
	width: 600px;
	margin: auto;
	list-style-type: decimal;
	line-height: 1.5;
}

.single-post article footer
{
	margin: 1rem auto 0;
	padding: 2rem 0;
	border-top: 2px solid;
	line-height: 1.5;
	font-size: 0.8em;
}

.single-post article footer .author-blurb
{
	max-width: 600px;
	margin: auto;
}

/* e.g. the About page */
article.page {
	padding: 0 17%;
	overflow-y: auto;
}

article.page main
{
	width: 800px;
	margin: auto;
}

article.page header h1,
article.page main h2
{
	margin: 2rem auto;
	text-align: center;
	font-weight: normal;
}

article.page header h1
{
	font-size: xx-large;
}

article.page main h2
{
	font-size: x-large;
}

article.page figure.featured {
	text-align: center;
}

/*
Index, not to be confused with the home page.
It's a class because the search page also uses this CSS.
*/
.index > main,
.index nav.index-sidebar
{
	overflow-y: auto;
}

.index > main
{
	float: left;
	width: 80%;
}

.index .filter-labels
{
	display: flex;
	justify-content: center;
	gap: 1rem;
	padding-bottom: 0.5rem;
}

.index .filter-labels .filter-label
{
	display: inline-block;
	padding: 0 0.5rem 0.25rem 0.25rem;
	border-radius: 8px;
	background-color: #EEE;
	font-weight: 600;
}

.index .filter-labels .filter-label .close
{
	color: #999;
	font-weight: normal;
	font-size: 150%;
}

.index article
{
	display: flex;
	border-bottom: var(--border-width) solid black;
}

.index article figure
{
	flex: 0;
	flex-basis: 200px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: white;
}

.index article main
{
	flex: 1;
	display: flex;
	justify-content: space-between;
	padding: 0.25rem 1rem;
}

.index article main > div
{
	padding: 0.5rem 0;
}

.index article main .content
{
	flex: 2;
}

.index article main .year,
.index article main .issue-name
{
	flex: 1;
	text-align: center;
}

.index article h2,
.index article .author
{
	margin: 0;
	margin-bottom: 0.5rem;
	font-weight: normal;
}

.index article h2 a
{
	color: inherit;
}

.index article .author
{
	color: #6A6A6A;
}

.index article .excerpt
{
	font-size: small;
}

.index article .read-more
{
	display: block;
	margin-top: 2rem;
	font-size: small;
	color: inherit;
}

.index nav.index-sidebar
{
	float: right;
	width: 20%;
	padding-top: 1rem;
	padding-left: 1rem;
	border-left: var(--border-width) solid black;
	text-transform: uppercase;
	font-weight: 500;
}

.index nav.index-sidebar section
{
	margin-bottom: 1rem;
}

.index nav.index-sidebar ul
{
	margin-top: 0.25rem;
	margin-left: 1rem;
}

.index nav.index-sidebar ul li a
{
	color: #6A6A6A;
}

.index nav.index-sidebar ul li a.selected
{
	color: black;
}

#search .results-info
{
	margin-bottom: 0.5rem;
	padding: 2rem 0;
	padding-left: 0.5rem;
	border-bottom: 2px solid;
}

@media (max-width: 800px)
{
	html, body
	{
		height: auto;
		overflow-y: auto;
	}

	header.page
	{
		flex-wrap: wrap;
		padding: 0;
	}

	header.page #logo,
	header.page.search-mode #logo
	{
		flex: inherit;
		flex-shrink: 0;
		width: 100%;
		text-align: center;
		margin: 0.5rem auto;
	}

	header.page.search-mode .link
	{
		display: block;
	}

	header.page .search-form
	{
		flex: inherit;
		flex-shrink: 0;
		width: 100%;
		padding: 1rem 1rem 0.5rem;
	}

	header.page .search-form formset
	{
		flex: 1;
		margin-left: 0;
		padding-left: 0;
		border-left: none;
	}

	header.page .search-icon
	{
		margin: 0 auto;
		text-align: center;
	}

	#home
	{
		display: flex;
		flex-direction: column-reverse;
	}

	#home .articles
	{
		float: none;
		width: auto;
		max-height: none;
		padding-bottom: 1rem;
		border-right: none;
	}

	#home article
	{
		height: 20vh;
	}

	#home article main
	{
		padding-right: 1rem;
	}

	#home aside#announcement
	{
		float: none;
		width: auto;
	}

	nav#issues-nav.open > ul
	{
		grid-template-columns: repeat(2, 1fr);
	}

	.issue
	{
		width: 80%;
	}

	.issue > .articles td
	{
		max-width: none;
	}

	.issue > .articles td:last-child
	{
		padding-right: 0;
	}

	.index
	{
		display: flex;
		flex-direction: column-reverse;
	}

	.index > main,
	.index nav.index-sidebar
	{
		overflow-y: visible;
	}

	.index > main
	{
		float: none;
		width: auto;
		padding: 0.5rem;
	}

	.index .articles
	{
		padding: 0;
		border: none;
	}

	.index nav.index-sidebar
	{
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		float: none;
		width: auto;
		border-left: none;
	}

	.single-post article figure
	{
		width: 100%;
		/*
		margin-left: 2rem;
		margin-right: 2rem;
		*/
	}

	.single-post article img
	{
		width: 100%;
	}

	article.page
	{
		padding: 0 1rem;
	}

	article.page main
	{
		width: auto;
	}
}

@media (min-width: 1450px)
{
	.single-post article main pre,
	.single-post article figure
	{
		max-width: 1200px;
	}

	.single-post article main h2,
	.single-post article main p,
	.single-post article main blockquote,
	.single-post article .wp-block-footnotes,
	.single-post article footer .author-blurb
	{
		max-width: 800px;
	}
}
