/*
Theme Name: SoCal Norton Classic
Theme URI: https://socalnorton.com/
Description: Vintage boxed layout for the Southern California Norton Owners Club: maroon logo box, two-column menu, email signup, photo hero with text panel on the home page and a cream content panel on inner pages.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: socal-norton
*/

:root {
	--scn-outer: #310303;
	--scn-maroon: #310303;
	--scn-paper: #eae1d3;
	--scn-cream: #f1eee1;
	--scn-ink: #231f1c;
	--scn-heading: #3a0a0a;
	--scn-accent: #8a2e22;
	--scn-light: #ebe2cc;
	--scn-alert: #e3241b;
	--scn-font: "Open Sans", Arial, Helvetica, sans-serif;
	/* Light paper for the page body */
	--scn-paper-texture:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='v'><feTurbulence type='fractalNoise' baseFrequency='0.7 0.006' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.28 0 0 0 0.14 0'/></filter><rect width='100%' height='100%' filter='url(%23v)'/></svg>"),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	/* Darker canvas for the header band */
	--scn-header-texture:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='200'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='0.004 0.45' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.19 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>"),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.34 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"),
		linear-gradient(90deg, rgba(60, 45, 30, 0.06) 0%, rgba(60, 45, 30, 0) 18%, rgba(60, 45, 30, 0) 80%, rgba(60, 45, 30, 0.26) 100%),
		linear-gradient(180deg, rgba(255, 250, 240, 0.18) 0%, rgba(255, 250, 240, 0) 100%);
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: #003314;
	color: var(--scn-ink);
	font-family: var(--scn-font);
	font-size: 16px;
	line-height: 20px;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--scn-accent);
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Page box ---------- */

.scn-page {
	position: relative;
	max-width: 1200px;
	min-height: 100vh;
	margin: 0 auto;
	padding-bottom: 32px;
	border-top: 13px solid #003314;
	background-color: var(--scn-paper);
	background-image: var(--scn-paper-texture);
}

/* ---------- Header ---------- */

.scn-header {
	position: relative;
	height: 142px;
	border-bottom: 2px solid rgba(72, 62, 54, 0.85);
	background-color: #e2d4c1;
	background-image: var(--scn-header-texture);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 -1px 1px rgba(72, 62, 54, 0.25);
}

/* soft shade just under the header line */
.scn-header::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	height: 45px;
	margin-top: 2px;
	background: linear-gradient(180deg, rgba(120, 95, 70, 0.12), rgba(120, 95, 70, 0));
	pointer-events: none;
}

.scn-logo {
	position: absolute;
	top: 2px;
	left: 129px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 270px;
	height: 200px;
	/* padding: 13px 14px; */
	background: #003314;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Inner pages: slightly taller logo box with the ornament hanging under it */
body:not(.home) .scn-logo {
	height: 206px;
}

.scn-logo-ornament {
	position: absolute;
	top: 208px;
	left: 179px;
	z-index: 11;
	display: block;
	width: 148px;
	height: auto;
	filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.28));
	pointer-events: none;
}

.scn-logo .custom-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.scn-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
}

.scn-logo-text {
	color: var(--scn-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
}

.scn-nav {
	position: absolute;
	top: 30px;
	left: 445px;
}

.scn-nav ul {
	display: grid;
	grid-template-rows: repeat(4, 20px);
	grid-auto-columns: 150px;
	grid-auto-flow: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.scn-nav li {
	margin: 0;
	white-space: nowrap;
}

.scn-nav a {
	color: #141210;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

.scn-nav a:hover,
.scn-nav a:focus,
.scn-nav .current-menu-item > a,
.scn-nav .current_page_item > a {
	color: var(--scn-accent);
}

.scn-signup {
	position: absolute;
	top: 38px;
	left: 761px;
	width: 312px;
}

.scn-signup-title {
	margin: 0 0 14px;
	color: #24201d;
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
}

.scn-signup-form,
.scn-signup .mc4wp-form-fields {
	position: relative;
	display: flex;
	gap: 6px;
}

.scn-signup input[type="email"] {
	width: 270px;
	height: 25px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 11px;
}

.scn-signup input[type="email"]::placeholder {
	color: #9a958f;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.scn-signup button,
.scn-signup input[type="submit"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 25px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: transparent;
	cursor: pointer;
}

.scn-signup button svg {
	width: 13px;
	height: 14px;
	fill: #8d8880;
}

.scn-signup button:hover svg {
	fill: var(--scn-accent);
}

.scn-hp {
	position: absolute;
	left: -7999px;
}

.scn-signup-msg {
	margin: 5px 0 0;
	color: var(--scn-accent);
	font-size: 10px;
	line-height: 14px;
}

.scn-social {
	display: flex;
	gap: 5px;
	margin-top: 23px;
}

.scn-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: #8f8a84;
	color: #ece6da;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.scn-social a:hover {
	background: var(--scn-accent);
}

/* ---------- Main area ---------- */

.scn-main {
	position: relative;
	width: 980px;
	max-width: calc(100% - 220px);
	margin: 40px 0 0 110px;
}

/* Home page: photo with text panel */

.scn-hero {
	position: relative;
	min-height: 608px;
	padding: 64px 0 40px 19px;
	/*background-color: #3a3430; */
	background-image: url(images/home.jpg);
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.page-id-48 .scn-content {
	background-image: url(images/gallery.png);

}

.scn-hero-panel {
	width: 270px;
	padding: 38px 11px 20px 20px;
	background: #003314;
	color: var(--scn-light);
}

.scn-hero-panel > *:first-child {
	margin-top: 0;
}

.scn-hero-panel p {
	margin: 0 0 20px;
}

.scn-hero-panel a {
	color: var(--scn-light);
}

.scn-hero-panel h1,
.scn-hero-panel h2,
.scn-hero-panel h3 {
	margin: 0 0 10px;
	color: var(--scn-light);
	font-size: 16px;
	line-height: 20px;
}

/* Inner pages: cream panel */

.scn-content {
	position: relative;
	min-height: 512px;
	padding: 120px 38px 48px 39px;
	background: var(--scn-cream);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.16);
}


.scn-entry {
	max-width: 480px;
}

.scn-entry > *:first-child {
	margin-top: 0;
}

.scn-entry p {
	margin: 0 0 20px;
}

.scn-entry h1,
.scn-entry h2,
.scn-entry h3,
.scn-entry h4 {
	margin: 0 0 6px;
	color: var(--scn-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	text-transform: uppercase;
}

.scn-entry h1 a,
.scn-entry h2 a {
	color: inherit;
	text-decoration: none;
}

.scn-entry a {
	color: var(--scn-accent);
	text-decoration: none;
}

.scn-entry a:hover {
	text-decoration: underline;
}

.scn-entry ul,
.scn-entry ol {
	margin: 0 0 20px;
	padding-left: 19px;
}

.scn-entry img {
	margin-bottom: 16px;
}

.scn-entry .wp-block-gallery,
.scn-entry .gallery {
	max-width: none;
}

.scn-post {
	margin-bottom: 32px;
}

.scn-post-meta {
	margin: -3px 0 8px;
	color: #7a6f64;
	font-size: 11px;
}

.navigation.pagination {
	margin-top: 16px;
	font-size: 13px;
}

/* Editor colour palette classes */

.has-scn-alert-color { color: var(--scn-alert); }
.has-scn-maroon-color { color: var(--scn-maroon); }
.has-scn-accent-color { color: var(--scn-accent); }
.has-scn-cream-color { color: var(--scn-light); }
.has-scn-ink-color { color: var(--scn-ink); }
.has-scn-alert-background-color { background-color: var(--scn-alert); }
.has-scn-maroon-background-color { background-color: var(--scn-maroon); }
.has-scn-accent-background-color { background-color: var(--scn-accent); }
.has-scn-cream-background-color { background-color: var(--scn-light); }
.has-scn-ink-background-color { background-color: var(--scn-ink); }

/* ---------- Footer ---------- */

.scn-footer {
	width: 980px;
	max-width: calc(100% - 220px);
	margin: 19px 0 0 110px;
	color: #6a5e53;
	font-size: 10px;
	line-height: 14px;
}

.scn-footer p {
	margin: 0;
}

/*.home figure.wp-block-image.size-full
Specificity: (0,2,1)
 {
    padding: 30px 0 80px 0px;
}
*/

.home figure.wp-block-image.size-full
{
    padding: 30px 0 80px 0px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1120px) {
	.scn-signup {
		left: auto;
		right: 32px;
		width: 272px;
	}

	.scn-signup input[type="email"] {
		width: 232px;
	}
}

@media (max-width: 960px) {
	.scn-header {
		height: auto;
		padding: 13px 13px 19px;
	}

	.scn-logo,
	.scn-nav,
	.scn-signup {
		position: static;
	}

	.scn-logo {
		width: 100%;
		max-width: 270px;
		height: 160px;
		margin: 0 auto 16px;
	}

	.scn-nav ul {
		grid-auto-columns: minmax(112px, 150px);
		justify-content: center;
	}

	.scn-signup {
		width: 100%;
		max-width: 312px;
		margin: 16px auto 0;
	}

	.scn-signup input[type="email"] {
		flex: 1;
		width: auto;
	}

	.scn-social {
		margin-top: 13px;
	}

	.scn-main,
	.scn-footer {
		width: auto;
		max-width: none;
		margin-left: 16px;
		margin-right: 16px;
	}

	.scn-main {
		margin-top: 19px;
	}

	.scn-hero {
		min-height: 0;
		padding: 160px 13px 13px;
	}

	.scn-hero-panel {
		width: 100%;
		max-width: 336px;
	}

	.scn-content {
		min-height: 0;
		padding: 32px 16px;
	}

	.scn-logo-ornament {
		display: none;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 16px;
		line-height: 22px;
	}

	.scn-nav a {
		font-size: 14px;
	}

	.scn-nav ul {
		grid-template-rows: none;
		grid-auto-flow: row;
		grid-template-columns: 1fr 1fr;
	}
}
