/*
Theme Name: PlaceNorthWest
Theme URI: http://localhost:10018/
Author: PlaceNorthWest
Description: A news theme. The homepage shows a logo at the top left, then full-width stories with a title, thumbnail, and excerpt.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.8
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: placenorthwest
Tags: news, blog, one-column, custom-logo, featured-images
*/

:root {
	--pnw-navy: #1d2d50;
	--pnw-deep-blue: #203f73;
	--pnw-teal: #3b676a;
	--pnw-link: #2359a0;
	--pnw-warm-grey: #7d7265;
	--pnw-paper: #fefefc;
	--pnw-white: #ffffff;
	--pnw-rule: #ebebeb;
	--pnw-ink: #292929;
	--pnw-muted: #777777;
	--pnw-accent: var(--pnw-link);
	--pnw-column: 1040px;
	--pnw-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pnw-paper);
	color: var(--pnw-ink);
	font-family: var(--pnw-font);
	font-size: 1.0625rem;
	line-height: 1.5;
}

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

a {
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	z-index: 100000;
	top: 8px;
	left: 8px;
	padding: 0.6rem 0.9rem;
	background: var(--pnw-white);
	color: var(--pnw-ink);
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--pnw-accent);
}

.site-header {
	background: var(--pnw-white);
	border-bottom: 1px solid var(--pnw-rule);
}

.site-header__inner,
.stories,
.entry,
.notice {
	width: min(var(--pnw-column), calc(100% - 3rem));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 84px;
	padding: 1rem 0;
}

.brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--pnw-navy);
	line-height: 0;
}

.brand__logo,
.site-header .custom-logo {
	width: auto;
	height: 56px;
	max-width: min(280px, 70vw);
	object-fit: contain;
	object-position: left center;
}

.masthead-date {
	margin: 0;
	color: var(--pnw-muted);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-main {
	padding: 2.25rem 0 4.5rem;
}

.site-status {
	padding: 1.35rem 1.5rem;
	margin-bottom: 0.5rem;
	background: var(--pnw-navy);
	color: var(--pnw-white);
}

.site-status__title {
	margin: 0 0 0.55rem;
	color: var(--pnw-white);
	font-family: var(--pnw-font);
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.site-status__text {
	margin: 0;
	color: rgba(254, 254, 252, 0.88);
	font-size: 1.1rem;
	line-height: 1.5;
}

@media (min-width: 900px) {
	.site-status__text {
		white-space: nowrap;
	}
}

.archive-header {
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--pnw-rule);
}

.archive-title,
.entry__title {
	margin: 0;
	color: var(--pnw-navy);
	font-family: var(--pnw-font);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.archive-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

.archive-description {
	color: var(--pnw-muted);
	font-size: 1.05rem;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.story {
	padding: 2rem 0;
	border-bottom: 1px solid var(--pnw-rule);
}

.story:first-of-type {
	padding-top: 1.5rem;
}

.story--has-media {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 1.5rem 1.75rem;
	align-items: start;
}

.story--full .story__body {
	max-width: none;
}

.story__body {
	min-width: 0;
}

.story__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.85rem;
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.story__category {
	color: var(--pnw-accent);
	text-decoration: none;
}

.story__category:hover,
.story__category:focus-visible {
	text-decoration: underline;
}

.story__date {
	color: var(--pnw-muted);
	font-weight: 600;
}

.story__title {
	margin: 0 0 0.75rem;
	color: var(--pnw-navy);
	font-family: var(--pnw-font);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.story--full .story__title {
	font-size: clamp(1.85rem, 3.2vw, 2.55rem);
	margin-bottom: 1rem;
}

.story__title a {
	color: inherit;
	text-decoration: none;
}

.story__title a:hover,
.story__title a:focus-visible {
	color: var(--pnw-link);
}

.story__media {
	display: block;
	margin: 0;
	background: var(--pnw-rule);
	line-height: 0;
	align-self: stretch;
}

.story__media img,
.entry__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--pnw-rule);
}

.entry__media img {
	aspect-ratio: 16 / 9;
	height: auto;
}

.story__excerpt {
	color: var(--pnw-ink);
	font-size: 1.05rem;
	line-height: 1.55;
}

.story--full .story__excerpt {
	max-width: 68ch;
	font-size: 1.15rem;
}

.story__excerpt p {
	margin: 0;
}

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.25rem 0.8rem;
	border: 1px solid var(--pnw-rule);
	background: var(--pnw-white);
	color: var(--pnw-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	background: var(--pnw-navy);
	border-color: var(--pnw-navy);
	color: var(--pnw-white);
}

.entry {
	padding-top: 1.25rem;
}

.entry__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	color: var(--pnw-link);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.entry__back:hover,
.entry__back:focus-visible {
	text-decoration: underline;
}

.entry__back-icon {
	font-size: 1.1em;
	line-height: 1;
}

.entry__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	margin: 0 0 0.7rem;
	color: var(--pnw-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry__kicker a {
	color: var(--pnw-accent);
	text-decoration: none;
}

.entry__title {
	margin-bottom: 1.15rem;
	font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.entry__media {
	display: block;
	margin: 0 0 1.6rem;
	line-height: 0;
	background: var(--pnw-rule);
}

.entry-content {
	max-width: none;
	font-size: 1.1rem;
	line-height: 1.65;
}

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

.entry-content h2,
.entry-content h3 {
	color: var(--pnw-warm-grey);
	font-family: var(--pnw-font);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.entry-content a {
	color: var(--pnw-link);
}

.entry-content img,
.entry-content video {
	height: auto;
}

.entry-content .wp-element-caption,
.entry-content figcaption {
	color: var(--pnw-muted);
	font-size: 0.9rem;
}

.notice {
	padding-top: 2rem;
}

.notice h1 {
	margin: 0 0 0.6rem;
	color: var(--pnw-navy);
	font-family: var(--pnw-font);
	font-size: clamp(1.75rem, 3.5vw, 2.3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.notice p {
	max-width: 46ch;
	font-size: 1.15rem;
}

.site-footer {
	border-top: 1px solid var(--pnw-rule);
	background: var(--pnw-white);
}

.site-footer__inner {
	width: min(var(--pnw-column), calc(100% - 3rem));
	margin-inline: auto;
	padding: 1.25rem 0 1.6rem;
	color: var(--pnw-muted);
	font-size: 0.92rem;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 720px) {
	.site-header__inner,
	.stories,
	.entry,
	.notice,
	.site-footer__inner {
		width: min(var(--pnw-column), calc(100% - 2rem));
	}

	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
		min-height: 0;
		padding: 1rem 0 0.9rem;
	}

	.brand__logo,
	.site-header .custom-logo {
		height: 44px;
	}

	.masthead-date {
		padding-left: 0;
	}

	.story {
		padding: 1.6rem 0;
	}

	.story--has-media {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}

	.story__media img {
		aspect-ratio: 16 / 9;
	}

	.story__title {
		margin-bottom: 0.65rem;
	}
}
