/* Jay Parry Studio — monochrome + emerald theme
   Light, minimal, shadcn/Geist-influenced. Accent used sparingly on
   actions, links, active/selected states and focus. */

:root {
	/* neutral base */
	--jp-bg: #ffffff;
	--jp-bg-subtle: #fafafa;
	--jp-surface: #ffffff;
	--jp-text: #0a0a0a;
	--jp-heading: #0a0a0a;
	--jp-muted: #6b7280;
	--jp-faint: #9ca3af;
	--jp-line: #e5e5e5;
	--jp-line-strong: #d4d4d4;
	--jp-fill: #f4f4f5;

	/* accent (single source of truth — change here to reskin) */
	--jp-accent: #10b981;
	--jp-accent-hover: #059669;
	--jp-accent-ink: #ffffff;
	--jp-accent-soft: rgba(16, 185, 129, 0.10);
	--jp-danger: #dc2626;

	/* bold outline + hard (solid, offset) shadows — the "3D slab" look */
	--jp-ink: #0f0f10;
	--jp-slab: #cbd0d7;
	--jp-border: 2px solid var(--jp-ink);

	--jp-radius: 16px;
	--jp-radius-sm: 12px;
	--jp-radius-pill: 999px;

	--jp-shadow: 0 5px 0 0 var(--jp-slab);
	--jp-shadow-hover: 0 8px 0 0 var(--jp-slab);
	--jp-shadow-btn: 0 4px 0 0 var(--jp-ink);
	--jp-shadow-btn-press: 0 1px 0 0 var(--jp-ink);

	--jp-shell: min(1120px, calc(100vw - 32px));
	--jp-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--jp-bg);
	color: var(--jp-text);
	font-family: var(--jp-font);
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, var(--jp-accent) 55%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--jp-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--jp-accent-soft);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 20;
	background: var(--jp-text);
	color: #fff;
	padding: 10px 14px;
	border-radius: var(--jp-radius-sm);
}

.skip-link:focus {
	top: 16px;
}

.jp-shell {
	width: var(--jp-shell);
	margin: 0 auto;
}

.jp-shell-narrow {
	width: min(820px, calc(100vw - 32px));
	margin: 0 auto;
}

/* Subtle light texture for hero/section bands (replaces the old dark grid) */
.jp-texture {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--jp-bg-subtle);
	background-image: radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.045) 1px, transparent 0);
	background-size: 24px 24px;
}

.jp-texture::after {
	content: none;
}

/* Header */
.jp-site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--jp-line);
}

.jp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
}

.jp-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.jp-mark {
	display: inline-block;
	width: 44px;
	aspect-ratio: 1;
	flex: 0 0 auto;
	overflow: visible;
}

.jp-mark__shadow,
.jp-mark__j,
.jp-mark__path,
.jp-mark__cut {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.jp-mark__shadow {
	stroke: color-mix(in srgb, var(--jp-accent) 26%, transparent);
	stroke-width: 11;
	transform: translate(3px, 3px);
}

.jp-mark__path {
	stroke: var(--jp-text);
	stroke-width: 8;
}

.jp-mark__j {
	stroke: var(--jp-accent);
	stroke-width: 8;
}

.jp-mark__spark {
	fill: none;
	stroke: var(--jp-accent);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 4;
	vector-effect: non-scaling-stroke;
}

.jp-brand strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.jp-brand small {
	display: block;
	color: var(--jp-muted);
	font-size: 0.76rem;
	line-height: 1.2;
}

.jp-menu,
.jp-footer-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.jp-menu a {
	color: var(--jp-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 160ms ease;
}

.jp-menu a:hover,
.jp-menu .current-menu-item > a {
	color: var(--jp-text);
}

.jp-nav-toggle {
	display: none;
	border: 1px solid var(--jp-line);
	border-radius: var(--jp-radius-sm);
	background: var(--jp-surface);
	color: var(--jp-text);
	font-weight: 600;
	padding: 9px 12px;
}

/* Hero */
.jp-hero {
	min-height: auto;
	display: grid;
	align-items: center;
	padding: 96px 0;
}

.jp-hero-grid,
.jp-detail-grid,
.jp-contact-grid,
.jp-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: 48px;
	align-items: center;
}

.jp-eyebrow {
	margin: 0 0 14px;
	color: var(--jp-faint);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--jp-heading);
	line-height: 1.05;
	letter-spacing: -0.025em;
	font-weight: 700;
}

h1 {
	width: 100%;
	max-width: 820px;
	font-size: clamp(2.6rem, 5.4vw, 4.4rem);
	overflow-wrap: break-word;
}

h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

h3 {
	font-size: 1.4rem;
	letter-spacing: -0.015em;
}

.jp-lead {
	max-width: 680px;
	margin: 22px 0 0;
	color: var(--jp-muted);
	font-size: 1.16rem;
}

.jp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

/* Buttons — primary = emerald (accent), ghost = bordered */
.jp-button,
.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: var(--jp-border);
	border-radius: var(--jp-radius-sm);
	background: var(--jp-accent);
	color: var(--jp-accent-ink);
	padding: 10px 20px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--jp-shadow-btn);
	transition: transform 110ms ease, box-shadow 110ms ease, background 160ms ease;
}

.jp-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 0 0 var(--jp-ink);
	background: var(--jp-accent-hover);
}

.jp-button:active,
button[type="submit"]:active,
input[type="submit"]:active {
	transform: translateY(3px);
	box-shadow: var(--jp-shadow-btn-press);
}

.jp-button--ghost {
	background: var(--jp-surface);
	color: var(--jp-text);
}

.jp-button--ghost:hover {
	background: var(--jp-fill);
}

/* Shared card surfaces */
.jp-build-plate,
.jp-contact-form,
.jp-card,
.jp-capability-grid > div {
	border: var(--jp-border);
	border-radius: var(--jp-radius);
	background: var(--jp-surface);
	box-shadow: var(--jp-shadow);
}

.jp-build-plate {
	overflow: hidden;
}

.jp-plate-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--jp-line);
	background: var(--jp-bg-subtle);
	color: var(--jp-muted);
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	font-weight: 600;
}

.jp-plate-head strong {
	color: var(--jp-text);
	letter-spacing: -0.01em;
}

.jp-tag-stack {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-tag-stack li {
	border-bottom: 1px solid var(--jp-line);
}

.jp-tag-stack li:last-child {
	border-bottom: 0;
}

.jp-tag-stack a {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 6px 16px;
	padding: 20px;
	color: inherit;
	text-decoration: none;
	transition: background 160ms ease;
}

.jp-tag-stack a:hover,
.jp-tag-stack a:focus-visible {
	background: var(--jp-bg-subtle);
	outline: 0;
}

.jp-tag-stack span {
	grid-row: span 2;
	color: var(--jp-accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.jp-tag-stack strong,
.jp-tag-stack em,
.jp-tag-stack b {
	display: block;
}

.jp-tag-stack strong {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.jp-tag-stack em {
	color: var(--jp-muted);
	font-style: normal;
	font-size: 0.9rem;
}

.jp-tag-stack b {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
	color: var(--jp-faint);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.jp-tag-stack a:hover b {
	color: var(--jp-accent);
}

.jp-tag-stack b::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Sections */
.jp-section,
.jp-page-hero,
.jp-detail-hero {
	padding: 88px 0;
}

.jp-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.jp-section-heading h2 {
	max-width: 760px;
}

.jp-section-heading > a {
	color: var(--jp-accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.jp-section-heading > a:hover {
	color: var(--jp-accent-hover);
	text-decoration: underline;
}

/* Cards */
.jp-grid {
	display: grid;
	gap: 22px;
}

.jp-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jp-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--jp-shadow-hover);
}

.jp-card__media {
	display: block;
	overflow: hidden;
	background: var(--jp-fill);
	text-decoration: none;
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid var(--jp-line);
}

.jp-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.jp-card:hover .jp-card__image {
	transform: scale(1.03);
}

.jp-card__image--fallback {
	display: grid;
	place-items: center;
	color: var(--jp-faint);
}

.jp-card__body {
	padding: 22px;
}

.jp-card__body h3 {
	margin-top: 2px;
}

.jp-card__body h3 a {
	text-decoration: none;
}

.jp-card__body h3 a:hover {
	color: var(--jp-accent-hover);
}

.jp-card__body p:last-child {
	margin-bottom: 0;
	color: var(--jp-muted);
}

.jp-card__body > p:not(.jp-eyebrow) {
	font-size: 0.98rem;
}

/* Pill badges (project type / role / stack) */
.jp-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 18px 0 0;
	list-style: none;
}

.jp-card-meta li {
	border: 1.5px solid var(--jp-ink);
	border-radius: var(--jp-radius-pill);
	background: var(--jp-surface);
	color: var(--jp-text);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 4px 11px;
}

.jp-section--split {
	border-block: 1px solid var(--jp-line);
	background: var(--jp-bg-subtle);
}

.jp-capability-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.jp-capability-grid > div {
	padding: 22px;
}

.jp-capability-grid strong,
.jp-capability-grid span {
	display: block;
}

.jp-capability-grid strong {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.jp-capability-grid span {
	margin-top: 8px;
	color: var(--jp-muted);
	font-size: 0.95rem;
}

/* Filter pills (My Work) */
.jp-filter-row {
	position: sticky;
	top: 69px;
	z-index: 5;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 14px 0 22px;
	background: var(--jp-bg);
}

.jp-filter-input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.jp-filter-row a,
.jp-filter-row label,
.jp-filter-row button {
	flex: 0 0 auto;
	border: 1.5px solid var(--jp-ink);
	border-radius: var(--jp-radius-pill);
	background: var(--jp-surface);
	color: var(--jp-text);
	padding: 8px 16px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 140ms ease, color 140ms ease, box-shadow 110ms ease, transform 110ms ease;
}

.jp-filter-row a:hover,
.jp-filter-row label:hover {
	background: var(--jp-fill);
}

.jp-filter-row a.is-active,
.jp-filter-row label.is-active,
.jp-filter-row button.is-active {
	background: var(--jp-accent);
	border-color: var(--jp-ink);
	color: var(--jp-accent-ink);
	box-shadow: 0 3px 0 0 var(--jp-ink);
}

/* Project detail */
.jp-detail-media {
	border-radius: var(--jp-radius);
	overflow: hidden;
	border: var(--jp-border);
	background: var(--jp-bg-subtle);
	box-shadow: var(--jp-shadow);
}

.jp-detail-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: contain;
	background: var(--jp-bg-subtle);
}

.jp-content {
	padding-top: 70px;
	padding-bottom: 90px;
}

.jp-project-case {
	display: grid;
	grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
	gap: 44px;
	padding-top: 70px;
	padding-bottom: 90px;
}

.jp-case-summary {
	align-self: start;
	display: grid;
	gap: 12px;
	position: sticky;
	top: 100px;
}

.jp-case-summary div {
	border: var(--jp-border);
	border-radius: var(--jp-radius);
	background: var(--jp-surface);
	box-shadow: var(--jp-shadow);
	padding: 16px;
}

.jp-case-summary span,
.jp-case-summary strong {
	display: block;
}

.jp-case-summary span {
	color: var(--jp-faint);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.jp-case-summary strong {
	margin-top: 6px;
	color: var(--jp-text);
	font-weight: 600;
	line-height: 1.35;
}

/* Article content */
.jp-content > *:first-child {
	margin-top: 0;
}

.jp-content h2,
.jp-content h3 {
	margin-top: 42px;
	margin-bottom: 14px;
	line-height: 1.15;
}

.jp-content p,
.jp-content li {
	color: #374151;
}

.jp-content a {
	color: var(--jp-accent-hover);
	font-weight: 500;
}

.jp-content-media,
.jp-content-gallery,
.jp-video {
	margin: 34px 0;
}

.jp-content-media img,
.jp-content-gallery img,
.jp-video video {
	width: 100%;
	border-radius: var(--jp-radius);
	border: 1px solid var(--jp-line);
}

.jp-content-media figcaption {
	margin-top: 8px;
	color: var(--jp-muted);
	font-size: 0.9rem;
}

.jp-content-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

/* Contact */
.jp-contact a {
	color: var(--jp-accent-hover);
	font-weight: 600;
}

.jp-contact-form {
	display: grid;
	gap: 16px;
	padding: 24px;
}

.jp-contact-form label {
	display: grid;
	gap: 7px;
	color: var(--jp-text);
	font-weight: 500;
	font-size: 0.95rem;
}

.jp-contact-form input,
.jp-contact-form textarea,
.comment-form input,
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--jp-line);
	border-radius: var(--jp-radius-sm);
	background: var(--jp-surface);
	color: var(--jp-text);
	padding: 11px 14px;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.jp-contact-form input:focus,
.jp-contact-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: 0;
	border-color: var(--jp-accent);
	box-shadow: 0 0 0 3px var(--jp-accent-soft);
}

.jp-contact-form textarea,
.comment-form textarea {
	resize: none;
}

.jp-honeypot {
	position: absolute;
	left: -10000px;
}

.jp-form-message {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--jp-radius-sm);
	font-size: 0.95rem;
}

.jp-form-message--success {
	background: var(--jp-accent-soft);
	color: var(--jp-accent-hover);
}

.jp-form-message--error {
	background: rgba(220, 38, 38, 0.1);
	color: var(--jp-danger);
}

/* Footer */
.jp-site-footer {
	border-top: 1px solid var(--jp-line);
	background: var(--jp-bg-subtle);
	padding: 56px 0 24px;
}

.jp-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 0.8fr;
	gap: 34px;
}

.jp-site-footer h2 {
	margin-top: 16px;
	font-size: 1.6rem;
}

.jp-site-footer p,
.jp-credit {
	color: var(--jp-muted);
}

.jp-footer-menu,
.jp-footer-contact {
	display: grid;
	align-content: start;
	gap: 10px;
}

.jp-footer-menu a,
.jp-footer-contact a {
	color: var(--jp-muted);
	text-decoration: none;
	transition: color 140ms ease;
}

.jp-footer-menu a:hover,
.jp-footer-contact a:hover {
	color: var(--jp-text);
}

.jp-credit {
	margin-top: 40px;
	border-top: 1px solid var(--jp-line);
	padding-top: 18px;
	font-size: 0.9rem;
}

.jp-comments {
	margin-top: 60px;
	border-top: 1px solid var(--jp-line);
	padding-top: 34px;
}

.jp-comment-list {
	padding-left: 22px;
}

.jp-pagination {
	margin-top: 34px;
}

.jp-pagination a,
.jp-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--jp-line);
	border-radius: var(--jp-radius-sm);
	text-decoration: none;
	margin-right: 6px;
}

.jp-pagination .current {
	background: var(--jp-accent);
	border-color: var(--jp-accent);
	color: var(--jp-accent-ink);
}

.jp-empty {
	color: var(--jp-muted);
}

[hidden] {
	display: none !important;
}

.js .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 520ms ease, transform 520ms ease;
}

.reveal,
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 860px) {
	.jp-header-inner {
		min-height: 60px;
	}

	.jp-nav-toggle {
		display: inline-flex !important;
		margin-left: auto;
		position: relative;
		z-index: 2;
	}

	.jp-brand,
	.jp-brand span {
		min-width: 0;
	}

	.jp-nav {
		position: absolute;
		left: 16px;
		right: 16px;
		top: 64px;
		display: none;
		border: var(--jp-border);
		border-radius: var(--jp-radius);
		background: var(--jp-surface);
		box-shadow: var(--jp-shadow);
		padding: 14px;
	}

	.jp-nav.is-open {
		display: block;
	}

	.jp-menu {
		display: grid;
		gap: 4px;
	}

	.jp-menu a {
		display: block;
		border-radius: var(--jp-radius-sm);
		padding: 12px;
	}

	.jp-menu a:hover,
	.jp-menu .current-menu-item > a {
		background: var(--jp-fill);
	}

	.jp-hero {
		min-height: auto;
		padding: 56px 0;
	}

	.jp-hero-grid,
	.jp-detail-grid,
	.jp-contact-grid,
	.jp-split,
	.jp-footer-grid,
	.jp-project-case {
		grid-template-columns: 1fr;
	}

	.jp-case-summary {
		position: static;
	}

	.jp-grid--3,
	.jp-capability-grid,
	.jp-content-gallery {
		grid-template-columns: 1fr;
	}

	.jp-section,
	.jp-page-hero,
	.jp-detail-hero {
		padding: 60px 0;
	}

	.jp-section-heading {
		display: grid;
		align-items: start;
	}

	.jp-filter-row {
		top: 61px;
	}
}

@media (max-width: 520px) {
	.jp-brand small {
		display: none;
	}

	.jp-actions {
		display: grid;
	}

	.jp-lead {
		font-size: 1.05rem;
	}

	.jp-button,
	.button,
	button[type="submit"],
	input[type="submit"] {
		width: 100%;
	}
}
