/*
Theme Name: wsj
Theme URI: https://jacobsacksjones.com
Author: Jacob Sacks Jones
Author URI: https://jacobsacksjones.com
Description: WSJ theme for Wendy Sacks Jones
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2025
Requires at least: 1.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: wsj

WSJ WordPress Theme 2025
WSJ is distributed under the terms of the GNU GPL
*/

/* SITE WIDE VARS */
:root {
	--siteFontSerif: "Source Serif 4", serif;
	--siteFontSansSerif: "Source Sans 3", "Helvetica", sans-serif;
	--pageSidePadding: 5vw;
	
	--fontSizeStandard: 1rem;
	--fontSizeLarge: 1.5rem;
	--fontSizeSmall: 0.7rem;
	
	--fontWeightStd: 300;
	--fontWeightBold: 400;
	
	--siteBackground: #fff;
	--siteBackgroundTrans: rgba(255,255,255,0.95);
	--siteColor: #000;
	--siteLinkColor: rgba(201,37,36,1.00);
	--siteLinkHoverColor: #2D2D2D;
	--mobileMenuButtonActiveBg: rgba(247,247,247,1.00);
	
	--maxImageWidth: 520px;
}

/* Generic Elements & Fixes */
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: inherit;
    vertical-align: baseline
}
html {
    scroll-behavior: smooth
}
body {
    line-height: 1
}
a {
    text-decoration-skip-ink: auto;
	color: var(--siteLinkColor);
	-webkit-transition: color 0.2s ease;
	-moz-transition: color 0.2s ease;
	transition: color 0.2s ease;
}
a:hover {
	color: var(--siteLinkHoverColor);
	text-decoration: none;
}
a[href^="tel"] {
    color: inherit;
    text-decoration: none
}
button {
    outline: 0
}
ol, ul {
    list-style: none
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

em {
	font-style: italic;
}

strong {
	font-weight: var(--fontWeightBold);
}

h1, h2, h3 {
	font-size: 1.15em;
	font-weight: var(--fontWeightBold);
	margin-bottom: 0.85em;
	margin-top: 2.25em;
	background: #f9f9f9;
	padding: 0.3em;
	padding-left: 0.7em;
	padding-right: 0.7em;
	margin-left: -0.7em;
	margin-right: -0.7em;
	border-radius: 3px;
	text-align: left;
}

h1:first-of-type, h2:first-of-type, h3:first-of-type {
	margin-top: 0px;
}

p {
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0px;
}


/* STRUCTURE */
html, body {
	font-family: var(--siteFontSansSerif);
	font-weight: var(--fontWeightStd);
}

#wrapper {
	width: 100%;
    padding-left: var(--pageSidePadding);
    padding-right: var(--pageSidePadding);
    max-width: 1080px;
    margin: 0 auto;
	position: relative;
	min-height: 100vh;
}

#header {
	width: 100%;
	display: flex;
    justify-content: space-between;
    align-items: center;
	padding-top: 2vh;
	padding-bottom: 4vh;
	column-gap: 2em;
	box-sizing: border-box;
}

#header #menu, #header #branding {
	width: 48%;
}

.mobile-menu #header #menu {
	width: 100%;
}

#container {
	width: 100%;
	padding-bottom: 3em;
}

#content {
	display: flex;
	row-gap: 1vh;
	column-gap: 1.5em;
}

#footer {
	width: 100%;
	position: absolute;
	bottom: 0px;
	left: 0px;
	padding-left: var(--pageSidePadding);
    padding-right: var(--pageSidePadding);
	padding-bottom: 1em;
	padding-top: 2em;
	font-size: var(--fontSizeSmall);
}

@media all and (max-width: 600px) {
	#container {
		padding-bottom: calc(3em + 1vh);
	}
}

/* HEADER */
#site-title {
	font-family: var(--siteFontSerif);
	font-weight: 500;
	font-size: 2.2rem;
	padding-bottom: 0.2em;
	letter-spacing: 0.05em;
	line-height: 1.12em;
	white-space: nowrap;
}
#site-title a {
	text-decoration: none;
	color: var(--siteColor);
}

#site-title h1 {
	margin-bottom: 0px;
	margin-top: 0px;
	font-size: unset;
	font-weight: unset;
	background: none;
	padding-left: 0px;
	padding-right: 0px;
	margin-left: 0px;
	margin-right: 0px;
	padding: 0px;
}

#site-description {
	letter-spacing: 0.05em;
}

@media all and (max-width: 820px) {
	#site-title {
		font-size: 1.8rem;
	}
}

nav ul {
	list-style: none;
	appearance: none;
	display: flex;
	column-gap: 1vh;
	align-items: center;
	justify-content: space-between;
}

nav ul li {
	display: inline-block;
	list-style: none;
	appearance: none;
	text-align: center;
	white-space: nowrap;
}

nav ul li.current_page_item {
	font-weight: var(--fontWeightBold);
}

nav ul li a {
	text-decoration: none;
	padding: 0.4em;
	padding-left: 0.6em;
	padding-right: 0.6em;
	border-radius: 5px;
	color: var(--siteColor);
	-webkit-transition: background-color 0.2s ease, color 0.2s ease;
	-moz-transition: background-color 0.2s ease, color 0.2s ease;
	transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover {
	color: var(--siteLinkColor);
	background-color: rgba(192,192,192,0.15);
}

nav ul li.current_page_item a {
	text-decoration: underline;
	cursor: default;
}

nav ul li.current_page_item a:hover {
	color: var(--siteColor);
	text-decoration: underline;
	background-color: transparent;
}

/* PAGES */
#main-image {
	width: 40%;
	max-width: var(--maxImageWidth);
}

#main-image img {
	width: 100%;
	height: auto;
	max-width: var(--maxImageWidth);
}

#text-content {
	width: 60%;
	line-height: 1.42em;
	flex-grow: 2;
}

#text-content.full-width-images-content {
	width: 100%;
}

#text-content header {
	font-size: var(--fontSizeLarge);
	font-weight: var(--fontWeightBold);
	padding-bottom: 0.8em;
}

.page #text-content header  {
	display: none;
}

#text-content-below {
	font-size: 0.95em;
	line-height: 1.3em;
	margin-top: 3.8em;
	margin-bottom: 1.8em;
}

#text-content-below h1:first-child {
	margin-top: 1.9em;
}

#text-content-below h1 {
	margin-top: 0.85em;
}

#text-content-below.template-full-width-images-page {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 5%;
	row-gap: 2em;
}

#text-content-below.template-full-width-images-page img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

@media all and (max-width:840px) {
	#content {
		flex-direction: column;
		row-gap: 1.5em;
		align-items: center;
	}
	
	#main-image {
		width: 100%;
	}
	#text-content {
		width: 100%;
		max-width: var(--maxImageWidth);
	}
	
	#text-content-below {
		width: 100%;
		max-width: var(--maxImageWidth);
		margin: 0 auto;
		margin-top: 3.2em;
	}
	
	#text-content-below.template-full-width-images-page {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* HOME PAGE */
#content.homepage {
	font-size: var(--fontSizeLarge);
	line-height: 1.5em;
	flex-direction: column-reverse;
    align-items: center;
	row-gap: 2vh;
}

#content.homepage #text-content {
	width: var(--maxImageWidth);
	max-width: 100%;
	text-align: center;
	padding-top: 1em;
	padding-bottom: 1em;
	margin-top: 1px;
	margin-bottom: 1px;
	border-top: 1px solid rgba(122,122,122,0.31);
	border-bottom: 1px solid rgba(122,122,122,0.31);
}

#content.homepage #text-content.home-text-landscape {
	width: 100%;
	box-sizing: border-box;
	padding-left: 1.5em;
	padding-right: 1.5em;
}

#content.homepage #main-image {
	width: 100%;
}

#content.homepage #main-image.home-image-landscape {
	max-width: 100%;
}

#content.homepage #main-image.home-image-landscape img {
	width: 100%;
	max-width: 1024px;
	margin: 0 auto;
}

/* MOBILE MENU */
#mobileMenuButton {
	display: none;
}

body.mobile-menu header {
	flex-wrap: wrap;
}

body.mobile-menu nav ul#menu-main-menu {
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	row-gap: 5vh;
	background: var(--siteBackgroundTrans);
	z-index: 3;
	overflow-y: unset;
	overflow: unset;
	padding-top: 0.5vh;
	padding-bottom: 0.5vh;
	-webkit-transition: background var(--transition);
	-moz-transition: background var(--transition);
	transition: background var(--transition);
}

body.mobile-menu #mobileMenuButton {
	display: inline-flex;
	height: 25px;
	width: 35px;
	border-radius: 5px;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	padding-left: var(--pageSidePadding);
	padding-right: var(--pageSidePadding);
	padding-top: 2vh;
	padding-bottom: 2vh;
	box-sizing: content-box;
	margin-left: calc(-1 * var(--pageSidePadding));
	margin-right: calc(-1 * var(--pageSidePadding));
	margin-top: -2vh;
	margin-bottom: -2vh;
	cursor: pointer;
	z-index: 999999;
	opacity: 1;
	background: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	tap-highlight-color: rgba(0,0,0,0);
}
body.mobile-menu #mobileMenuButton:active {
	background: var(--mobileMenuButtonActiveBg);
}
body.mobile-menu #mobileMenuButton:active div {
	background: var(--siteLinkColor);
}

body.mobile-menu #mobileMenuButton div {
	opacity: 1;
	width: 110%;
	height: 2px;
	border-radius: 1px;
	background: rgba(120,120,120,1.00);
	-webkit-transition: background 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.1s linear, top 0.1s linear;
	-moz-transition: background 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.1s linear, top 0.1s linear;
	transition: background 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.1s linear, top 0.1s linear;
}
body.mobile-menu #mobileMenuButton.openMenu div {
	background: var(--siteColor);
}
body.mobile-menu #mobileMenuButton.openMenu:active div {
	background: var(--siteLinkColor);
}
body.mobile-menu #mobileMenuButton.openMenu div:nth-child(1) {
	transform: rotate(45deg);
	position: relative;
	top: calc(50% - 1px);
}
body.mobile-menu #mobileMenuButton.openMenu div:nth-child(2) {
	opacity: 0;
}
body.mobile-menu #mobileMenuButton.openMenu div:nth-child(3) {
	transform: rotate(-45deg);
	position: relative;
	top: calc(-50% + 1px);
}

body.mobile-menu nav {
	display: none;
    width: 100%;
    background: var(--siteBackground);
    left: 0px;
    overflow-y: auto;
    margin-top: 3vh;
	padding-bottom: 2vh;
	padding-top: 2vh;
    border-bottom: 1px solid transparent;
	border-top: 1px solid transparent;
    box-sizing: border-box;
    justify-content: center;
    z-index: 2;
	-webkit-transition: border-color 0.2s ease-in-out;
	-moz-transition: border-color 0.2s ease-in-out;
	transition: border-color 0.2s ease-in-out;
}

body.mobile-menu nav.openMenu {
	border-color: rgba(203,203,203,0.85);
}

body.mobile-menu nav a {
	opacity: 0;
	font-size: 1.3em;
	margin-bottom: 1px;
	margin-top: 1px;
	padding-bottom: 0.7em;
	padding-top: 0.7em;
	width: 100%;
}
body.mobile-menu nav a:first-of-type {
	margin-top: 0px;
}
body.mobile-menu nav a:last-of-type {
	margin-bottom: 0px;
}