html {
	font-size: 150%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #0b0b0d;

	--pink:       #ff979d;
	--pink-ish:   rgba(255, 151, 157, 0.80);
	--pink-dim:   rgba(255, 151, 157, 0.45);
	--pink-faint: rgba(255, 151, 157, 0.30);
	--pink-line:  rgba(255, 151, 157, 0.15);

	--violet:       #9b8cff;
	--violet-faint: rgba(155, 140, 255, 0.12);

	--text:      #e6e1d8;
	--text-dim:  rgba(230, 225, 216, 0.9);
	--text-hint: rgba(230, 225, 216, 0.6);

	--red:       #ff6b73;
	--red-faint: rgba(255, 107, 115, 0.15);

	--mono: 'IBM Plex Mono', monospace;
	--sans: 'IBM Plex Sans', sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
}

.loading {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--text-hint);
	letter-spacing: 0.08em;
	padding: 1rem 0;
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
	border-bottom: 0.0625rem solid var(--pink-line);
	position: sticky;
	top: 0;
	background: rgba(13, 13, 15, 0.92);
	backdrop-filter: blur(0.625rem);
	z-index: 100;
}

.logo-handle {
	font-family: var(--mono);
	font-size: 0.95rem;
	color: var(--pink);
	letter-spacing: 0.03em;
}

.logo-handle span {
	color: var(--pink-dim);
}

.logo-name {
	font-size: 0.7rem;
	color: var(--text-dim);
	font-weight: 300;
	margin-top: 0.125rem;
	letter-spacing: 0.04em;
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.15s;
	cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--pink);
}

.nav-toggle {
	display: none;
}

section {
	padding: 2rem;
	border-bottom: 0.0625rem solid var(--pink-line);
	scroll-margin-top: 3.75rem;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.4rem;
}

.section-label {
	font-family: var(--mono);
	font-size: 0.70rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pink);
}

.section-label span {
	color: var(--pink-dim);
}

.post-list {
	display: flex;
	flex-direction: column;
}

.post-row-top {
	border-top: 0.0625rem solid var(--pink-faint);
}

.post-row {
	display: grid;
	grid-template-columns: 3.5rem 1fr auto;
	align-items: center;
	gap: 1.2rem;
	padding: 0.9rem 0;
	border-bottom: 0.0625rem solid var(--pink-faint);
	text-decoration: none;
	color: inherit;
}

.post-row:hover,
.post-row:hover .post-title {
	background: #121114;
}

.post-idx {
	font-family: var(--mono);
	font-size: 0.7rem;
	color: var(--pink-ish);
}

.post-top {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.post-logo {
	display: block;
	width: 4rem;
	height: 4rem;
	object-fit: contain;
	border-radius: 0.1875rem;
	opacity: 0.85;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.post-title {
	font-size: 0.88rem;
	color: #c8c3ba;
	transition: color 0.15s;
	line-height: 1.35;
}

.post-date {
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--text-hint);
	text-align: right;
	white-space: nowrap;
}

.htb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-left: 0.0625rem;
	background: var(--pink-faint);
}

.htb-card-top {
	border-top: 0.0625rem solid var(--pink-faint);
}

.htb-card {
	background: var(--bg);
	padding: 1.1rem;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: background 0.15s;
	border-bottom: 0.0625rem solid var(--pink-faint);
	border-right: 0.0625rem solid var(--pink-faint);
}

.htb-card:hover {
	background: #121114;
}

.htb-card-ghost {
	background: var(--bg);
	pointer-events: none;
}

.card-top {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}
 
.card-logo {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	object-fit: contain;
	border-radius: 0.1875rem;
	opacity: 0.85;
	flex-shrink: 0;
	margin-top: 0.1rem;
}
 
.card-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	flex: 1;
}
 
.card-name-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
}

.card-name {
	font-size: 0.9rem;
	font-weight: 500;
	color: #ddd8cc;
}

.lock-icon {
	width: 0.75rem;
	height: 0.75rem;
	opacity: 0.5;
	flex-shrink: 0;
}

.card-tags {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.tag {
	font-family: var(--mono);
	font-size: 0.6rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.125rem 0.4375rem;
	border-radius: 0.125rem;
}

.tag-easy   { background: rgba(255, 151, 157, 0.12); color: #ff979d; }
.tag-medium { background: rgba(218, 133, 180, 0.12); color: #da85b4; }
.tag-hard   { background: rgba(172, 110, 200, 0.12); color: #ac6ec8; }
.tag-insane { background: rgba(115,  90, 200, 0.14); color: #735ac8; }
.tag-os     { background: rgba(212, 207, 198, 0.06); color: var(--text-dim); }

.card-desc {
	font-size: 0.75rem;
	color: var(--text);
	line-height: 1.5;
	font-weight: 300;
}

.card-date {
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--text-hint);
	text-align: left;
	white-space: nowrap;
	margin-top: 0.2rem;
	margin-bottom: 0.6rem;
}

.card-recently-retired {
	font-family: var(--mono);
	font-size: 0.65rem;

	color: var(--pink-ish);
	letter-spacing: 0.06em;
	margin-top: 0.6rem;
}

.card-recently-retired span {
	color: var(--pink-dim);
}

.coming-soon {
	background: var(--bg);
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--text-hint);
	letter-spacing: 0.06em;
	padding: 0.5rem 0;
}

.about-grid {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
	background: var(--pink-line);
}

.about-cell {
	background: var(--bg);
	padding: 1.5rem;
}

.about-cell-label {
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 0.8rem;
}

.about-bio-links {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}

.about-col {}

.about-text {
	font-size: 0.85rem;
	color: var(--text);
	line-height: 1.75;
	font-weight: 300;
}

.about-text {
	margin-top: 0.8rem;
}

.contact-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--violet);
	text-decoration: none;
	transition: color 0.15s;
}

.contact-link:hover {
	color: var(--pink);
}

.cl-label {
	color: var(--pink-ish);
	font-size: 0.65rem;
}

.about-cell--certs {
	min-width: 0;
	overflow: hidden;
}

.cert-table-wrap {
	overflow-x: auto;
	width: 100%;
}

.cert-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
}

.cert-table thead th {
	font-family: var(--mono);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pink-ish);
	border-bottom: 0.0625rem solid var(--pink-line);
	padding: 0 0.75rem 0.6rem;
	text-align: left;
	white-space: nowrap;
}

.cert-table thead th:first-child { width: 3.25rem; padding-left: 0; }
.cert-table thead th:nth-child(2) { width: 4.5rem; }
.cert-table thead th:nth-child(4) { width: 21.875rem; }
.cert-table thead th:nth-child(5) { width: 2.75rem; }

.cert-table tbody tr {
	border-bottom: 0.0625rem solid var(--pink-line);
	transition: background 0.12s;
}

.cert-table tbody tr:hover {
	background: rgba(255, 151, 157, 0.03);
}

.cert-table tbody td {
	padding: 0.55rem 0.75rem;
	vertical-align: middle;
}

.cert-table tbody td:first-child {
	padding-left: 0;
}

.cert-badge {
	width: 2.375rem;
	height: 2.375rem;
	object-fit: contain;
	display: block;
}

.cert-abbr {
	font-family: var(--mono);
	font-size: 0.75rem;
	white-space: nowrap;
}

.cert-date {
	font-family: var(--mono);
	font-size: 0.7rem;
	color: var(--text-hint);
	white-space: nowrap;
}

.cert-link {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--violet);
	text-decoration: none;
	transition: color 0.15s;
}

.cert-link:hover {
	color: var(--pink);
}

.posts-nav {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.4rem;
}

.posts-back,
.posts-next {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--pink-ish);
	text-decoration: none;
	letter-spacing: 0.06em;
	transition: color 0.15s;
	cursor: pointer;
}

.posts-back:hover,
.posts-next:hover {
	color: var(--pink);
}

.post-shell {
	max-width: 48.75rem;
	margin: 0 auto;
	padding: 1rem 0rem;
}

.post-back a {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--pink-ish);
	text-decoration: none;
	letter-spacing: 0.06em;
	transition: color 0.15s;
}

.post-back a:hover {
	color: var(--pink);
}

.post-meta-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.4rem 0 0.8rem;
}

.post-category {
	font-family: var(--mono);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pink);
}

.post-category span {
	color: var(--pink-dim);
}

.post-date-display {
	font-family: var(--mono);
	font-size: 0.65rem;
	color: var(--text-hint);
}

.post-title-display {
	font-size: 1.7rem;
	font-weight: 300;
	color: #ede9e0;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin-bottom: 0.8rem;
}

.post-desc-display {
	font-size: 0.9rem;
	color: var(--text-dim);
	line-height: 1.7;
	font-weight: 300;
	margin-bottom: 1.2rem;
}

.post-htb-meta {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.post-header {
	margin-bottom: 2.5rem;
}

.locked-shell {
	display: flex;
	justify-content: center;
	padding: 4rem 0;
}

.locked-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 2.5rem 2rem;
	border: 0.0625rem solid var(--pink-line);
	border-radius: 0.25rem;
	width: 100%;
	max-width: 25rem;
	text-align: center;
}

.locked-label {
	font-size: 0.9rem;
	color: #ddd8cc;
	margin-top: 0.5rem;
}

.locked-sub {
	font-size: 0.8rem;
	color: var(--text-dim);
	font-weight: 300;
	margin-bottom: 0.5rem;
}

.key-input-row {
	display: flex;
	gap: 0.5rem;
	width: 100%;
}

.key-input {
	flex: 1;
	background: rgba(255, 255, 255, 0.03);
	border: 0.0625rem solid rgba(255, 151, 157, 0.15);
	border-radius: 0.1875rem;
	padding: 0.45rem 0.7rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--pink);
	outline: none;
	min-width: 0;
	transition: border-color 0.15s;
}

.key-input::placeholder {
	color: rgba(255, 151, 157, 0.2);
}

.key-input:focus {
	border-color: rgba(255, 151, 157, 0.4);
}

.key-btn {
	background: var(--pink-faint);
	border: 0.0625rem solid rgba(255, 151, 157, 0.2);
	border-radius: 0.1875rem;
	padding: 0.45rem 0.9rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--pink);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.key-btn:hover {
	background: rgba(255, 151, 157, 0.18);
}

.key-error {
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--red);
	display: none;
}

.post-content {
	font-size: 0.92rem;
	line-height: 1.8;
	color: rgba(212, 207, 198, 0.75);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
	font-weight: 500;
	color: #ede9e0;
	margin: 2rem 0 0.75rem;
	letter-spacing: -0.01em;
	border-bottom: 0.0625rem solid var(--pink-line);
	padding-bottom: 0.4rem;
}

.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.15rem; }
.post-content h3 { font-size: 1rem; }

.post-content p {
	margin-bottom: 1.1rem;
}

.post-content a {
	color: var(--pink);
	text-decoration: underline;
	text-underline-offset: 0.1875rem;
}

.post-content code {
	font-family: var(--mono);
	font-size: 0.82em;
	background: rgba(255, 151, 157, 0.06);
	border: 0.0625rem solid rgba(255, 151, 157, 0.12);
	border-radius: 0.1875rem;
	padding: 0.0625rem 0.3125rem;
	color: #c8c3ba;
}

.post-content pre {
	background: #0a0a0c;
	border: 0.1rem solid var(--pink-dim);
	border-radius: 0.25rem;
	padding: 1.2rem 1.4rem;
	overflow-x: auto;
	margin: 0.2rem 0 !important;
}

.post-content pre code {
	font-family: var(--mono) !important;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.82rem;
	color: rgba(212, 207, 198, 0.7);
}

.post-content blockquote {
	border-left: 0.125rem solid var(--pink-dim);
	margin: 1.2rem 0;
	padding: 0.5rem 0 0.5rem 1.2rem;
	color: var(--text-dim);
	font-style: italic;
}

.post-content ul,
.post-content ol {
	margin: 0.8rem 0 1.1rem 1.4rem;
}

.post-content li {
	margin-bottom: 0.3rem;
}

.post-content img {
	max-width: 100%;
	border-radius: 0.25rem;
	border: 0.1rem solid var(--pink-dim);
	margin: 1rem 0;
}

.post-content hr {
	border: none;
	border-top: 0.0625rem solid var(--pink-line);
	margin: 2rem 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.post-content th {
	font-family: var(--mono);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 151, 157, 0.5);
	border-bottom: 0.0625rem solid var(--pink-line);
	padding: 0.5rem 0.8rem;
	text-align: left;
}

.post-content td {
	padding: 0.5rem 0.8rem;
	border-bottom: 0.0625rem solid rgba(255, 151, 157, 0.05);
	color: var(--text-dim);
}

.post-content figure {
	flex-direction: column;
	align-items: center;
	margin: 1.5rem auto;
}

.post-content figure img {
	width: 100%;
	height: auto;
	display: block;
	border: 0.1rem solid var(--pink-dim);
	border-radius: 0.25rem;
}

.post-content figcaption {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--text-hint);
	text-align: center;
	line-height: 1.4;
	letter-spacing: 0.03em;
	white-space: nowrap;
	margin: 0 0 1.5rem;
}

.post-content .img-row figcaption {
	white-space: normal;
	width: 100%;
}

.post-content table caption {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--text-hint);
	padding-bottom: 0.4rem;
	letter-spacing: 0.03em;
	caption-side: bottom;
}

.post-content .img-row,
.post-content .float-row {
	display: flex;
	align-items: flex-start;
	margin: 1.75rem 0;
}

.post-content .img-row figure,
.post-content .float-row figure {
	margin: 0;
	align-items: flex-start;
}

.post-content .float-row table {
	width: 100%;
}

.post-content .float-text {
	padding-top: 0.8rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.post-content .float-text table {
	margin-top: -0.4rem !important;
}

.post-content .float-text p:first-child {
	margin-top: 0;
}

.post-license {
	margin-top: 3rem;
	padding-top: 1.2rem;
	border-top: 0.0625rem solid var(--pink-line);
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--text-hint);
	letter-spacing: 0.04em;
}

.post-license a {
	color: rgba(255, 151, 157, 0.4);
	text-decoration: none;
	transition: color 0.15s;
}

.post-license a:hover {
	color: var(--pink);
}

.post-error {
	padding: 3rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.post-error p {
	font-size: 0.85rem;
	color: var(--text-dim);
}

@media (max-width: 43.75rem) {
	.htb-grid        { grid-template-columns: 1fr; }
	.about-bio-links { grid-template-columns: 1fr; gap: 1.5rem; }
	.post-shell      { padding: 2rem 1.2rem 3rem; }
	.nav-links       { gap: 1rem; }
	.nav-links a { font-size: 0.65rem; }
	.post-title-display { font-size: 1.2rem; }
	.post-content table { display: block; overflow-x: auto; }
	.post-content .img-row,
	.post-content .float-row { flex-direction: column; gap: 1rem; }
	.post-content .img-row figure,
	.post-content .float-row figure,
	.post-content .float-text { width: 100% !important; min-width: 0 !important; }
	.cert-table thead th:nth-child(4) { width: auto; }
	section { padding: 1.2rem; }
	nav { padding: 0.75rem 1.2rem; flex-wrap: wrap; }

	.nav-toggle {
		display: flex;
		align-items: center;
		background: none;
		border: 0.0625rem solid var(--pink-line);
		border-radius: 0.125rem;
		color: var(--pink-dim);
		font-size: 0.95rem;
		cursor: pointer;
		padding: 0.4rem;
		font-family: var(--mono);
		line-height: 1;
		transition: color 0.15s, border-color 0.15s;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0.75rem;
		padding: 0.75rem 0;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-toggle.open {
		color: var(--pink);
		border-color: var(--pink-ish);
	}
}
