/*
Theme Name: 72HW Portfolio
Theme URI: https://github.com/72hourwebsites/72hw-portfolio
Author: Angel Lopez
Author URI: https://github.com/72hourwebsites
Description: A lightweight, accessible portfolio theme for WordPress developers, with native templates and an optional showcase grid.
Version: 1.0.1
Requires at least: 6.4
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: 72hw-portfolio
Tags: portfolio, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
	--hw72-color-ink: #142536;
	--hw72-color-muted: #526577;
	--hw72-color-accent: #096b66;
	--hw72-color-accent-dark: #07534f;
	--hw72-color-surface: #ffffff;
	--hw72-color-soft: #edf5f4;
	--hw72-color-border: #d9e2e7;
	--hw72-content-width: 72rem;
	--hw72-reading-width: 46rem;
	--hw72-shadow: 0 1rem 2.5rem rgba(20, 37, 54, 0.08);
}

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

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	background: var(--hw72-color-surface);
	color: var(--hw72-color-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	margin: 0;
}

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

a {
	color: var(--hw72-color-accent-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--hw72-color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 0.2rem solid var(--hw72-color-accent);
	outline-offset: 0.2rem;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin: 0 0 1rem;
}

h1 {
	font-size: clamp(2.25rem, 7vw, 4.75rem);
	letter-spacing: -0.045em;
}

h2 {
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	letter-spacing: -0.025em;
}

p {
	margin: 0 0 1.25rem;
}

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

.screen-reader-text:focus {
	background: var(--hw72-color-surface);
	clip: auto !important;
	clip-path: none;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.skip-link {
	color: var(--hw72-color-ink);
}

.site-header {
	border-bottom: 1px solid var(--hw72-color-border);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero {
	margin: 0 auto;
	max-width: var(--hw72-content-width);
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
	width: 100%;
}

.site-header__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	padding-bottom: 1rem;
	padding-top: 1rem;
}

.site-branding {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.site-branding .custom-logo {
	max-height: 3rem;
	width: auto;
}

.site-title {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0;
}

.site-title a {
	color: var(--hw72-color-ink);
	text-decoration: none;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--hw72-color-ink);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--hw72-color-accent);
	text-decoration: underline;
}

.hero {
	padding-bottom: clamp(4rem, 10vw, 8rem);
	padding-top: clamp(4rem, 10vw, 8rem);
}

.hero__inner {
	max-width: 58rem;
}

.hero__eyebrow,
.section-heading__eyebrow {
	color: var(--hw72-color-accent-dark);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero__intro {
	color: var(--hw72-color-muted);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	max-width: 43rem;
}

.button,
.wp-block-button__link,
input[type="submit"] {
	background: var(--hw72-color-accent-dark);
	border: 0;
	border-radius: 0.45rem;
	color: #fff;
	display: inline-block;
	font-weight: 700;
	padding: 0.75rem 1.15rem;
	text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	background: var(--hw72-color-accent);
	color: #fff;
}

.showcase-section {
	background: var(--hw72-color-soft);
	border-bottom: 1px solid var(--hw72-color-border);
	border-top: 1px solid var(--hw72-color-border);
	padding: clamp(3rem, 7vw, 5rem) 0;
}

.showcase-section__inner {
	margin: 0 auto;
	max-width: var(--hw72-content-width);
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
}

.section-heading {
	margin-bottom: 2rem;
	max-width: var(--hw72-reading-width);
}

.content-section {
	padding: clamp(3rem, 7vw, 5rem) 0;
}

.posts-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.entry-card {
	border: 1px solid var(--hw72-color-border);
	border-radius: 0.75rem;
	box-shadow: var(--hw72-shadow);
	overflow: hidden;
}

.entry-card__image img {
	aspect-ratio: 16 / 10;
	display: block;
	object-fit: cover;
	width: 100%;
}

.entry-card__body {
	padding: 1.25rem;
}

.entry-title {
	font-size: 1.35rem;
}

.entry-title a {
	color: var(--hw72-color-ink);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--hw72-color-accent-dark);
	text-decoration: underline;
}

.entry-meta,
.entry-footer {
	color: var(--hw72-color-muted);
	font-size: 0.875rem;
}

.singular-content {
	margin: 0 auto;
	max-width: var(--hw72-reading-width);
}

.singular-content .entry-header {
	margin-bottom: 2rem;
}

.singular-content .post-thumbnail {
	margin-bottom: 2rem;
}

.singular-content .entry-content > * {
	max-width: 100%;
}

.pagination,
.post-navigation {
	margin: 2.5rem 0;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
}

.page-numbers,
.post-navigation a {
	border: 1px solid var(--hw72-color-border);
	border-radius: 0.4rem;
	padding: 0.4rem 0.7rem;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--hw72-color-accent-dark);
	color: #fff;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 34rem;
}

.search-form label {
	flex: 1;
}

.search-field,
.comment-form input,
.comment-form textarea {
	border: 1px solid var(--hw72-color-border);
	border-radius: 0.4rem;
	font: inherit;
	max-width: 100%;
	padding: 0.65rem;
	width: 100%;
}

.comments-area {
	border-top: 1px solid var(--hw72-color-border);
	margin-top: 3rem;
	padding-top: 2rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
}

.comment-body {
	border-bottom: 1px solid var(--hw72-color-border);
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
}

.site-footer {
	background: var(--hw72-color-ink);
	color: #dce6ed;
	margin-top: 3rem;
}

.site-footer__inner {
	padding-bottom: 2rem;
	padding-top: 2rem;
}

.site-footer a {
	color: #fff;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 42rem) {
	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.search-form {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
