/*
Theme Name: J. Gary Gardner
Description: Personal architectural portfolio for J. Gary Gardner. A page-for-page conversion of the "Gary's Projects" PowerPoint: homepage (Author / Architect), professional background with project directory, and one page per project.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.9
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: gary-gardner
*/

/* Roboto (SIL OFL 1.1, see assets/fonts/LICENSE-Roboto.txt) - closest web match to the presentation's Aptos line breaks. */
@font-face {
	font-family: "GG Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/roboto-latin-400-normal.woff2) format("woff2");
}
@font-face {
	font-family: "GG Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/roboto-latin-700-normal.woff2) format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	--gg-nav: 44px;
	--gg-admin: 0px;
	--gg-top: calc(var(--gg-nav) + var(--gg-admin));
	background: #fff;
	color: #000;
	font-family: "GG Sans", Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body.admin-bar { --gg-admin: 32px; }
body.gg-view-home { background: #000; --gg-nav: 0px; }

.gg-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Navigation (architect + project pages) ---------- */
.gg-nav {
	height: var(--gg-nav);
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 24px;
	background: #fff;
	border-bottom: 1px solid #e6e6e6;
	font-size: 14px;
	line-height: 1;
}
.gg-nav a { color: #000; text-decoration: none; white-space: nowrap; }
.gg-nav a:hover, .gg-nav a:focus-visible { text-decoration: underline; }
.gg-nav__sp { flex: 1; }

/* ---------- Slides: exact PowerPoint geometry (16:9, positions in %) ---------- */
.gg-stage { display: flex; flex-direction: column; align-items: center; }
.gg-view-home .gg-stage { min-height: calc(100vh - var(--gg-admin)); justify-content: center; }
.gg-frame {
	/* As large as the window allows while the whole slide stays visible. */
	width: max(min(100%, calc((100vh - var(--gg-top)) * 16 / 9)), min(100%, 900px));
	container-type: inline-size;
}
.gg-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg);
	color: #000;
	/* 1em = 10pt on a 960pt-wide slide */
	font-size: calc(100cqw / 96);
	letter-spacing: -0.02em;
}
.gg-el {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--w);
	margin: 0;
}
.gg-pic { height: var(--h); overflow: hidden; }
.gg-pic img {
	position: absolute;
	left: var(--ix, 0);
	top: var(--iy, 0);
	width: var(--iw, 100%);
	height: var(--ih, 100%);
	max-width: none;
	display: block;
	border: 0;
}
.gg-txt { min-height: var(--h, 0); }
.gg-mid { display: flex; flex-direction: column; justify-content: center; }
.gg-p { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.gg-bu { display: inline-block; text-indent: 0; font-family: Arial, Helvetica, sans-serif; }
.gg-c { color: var(--rc); }

/* Homepage buttons (Author / Architect) */
a.gg-btn { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
a.gg-btn:hover, a.gg-btn:focus-visible { background-color: rgba(255, 255, 255, .15); }
a.gg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Project names in the green box */
.gg-link { color: inherit; text-decoration: none; }
.gg-link:hover, .gg-link:focus-visible { text-decoration: underline; }

/* ---------- Phones and portrait tablets: same content, stacked in reading order ---------- */
@media (max-width: 900px) {
	body.admin-bar { --gg-admin: 46px; }
	.gg-frame { width: 100%; }
	.gg-slide {
		aspect-ratio: auto;
		overflow: visible;
		display: flex;
		flex-direction: column;
		gap: 18px;
		padding: 28px 20px 44px;
		font-size: 13.5px;
	}
	.gg-el { position: relative; left: auto; top: auto; width: auto; order: var(--o); }
	.gg-pic { height: auto; aspect-ratio: var(--ar); }
	.gg-txt { min-height: 0; }
	.gg-big { font-size: 2.6em !important; }
	.gg-slide--light .gg-c { color: inherit; }

	.gg-slide-1 { flex-direction: row; flex-wrap: wrap; }
	.gg-slide-1 .gg-el { width: 100%; }
	.gg-slide-1 .gg-btn { width: calc(50% - 9px); }

	.gg-nav { gap: 16px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 360px) {
	.gg-nav { gap: 12px; padding: 0 12px; font-size: 12px; }
}

/* ---------- Regular WordPress pages (only if any are added later) ---------- */
.gg-content { max-width: 760px; margin: 48px auto; padding: 0 20px; font-size: 17px; line-height: 1.6; }
.gg-content h1 { font-size: 28px; line-height: 1.25; margin: 0 0 24px; }
.gg-content a { color: #000; }
.gg-content img { max-width: 100%; height: auto; }
