:root {
	--jd-ink: #172c40;
	--jd-ink-muted: #52697b;
	--jd-blue: #168bd0;
	--jd-blue-bright: #07a7ed;
	--jd-pale: #eef7fc;
	--jd-line: #dce7ef;
	--jd-paper: #fbfdff;
	--jd-white: #fff;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body.javadude-site {
	margin: 0;
	background: var(--jd-paper);
	color: var(--jd-ink);
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

.jd-shell {
	width: min(1160px, calc(100% - 48px));
	margin-inline: auto;
}

.jd-skip-link {
	position: absolute;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 10px 15px;
	transform: translateY(-180%);
	border-radius: 6px;
	background: var(--jd-ink);
	color: var(--jd-white);
}

.jd-skip-link:focus {
	transform: translateY(0);
}

.jd-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--jd-line);
	background: rgb(255 255 255 / 96%);
}

.jd-header__inner,
.jd-brand,
.jd-menu,
.jd-footer__main,
.jd-footer__links {
	display: flex;
	align-items: center;
}

.jd-header__inner {
	min-height: 88px;
	justify-content: space-between;
	gap: 28px;
}

.jd-brand {
	min-width: 0;
	gap: 12px;
	color: var(--jd-ink);
	text-decoration: none;
}

.jd-brand img {
	display: block;
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
}

.jd-brand__text {
	display: grid;
	line-height: 1.25;
}

.jd-brand__text strong {
	font-size: 1.16rem;
	font-weight: 750;
	letter-spacing: -0.045em;
}

.jd-brand__text strong span {
	color: #4f819f;
}

.jd-brand__text small {
	margin-top: 4px;
	color: var(--jd-ink-muted);
	font-size: 0.76rem;
}

.jd-navigation {
	display: flex;
	align-items: center;
}

.jd-menu {
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jd-menu > li {
	margin: 0;
	padding: 0;
}

.jd-menu > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 13px;
	border-radius: 6px;
	color: var(--jd-ink-muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 150ms ease, background 150ms ease;
}

.jd-menu > li > a:hover,
.jd-menu > li > a:focus-visible,
.jd-menu > li.current-menu-item > a {
	background: var(--jd-pale);
	color: #126fa7;
}

.jd-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--jd-line);
	border-radius: 7px;
	background: var(--jd-white);
	color: var(--jd-ink);
	cursor: pointer;
}

.jd-menu-toggle__icon,
.jd-menu-toggle__icon::before,
.jd-menu-toggle__icon::after {
	position: relative;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.jd-menu-toggle__icon::before,
.jd-menu-toggle__icon::after {
	position: absolute;
	left: 0;
	content: "";
}

.jd-menu-toggle__icon::before {
	top: -6px;
}

.jd-menu-toggle__icon::after {
	top: 6px;
}

.jd-main {
	min-height: 55vh;
}

.jd-main--page {
	padding: 66px 0 100px;
}

.jd-page {
	max-width: 900px;
	margin-inline: auto;
}

.jd-page__heading {
	margin-bottom: 34px;
}

.jd-eyebrow {
	margin: 0 0 13px;
	color: #527c99;
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jd-eyebrow span {
	padding-inline: 5px;
	color: #8ba5b8;
}

.jd-page__heading h1 {
	margin: 0;
	color: var(--jd-ink);
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.065em;
	line-height: 1.1;
}

.jd-page__content {
	color: var(--jd-ink-muted);
	font-size: 1.04rem;
	line-height: 1.85;
}

.jd-page__content > * {
	max-width: 100%;
}

.jd-page__content h2,
.jd-page__content h3,
.jd-home-content h2,
.jd-home-content h3 {
	color: var(--jd-ink);
	font-weight: 680;
	letter-spacing: -0.04em;
	line-height: 1.22;
}

.jd-page__content h2,
.jd-home-content h2 {
	margin: 2.6rem 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.jd-page__content h3,
.jd-home-content h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.25rem;
}

.jd-page__content p,
.jd-home-content p {
	margin: 0 0 1.2rem;
}

.jd-page-lead {
	max-width: 760px;
	margin-bottom: 1.8rem !important;
	color: var(--jd-ink);
	font-size: clamp(1.2rem, 2.5vw, 1.55rem);
	font-weight: 500;
	line-height: 1.65;
}

.jd-page__content a,
.jd-home-content a,
.jd-footer a {
	color: #086fae;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.jd-page__content a:hover,
.jd-home-content a:hover,
.jd-footer a:hover {
	color: #064c79;
}

.jd-page__content img,
.jd-home-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.jd-page__content figure {
	margin: 2rem 0;
}

.jd-page__content figcaption {
	margin-top: 0.7rem;
	color: var(--jd-ink-muted);
	font-size: 0.86rem;
}

.jd-page__content blockquote {
	margin: 2rem 0;
	padding: 5px 0 5px 22px;
	border-left: 3px solid var(--jd-blue);
	color: var(--jd-ink);
	font-size: 1.14rem;
}

.jd-home-hero {
	display: grid;
	min-height: 570px;
	grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
	align-items: center;
	gap: clamp(32px, 7vw, 90px);
	padding: clamp(54px, 8vw, 100px) max(24px, calc((100% - 1160px) / 2));
	overflow: hidden;
	background:
		radial-gradient(ellipse at 83% 35%, rgb(17 123 198 / 30%), transparent 36%),
		linear-gradient(130deg, #0c1b2d, #122b44 68%, #0b223b);
	color: var(--jd-white);
}

.jd-home-hero__copy {
	max-width: 650px;
}

.jd-home-hero .jd-eyebrow {
	color: #9bcbe9;
}

.jd-home-hero h1 {
	margin: 0 0 22px;
	color: var(--jd-white);
	font-size: clamp(3rem, 6.4vw, 5.3rem);
	font-weight: 720;
	letter-spacing: -0.075em;
	line-height: 1.02;
}

.jd-home-hero__lead {
	max-width: 610px;
	color: #d0dfeb;
	font-size: clamp(1.05rem, 2vw, 1.23rem);
	line-height: 1.8;
}

.jd-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.jd-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 19px;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 150ms ease, background 150ms ease;
}

.jd-button:hover {
	transform: translateY(-2px);
}

.jd-button--light {
	background: #f7fbff;
	color: #102b43 !important;
}

.jd-button--outline {
	border-color: rgb(255 255 255 / 35%);
	color: var(--jd-white) !important;
}

.jd-button--outline:hover {
	background: rgb(255 255 255 / 8%);
}

.jd-home-hero__logo {
	width: min(100%, 380px);
	aspect-ratio: 1;
	justify-self: center;
	border: 1px solid rgb(95 177 235 / 40%);
	border-radius: 50% !important;
	box-shadow: 0 28px 70px rgb(0 0 0 / 34%);
	object-fit: cover;
}

.jd-home-section {
	padding: 82px 24px;
}

.jd-home-section__inner {
	width: min(1100px, 100%);
	margin-inline: auto;
}

.jd-home-section__heading {
	max-width: 680px;
	margin-bottom: 38px;
}

.jd-home-section__heading h2 {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 3rem);
}

.jd-home-section__heading p {
	color: var(--jd-ink-muted);
}

.jd-home-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.jd-home-card {
	min-height: 210px;
	padding: 26px;
	border: 1px solid var(--jd-line);
	border-radius: 11px;
	background: var(--jd-white);
	box-shadow: 0 12px 32px rgb(22 54 79 / 4%);
}

.jd-home-card__number {
	color: #4087b1;
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.1em;
}

.jd-home-card h3 {
	margin: 21px 0 9px;
	font-size: 1.22rem;
}

.jd-home-card p {
	margin: 0;
	color: var(--jd-ink-muted);
	font-size: 0.94rem;
	line-height: 1.7;
}

.jd-home-card a {
	font-weight: 700;
	text-decoration: none;
}

.jd-home-note {
	padding: 64px 24px;
	background: var(--jd-pale);
}

.jd-home-note__inner {
	display: grid;
	width: min(1100px, 100%);
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 32px;
	margin-inline: auto;
}

.jd-home-note h2 {
	margin: 0 0 10px;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.jd-home-note p {
	max-width: 700px;
	margin: 0;
	color: var(--jd-ink-muted);
}

.jd-home-note .jd-button {
	background: var(--jd-ink);
	color: var(--jd-white) !important;
}

.jd-page__content .jd-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 30px 0;
}

.jd-page__content .jd-info-card {
	padding: 24px;
	border: 1px solid var(--jd-line);
	border-radius: 10px;
	background: var(--jd-white);
}

.jd-page__content .jd-info-card h2,
.jd-page__content .jd-info-card h3 {
	margin: 0 0 10px;
	font-size: 1.25rem;
}

.jd-page__content .jd-info-card p {
	margin: 0;
}

.jd-page__content .jd-resource-list {
	display: grid;
	gap: 14px;
	margin: 24px 0;
	padding: 0;
	list-style: none;
}

.jd-page__content .jd-resource-list li {
	padding: 20px 22px;
	border: 1px solid var(--jd-line);
	border-radius: 9px;
	background: var(--jd-white);
}

.jd-page__content .jd-resource-list li strong a {
	font-size: 1.05rem;
	text-decoration: none;
}

.jd-footer {
	border-top: 1px solid var(--jd-line);
	background: #f4f8fb;
}

.jd-footer__main {
	min-height: 120px;
	justify-content: space-between;
	gap: 28px;
	padding-block: 24px;
}

.jd-brand--footer img {
	width: 44px;
	height: 44px;
}

.jd-brand--footer .jd-brand__text strong {
	font-size: 1rem;
}

.jd-brand--footer .jd-brand__text small {
	font-size: 0.73rem;
}

.jd-footer__links {
	flex-wrap: wrap;
	gap: 10px 22px;
}

.jd-footer__links a {
	font-size: 0.87rem;
	font-weight: 600;
	text-decoration: none;
}

.jd-footer__bottom {
	border-top: 1px solid var(--jd-line);
}

.jd-footer__bottom p {
	margin: 0;
	padding-block: 16px;
	color: var(--jd-ink-muted);
	font-size: 0.82rem;
}

.jd-post-list {
	display: grid;
	max-width: 820px;
	gap: 18px;
}

.jd-post-card {
	padding: 25px;
	border: 1px solid var(--jd-line);
	border-radius: 10px;
	background: var(--jd-white);
}

.jd-post-card__meta {
	margin: 0 0 8px;
	color: var(--jd-ink-muted);
	font-size: 0.82rem;
}

.jd-post-card h2 {
	margin: 0 0 10px;
	font-size: 1.5rem;
	letter-spacing: -0.035em;
}

.jd-post-card h2 a {
	color: var(--jd-ink);
	text-decoration: none;
}

.jd-post-card > div {
	color: var(--jd-ink-muted);
}

.jd-text-link {
	font-weight: 700;
	text-decoration: none;
}

.jd-empty-state {
	padding: 22px;
	border: 1px solid var(--jd-line);
	border-radius: 9px;
	background: var(--jd-pale);
}

:focus-visible {
	outline: 3px solid #6cb5e3;
	outline-offset: 4px;
}

@media (max-width: 780px) {
	.jd-shell {
		width: min(100% - 36px, 620px);
	}

	.jd-header__inner {
		min-height: 76px;
		flex-wrap: wrap;
		gap: 14px;
		padding-block: 10px;
	}

	.jd-brand img {
		width: 48px;
		height: 48px;
	}

	.jd-menu-toggle {
		display: none;
	}

	.jd-menu {
		position: absolute;
		top: calc(100% - 1px);
		right: 18px;
		left: 18px;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 3px;
		padding: 12px;
		border: 1px solid var(--jd-line);
		border-radius: 0 0 10px 10px;
		background: var(--jd-white);
		box-shadow: 0 16px 30px rgb(20 45 68 / 10%);
	}

	html.js .jd-menu-toggle {
		display: inline-flex;
	}

	html.js .jd-menu {
		display: none;
	}

	html.js .jd-menu.is-open {
		display: flex;
	}

	.jd-menu > li > a {
		width: 100%;
	}

	.jd-home-hero {
		min-height: 0;
		grid-template-columns: 1fr;
		gap: 42px;
		padding: 62px max(18px, calc((100% - 620px) / 2));
	}

	.jd-home-hero__logo {
		width: min(310px, 78%);
	}

	.jd-home-cards {
		grid-template-columns: 1fr;
	}

	.jd-home-card {
		min-height: 0;
	}

	.jd-home-card__number {
		display: inline-block;
		margin-bottom: 5px;
	}

	.jd-home-card h3 {
		margin-top: 10px;
	}

	.jd-home-note__inner {
		grid-template-columns: 1fr;
	}

	.jd-home-note .jd-button {
		justify-self: start;
	}

	.jd-page__content .jd-card-grid {
		grid-template-columns: 1fr;
	}

	.jd-footer__main {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.jd-shell {
		width: calc(100% - 32px);
	}

	.jd-brand {
		gap: 8px;
	}

	.jd-brand__text strong {
		font-size: 1.03rem;
	}

	.jd-brand__text small {
		font-size: 0.68rem;
	}

	.jd-main--page {
		padding-block: 48px 72px;
	}

	.jd-home-section {
		padding: 60px 18px;
	}

	.jd-footer__links {
		gap: 8px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
