/*
Theme Name: David Brandon
Author: David Brandon
Description: My portfolio site featuring contact information and examples of my work.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Text Domain: david-brandon
*/


/* ========================================
   HEADER
======================================== */

.site-header {
	position: relative;
	z-index: 10;
	width: 100%;
	box-sizing: border-box;
	padding: 1.6rem 3rem;
	color: #f2f2f2;
	font-family: "Fira Code", monospace;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #00000042;
}

/* Front page header overlays the hero */
.hero-avantgarde .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

@media (min-width: 783px) {

	body:not(.home) .site-header {
		margin:
			clamp(1rem, 1vw, 3rem) clamp(1rem, 1vw, 3rem) 0;
		width: auto;
	}
}

.site-navigation {
	gap: 0.5rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open a {
    font-size: 1rem;
}

.site-navigation a {
	color: inherit;
	font-family: "Fira Code", monospace;
	font-size: 0.72rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.site-mark {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	line-height: 1;
	font-size: 1.25rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: -0.25rem;
}

.site-mark-d1,
.site-mark-b {
	font-family: "Silkscreen", sans-serif;
}

.site-mark-d1 {
	color: #dcdcdc;
}

.site-mark-b {
	color: #1c1a1d;
}

.site-mark-d2 {
	color: #0c76c8;
	font-family: "Silkscreen", sans-serif;
}

.site-contact-button .wp-block-button__link {
	padding: 0.55rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-family: "Fira Code", monospace;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}


/* ========================================
   HERO
======================================== */

.hero-avantgarde {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
}

/*
 * Decorative hero bulb.
 * style.css is in the theme root, so this resolves to:
 * /assets/images/bulb.png
 */
.hero-avantgarde::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("/wp-content/themes/david-brandon-portfolio/assets/images/bulb.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: min(70vw, 1000px) auto;
}

.hero-avantgarde .wp-block-cover__background {
	z-index: 0;
}

.hero-avantgarde .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
}


/* Hero Content */

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	max-width: 1400px;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 0 4rem;
	gap: 2rem;
}

.hero-wordmark {
	grid-column: 2;
	margin: 0;
	font-size: clamp(4rem, 6vw, 9rem);
	line-height: .85;
	font-weight: 600;
	text-align: left;
	color: white;
	-webkit-text-stroke-width: 9px;
	clip-path: stroke-box;
}

.first-name {
	color: #dcdcdc;
}

.last-name {
	color: #1c1a1d;
}

.hero-dev-word {
	font-family: "Silkscreen", sans-serif;
	-webkit-text-stroke-width: thin;
	color: #0c76c8;
	margin-left: -.5rem;
}

.hero-side-text {
	margin: 0;
	max-width: 20ch;
	font-size: clamp(0.78rem, 1vw, 0.95rem);
	line-height: 1.5;
	color: #1c1a1d;
}

.hero-side-left {
	grid-column: 1;
	justify-self: start;
	text-align: left;
}

.hero-side-right {
	grid-column: 3;
	justify-self: end;
	text-align: right;
}


/* Scroll Cue */

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
	width: 72px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	color: white;
}

.hero-scroll span {
	width: 3px;
	height: 3px;
	background: currentColor;
	border-radius: 50%;
}


/* ========================================
   SHARED SECTION STYLING
======================================== */

.portfolio-section {
	max-width: none !important;
	padding:
		clamp(6rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
}

.section-label,
.section-number,
.project-meta {
	font-family: "Fira Code", monospace;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.section-heading {
	margin: 0;
	font-size: clamp(3rem, 6vw, 7rem);
	line-height: 0.95;
	letter-spacing: -0.055em;
}


/* ========================================
   ABOUT
======================================== */

.about-section {
	background: #5c8fb0;
	background-image: url("/wp-content/themes/david-brandon-portfolio/assets/images/hand.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	color: #171717;
}

.about-intro {
	align-items: flex-start;
}

.statement-area {
	background: #ffffffed;
	padding: 2em;
}

.statement-heading {
	margin-top: 0;
	max-width: 1100px;
	font-size: clamp(2.6rem, 5vw, 5.8rem);
	line-height: 0.97;
	letter-spacing: -0.055em;
	font-weight: 500;
}

.social-strip {
	display: flex;
	gap: 0;
	padding: 0;
	border-top: 1px solid #111;
	border-bottom: 1px solid #111;
	background: #fff;
}

.social-strip-link {
	flex: 1;
	margin: 0;
	text-align: center;
	border-right: 1px solid #111;
}

.social-strip-link:last-child {
	border-right: 0;
}

.social-strip-link a {
	display: block;
	padding: 1.25rem 2rem;
	color: #111;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.social-strip-link a:hover {
	background: #111;
	color: #fff;
}

@media (max-width: 600px) {
	.social-strip {
		flex-direction: column;
	}

	.social-strip-link {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #111;
	}

	.social-strip-link:last-child {
		border-bottom: 0;
	}
}

.section-copy {
	max-width: 520px;
	margin-top: 2.2rem;
	font-size: 1rem;
	line-height: 1.55;
}

.pill-buttons {
	margin-top: 2rem;
}

.pill-buttons .wp-block-button__link {
	border-radius: 999px;
	font-family: "Fira Code", monospace;
	font-size: 0.7rem;
	text-transform: uppercase;
	padding: 0.7rem 1.1rem;
}

.about-lower {
	margin-top: clamp(7rem, 12vw, 13rem);
	align-items: end;
}

.about-small-copy {
	max-width: 380px;
	font-size: clamp(1rem, 1.5vw, 1.4rem);
	line-height: 1.35;
}

.about-symbol {
	width: clamp(190px, 24vw, 350px);
	aspect-ratio: 1;
	margin-left: auto;
	border: 1px solid currentColor;
	border-radius: 32%;
}

.about-symbol p {
	font-family: "Fira Code", monospace;
	font-size: clamp(1.5rem, 3vw, 3rem);
}


/* ========================================
   WORK
======================================== */

.work-section {
	padding-top: 1rem;
	background: #fff;
}

figure.wp-block-image.size-full.project-image {
    border: 6px solid;
    border-radius: 12px;
}

.section-heading-row {
	align-items: baseline;
	margin-bottom: 2rem;
}

.project-grid {
	gap: 1rem;
}

.project-card {
	cursor: pointer;
}

.project-image {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-position: top;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
	transform: scale(1.035);
}

.project-meta {
	margin-top: 0.8rem;
}

.project-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin: 0;
}

.project-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    box-shadow: 5px 5px 20px #eee;
}

/* ========================================
   SKILLS
======================================== */

.skills-section {
	background: #171717;
	background-image: url("/wp-content/themes/david-brandon-portfolio/assets/images/target.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	color: #f1eee6;
}

.skills-heading {
	max-width: 1300px;
	margin-top: 2rem;
	font-size: clamp(3rem, 7vw, 8rem);
	line-height: 0.94;
	letter-spacing: -0.06em;
	font-weight: 500;
}


/* ========================================
   CONTACT
======================================== */

.contact-section {
	min-height: 85vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-image: url("/wp-content/themes/david-brandon-portfolio/assets/images/rocket.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: min(70vw, 750px) auto;
	color: #171717
}

.contact-heading {
	margin: 2rem 0 3rem;
	font-size: clamp(4rem, 9vw, 10rem);
	line-height: 0.84;
	letter-spacing: -0.065em;
	font-weight: 500;
}

.contact-section .wp-block-button__link {
	border-radius: 999px;
	padding: 0.8rem 1.4rem;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
	width: 100%;
	max-width: none !important;
	box-sizing: border-box;
	margin-top: 4rem;

	padding:
		1.5rem clamp(1.5rem, 5vw, 5rem);

	background: #171717;
	color: #f1eee6;

	font-family: "Fira Code", monospace;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.site-footer p {
	margin: 0;
}

.site-footer-socials {
	margin: 0;
}

.site-footer-socials .wp-social-link a {
	color: #f1eee6;
}

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

.site-footer a:hover {
	opacity: 0.7;
}

@media (max-width: 782px) {

	.site-footer {
		gap: 1rem;
		padding: 1.5rem;
	}

}

/* ========================================
   PAGES
======================================== */

.standard-page {
	padding-top: clamp(3rem, 5vw, 5rem);
}

.standard-page-intro {
	padding-left: clamp(1.5rem, 5vw, 5rem);
	padding-right: clamp(1.5rem, 5vw, 5rem);
}

.standard-page-title {
	margin: 0;
	max-width: 1100px;
	font-family: "Manrope", sans-serif;
	font-size: clamp(4rem, 8vw, 9rem);
	font-weight: 600;
	line-height: 0.92;
	text-align: center;
	letter-spacing: normal;
	color: #1c1a1d;
	-webkit-text-stroke-width: 9px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{
	display: none;
}

.wp-block-image :where(figcaption) {
    font-family: 'Fira Code';
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.75em;
}

.standard-page-subheading {
	max-width: 700px;
	text-align: center;
	margin-top: 2.5rem;
	margin-bottom: 0;
	font-family: 'Silkscreen', sans-serif;
	font-size: clamp(0.9rem, 1.3vw, 1.1rem);
	line-height: 1.6;
	color: #1c1a1d;
}

.page{
background-color: #fafafa;
background-image: radial-gradient(circle, #d4d4d4 1px, transparent 1px);
background-size: 24px 24px;
}

.standard-page-featured-image {
	width: 100%;
	max-width: none !important;
}

.standard-page-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	height: auto;
	object-fit: cover;
	margin-block: 3rem;
}

.standard-page-content {
	padding:
	clamp(2rem, 1vw, 7rem) clamp(3rem, 3.5vw, 7rem)
}

.standard-page-content>* {
	max-width: 760px;
}

/* Mobile pages */

@media (max-width: 782px) {

	.standard-page {
		padding-top: 2rem;
	}

	.standard-page-title {
		font-size: clamp(3rem, 15vw, 5.5rem);
	}

	.standard-page-subheading {
		font-size: 0.9rem;
	}

	.standard-page-featured-image img {
		max-height: auto;
	}

	.standard-page-content {
		padding-top: 1rem;
		padding-bottom: 4rem;
	}
}

.standard-page {
	padding-top: clamp(2rem, 4vw, 4rem);
}

.standard-page-header,
.standard-page-content {
	box-sizing: border-box;
	padding-left: clamp(1.5rem, 5vw, 5rem);
	padding-right: clamp(1.5rem, 5vw, 5rem);
}

.standard-page-header {
	padding-bottom: clamp(2rem, 4vw, 4rem);
}

.standard-page-featured-image {
	margin-top: 0 !important;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: "Fira Code", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    justify-content: center;
	margin-block: 2rem;
}

.tech-stack a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(28, 26, 29, 0.25);
	border-radius: 999px;
	color: #fbfbfb;
	text-decoration: none;
	background: rgba(26, 26, 26, 0.928);
}

.tech-stack a:hover {
	background: #1c1a1d;
	color: #fff;
}

.wp-block-post-terms .wp-block-post-terms__separator{
	display: none;
}

/* ========================================
   TABLET
======================================== */

@media (min-width: 783px) and (max-width: 1024px) {

	.site-header {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.hero-grid {
		padding: 0 2rem;
		gap: 1rem;
	}

	.hero-wordmark {
		font-size: clamp(3.5rem, 7vw, 6rem);
	}

	.hero-side-text {
		font-size: 0.78rem;
	}
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 782px) {

	.site-header {
		padding: 1.2rem;
	}

	.site-mark {
		position: static;
		transform: none;
		margin-right: auto;
		font-size: 1.25rem;
	}

	/*
	 * Show the WordPress mobile menu trigger.
	 */
	.site-navigation .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	/*
	 * Hide the regular desktop navigation links.
	 */
	.site-navigation .wp-block-navigation__container {
		display: none;
	}

	/*
	 * Bring the navigation list back when the
	 * WordPress responsive overlay is open.
	 */
	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
	}

	/*
	 * Style the WordPress responsive menu overlay.
	 */
	.site-navigation .wp-block-navigation__responsive-container.is-menu-open {
		background-color: #ffffffdc;
	}

	.hero-avantgarde::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		pointer-events: none;
		background-image: url("/wp-content/themes/david-brandon-portfolio/assets/images/bulb.png");
		background-repeat: no-repeat;
		background-position: center;
		background-size: min(70vw, 1000px) auto;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		padding: 7rem 1.5rem 5rem;
		text-align: center;
		gap: 2rem;
	}

	.hero-side-left,
	.hero-side-right,
	.hero-wordmark {
		grid-column: 1;
	}

	.hero-wordmark::after {
		font-size: 0.58em;
	}

	.hero-side-text {
		max-width: 30ch;
	}

	.hero-scroll {
		display: none;
	}

	.about-intro,
	.about-lower,
	.project-grid {
		display: block;
	}

	.about-intro>.wp-block-column,
	.about-lower>.wp-block-column {
		flex-basis: 100% !important;
	}

	.about-intro>.wp-block-column:first-child,
	.about-intro>.wp-block-column:last-child {
		margin-bottom: 2rem;
	}

	.section-number {
		text-align: left !important;
	}

	.about-lower {
		margin-top: 6rem;
	}

	.about-symbol {
		margin: 3rem 0 0;
	}

	.project-grid {
		display: block;
		margin-block-start: 0 !important;
	}
	
	  .project-grid > .wp-block-column + .wp-block-column {
		margin-top: 2rem;
	}
	
	  .project-grid + .project-grid {
		margin-top: 2rem !important;
	}

	.contact-heading {
		font-size: clamp(3.6rem, 16vw, 6rem);
	}
}


/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}


/* ========================================
   UTILS
======================================== */

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.site-header .wp-block-button__link {
	background-color: #32373ca8;
}