/* ==========================================================================
   site.css — custom layer for orbenshimon.com
   --------------------------------------------------------------------------
   Loaded LAST on every page, after the Gerold theme (main.css, responsive.css).

   Rules of the house (see AGENTS.md for the full design system):
     - Never edit the theme/vendor stylesheets. Extend or override them here.
     - Colours come from the theme's --tj-* tokens; site additions are --site-*.
     - Our class names are BEM-ish: .block, .block__element, .block--modifier.
       Theme classes (.tj-*, .hero-*, .resume-*, ...) are reused, never renamed.
     - No inline styles and no <style> blocks anywhere: the CSP forbids them.
     - The theme forces every <a> to purple with !important (main.css), so any
       link colour set here needs !important as well.

   Contents:
     00. Fonts
     01. Tokens
     02. Base & accessibility helpers
     03. Header: logo + primary navigation
     04. Home page helpers & contact dialog
     05. Page hero (inner pages)
     06. Page sections & shared pieces (tags, links, zoomable picture + lightbox)
     07. About page
     08. Certs page
     09. Blog menu
     10. Blog post
     11. 404 page
     12. Motion preferences & failsafes
     13. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------------------
   00. Fonts
   Sora and Russo One are served from /assets/fonts/ (licences next to them),
   so the site makes no request to any other host.

   These rules are a copy of what Google Fonts used to send, with local URLs:
     - Sora is ONE variable file per character set. It is declared at the four
       weights the theme asked for (300, 400, 500, 700), so every other weight
       in the CSS resolves exactly as it did before.
     - "latin" covers English. The "latin-ext" files are downloaded only when a
       page contains a character from their unicode-range (ă, ő, ž, ...).
--------------------------------------------------------------------------- */
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("/assets/fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Russo One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/russo-one-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Russo One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/russo-one-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------------------
   01. Tokens
--------------------------------------------------------------------------- */
:root {
	/* Text */
	--site-accent-soft: #b796fa; /* small purple text: 8:1 contrast on dark surfaces */
	--site-text-muted: #a8a3b5;

	/* Surfaces & lines */
	--site-surface: var(--tj-theme-accent-2);
	--site-surface-hover: var(--tj-theme-secondary);
	--site-border: rgba(135, 80, 247, 0.22);
	--site-tint: rgba(135, 80, 247, 0.1);

	/* Shape */
	--site-radius-lg: 20px;
	--site-radius-md: 14px;
	--site-radius-sm: 8px;
	--site-radius-pill: 50px;

	/* Gradients (same recipes the theme uses) */
	--site-gradient: linear-gradient(260deg, var(--tj-theme-secondary) 0%, var(--tj-theme-primary) 100%);
	--site-gradient-text: linear-gradient(to right, var(--tj-theme-primary) 0%, var(--tj-white) 100%);

	/* Reading */
	--site-reading-width: 780px;
	--site-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

	/* Status colours (callouts only) */
	--site-ok: #3ddc97;
	--site-warn: #f5b942;
	--site-danger: #ff6b81;
}

/* ---------------------------------------------------------------------------
   02. Base & accessibility helpers
--------------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--site-accent-soft);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -120px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--site-radius-sm);
	background: var(--tj-theme-primary);
	color: var(--tj-white) !important;
	font-weight: var(--tj-fw-medium);
	text-decoration: none;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 16px;
}

/* The back-to-top ring is a real <button>; strip the browser chrome. */
button.progress-wrap {
	border: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}

/* ---------------------------------------------------------------------------
   03. Header: logo + primary navigation
   Identical markup on every page. The nav is always visible (three short
   links fit next to the logo down to 320px), so there is no hamburger menu.
--------------------------------------------------------------------------- */
.tj-header-area .logo-box {
	max-width: none;
	width: auto;
}
.logo-text {
	display: block;
	font-family: var(--tj-ff-heading);
	font-size: var(--tj-fz-h1);
	font-weight: var(--tj-fw-bold);
	line-height: 1.2;
	color: var(--tj-white);
}

.site-nav {
	margin-left: auto;
}
.site-nav ul {
	display: flex;
	align-items: center;
	column-gap: 42px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	position: relative;
	display: inline-block;
	padding: 10px 0;
	color: var(--tj-white) !important;
	font-size: 16px;
	font-weight: var(--tj-fw-medium);
	letter-spacing: 0.3px;
	text-decoration: none;
	transition: color 0.3s ease;
}
.site-nav a::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 4px;
	width: 100%;
	height: 2px;
	border-radius: 4px;
	background: var(--site-gradient);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a[aria-current]::before {
	transform: scaleX(1);
	transform-origin: left;
}
.site-nav a[aria-current] {
	color: var(--site-accent-soft) !important;
}

/* ---------------------------------------------------------------------------
   04. Home page helpers (these replace what used to be inline styles)
--------------------------------------------------------------------------- */
.btn-icon {
	width: 25px;
	height: 25px;
	margin-left: 5px;
}
.social-icons__img {
	width: 20px;
	height: 20px;
}
.hero-avatar {
	width: 600px;
	height: auto;
}

/* Linked card in "My Experience" / "My Education" (class resume-item--linked):
   a small arrow in the top right corner that behaves like the arrows on the contact cards
   (tilted, straightens and turns white on hover). The link's ::after covers the whole
   card, so a click anywhere on the card follows it. */
.resume-item__link {
	color: var(--tj-theme-primary) !important;
	text-decoration: none;
}
/* The clickable area. The link itself is not positioned, so this stretches over the card
   (.resume-item is position: relative in the theme). */
.resume-item__link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	border-radius: var(--site-radius-lg);
}
.resume-item__link i {
	position: absolute;
	top: 24px;
	right: 28px;
	font-size: 16px;
	transform: rotate(-45deg);
	transition: transform 0.4s, color 0.4s;
}
.resume-item--linked:hover .resume-item__link,
.resume-item__link:focus-visible {
	color: var(--tj-white) !important;
}
.resume-item--linked:hover .resume-item__link i,
.resume-item__link:focus-visible i {
	transform: rotate(0);
}
/* Keyboard focus: the ring is drawn around the whole card, because the link has no box of
   its own. The outline is moved, not removed. */
.resume-item__link:focus-visible {
	outline: none;
}
.resume-item__link:focus-visible::after {
	outline: 2px solid var(--site-accent-soft);
	outline-offset: 3px;
}

/* Contact dialog: the small pop-up opened by the home page's "Contact Info" button.
   It is a native <dialog> (site.js section 9 opens it) holding the same contact cards
   as the About page's "Get In Touch" section, in the compact layout (section 07).
   Without JavaScript the button is a plain link to that section. */
dialog:not([open]) {
	display: none; /* also keeps it hidden in old browsers that do not know <dialog> */
}
.contact-dialog {
	width: 440px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	margin: auto; /* centres it; the theme's reset removes the browser's own margin */
	padding: 26px 28px 28px;
	overflow: auto;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-lg);
	background: var(--tj-theme-accent-1);
	color: var(--tj-body);
	box-shadow: 0 30px 80px rgba(5, 7, 9, 0.7);
}
.contact-dialog[open] {
	animation: site-dialog-in 0.25s ease-out;
}
/* The dimmed page behind. Written as a plain colour (= --tj-black-2 at 78 %) because
   older browsers do not pass CSS variables into ::backdrop. */
.contact-dialog::backdrop {
	background: rgba(5, 7, 9, 0.78);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
@keyframes site-dialog-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.contact-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}
.contact-dialog__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.3;
	background: var(--site-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.contact-dialog__close {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--site-border);
	border-radius: 50%;
	background: transparent;
	color: var(--tj-body);
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.contact-dialog__close:hover,
.contact-dialog__close:focus-visible {
	border-color: var(--tj-theme-primary);
	background: var(--site-surface-hover);
	color: var(--tj-white);
}
.contact-dialog__lead {
	margin: 0 0 20px;
	color: var(--site-text-muted);
	font-size: 15px;
	line-height: 1.6;
}
/* While a dialog is open the page behind it does not scroll (class set by site.js). */
html.dialog-open {
	overflow: hidden;
	scrollbar-gutter: stable;
}

/* ---------------------------------------------------------------------------
   05. Page hero (inner pages)
   A shorter sibling of the home hero: same background, same purple glow,
   plus an outlined watermark word that echoes the home page's "OBS." text.
--------------------------------------------------------------------------- */
.page-hero {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 190px 0 80px;
	background: var(--tj-theme-accent-1);
}
.page-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 322px;
	height: 308px;
	margin-top: -5%;
	margin-right: -5%;
	border-radius: 50%;
	background: linear-gradient(260deg, var(--tj-theme-primary) 0%, rgba(115, 67, 210, 0) 100%);
	filter: blur(150px);
	z-index: -1;
}
.page-hero__watermark {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}
.page-hero__watermark svg {
	position: absolute;
	top: 56%;
	right: -3%;
	width: 62%;
	height: auto;
	overflow: visible;
	transform: translateY(-50%);
	font-family: var(--tj-ff-russo);
	/* The slow "breathing" of the home page's OBS. text (main.css: pulsate), same rhythm. */
	animation: 3s site-breathe infinite alternate ease-in-out;
}
@keyframes site-breathe {
	0%,
	100% {
		transform: translateY(-50%) scale(1);
	}
	50% {
		transform: translateY(-50%) scale(1.05);
	}
}
.page-hero__watermark text {
	font-size: 240px;
	text-transform: uppercase;
	fill: transparent;
	stroke: var(--tj-theme-secondary);
	stroke-width: 1.2;
	opacity: 0.7;
	animation: stroke 4s; /* @keyframes stroke lives in main.css */
}
.page-hero__eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: var(--tj-fw-medium);
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--site-accent-soft);
}
.page-hero__title {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 18px;
	font-size: 60px;
	background: var(--site-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.page-hero__lead {
	max-width: 640px;
	margin: 0;
	font-size: 20px;
	line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   06. Page sections & shared pieces
--------------------------------------------------------------------------- */
.page-section {
	padding: 100px 0;
	background: var(--tj-black-2);
}
.page-section--alt {
	background: var(--tj-theme-accent-1);
}
.page-section .section-header {
	margin-bottom: 45px;
}
.page-section__note {
	margin: 40px 0 0;
	color: var(--site-text-muted);
}
.page-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 40px;
}

/* Small uppercase pills: post tags, cert issuers. Not links. */
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tag-list li {
	padding: 7px 12px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-pill);
	background: var(--site-tint);
	color: var(--site-accent-soft);
	font-size: 12px;
	font-weight: var(--tj-fw-medium);
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Text link with the theme's "arrow straightens on hover" behaviour. */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--site-accent-soft) !important;
	font-size: 15px;
	font-weight: var(--tj-fw-medium);
	text-decoration: none;
	transition: color 0.3s ease;
}
.link-arrow i {
	transform: rotate(-45deg);
	transition: transform 0.3s ease;
}
.link-arrow:hover {
	color: var(--tj-white) !important;
}
.link-arrow:hover i {
	transform: rotate(0);
}

/* Theme button used as a plain link on inner pages. */
.tj-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.tj-btn-secondary:hover,
.tj-btn-secondary:focus-visible {
	color: var(--tj-white) !important;
}

/* Zoomable picture: a link around an <img>, marked data-lightbox. A click on the
   picture (and on nothing around it) opens it enlarged in the lightbox below.
   Without JavaScript the link simply opens the image file. The <i> inside the link
   is the small magnifier in the corner: the hint that the picture can be opened. */
.zoomable {
	position: relative;
	display: block;
	cursor: zoom-in;
}
.zoomable img {
	display: block;
	transition: transform 0.6s ease;
}
.zoomable:hover img,
.zoomable:focus-visible img {
	transform: scale(1.03);
}
.zoomable i {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tj-theme-secondary);
	color: var(--tj-white);
	font-size: 14px;
	pointer-events: none;
	transition: background 0.3s;
}
.zoomable:hover i,
.zoomable:focus-visible i {
	background: var(--tj-theme-primary);
}
/* Keyboard focus. The picture usually sits in a frame that clips whatever sticks out,
   so the ring is drawn inside the picture's edge, on a layer above the picture (the
   outline is moved to ::after, not removed). Primary purple: it has to show on light
   pictures too. */
.zoomable::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	pointer-events: none;
}
.zoomable:focus-visible {
	outline: none;
}
.zoomable:focus-visible::after {
	outline: 3px solid var(--tj-theme-primary);
	outline-offset: -3px;
}

/* Lightbox: the pop-up that shows a zoomable picture enlarged. A native <dialog>
   that site.js (section 11) builds on the first click; it is not in the HTML.
   The dialog itself is an invisible layer over the whole screen: the picture sits
   in its middle, never larger than its real size or than the screen, and the X is
   in the top right corner. A click anywhere, the X or Esc closes it. */
.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: transparent;
	cursor: zoom-out;
}
/* Same dimmed page as the contact dialog, a little darker so the picture stands out. */
.lightbox::backdrop {
	background: rgba(5, 7, 9, 0.9);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.lightbox__img {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	margin: auto; /* with inset 0, this centres it both ways */
	border-radius: var(--site-radius-sm);
	box-shadow: 0 30px 80px rgba(5, 7, 9, 0.7);
}
.lightbox[open] .lightbox__img {
	animation: site-dialog-in 0.25s ease-out;
}
.lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--tj-theme-primary);
	border-radius: 50%;
	background: var(--tj-theme-accent-1);
	color: var(--tj-white);
	font-size: 17px;
	cursor: pointer;
	transition: background 0.3s;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
	background: var(--tj-theme-primary);
}

/* ---------------------------------------------------------------------------
   07. About page (about.html)
--------------------------------------------------------------------------- */
.about-card {
	padding: 36px 30px 22px;
	border: 1px solid transparent;
	border-radius: var(--site-radius-lg);
	background: var(--site-surface);
	text-align: center;
}
.about-card__avatar {
	width: 220px;
	height: 220px;
	max-width: 100%;
	object-fit: cover;
	border: 2px solid var(--tj-theme-secondary);
	border-radius: 50%;
	transform: rotate(4.29deg);
	transition: 0.3s;
}
.about-card__avatar:hover {
	border-color: var(--tj-theme-primary);
	transform: rotate(0);
}
.about-card__quip {
	margin: 18px 0 0;
	color: var(--site-text-muted);
	font-size: 14px;
	font-style: italic;
}
.fact-list {
	margin: 26px 0 0;
	padding: 0;
	text-align: left;
}
.fact-list > div {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 0;
	border-top: 1px solid var(--tj-theme-secondary);
}
.fact-list dt {
	flex: 0 0 auto;
	color: var(--site-accent-soft);
	font-size: 13px;
	font-weight: var(--tj-fw-medium);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1.9;
}
.fact-list dd {
	margin: 0;
	color: var(--tj-white);
	text-align: right;
}
.about-bio p {
	margin-bottom: 22px;
	font-size: var(--tj-fz-p);
	line-height: 1.8;
}
.about-bio p:last-of-type {
	margin-bottom: 0;
}
/* Text links inside the bio: same look as links inside a blog post (.prose a). */
.about-bio p a {
	color: var(--site-accent-soft) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.3s ease;
}
.about-bio p a:hover {
	color: var(--tj-white) !important;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.contact-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 26px;
	border: 1px solid transparent;
	border-radius: var(--site-radius-lg);
	background: var(--site-surface);
	color: var(--tj-body) !important;
	text-decoration: none;
	transition: background 0.6s, border-color 0.6s;
}
.contact-card:hover,
.contact-card:focus-visible {
	border-color: var(--tj-theme-primary);
	background: var(--site-surface-hover);
}
.contact-card__icon {
	display: flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--tj-theme-primary);
	border-radius: 50%;
	color: var(--tj-theme-primary);
	font-size: 20px;
}
.contact-card__icon img {
	width: 24px;
	height: 24px;
	max-width: none;
}
.contact-card__text {
	min-width: 0;
}
.contact-card__label {
	display: block;
	color: var(--site-accent-soft);
	font-size: 12px;
	font-weight: var(--tj-fw-medium);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.contact-card__value {
	display: block;
	color: var(--tj-white);
	font-size: 17px;
	font-weight: var(--tj-fw-medium);
	overflow-wrap: anywhere;
}
.contact-card__arrow {
	margin-left: auto;
	color: var(--tj-theme-primary);
	transform: rotate(-45deg);
	transition: transform 0.4s, color 0.4s;
}
.contact-card:hover .contact-card__arrow,
.contact-card:focus-visible .contact-card__arrow {
	color: var(--tj-white);
	transform: rotate(0);
}
/* Compact layout: one narrow column of smaller cards (used inside the contact dialog). */
.contact-grid--compact {
	grid-template-columns: 1fr;
	gap: 12px;
}
.contact-grid--compact .contact-card {
	gap: 14px;
	padding: 14px 18px;
	border-radius: var(--site-radius-md);
}
.contact-grid--compact .contact-card__icon {
	flex-basis: 44px;
	width: 44px;
	height: 44px;
	font-size: 18px;
}
.contact-grid--compact .contact-card__value {
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
   08. Certs page (certs.html)
   One .cert-item per certificate, stacked: picture left, text right.
   The 01 / 02 / 03 numbers are generated by a CSS counter — never type them.
--------------------------------------------------------------------------- */
.cert-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	counter-reset: cert;
}
.cert-item {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding: 30px;
	border: 1px solid transparent;
	border-radius: var(--site-radius-lg);
	background: var(--site-surface);
	counter-increment: cert;
	transition: background 0.6s, border-color 0.6s;
}
.cert-item:hover {
	border-color: var(--tj-theme-primary);
	background: var(--site-surface-hover);
}
.cert-item__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	background: var(--tj-black-2);
}
/* The link that makes the picture open enlarged (.zoomable, section 06) fills the frame. */
.cert-item__media .zoomable {
	width: 100%;
	height: 100%;
	border-radius: calc(var(--site-radius-md) - 1px); /* the frame's inner corner: shapes the focus ring */
}
.cert-item__media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}
.cert-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 14px;
	color: var(--site-text-muted);
	font-size: 14px;
}
.cert-item__num {
	color: var(--tj-theme-primary);
	font-size: 20px;
	font-weight: var(--tj-fw-bold);
	line-height: 1;
}
.cert-item__num::before {
	content: counter(cert, decimal-leading-zero);
}
.cert-item__title {
	margin-bottom: 12px;
	font-size: 28px;
}
.cert-item__body p {
	margin-bottom: 0;
	line-height: 1.75;
}
.cert-item__body p + p {
	margin-top: 14px;
}
.cert-item__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-top: 20px;
}

/* ---------------------------------------------------------------------------
   09. Blog menu (blogs/menu.html)
   One .post-card per post, newest first. The whole card is one link.
--------------------------------------------------------------------------- */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 980px;
	margin: 0 auto;
}
.post-list__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 980px;
	margin: 0 auto 26px;
	color: var(--site-text-muted);
	font-size: 14px;
}
.post-card {
	border: 1px solid transparent;
	border-radius: var(--site-radius-lg);
	background: var(--site-surface);
	transition: background 0.6s, border-color 0.6s;
}
.post-card:hover,
.post-card:focus-within {
	border-color: var(--tj-theme-primary);
	background: var(--site-surface-hover);
}
.post-card__link {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 48px;
	gap: 30px;
	align-items: center;
	padding: 30px 32px;
	border-radius: var(--site-radius-lg);
	color: var(--tj-body) !important;
	text-decoration: none;
}
.post-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}
.post-card__meta time {
	color: var(--tj-white);
	font-size: 16px;
	font-weight: var(--tj-fw-bold);
}
.post-card__read {
	color: var(--site-accent-soft);
}
.post-card__title {
	margin-bottom: 10px;
	font-size: 26px;
}
.post-card__excerpt {
	margin-bottom: 16px;
	color: var(--tj-body);
	line-height: 1.7;
}
.post-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--tj-theme-primary);
	border-radius: 50%;
	color: var(--tj-theme-primary);
	transition: background 0.4s, color 0.4s;
}
.post-card__arrow i {
	transform: rotate(-45deg);
	transition: transform 0.4s;
}
.post-card:hover .post-card__arrow,
.post-card:focus-within .post-card__arrow {
	background: var(--tj-theme-primary);
	color: var(--tj-white);
}
.post-card:hover .post-card__arrow i,
.post-card:focus-within .post-card__arrow i {
	transform: rotate(0);
}

/* ---------------------------------------------------------------------------
   10. Blog post (blogs/<slug>.html)
   Header and body share one centred reading column (--site-reading-width).
--------------------------------------------------------------------------- */
.page-hero--post {
	padding-bottom: 60px;
}
.post-header {
	max-width: var(--site-reading-width);
	margin: 0 auto;
}
.post-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	color: var(--site-accent-soft) !important;
	font-size: 15px;
	font-weight: var(--tj-fw-medium);
	text-decoration: none;
	transition: color 0.3s ease;
}
.post-back i {
	transition: transform 0.3s ease;
}
.post-back:hover {
	color: var(--tj-white) !important;
}
.post-back:hover i {
	transform: translateX(-4px);
}
.post-header .tag-list {
	margin-bottom: 20px;
}
.page-hero--post .page-hero__title {
	display: block;
	font-size: 46px;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--site-text-muted);
	font-size: 15px;
}
.post-meta i {
	margin-right: 8px;
	color: var(--tj-theme-primary);
}

.post-body {
	padding: 70px 0 100px;
	background: var(--tj-black-2);
}

/* .prose = long-form text. Everything an article may contain is styled here. */
.prose {
	max-width: var(--site-reading-width);
	margin: 0 auto;
	font-size: var(--tj-fz-p);
	line-height: 1.8;
	overflow-wrap: break-word;
}
.prose > :first-child {
	margin-top: 0;
}
.prose > :last-child {
	margin-bottom: 0;
}
.prose p {
	margin-bottom: 24px;
}
.prose h2,
.prose h3 {
	scroll-margin-top: 30px;
}
.prose h2 {
	margin: 56px 0 18px;
	font-size: 30px;
}
.prose h3 {
	margin: 40px 0 14px;
	font-size: 23px;
}
.prose h2::before,
.prose h3::before {
	margin-right: 12px;
	color: var(--tj-theme-primary);
	font-family: var(--site-mono);
	font-weight: var(--tj-fw-regular);
}
.prose h2::before {
	content: "#";
	content: "#" / "";
}
.prose h3::before {
	content: "##";
	content: "##" / "";
}
.prose a {
	color: var(--site-accent-soft) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.3s ease;
}
.prose a:hover {
	color: var(--tj-white) !important;
}
.prose strong {
	color: var(--tj-white);
	font-weight: var(--tj-fw-bold);
}
.prose ul,
.prose ol {
	margin: 0 0 24px;
	padding-left: 26px;
}
.prose li {
	margin-bottom: 8px;
}
.prose li::marker {
	color: var(--tj-theme-primary);
}
.prose blockquote {
	margin: 0 0 28px;
	padding: 18px 24px;
	border-left: 3px solid var(--tj-theme-primary);
	border-radius: 0 var(--site-radius-md) var(--site-radius-md) 0;
	background: var(--site-surface);
	color: var(--tj-white);
	font-style: italic;
}
.prose blockquote p:last-child {
	margin-bottom: 0;
}
.prose hr {
	height: 1px;
	margin: 44px 0;
	border: 0;
	background: var(--site-gradient);
	opacity: 1;
}
.prose img {
	max-width: 100%;
	height: auto;
}
.prose figure {
	margin: 0 0 28px;
}
.prose figure img {
	display: block;
	width: 100%;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
}
/* A figure whose picture opens enlarged (.zoomable, section 06): the link takes the
   picture's rounded shape, so the hover zoom and the focus ring stay inside it. */
.prose figure .zoomable {
	overflow: hidden;
	border-radius: var(--site-radius-md);
}
.prose figcaption {
	margin-top: 10px;
	color: var(--site-text-muted);
	font-size: 14px;
	text-align: center;
}

/* Inline code, keyboard keys */
.prose code,
.prose kbd {
	font-family: var(--site-mono);
	font-size: 0.88em;
}
.prose code {
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(135, 80, 247, 0.16);
	color: #dccbff;
}
.prose kbd {
	padding: 2px 7px;
	border: 1px solid var(--site-border);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--site-surface);
	color: var(--tj-white);
}

/* Code blocks: <div class="code-block" data-lang="bash"><pre><code>…</code></pre></div>
   The title bar text comes from data-lang. site.js adds the Copy button. */
.code-block {
	position: relative;
	margin: 0 0 28px;
	overflow: hidden;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	background: var(--site-surface);
}
.code-block::before {
	content: attr(data-lang);
	display: block;
	min-height: 37px;
	padding: 9px 18px;
	border-bottom: 1px solid var(--site-border);
	background: var(--site-tint);
	color: var(--site-accent-soft);
	font-family: var(--site-mono);
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.code-block:not([data-lang])::before {
	content: "code";
}
.code-block pre,
.prose pre {
	margin: 0;
	padding: 20px 22px;
	overflow-x: auto;
	color: #e6e1f0;
	font-family: var(--site-mono);
	font-size: 15px;
	line-height: 1.7;
	tab-size: 2;
	white-space: pre;
}
.prose > pre {
	margin-bottom: 28px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	background: var(--site-surface);
}
.prose pre code {
	padding: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}
.code-block__copy {
	position: absolute;
	top: 5px;
	right: 8px;
	padding: 5px 12px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-pill);
	background: transparent;
	color: var(--site-accent-soft);
	font-family: var(--tj-ff-body);
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.code-block__copy:hover,
.code-block__copy:focus-visible {
	border-color: var(--tj-theme-primary);
	background: var(--tj-theme-primary);
	color: var(--tj-white);
}
/* Optional hand-applied syntax colours (no highlighting library on purpose). */
.tok-c {
	color: #8a8499;
	font-style: italic;
} /* comment */
.tok-k {
	color: var(--site-accent-soft);
} /* keyword / property / key */
.tok-s {
	color: #f7a8d8;
} /* string / value */
.tok-n {
	color: #8be9fd;
} /* number / constant */
.tok-p {
	color: var(--tj-theme-primary);
	user-select: none;
} /* shell prompt: not selectable, skipped by Copy */

/* Callouts: <aside class="callout callout--warn"><p class="callout__title">…</p><p>…</p></aside> */
.callout {
	margin: 0 0 28px;
	padding: 18px 22px;
	border: 1px solid var(--site-border);
	border-left: 3px solid var(--tj-theme-primary);
	border-radius: var(--site-radius-md);
	background: var(--site-tint);
}
.callout p:last-child {
	margin-bottom: 0;
}
.prose .callout__title {
	margin-bottom: 6px;
	color: var(--site-accent-soft);
	font-size: 13px;
	font-weight: var(--tj-fw-bold);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.callout--tip {
	border-color: rgba(61, 220, 151, 0.28);
	border-left-color: var(--site-ok);
	background: rgba(61, 220, 151, 0.07);
}
.prose .callout--tip .callout__title {
	color: var(--site-ok);
}
.callout--warn {
	border-color: rgba(245, 185, 66, 0.28);
	border-left-color: var(--site-warn);
	background: rgba(245, 185, 66, 0.07);
}
.prose .callout--warn .callout__title {
	color: var(--site-warn);
}
.callout--danger {
	border-color: rgba(255, 107, 129, 0.3);
	border-left-color: var(--site-danger);
	background: rgba(255, 107, 129, 0.07);
}
.prose .callout--danger .callout__title {
	color: var(--site-danger);
}

/* Tables: always wrap in <div class="table-wrap"> so wide tables scroll, not the page. */
.table-wrap {
	margin: 0 0 28px;
	overflow-x: auto;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.6;
}
.prose th,
.prose td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--site-border);
	text-align: left;
	vertical-align: top;
}
.prose th {
	background: var(--site-tint);
	color: var(--site-accent-soft);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
}
.prose tbody tr:last-child td {
	border-bottom: 0;
}

/* Optional "On this page" box at the top of long posts. */
.post-toc {
	margin: 0 0 40px;
	padding: 20px 24px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	background: var(--site-surface);
}
.prose .post-toc__title {
	margin-bottom: 10px;
	color: var(--site-accent-soft);
	font-size: 13px;
	font-weight: var(--tj-fw-bold);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.post-toc ol {
	margin-bottom: 0;
}
.post-toc li:last-child {
	margin-bottom: 0;
}

.post-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--site-reading-width);
	margin: 60px auto 0;
	padding-top: 34px;
	border-top: 1px solid var(--tj-theme-secondary);
}
.author-card {
	display: flex;
	align-items: center;
	gap: 16px;
}
.author-card__avatar {
	width: 64px;
	height: 64px;
	max-width: none;
	object-fit: cover;
	border: 2px solid var(--tj-theme-secondary);
	border-radius: 50%;
}
.author-card__name {
	display: block;
	color: var(--tj-white);
	font-weight: var(--tj-fw-bold);
}
.author-card__role {
	display: block;
	color: var(--site-text-muted);
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
   11. 404 page
--------------------------------------------------------------------------- */
.error-hero {
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 170px 0 100px;
	text-align: center;
}
.error-hero .container {
	position: relative;
}
.error-hero__code {
	display: block;
	margin-bottom: 10px;
	font-family: var(--tj-ff-russo);
	font-size: clamp(110px, 22vw, 240px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--tj-theme-primary);
}
.error-hero .page-hero__title {
	font-size: 40px;
}
.error-hero .page-hero__lead {
	margin: 0 auto;
}
.error-hero .page-section__actions {
	justify-content: center;
}

/* ---------------------------------------------------------------------------
   12. Motion preferences & failsafes
   "js-anim" is added to <html> by head.js only when JavaScript runs and the
   visitor has not asked for reduced motion. Without it nothing is hidden.
   "js-preload" is added on top of it only when the visitor is arriving at the
   site: the preloader shows once per visit, on whichever page comes first.
--------------------------------------------------------------------------- */
html:not(.js-preload) .preloader,
.preloader.is-done {
	display: none;
}
/* While the preloader covers the page, hold back the inner pages' watermark so its
   draw-in plays once the page is revealed (site.js then adds "intro-ready"). */
.js-preload:not(.intro-ready) .page-hero__watermark text {
	animation: none;
	opacity: 0;
}
/* Pre-hide scroll-reveal items so they do not flash before WOW takes over. */
.js-anim .wow {
	visibility: hidden;
}
/* Home hero outline text is normally revealed by JS after the preloader. */
html:not(.js-anim) .hero-section .intro_text svg text {
	opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
	.hero-section .intro_text svg,
	.hero-section .intro_text svg text.animate-stroke,
	.page-hero__watermark svg,
	.page-hero__watermark text,
	.contact-dialog[open],
	.lightbox[open] .lightbox__img,
	.load-text span {
		animation: none;
	}
	.site-nav a,
	.site-nav a::before,
	.link-arrow i,
	.post-card,
	.post-card__arrow,
	.post-card__arrow i,
	.cert-item,
	.contact-card,
	.contact-card__arrow,
	.resume-item__link i,
	.contact-dialog__close,
	.zoomable img,
	.zoomable i,
	.lightbox__close,
	.about-card__avatar,
	.hero-image-box img {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
   13. Responsive (same breakpoints as the theme's responsive.css)
--------------------------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
	.page-hero {
		padding: 170px 0 70px;
	}
	.page-hero__title {
		font-size: 52px;
	}
	.cert-item {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 30px;
	}
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 991px) {
	.logo-text {
		font-size: 50px;
	}
	.page-hero {
		padding: 150px 0 60px;
	}
	.page-hero__title {
		font-size: 44px;
	}
	.page-hero--post .page-hero__title {
		font-size: 38px;
	}
	.page-hero__watermark svg {
		width: 80%;
	}
	.page-section {
		padding: 80px 0;
	}
	.about-card {
		margin-bottom: 40px;
	}
	.post-card__link {
		grid-template-columns: 130px minmax(0, 1fr) 48px;
		gap: 24px;
		padding: 26px;
	}
}

@media only screen and (max-width: 767px) {
	.logo-text {
		font-size: 40px;
	}
	.site-nav ul {
		column-gap: 26px;
	}
	.page-hero {
		padding: 130px 0 50px;
	}
	.page-hero__eyebrow {
		letter-spacing: 3px;
	}
	.page-hero__title,
	.error-hero .page-hero__title {
		font-size: 34px;
	}
	.page-hero--post .page-hero__title {
		font-size: 30px;
	}
	.page-hero__lead {
		font-size: 17px;
	}
	.page-hero__watermark svg {
		top: 50%;
		right: -12%;
		width: 110%;
		opacity: 0.7;
	}
	.page-section {
		padding: 60px 0;
	}
	.page-section .section-header {
		margin-bottom: 35px;
	}
	.cert-item {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 22px;
	}
	.cert-item__title {
		font-size: 22px;
	}
	.post-card__link {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 24px 22px;
	}
	.post-card__meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px 16px;
		align-items: baseline;
	}
	.post-card__title {
		font-size: 21px;
	}
	.post-card__arrow {
		display: none;
	}
	.post-body {
		padding: 50px 0 70px;
	}
	.prose {
		font-size: 17px;
	}
	.prose h2 {
		margin-top: 44px;
		font-size: 24px;
	}
	.prose h3 {
		margin-top: 32px;
		font-size: 20px;
	}
	.code-block pre,
	.prose pre {
		padding: 16px;
		font-size: 14px;
	}
	.post-footer {
		margin-top: 44px;
	}
	.error-hero {
		padding: 130px 0 70px;
	}
}

@media only screen and (max-width: 400px) {
	.site-nav ul {
		column-gap: 18px;
	}
	.site-nav a {
		font-size: 15px;
		letter-spacing: 0;
	}
	.contact-dialog {
		padding: 20px;
	}
	.contact-dialog__title {
		font-size: 24px;
	}
	.fact-list > div {
		flex-direction: column;
		gap: 0;
	}
	.fact-list dd {
		text-align: left;
	}
}
