/*
Theme Name:	FrenchPress
Plugin URI:	https://github.com/andrewklimek/frenchpress/
Description:a very light framework-style WordPress theme
Author:		Andrew J Klimek
Author URI:	https://github.com/andrewklimek
Version:	2.0
License:	GPLv2
*/


/*--------------------------------------------------------------
*  Normalisation
--------------------------------------------------------------*/

* {
	box-sizing: border-box;
}

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;/* background color on active links in mobile browsers */
}
p a {
	text-decoration: underline;
}

pre {
	overflow: auto;
}

video,
iframe,
img {
	max-width: 100%;
	border: 0;/* only for iframe that has a 2px inset border */
	vertical-align: middle;/* remove space below inline images */
}

img {
  height: auto;/* can't also be on iframes (above) b/c it overrides height attributes and makes them 150px high  */
}

cite,
address,/* cite & address used to be on their own line with just font-style inherit */
button,
input,
select,
textarea {
	font: inherit;
}

/* Correct inability to style clickable types in iOS & Safari */
button,
[type=button],
/*[type=reset],*//* so rarely used I don't care */
[type=submit] {
  -webkit-appearance: button;
}

/*--------------------------------------------------------------
# Main Sizing & Spacing
--------------------------------------------------------------*/
html {
	line-height: 1.7;
	word-wrap: break-word;
	-webkit-text-size-adjust: 100%;/* Prevent font size adjustments after orientation changes in IE and iOS */
	text-rendering: geometricprecision;
}

h1,h2,h3,h4,
dl,
dd,
ol,
ul,
blockquote,
figure,
pre,
p {
  margin: 0 0 1.5rem;
}

hr {
    border: 0;
	border-top: 1px solid currentColor;
	margin: 1.5rem 0;
}

/*--------------------------------------------------------------
*  Page Layout
--------------------------------------------------------------*/

body {
	margin: 0;
	min-height: 100vh;
	/* display: flex; */
    /* flex-direction: column; */
}

/* supposedly this is safer than 1 1 0% */
/* #content { flex: 1 0 auto; } */

.tray {
	width: 100%;/* this was needed for sidebar w/ centered content... but I had it here since long before that layout, not sure why. */
	margin: auto;
	padding: 1.5rem;
}

nav ul,
aside ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/*--------------------------------------------------------------
*  Navigation
--------------------------------------------------------------*/

.site-header .menu-item {
	margin: 0;/* might need to be on nav li */
	position: relative;/* Allows better submenu absolute positioning like: nav ul ul {top: 100%;} li.menu-item-has-children:nth-last-child(-n+3) ul {right: 1.5rem;} */
	display: inline-block;
}

/* for toggle arrows, so they can be centered to the parent, not the whole ul in the li */
.site-header .menu-item > a {
	display: block;
	/* position: relative; *//* may only have served the toggle tree nav */
	padding: .25rem .75rem;
	flex: 1;
}

/*--------------------------------------------------------------
*  Accessibility
--------------------------------------------------------------*/

.screen-reader-text {
	position: absolute;/* !important */
	word-wrap: normal;/* !important *//* Many screen reader and browser combinations announce broken words as they would appear visually. */
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background: #fff;
	color: #000;
	padding: 1em;
	height: auto;
	width: auto;
	left: 5px;
	top: 50px;/* try below WP toolbar instead of z-index stuff */
}

/*--------------------------------------------------------------
*  WordPress Specific stuff: Alignments - Required
--------------------------------------------------------------*/
/* also using this on costom header image to get rid of space below, and centering */
.aligncenter {
	display: block;
	margin: 0 auto;
}

.alignleft {
	float: left;
	margin: 0 1.5rem 6px 0;
}

.alignright {
	float: right;
	margin: 0 0 6px 1.5rem;
}

/*--------------------------------------------------------------
*  CSS Framework-type stuff.
--------------------------------------------------------------*/

.feat,
body,
.fff {
	display: flex;
	flex-wrap: wrap;
}

.fff:not(.no-gap) {
	gap: 1.5rem;
}
.fff.menu {
	gap: .5rem;
}

.feat,
body,
.fff-column {
    flex-flow: column;
}

.fff-middle {
    align-items: center;
}

.fff-top {
    align-items: start;
}

.fff-bottom {
    align-items: end;
}

.fff-left {
    justify-content: start;
}

.fff-center {
    justify-content: center;
}

.fff-right {
    justify-content: end;
}

.feat,
.fff-spacebetween {
    justify-content: space-between;
}

.fff-spacearound {
	justify-content: space-around;
}

#content,
.grow {
	flex: 1;/* 1 1 0% */
}

.fff-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(18em, 100%), 1fr));
}

[class*='fff-x'] {
	display: grid;
}

.fff-x4 {
	grid-template-columns: repeat(2, 1fr);
}

@media(min-width:783px) {
	.fff-x2 { grid-template-columns: repeat(2, 1fr); }
	.fff-x3 { grid-template-columns: repeat(3, 1fr); }
	.fff-x4 { grid-template-columns: repeat(4, 1fr); }
}

.pad {
	padding: 1.5rem;
}

.fff > * > :last-child,
.pad > :last-child {
    margin-bottom: 0;
}

.pad-l,
.pad-x {
	padding-left: 1.5rem;
}

.pad-r,
.pad-x {
	padding-right: 1.5rem;
}

.pad-y {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.pad-2 {
  padding: 3rem 1.5rem;/* 2*base 1*base */
}

.pad-3 {
  padding: 4.5rem 1.5rem;/* 3*base 1*base */
}

hr.spacer {
	border: 0;
}

.feat,
.c {
	text-align: center;
}

.r {
	text-align: right;
}


@media(max-width:1080px) {
	html {
		font-size: 13px;
	}
}