/*
Theme Name: Darkroom
Theme URI: https://jarsky.nz/
Author: Jarsky
Description: Image-first dark theme for jarsky.nz. Violet-black ground, full-bleed hero, sections as tall image tiles, neon gradient accents.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: darkroom

Fonts: Bricolage Grotesque and IBM Plex Mono, SIL Open Font License 1.1, self-hosted in assets/fonts.
*/

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/bricolage-grotesque-latin.woff2) format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/ibm-plex-mono-400-latin.woff2) format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(assets/fonts/ibm-plex-mono-500-latin.woff2) format("woff2");
}

:root {
	--bg: #07060c;
	--surface: #110f1a;
	--tile: #1a1726;
	--hero: #120f1d;
	--line: #2a2540;
	--ring: #4b4366;
	--text: #f8f6ff;
	--muted: #b9b3d1;
	--accent: #ff5cb8;
	--cyan: #3ff0d0;
	--violet: #8544fc;
	--grad: linear-gradient(90deg, #3ff0d0 0%, #4cc3ff 24%, #7b6bff 50%, #ff4fb4 76%, #ff7a45 100%);
	--sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--gutter: clamp(16px, 4vw, 56px);
	--radius: 6px;
	--measure: 720px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--accent); color: var(--bg); font-family: var(--mono); font-size: 13px;
}

.mono, .eyebrow, .meta { font-family: var(--mono); }
.eyebrow {
	font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.meta { font-size: 12px; color: var(--muted); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
	position: relative; z-index: 10;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 24px var(--gutter);
}
.site-header--solid { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-title {
	font-size: 22px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a {
	display: block; padding: 14px 0;
	font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a,
.site-nav .current-menu-parent > a { color: var(--accent); }
.site-nav .menu-item-contact > a,
.site-nav .accent > a { color: var(--accent); }
.site-nav .menu-item-contact > a:hover { color: var(--text); }

.nav-toggle {
	display: none; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 16px; border: 1px solid var(--ring); border-radius: 22px;
	background: transparent; color: var(--text); font: 500 12px/1 var(--mono);
	letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
	.js .nav-toggle { display: inline-flex; }
	.js .site-nav { display: none; width: 100%; }
	.js .site-header.is-open .site-nav { display: block; }
	.js .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
	.js .site-nav li { border-bottom: 1px solid var(--line); }
	.js .site-nav a { padding: 16px 0; font-size: 14px; }
	.js .site-header--overlay.is-open { background: rgba(7,6,12,.96); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	min-height: min(760px, 100svh); background: var(--hero);
	display: flex; flex-direction: column; justify-content: space-between;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(7,6,12,.55) 0%, rgba(7,6,12,0) 22%, rgba(7,6,12,0) 38%, rgba(7,6,12,.6) 62%, rgba(7,6,12,.88) 100%);
}
.hero__body {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
	padding: 0 var(--gutter) 48px;
}
.hero__copy { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero h1 {
	margin: 0; font-size: clamp(48px, 8vw, 112px); font-weight: 600; line-height: .92; letter-spacing: -.035em;
}
.hero h1 span { display: block; }

.socials { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.socials a {
	width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--ring);
	display: flex; align-items: center; justify-content: center;
	transition: color .15s ease, border-color .15s ease;
}
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 19px; height: 19px; }

/* ---------- Home sections ---------- */
.block { padding: 96px var(--gutter) 0; }
.block:first-of-type { padding-top: 72px; }
.block__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
	padding-bottom: 28px;
}
.block__head h2, .block > h2 {
	margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
}
.block > h2 { padding-bottom: 28px; }
.block__link { font-family: var(--mono); font-size: 13px; color: var(--accent); padding: 12px 0; }
.block__link:hover { color: var(--text); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile {
	position: relative; isolation: isolate; overflow: hidden;
	aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--tile);
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px;
}
.tile:nth-child(2) { background: #1c1830; }
.tile:nth-child(3) { background: #1a1630; }
.tile:nth-child(4) { background: #181a2e; }
.tile:nth-child(5) { background: #1d172a; }
.tile img {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile:has(img)::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(7,6,12,.82), rgba(7,6,12,0) 55%);
}
.tile:hover img { transform: scale(1.04); }
.tile:hover .tile__title { color: var(--accent); }
.tile__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.tile__title { font-size: 26px; font-weight: 600; line-height: 1.05; transition: color .15s ease; }
.tile__count { position: absolute; top: 18px; left: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.frames + .frames { padding-top: 12px; }
.frames--wide { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.frame {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
	aspect-ratio: 3 / 2; border-radius: var(--radius); background: #141120; padding: 16px;
}
.frames--wide .frame { aspect-ratio: 16 / 9; }
.frame img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,6,12,.7), rgba(7,6,12,0) 40%); }
.frame:hover img { transform: scale(1.03); }
.frame__cap { font-family: var(--mono); font-size: 12px; color: var(--text); }

.video-embed {
	position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #15121f;
	display: flex; align-items: center; justify-content: center;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed button {
	position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px;
	background: rgba(7,6,12,.7); color: var(--text); border: 1px solid var(--ring); border-radius: 28px;
	font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.video-embed button:hover { border-color: var(--accent); color: var(--accent); }
.video-embed button svg { width: 28px; height: 28px; }

.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row {
	display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline;
	padding: 22px 0; border-top: 1px solid var(--line);
}
.row__cat { font-family: var(--mono); font-size: 12px; color: var(--accent); width: 120px; text-transform: uppercase; letter-spacing: .04em; }
.row__title { font-size: 22px; line-height: 1.3; flex: 1 1 380px; }
.row:hover .row__title { color: var(--accent); }
.row__date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.empty { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 96px; background: var(--surface);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
	padding: 64px var(--gutter) 48px;
}
.site-footer__cta { display: flex; flex-direction: column; gap: 10px; }
.site-footer__cta a { font-size: clamp(32px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.site-footer__end { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.site-footer__end .socials a { width: 44px; height: 44px; }
.site-footer__end .socials svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .site-footer__end { align-items: flex-start; } }

/* ---------- Page heads (archives, sections, pages) ---------- */
.page-head { padding: 72px var(--gutter) 40px; border-bottom: 1px solid var(--line); }
.page-head h1 {
	margin: 12px 0 0; font-size: clamp(44px, 7vw, 96px); font-weight: 600; line-height: .95; letter-spacing: -.035em;
}
.page-head__intro { max-width: var(--measure); margin-top: 20px; color: var(--muted); font-size: 20px; }
.page-head__intro > :first-child { margin-top: 0; }
.page-head__intro > :last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px 12px; padding: 48px var(--gutter) 0; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--tile); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.03); }
.card__title { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.card:hover .card__title { color: var(--accent); }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.card__cat { color: var(--accent); text-transform: uppercase; }
.card__excerpt { color: var(--muted); font-size: 16px; margin: 0; }
.card--text { border-top: 1px solid var(--line); padding-top: 20px; }

.pagination { padding: 56px var(--gutter) 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); border-radius: 22px;
}
.pagination .current { border-color: var(--accent); color: var(--accent); }

/* ---------- Single / page ---------- */
.entry-hero { position: relative; isolation: isolate; min-height: clamp(420px, 70vh, 760px); display: flex; align-items: flex-end; background: var(--hero); }
.entry-hero__media { position: absolute; inset: 0; z-index: -1; }
.entry-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.entry-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,12,.9), rgba(7,6,12,0) 60%); }
.entry-head { padding: 72px var(--gutter) 48px; max-width: 1200px; }
.entry-head h1 { margin: 12px 0 18px; font-size: clamp(40px, 6vw, 84px); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.entry-head .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }

.entry-content { padding: 56px var(--gutter) 0; }
.entry-content > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.entry-content p, .entry-content li { color: #e4e0f5; }
.entry-content h2, .entry-content h3, .entry-content h4 { letter-spacing: -.02em; line-height: 1.15; margin-top: 2em; margin-bottom: .5em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; }
.entry-content h3 { font-size: 26px; font-weight: 600; }
.entry-content h4 { font-size: 21px; font-weight: 600; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--text); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-top: 2em; margin-bottom: 2em; }
.entry-content figcaption, .wp-element-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; text-align: left; }
.entry-content blockquote, .wp-block-quote {
	margin: 2em auto; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
	font-size: 24px; line-height: 1.4; letter-spacing: -.01em;
}
.wp-block-quote cite { display: block; margin-top: 8px; font: 12px var(--mono); color: var(--muted); font-style: normal; }
.wp-block-pullquote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.entry-content pre, .entry-content code { font-family: var(--mono); font-size: 14px; }
.entry-content pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-x: auto; line-height: 1.55; }
.entry-content :not(pre) > code { background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.has-drop-cap:not(:focus)::first-letter { color: var(--accent); font-weight: 600; }
.wp-block-gallery { gap: 12px !important; }
.wp-block-button__link { background: var(--accent); color: var(--bg) !important; border-radius: 26px; padding: 12px 24px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--text) !important; border: 1px solid var(--ring); }
.wp-block-separator { border-color: var(--line); }
.wp-block-embed iframe { width: 100%; border-radius: var(--radius); }
.wp-block-spacer { max-height: 48px; }

.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; padding: 80px var(--gutter) 0; }
.post-nav a { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.post-nav .next { text-align: right; }
.post-nav span:last-child { font-size: 22px; line-height: 1.25; }

/* ---------- Forms (search + WPForms) ---------- */
.search-form { display: flex; gap: 8px; max-width: 560px; margin-top: 24px; }
.search-form input[type="search"] {
	flex: 1; min-height: 48px; padding: 0 18px; background: var(--surface); color: var(--text);
	border: 1px solid var(--ring); border-radius: 24px; font: 16px var(--sans);
}
.search-form button {
	min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: var(--accent); color: var(--bg);
	font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
}

div.wpforms-container-full {
	--wpforms-field-background-color: #110f1a !important;
	--wpforms-field-border-color: #4b4366 !important;
	--wpforms-field-text-color: #f8f6ff !important;
	--wpforms-field-menu-color: #110f1a !important;
	--wpforms-label-color: #f8f6ff !important;
	--wpforms-label-sublabel-color: #b9b3d1 !important;
	--wpforms-label-error-color: #ff8a7a !important;
	--wpforms-button-background-color: #ff5cb8 !important;
	--wpforms-button-text-color: #07060c !important;
	--wpforms-button-border-color: #ff5cb8 !important;
	--wpforms-button-border-radius: 24px !important;
	--wpforms-field-border-radius: 6px !important;
}
div.wpforms-container-full .wpforms-form input, div.wpforms-container-full .wpforms-form textarea { font-family: var(--sans) !important; }
div.wpforms-container-full .wpforms-form button[type=submit] { font-family: var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Contact links ---------- */
.contact-links { margin: 0; list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.contact-links li { border-top: 1px solid var(--line); }
.contact-links a {
	display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px;
	color: var(--text); text-decoration: none;
}
.contact-links a:hover { color: var(--accent); }
.contact-links__icon {
	flex: none; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--ring);
	display: flex; align-items: center; justify-content: center;
}
.contact-links a:hover .contact-links__icon { border-color: var(--accent); }
.contact-links__icon svg { width: 18px; height: 18px; }
.contact-links__label { font-size: 22px; font-weight: 600; flex: 1; }
.contact-links__handle { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; text-align: right; }
@media (max-width: 520px) { .contact-links__handle { display: none; } }

/* ---------- Shared bits: buttons, pills, tags ---------- */
.btn {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 24px;
	border: 1px solid var(--ring); font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.btn:hover { border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--ring); border-radius: 18px; font-size: 16px; }
.pill--code { border-color: var(--accent); color: var(--accent); font: 500 14px var(--mono); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(63,240,208,.1); color: var(--cyan); font: 500 12px var(--mono); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--ring); vertical-align: 1px; }
.dot[data-lang="Python"] { background: var(--accent); }
.dot[data-lang="Shell"] { background: #4cc3ff; }
.dot[data-lang="PowerShell"] { background: #8e87ab; }

/* ---------- Profile (Contact) ---------- */
.profile {
	display: flex; flex-wrap: wrap; gap: 64px; max-width: 1320px; margin: 0 auto;
	padding: 80px var(--gutter) 0;
}
.profile__intro { flex: 1 1 340px; min-width: 0; }
.profile__intro-inner { display: flex; flex-direction: column; gap: 28px; }
.profile__intro h1 { margin: 0; font-size: clamp(56px, 6vw, 88px); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.profile__roles { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__headline { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 400px; }
.profile__nav { display: flex; flex-direction: column; }
.profile__nav a {
	display: flex; align-items: center; gap: 16px; min-height: 40px; color: #8e87ab;
	font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.profile__nav .bar { width: 32px; height: 1px; background: currentColor; transition: width .2s ease; }
.profile__nav a:hover, .profile__nav a.is-active { color: var(--text); }
.profile__nav a:hover .bar, .profile__nav a.is-active .bar { width: 64px; }
.profile__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.profile__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 96px; }
.profile__section { scroll-margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.profile__label { margin: 0; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.profile__prose { font-size: 19px; line-height: 1.65; color: #e4e0f5; }
.profile__prose > * { margin: 0 0 1em; }
.profile__prose > :last-child { margin-bottom: 0; }
.profile__prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
	.profile__intro-inner { position: sticky; top: 48px; }
}
@media (max-width: 999px) {
	.profile__nav { display: none; }
	.profile { gap: 56px; padding-top: 56px; }
}

.jobs { list-style: none; margin: 0 -20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.job {
	display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 20px; border: 1px solid transparent; border-radius: 8px;
	transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}
@media (hover: hover) {
	.jobs:hover .job { opacity: .45; }
	.jobs .job:hover { opacity: 1; background: var(--surface); border-color: var(--line); }
}
.job:hover .job__title { color: var(--accent); }
.job__dates { flex: 0 0 150px; padding-top: 5px; font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.job__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.job__title { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; transition: color .15s ease; }
.job__title span { color: var(--muted); font-weight: 400; }
.job p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.eng { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.eng__card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
a.eng__card:hover { border-color: var(--accent); color: var(--text); }
.eng__kind { font: 12px var(--mono); color: var(--accent); }
.eng__name { font-size: 22px; font-weight: 600; line-height: 1.2; }
.eng__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

.toolkit { margin: 0; border-bottom: 1px solid var(--line); }
.toolkit__row { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.toolkit dt { flex: 0 0 150px; padding-top: 4px; font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.toolkit dd { flex: 1 1 360px; margin: 0; font-size: 18px; line-height: 1.5; }
.toolkit__row:hover dt { color: var(--accent); }

/* ---------- Code page ---------- */
.code-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.code-head__copy { display: flex; flex-direction: column; max-width: 760px; }
.code-head__prompt { margin: 16px 0 0; font: 15px/1.6 var(--mono); color: var(--muted); }
.code-head__prompt span { color: var(--accent); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); min-width: min(440px, 100%); }
.stats > div { padding: 18px 20px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

.feature__card { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feature__copy { flex: 1 1 440px; min-width: 0; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.feature__meta { display: flex; flex-wrap: wrap; gap: 10px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.feature__meta .accent { color: var(--accent); }
.feature__meta .sep { color: var(--ring); }
.feature h2 { margin: 0; font-size: clamp(48px, 6vw, 84px); font-weight: 600; line-height: .92; letter-spacing: -.035em; }
.feature__lede { margin: 0; font-size: 22px; line-height: 1.4; color: #e4e0f5; max-width: 560px; }
.feature__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; color: #e4e0f5; font-size: 16px; }
.feature__list li::before { content: "→"; color: var(--accent); font-family: var(--mono); margin-right: 10px; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.feature__media { flex: 1 1 440px; min-width: 0; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feature__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.langs { display: flex; flex-direction: column; gap: 8px; }
.langs__bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.langs__seg--0 { background: var(--accent); }
.langs__seg--1 { background: #8e87ab; }
.langs__seg--2 { background: var(--ring); }
.langs__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 12px var(--mono); color: var(--muted); }
.terminal { margin: 0; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font: 13px/1.8 var(--mono); color: #e4e0f5; overflow-x: auto; white-space: pre; }
.terminal__dots { display: flex; gap: 6px; padding-bottom: 10px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 5px; background: var(--ring); }
.terminal b { color: var(--accent); font-weight: 400; }
.terminal em { color: #8e87ab; font-style: normal; }

.activity { display: flex; flex-wrap: wrap; gap: 48px; }
.activity__log { flex: 1 1 520px; min-width: 0; }
.activity__graph { flex: 1 1 380px; min-width: 0; }
.activity__note { margin: 14px 0 0; }
.commits { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.commit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.commit__sha { width: 64px; font: 13px var(--mono); color: var(--accent); }
.commit__msg { flex: 1 1 300px; min-width: 0; font-size: 17px; line-height: 1.35; transition: color .15s ease; }
.commit:hover .commit__msg { color: var(--accent); }
.commit__meta { font: 12px var(--mono); color: var(--muted); }
.heatmap { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.heatmap__grid { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.heatmap__week { display: flex; flex-direction: column; gap: 3px; }
.heatmap i { display: block; width: 10px; height: 10px; border-radius: 2px; }
.heatmap .pad { visibility: hidden; }
.heatmap .l0 { background: #1a1726; }
.heatmap .l1 { background: #3d2a7a; }
.heatmap .l2 { background: #7046e0; }
.heatmap .l3 { background: #c04fd8; }
.heatmap .l4 { background: var(--accent); }
.heatmap__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 14px; }
.heatmap__key { display: inline-flex; align-items: center; gap: 3px; }

.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.repo { display: flex; flex-direction: column; gap: 12px; min-height: 170px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease, background .15s ease; }
.repo:hover { border-color: var(--accent); background: #141120; color: var(--text); }
.repo__head { display: flex; justify-content: space-between; gap: 12px; }
.repo__name { font: 500 15px var(--mono); overflow-wrap: anywhere; }
.repo__stars { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.repo__desc { flex: 1; font-size: 15px; line-height: 1.5; color: var(--muted); }
.repo__foot { display: flex; justify-content: space-between; gap: 12px; font: 12px var(--mono); color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { padding: 120px var(--gutter) 0; }
.not-found h1 { margin: 12px 0 16px; font-size: clamp(56px, 10vw, 160px); line-height: .9; letter-spacing: -.04em; font-weight: 600; }
.not-found p { color: var(--muted); max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.block { padding-top: 72px; }
	.tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.tile { padding: 14px; }
	.tile:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 3 / 2; }
	.tile__title { font-size: 20px; }
	.tile__count { top: 12px; left: 14px; }
	.row__cat { width: auto; }
	.row__title { font-size: 19px; flex-basis: 100%; }
}

/* ---------- Neon layer: colours from the Jarsky Twitch banner ---------- */
:focus-visible { outline-color: var(--cyan); }
.grad-text, .hero h1 span:last-child, .site-nav .menu-item-contact > a {
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav .menu-item-contact > a:hover { filter: brightness(1.2); }
.hero__media::after {
	background: linear-gradient(to bottom, rgba(7,6,12,.6) 0%, rgba(7,6,12,0) 24%, rgba(7,6,12,0) 45%, rgba(7,6,12,.55) 68%, rgba(7,6,12,.92) 100%);
}
.socials a:hover, .contact-links a:hover .contact-links__icon { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(63,240,208,.35); }
.block__link { color: var(--cyan); }
.block__link:hover { color: var(--text); }
.tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); transition: box-shadow .25s ease; }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(255,92,184,.6), 0 0 32px rgba(133,68,252,.35); }
.tile__num, .commit__sha, .eng__kind, .card__cat { color: var(--cyan); }
.frame:hover, .card:hover .card__img, .repo:hover, a.eng__card:hover { box-shadow: 0 0 28px rgba(133,68,252,.3); }
.repo:hover, a.eng__card:hover { border-color: var(--violet); }
.btn--accent, .wp-block-button__link, .search-form button {
	background: var(--grad); border: 0; color: #07060c !important; font-weight: 500;
	transition: box-shadow .2s ease, filter .2s ease;
}
.btn--accent:hover, .wp-block-button__link:hover, .search-form button:hover {
	background: var(--grad); color: #07060c; filter: brightness(1.1); box-shadow: 0 0 26px rgba(255,79,180,.5);
}
.btn:hover { border-color: var(--cyan); }
.pill--code { border-color: var(--cyan); color: var(--cyan); }
.langs__seg--0 { background: var(--grad); }
.langs__legend li:first-child .dot { background: var(--accent); }
.heatmap .l4 { background: #ff5cb8; box-shadow: 0 0 8px rgba(255,92,184,.6); }
.feature__card { background: linear-gradient(135deg, rgba(133,68,252,.12), rgba(17,15,26,1) 45%); }
.terminal b { color: var(--cyan); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.site-footer__cta a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.profile__nav a.is-active { color: var(--text); }
.profile__nav a.is-active .bar { background: var(--grad); height: 2px; }
.jobs .job:hover { border-color: rgba(133,68,252,.5); box-shadow: 0 0 30px rgba(133,68,252,.18); }
.entry-content blockquote, .wp-block-quote { border-left-color: var(--violet); }
::selection { background: var(--violet); color: #fff; }
.hero .eyebrow { color: #fff; text-shadow: 0 1px 2px rgba(7,6,12,.9), 0 0 18px rgba(7,6,12,.85); }
.hero h1 span:last-child { display: inline-block; }
.tile__num, .tile__title, .tile__count, .frame__cap { text-shadow: 0 1px 2px rgba(7,6,12,.9), 0 0 14px rgba(7,6,12,.8); }

/* ---------- Projects (Code page): hand-picked, can be private repos ---------- */
.projects .project + .project { margin-top: 24px; }
.project__live { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.project__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.project__name { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 600; line-height: .95; letter-spacing: -.035em; }
.project__tagline { margin: 10px 0 0; font: 15px var(--mono); color: var(--muted); }
.browser { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: border-color .2s, transform .2s; }
.browser:hover { border-color: var(--cyan); transform: translateY(-2px); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser__bar .terminal__dots { padding: 0; }
.browser__url { flex: 1; min-width: 0; padding: 3px 12px; border-radius: 12px; background: var(--surface); font: 12px var(--mono); color: var(--muted); }
.feature__media .browser img { display: block; border: 0; border-radius: 0; height: auto; }
@media (prefers-reduced-motion: reduce) { .browser, .browser:hover { transition: none; transform: none; } }
.terminal--log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.75; }
.terminal--log strong { color: var(--accent); font-weight: 500; }
.project__caption { margin: 0; }
