/*
Theme Name: Windward Archive
Description: A modern archival presentation of Windward Designs' historical portfolio.
Version: 0.1.4
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: windward-archive
*/

:root {
	--ww-black: #000;
	--ww-charcoal: #333132;
	--ww-white: #fff;
	--ww-muted: #999;
	--ww-green: #c5edcc;
	--ww-green-strong: #73d4b2;
	--ww-footer-link: #69a18a;
	--ww-width: 960px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
	margin: 0;
	background: var(--ww-black);
	color: var(--ww-white);
	font: 12px/1.65 Tahoma, Verdana, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ww-green); }
a:hover { color: var(--ww-white); }
button, input, textarea { font: inherit; }
.wrap, .content-wrap { width: min(calc(100% - 36px), var(--ww-width)); margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
:focus-visible { outline: 2px solid var(--ww-green-strong); outline-offset: 3px; }

.site-header { background: var(--ww-charcoal); }
.site-header__top {
	height: 140px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
.historical-logo { display: block; width: 387px; height: 135px; }
.historical-logo img { width: 387px; height: 135px; object-fit: contain; }
.site-header__contact { padding-top: 27px; color: var(--ww-muted); text-align: right; }
.site-header__phone { margin: 0 0 20px; font-size: 15px; }
.site-header__social { display: flex; justify-content: flex-end; gap: 8px; }
.site-header__social a { border-radius: 50%; transition: opacity .2s ease; }
.site-header__social a:hover { opacity: .72; }

.site-header__navigation { border: 0; background: transparent; }
.primary-navigation .menu {
	display: flex;
	justify-content: flex-end;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-navigation .menu > li { position: relative; }
.primary-navigation a {
	display: block;
	padding: 14px 13px 13px;
	color: var(--ww-muted);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.primary-navigation .current-menu-item > a,
.primary-navigation a:hover { color: var(--ww-green); background: transparent; }
.primary-navigation .sub-menu {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	display: block;
	min-width: 175px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #242223;
	border: 1px solid #3a3839;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-5px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.primary-navigation .sub-menu a { padding: 12px 14px; border-bottom: 1px solid #353334; }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-main { min-height: 420px; background: var(--ww-black) url("assets/images/decorative/content-background.jpg") repeat; }
.archive-hero {
	position: relative;
	background: var(--ww-black) url("assets/images/decorative/header-background.jpg") repeat-x left top;
	padding: 14px 0 18px;
}
.archive-hero__slides {
	position: relative;
	width: min(calc(100% - 36px), 914px);
	aspect-ratio: 914 / 374;
	margin: 0 auto;
	overflow: hidden;
	background: #090909;
	box-shadow: 0 0 0 1px #111, 0 10px 26px rgb(0 0 0 / .62);
}
.archive-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
	pointer-events: none;
}
.archive-hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.archive-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.archive-hero__controls {
	position: absolute;
	z-index: 3;
	right: max(24px, calc((100% - 914px) / 2 + 12px));
	bottom: 28px;
	display: flex;
	gap: 5px;
	opacity: .8;
}
.archive-hero__controls button {
	width: 31px;
	height: 28px;
	border: 1px solid #777;
	background: rgb(0 0 0 / .72);
	color: #ddd;
	cursor: pointer;
}
.home-introduction {
	width: 100%;
	max-width: none;
	padding: 46px max(28px, calc((100% - 1210px) / 2)) 92px;
	background: #333132;
	text-align: center;
}
.home-introduction > p:first-of-type {
	max-width: 1180px;
	margin: 0 auto;
	color: #c0c0c0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.42;
}
.home-introduction__services {
	max-width: 1230px;
	margin: 36px auto 0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}
.home-introduction__services span { padding-inline: .08em; color: #fff; }
.page-title { background: #000; border: 0; }
.page-title h1 { margin: 0; padding: 20px 0 17px; color: #fffaff; font-size: 24px; font-weight: 400; }
.historical-page, .post-list { padding-block: 35px 55px; }
.historical-page::after { display: table; clear: both; content: ""; }
.historical-page h2 { font-size: 20px; line-height: 1.45; }
.historical-page h3 { font-size: 16px; line-height: 1.55; }
.historical-page h4 { color: #ddd; font-size: 14px; font-weight: 400; }
.historical-page h5, .historical-page h6 { color: var(--ww-green); }
.historical-page ul { line-height: 1.7; }

.portfolio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.portfolio-gateways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.portfolio-gateways a { position: relative; display: block; color: #fff; text-decoration: none; }
.portfolio-gateways img { width: 100%; border: 1px solid #333; }
.portfolio-gateways span { display: block; padding: 10px; background: #272627; color: var(--ww-green); text-align: center; letter-spacing: .08em; }
.featured-work { padding: 15px; background: rgb(0 0 0 / .5); border: 1px solid #292929; }
.featured-work h2 { margin: 0 0 13px; color: #fff; font-size: 17px; font-weight: 400; }
.featured-work__stage { position: relative; aspect-ratio: 330 / 230; overflow: hidden; background: #050505; }
.featured-work__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.featured-work__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.featured-work__slide img { width: 100%; aspect-ratio: 330 / 200; object-fit: cover; }
.featured-work__slide figcaption { padding: 6px 8px; color: #ddd; line-height: 1.35; }
.featured-work__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #999; }
.featured-work__controls button { width: 31px; height: 27px; border: 1px solid #555; background: #222; color: var(--ww-green); cursor: pointer; }

.historical-portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; }
.historical-portfolio-item { margin: 0; background: #121212; border: 1px solid #292929; }
.portfolio-lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.portfolio-lightbox-trigger img { width: 100%; aspect-ratio: 960 / 360; object-fit: contain; }
.historical-portfolio-item figcaption { min-height: 54px; padding: 10px 13px; color: #ccc; }
.portfolio-lightbox { width: min(94vw, 1100px); padding: 44px 18px 18px; border: 1px solid #555; background: #090909; color: #fff; }
.portfolio-lightbox::backdrop { background: rgb(0 0 0 / .86); }
.portfolio-lightbox img { max-height: 78vh; margin: auto; }
.portfolio-lightbox p { margin: 12px 0 0; text-align: center; }
.portfolio-lightbox button { position: absolute; top: 7px; right: 10px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }

.post-list article { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid #333; }
.post-list h2 { margin-bottom: 5px; font-weight: 400; }
.post-list h2 a { text-decoration: none; }
.blog-preview { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
.blog-preview__image { display: block; padding: 6px; background: #eee; }
.blog-preview__image img { width: 108px; height: 108px; object-fit: cover; }
.historical-blog-list { padding-block: 28px 45px; }
.historical-blog-post { position: relative; min-height: 230px; padding: 0 0 46px; margin: 0 0 40px; border-bottom: 1px solid #666; }
.historical-blog-post h2 { margin: 0 0 12px; font-size: 24px; font-weight: 400; }
.historical-blog-post h2 a { color: #fff; text-decoration: none; }
.historical-blog-post__meta { display: flex; flex-wrap: wrap; gap: 0 13px; margin: 0 0 18px; color: #fff; font-size: 14px; }
.historical-blog-post__meta a { color: var(--ww-green); text-decoration: none; }
.historical-blog-post__excerpt { margin: 0 0 16px; color: #fff; font-size: 14px; line-height: 1.75; }
.historical-blog-post__more { margin: 0; font: italic 700 15px Georgia, serif; }
.historical-blog-post__more a, .historical-blog-post__top { color: var(--ww-green); text-decoration: none; }
.historical-blog-post__top { position: absolute; right: 0; bottom: 5px; font-size: 12px; font-weight: 700; }
.historical-single-post { padding-block: 28px 55px; }
.historical-single-post__header { margin-bottom: 24px; }
.historical-single-post__header h1 { margin: 0 0 10px; color: #fff; font-size: 24px; font-weight: 400; line-height: 1.35; }
.historical-single-post__meta { display: flex; flex-wrap: wrap; gap: 0 13px; margin: 0; color: #fff; font-size: 14px; }
.historical-single-post__meta a { color: var(--ww-green); text-decoration: none; }
.historical-single-post__content { color: #fff; font-size: 14px; line-height: 1.75; }
.historical-single-post__content::after { display: table; clear: both; content: ""; }
.historical-single-post__content > :first-child { margin-block-start: 0; }
.historical-single-post__content > :is(.wp-block-video, figure.wp-block-video, .wp-block-embed) {
	min-height: 0;
	padding-top: 0;
}
.historical-single-post__content h2 { font-size: 20px; line-height: 1.45; }
.historical-single-post__content h3 { color: var(--ww-green-strong); font-size: 16px; line-height: 1.55; }
.historical-single-post__content img { max-width: 100%; height: auto; }
.historical-form-placeholder, .function-placeholder { border: 1px dashed #617c6c; padding: 18px; color: #bbb; }
.historical-sidebar-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 46px; align-items: start; }
.historical-sidebar-main::after { display: table; clear: both; content: ""; }
.clients-featured-work { width: 100%; }
.testimonials-sidebar { position: sticky; top: 20px; }
.contact-page-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 46px; }
.contact-information { margin: 0 0 42px; }
.contact-information > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; }
.contact-information dt { padding: 11px 0; color: #fff; font-size: 16px; font-weight: 700; }
.contact-information dd { margin: 0; padding: 11px 0; border-bottom: 1px dotted #aaa; color: #fff; font-size: 16px; }
.static-contact-form { padding-top: 22px; border-top: 1px solid #333; }
.static-contact-form h2 { margin: 0 0 5px; font-size: 16px; }
.static-form-notice { color: #999; font-style: italic; }
.static-contact-form > label, .static-contact-form__phone label { display: block; margin-top: 15px; color: #ddd; font-weight: 700; }
.static-contact-form em { color: #999; font-size: 11px; font-weight: 400; }
.static-contact-form input, .static-contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 7px; border: 1px solid #555; background: #eee; color: #222; opacity: 1; }
.static-contact-form__phone { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
.static-contact-form button { margin-top: 16px; padding: 7px 18px; border: 1px solid #555; background: #333; color: #aaa; opacity: 1; }
.contact-sidebar { padding: 15px; background: rgb(0 0 0 / .3); }
.contact-sidebar > h2 { margin: 0 0 13px; padding-bottom: 8px; border-bottom: 1px solid #555; color: #ddd; font-size: 18px; font-weight: 400; }
.contact-sidebar .footer-latest-post { grid-template-columns: 88px minmax(0, 1fr); }
.contact-sidebar .footer-latest-post__image { width: 88px; height: 88px; }
.contact-sidebar .footer-latest-post__image img { width: 76px; height: 76px; }
.contact-sidebar .footer-latest-post h3 { font-size: 15px; }

.site-footer {
	background: #000 url("assets/images/decorative/footer-background.jpg") no-repeat top center;
	border-top: 0;
	color: #e0d9e0;
}
.site-footer__widgets { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: 46px; padding-block: 38px 26px; }
.site-footer h2 { margin: 0 0 16px; color: var(--ww-green-strong); font-size: 17px; font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; border-bottom: 1px solid #222; }
.site-footer a { color: var(--ww-footer-link); text-decoration: none; }
.site-footer address { font-style: italic; }
.site-footer .function-placeholder { padding: 12px; }
.newsletter-placeholder input {
	width: min(100%, 195px);
	height: 28px;
	padding: 3px 7px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #fff;
	color: #111;
	opacity: 1;
}
.footer-latest-post { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 0 0 9px; margin-bottom: 9px; border-bottom: 1px solid #454545; }
.footer-latest-post__image { display: block; width: 76px; height: 76px; padding: 6px; background: #f1f1f1; }
.footer-latest-post__image img { width: 64px; height: 64px; object-fit: cover; }
.footer-latest-post h3 { margin: 0 0 3px; font-size: 14px; font-weight: 400; line-height: 1.35; }
.footer-latest-post p { margin: 0; color: #e8e8e8; line-height: 1.45; }
.site-footer__copyright { padding: 16px 0 24px; border-top: 1px solid #1e1e1e; color: #777; }

@media (max-width: 900px) {
	.site-header__top { height: auto; min-height: 140px; }
	.primary-navigation .menu { flex-wrap: wrap; justify-content: center; }
	.primary-navigation a { padding-inline: 10px; font-size: 12px; }
	.primary-navigation .sub-menu { position: static; display: flex; min-width: 100%; opacity: 1; visibility: visible; transform: none; border: 0; }
	.portfolio-layout { grid-template-columns: 1fr; }
	.featured-work { width: min(100%, 360px); margin-inline: auto; }
	.historical-sidebar-layout { grid-template-columns: 1fr; }
	.testimonials-sidebar { position: static; }
	.contact-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.site-header__top { align-items: center; flex-direction: column; padding-bottom: 18px; }
	.site-header__contact { padding-top: 0; text-align: center; }
	.site-header__phone { margin-bottom: 8px; }
	.site-header__social { justify-content: center; }
	.historical-logo { max-width: 100%; height: auto; }
	.portfolio-gateways, .historical-portfolio-grid, .site-footer__widgets { grid-template-columns: 1fr; }
	.site-footer__widgets { gap: 24px; }
	.archive-hero__controls { right: 24px; bottom: 24px; }
	.home-introduction { padding: 34px 22px 58px; }
	.home-introduction > p:first-of-type { font-size: 17px; }
	.home-introduction__services { margin-top: 30px; font-size: 15px; }
	.blog-preview { grid-template-columns: 90px minmax(0, 1fr); }
	.blog-preview__image { width: 90px; height: 90px; }
	.blog-preview__image img { width: 78px; height: 78px; }
	.contact-information > div { grid-template-columns: 105px minmax(0, 1fr); }
	.contact-information dt, .contact-information dd { font-size: 14px; }
	.static-contact-form__phone { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
