/* Fonts (Fraunces / Inter / Space Grotesk) are enqueued in functions.php
   via norris_enqueue_fonts() so they load on both the front end and in
   the block editor. Family stacks are exposed as theme.json presets:
     --wp--preset--font-family--heading  → Fraunces      (headlines)
     --wp--preset--font-family--body     → Inter         (body text)
     --wp--preset--font-family--label    → Space Grotesk (labels, eyebrows)
*/

/* ---------- Layout basics ---------- */
/* Page background color and optional image are controlled via
   Appearance > Customize > Page Background. */
html {
	background-color: var(--wp--custom--page-background, #006666);
	background-image: var(--norris-bg-image, none);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

body {
	background: transparent;
	color: #1f2d2a;
	font-family: var(--wp--preset--font-family--body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	font-size: 0.875rem;
	line-height: 1.6;
}

.wp-site-blocks {
	max-width: 1080px;
	margin: 40px auto;
	background: #ffffff;
	border: 0.5px solid #e5e4df;
	border-radius: 10px;
	overflow: hidden;
}

/* Breathing room: horizontal padding on every top-level content group
   (the header manages its own padding). */
.wp-site-blocks > .wp-block-group:not(.site-header) {
	padding-left: 40px;
	padding-right: 40px;
}

/* ---------- Mobile foundation ---------- */
@media (max-width: 600px) {
	body {
		padding: 0 10px;
	}

	.wp-site-blocks {
		margin: 20px auto;
	}

	.wp-site-blocks > .wp-block-group:not(.site-header) {
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-header {
		padding: 14px 20px;
	}
}

/* ---------- Navigation: our own hamburger + dropdown ---------- */
.site-header {
	position: relative;
}

.norris-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	background: transparent;
	border: none;
	cursor: pointer;
}

.norris-menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 22px;
	height: 16px;
	flex: 0 0 auto;
}

.norris-menu-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background: #1f2d2a;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.norris-menu-label {
	font-family: var(--wp--preset--font-family--label, "Space Grotesk", "Inter", sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1f2d2a;
	line-height: 1;
}

.norris-menu-toggle[aria-expanded="true"] .norris-menu-icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.norris-menu-toggle[aria-expanded="true"] .norris-menu-icon span:nth-child(2) {
	opacity: 0;
}

.norris-menu-toggle[aria-expanded="true"] .norris-menu-icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 599px) {
	.norris-menu-toggle {
		display: flex;
	}

	/* Nav hidden by default on mobile */
	.site-header .wp-block-navigation {
		display: none;
	}

	/* Open state: full-width sheet below the header */
	.site-header.menu-open .wp-block-navigation {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 0.5px solid #e5e4df;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
		padding: 8px 24px 12px !important;
		z-index: 100;
		animation: norris-fade-in 0.2s ease both;
	}

	.site-header.menu-open .wp-block-navigation ul {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}

	.site-header.menu-open .wp-block-navigation li {
		margin: 0 !important;
		width: 100%;
	}

	.site-header.menu-open .wp-block-navigation a {
		display: block;
		width: 100%;
		margin: 0 !important;
		padding: 12px 0 !important;
		font-size: 0.9375rem;
		color: #1f2d2a;
		text-align: center;
	}

	.site-header.menu-open .wp-block-navigation a:hover {
		color: #006666;
	}
}

a {
	transition: color 0.2s ease;
}

/* ---------- Heading scale (Fraunces) ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading, "Fraunces", Georgia, serif);
	font-optical-sizing: auto;
	letter-spacing: -0.01em;
}
h1 { font-size: 1.5rem; font-weight: 600; color: #04342c; line-height: 1.3; }
h2 { font-size: 1.25rem; font-weight: 600; color: #04342c; line-height: 1.35; }
h3 { font-size: 1.0625rem; font-weight: 600; color: #1f2d2a; line-height: 1.4; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; color: #1f2d2a; }

/* ---------- Gentle motion ---------- */
.wp-site-blocks {
	animation: norris-fade-in 0.4s ease both;
}

@keyframes norris-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

.works-card,
.link-card,
.btn,
.works-filter-btn {
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.works-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks { animation: none; }
	.works-card:hover { transform: none; }
}

/* ---------- Non-clickable works card (no write-up yet) ----------
   Same hover treatment as clickable cards; only the pointer differs. */
.works-card.no-link {
	cursor: default;
}

/* ---------- Resume extras ---------- */
.section-disclaimer {
	font-style: italic;
	font-size: 0.75rem;
	color: #888780;
	margin: 10px 0 0;
	line-height: 1.6;
}

.section-disclaimer a {
	color: #006666;
	text-decoration: underline;
}

.section-disclaimer a:hover {
	color: #04342c;
}

.portfolio-disclaimer {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 0.5px solid #e5e4df;
	font-size: 0.6875rem;
	color: #9a998f;
}

.timeline-role a {
	color: #006666;
	text-decoration: none;
}

.timeline-role a:hover {
	color: #04342c;
	text-decoration: underline;
}

/* ---------- Single post byline ---------- */
.post-author {
	display: block;
	font-size: 0.875rem;
	color: #888780;
	margin: -12px 0 24px;
}

.post-author::before {
	content: "By ";
}

/* ---------- Header ---------- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 32px;
	border-bottom: 0.5px solid #e5e4df;
}

.site-header .site-title a {
	text-decoration: none;
}

/* Text wordmark fallback (shown when no logo image is set). Sized to sit
   comfortably in the header; tweak font-size to taste. */
.norris-textlogo {
	font-family: var(--wp--preset--font-family--heading, "Fraunces", Georgia, serif);
	font-optical-sizing: auto;
	font-size: 1.75rem;
	line-height: 1;
	letter-spacing: -0.01em;
	color: #006666;
	text-decoration: none;
	text-transform: capitalize;
	white-space: nowrap;
}

.norris-textlogo-bold { font-weight: 700; }
.norris-textlogo-reg { font-weight: 400; }

.logo-mark {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 12px;
	border-radius: 4px;
	background: #006666;
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.custom-logo {
	max-height: 50px;
	width: auto;
	display: block;
}

.site-header .wp-block-site-logo {
	display: flex;
	align-items: center;
}

/* Logo shows at its natural size (a 500x50 logo stays 500x50). It only
   scales down if the header ever gets narrower than the logo. Adjust the
   max-height if you use a taller logo. */
.site-header .wp-block-site-logo img,
.site-header img.custom-logo {
	width: auto;
	height: auto;
	max-height: 52px;
	max-width: 100%;
}

.site-header nav a {
	font-size: 0.875rem;
	color: #6b6a64;
	text-decoration: none;
	margin-left: 20px;
}

/* Mobile: let the header wrap so the logo gets the whole first line
   (centered) and the labelled menu button becomes a full-width,
   centered tap target on the second line. */
@media (max-width: 599px) {
	.site-header {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.site-header .site-title {
		flex: 1 1 100%;
		justify-content: center;
	}

	.norris-textlogo {
		font-size: 1.375rem;
	}

	.site-header .norris-menu-toggle {
		flex: 1 1 100%;
		position: relative;
		justify-content: flex-start;
		padding: 10px 4px;
	}

	.site-header .norris-menu-label {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.site-header .wp-block-site-logo img,
	.site-header img.custom-logo {
		max-height: 52px;
	}
}

.site-header nav a:hover {
	color: #006666;
}

/* ---------- Eyebrow / shared labels (Space Grotesk) ----------
   Space Grotesk is used for the small "label" layer of the UI:
   eyebrows, meta labels, the logo badge, pills, filter buttons
   and nav. Kept together so the labelling voice stays consistent. */
.hero-eyebrow,
.meta-label,
.single-work-meta .meta-label,
.logo-mark,
.pill,
.works-filter-btn,
.works-card-tag,
.site-header nav a {
	font-family: var(--wp--preset--font-family--label, "Space Grotesk", "Inter", sans-serif);
}

.hero-eyebrow {
	font-size: var(--norris-eyebrow-size, 0.8125rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0f6e56;
	font-weight: 600;
	margin: 0 0 8px;
}

/* ---------- Shared button ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	border: 0.5px solid transparent;
}

.btn-primary {
	background: #006666;
	color: #ffffff;
}

.btn-ghost {
	background: transparent;
	color: #6b6a64;
	border-color: #d3d1c7;
}

.btn-ghost:hover,
.btn-ghost.is-active {
	color: #006666;
	border-color: #006666;
}

.works-filter-btn {
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 6px;
	background: transparent;
	color: #6b6a64;
	border: 0.5px solid #d3d1c7;
	cursor: pointer;
}

.works-filter-btn:hover,
.works-filter-btn.is-active {
	color: #006666;
	border-color: #006666;
}

/* ---------- Shared pill/tag ---------- */
.pill {
	font-size: 0.6875rem;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 4px;
	color: #04342c;
	background: #e1f5ee;
	display: inline-block;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ---------- Hero / link cards ---------- */
.link-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	max-width: 520px;
	margin-top: 24px;
}

@media (max-width: 600px) {
	.link-cards {
		grid-template-columns: 1fr;
	}
}

.link-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 0.5px solid #e5e4df;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2d2a;
}

.link-card:hover {
	border-color: #006666;
	color: #006666;
}

.link-card strong {
	font-size: 0.875rem;
	font-weight: 600;
}

.link-card span {
	font-size: 0.875rem;
	color: #888780;
}

/* ---------- Services ---------- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 20px;
}

@media (max-width: 600px) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}

.service-item {
	border-left: 2px solid #006666;
	padding-left: 12px;
}

.service-item h3 {
	font-weight: 600;
	color: #1f2d2a;
	margin: 0 0 4px;
	font-size: 1rem;
}

.service-item p {
	font-size: 0.875rem;
	color: #6b6a64;
	margin: 0;
	line-height: 1.5;
}

/* ---------- Resume timeline ---------- */
.timeline-item {
	padding: 12px 0;
}

.timeline-item:last-child {
	border-bottom: none;
}

.timeline-dates {
	font-size: 0.875rem;
	color: #888780;
	margin: 0 0 2px;
}

.timeline-role {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2d2a;
	margin: 0 0 4px;
}

.timeline-role span {
	color: #6b6a64;
	font-weight: 400;
}

.timeline-desc {
	font-size: 0.875rem;
	color: #6b6a64;
	line-height: 1.5;
	margin: 0 0 8px;
}

.section-block {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 0.5px solid #e5e4df;
}

.soft-skills-line {
	font-style: italic;
	font-size: 0.875rem;
	color: #888780;
	margin: 10px 0 0;
	line-height: 1.6;
}

.resume-footer-wrap {
	margin: 28px 0 0;
}

.resume-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	color: #006666;
	text-decoration: none;
}

.resume-footer-link:hover {
	color: #04342c;
}

footer.wp-block-group {
	text-align: center;
}

footer.wp-block-group p {
	margin: 0;
}

footer.wp-block-group p {
	font-size: 0.875rem;
	color: #888780;
}

/* ---------- Works grid ---------- */
.works-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 780px) {
	.works-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.works-grid {
		grid-template-columns: 1fr;
	}
}

.works-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 16px 12px;
	border: 0.5px solid #e5e4df;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2d2a;
}

.works-card:hover {
	border-color: #006666;
}

.works-card-logo {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.works-card-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.works-card-name {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

.works-card-tag {
	font-size: 0.875rem;
	color: #888780;
	margin: 0;
}

.works-card.is-hidden {
	display: none;
}

/* ---------- Single work ---------- */
.single-work-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 0.5px solid #e5e4df;
	border-bottom: 0.5px solid #e5e4df;
	margin: 16px 0;
}

.single-work-meta .meta-label {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #888780;
	margin: 0 0 2px;
}

.single-work-meta .meta-value {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
	color: #1f2d2a;
}

.single-work-meta .meta-terms {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

.single-work-meta .meta-terms a {
	color: #1f2d2a;
	text-decoration: none;
}

.single-work-meta .meta-terms a:hover {
	color: #006666;
}

.works-card-initials {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e1f5ee;
	color: #04342c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
}

/* ---------- Blog list ---------- */
ul.wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

li.wp-block-post {
	margin: 0;
}

.blog-list-item h2,
.blog-list-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	font-family: var(--wp--preset--font-family--body, "Inter", sans-serif);
}

.blog-list-item {
	display: block;
	padding: 10px 0;
	border-bottom: 0.5px solid #e5e4df;
	text-decoration: none;
	color: #1f2d2a;
}

.blog-list-item:last-child {
	border-bottom: none;
}

.blog-list-item:hover .blog-list-title {
	color: #006666;
}

.blog-list-date {
	font-size: 0.875rem;
	color: #888780;
	margin: 0 0 2px;
	display: block;
}

.blog-list-title {
	font-size: 0.875rem;
	font-weight: 400;
	color: #1f2d2a;
}

h2.blog-list-title, .blog-list-title a {
	font-size: 0.875rem;
	font-weight: 400;
	font-family: var(--wp--preset--font-family--body, "Inter", sans-serif);
	color: #1f2d2a;
	text-decoration: none;
	margin: 0;
}

/* Sticky posts stand out with a bold title. */
.is-sticky .blog-list-title,
.is-sticky .blog-list-title a {
	font-weight: 700;
}

/* ---------- Single post ---------- */
.back-link-p a {
	font-size: 0.875rem;
	color: #006666;
	text-decoration: none;
}

.back-link-p a:hover {
	color: #04342c;
}

.post-title-single {
	font-size: 1.5rem;
	font-weight: 600;
	color: #04342c;
	line-height: 1.35;
	margin: 4px 0 20px;
}

.blog-list-date {
	font-size: 0.875rem;
	color: #888780;
}

/* ---------- Contact form ---------- */
.contact-form-wrap .wpcf7-form p {
	margin: 0 0 16px;
}

.contact-form-wrap .wpcf7-form label {
	display: block;
	font-size: 0.875rem;
	color: #6b6a64;
	margin-bottom: 4px;
}

.contact-form-wrap .wpcf7-form input,
.contact-form-wrap .wpcf7-form textarea {
	box-sizing: border-box;
	max-width: 100%;
}

.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 0.875rem;
	padding: 10px 12px;
	border: 0.5px solid #d3d1c7;
	border-radius: 6px;
	background: #ffffff;
	color: #1f2d2a;
}

.contact-form-wrap .wpcf7-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form-wrap .wpcf7-form input[type="submit"] {
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	background: #006666;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	cursor: pointer;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
	background: #04342c;
}

.contact-form-wrap .wpcf7-not-valid-tip {
	font-size: 0.75rem;
	color: #a33;
	margin-top: 4px;
}

.contact-form-wrap .wpcf7-response-output {
	font-size: 0.875rem;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 16px;
}

/* ---------- Blog comments (dormant until enabled per post) ---------- */
.blog-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 0.5px solid #e5e4df;
}

.blog-comments .wp-block-comments-title {
	font-size: 1.25rem;
	margin: 0 0 20px;
}

.wp-block-comment-template,
.wp-block-comment-template ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-comment-template ol {
	margin-left: 24px;
}

.comment-item {
	padding: 16px 0;
	border-bottom: 0.5px solid #eeede8;
}

.comment-meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 6px;
}

.comment-author,
.comment-author a {
	font-weight: 600;
	color: #1f2d2a;
	font-size: 0.9375rem;
	text-decoration: none;
}

.comment-date,
.comment-date a {
	font-size: 0.75rem;
	color: #888780;
	text-decoration: none;
}

.wp-block-comment-content p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0 0 8px;
	color: #1f2d2a;
}

.comment-reply a {
	font-size: 0.75rem;
	color: #006666;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--label, "Space Grotesk", "Inter", sans-serif);
}

.comment-reply a:hover {
	text-decoration: underline;
}

.wp-block-comments-pagination {
	margin-top: 20px;
	font-size: 0.8125rem;
}

.wp-block-comments-pagination a {
	color: #006666;
	text-decoration: none;
}

/* Comment form */
.comment-respond {
	margin-top: 32px;
}

.comment-reply-title {
	font-size: 1.125rem;
	margin: 0 0 12px;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	font-size: 0.8125rem;
	color: #6b6a64;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 0.5px solid #d5d4cd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.875rem;
	color: #1f2d2a;
	background: #ffffff;
	box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #006666;
}

.comment-form textarea {
	min-height: 140px;
	max-width: 100%;
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.75rem;
	color: #888780;
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 3px;
}

.comment-form .form-submit .submit,
.comment-form input[type="submit"] {
	background: #006666;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
}

.comment-form .form-submit .submit:hover,
.comment-form input[type="submit"]:hover {
	background: #04342c;
}
