/*
Theme Name: Twenty Twenty Jacklee
Theme URI: https://jacklee.cc
Description: Personal homepage for jacklee.cc
Author: jacklee
Template: twentytwenty
Version: 1.3.1
Text Domain: twentytwenty-jacklee
*/

:root {
	--cream: #e5ded1;
	--olive: #bab59e;
	--wine: #8b0d2e;
	--wine-2: #bb254d;
	--ink: #1a1612;
	--mute: #5f5648;
	--line: #cbbda8;
}

body.jacklee-site,
body.jacklee-site.custom-background {
	background: var(--olive) !important;
	color: var(--ink);
	font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", serif;
}

body.jacklee-site a,
body.jacklee-site .color-accent {
	color: var(--wine);
}

body.jacklee-site .header-footer-group,
body.jacklee-site #site-header,
body.jacklee-site #site-footer,
body.jacklee-site .footer-nav-widgets-wrapper,
body.jacklee-site .menu-modal,
body.jacklee-site .search-modal-inner,
body.jacklee-site .archive-header,
body.jacklee-site .singular .entry-header {
	background: var(--cream) !important;
	color: var(--ink);
	border-color: var(--line);
}

body.jacklee-site .header-inner,
body.jacklee-site .site-description,
body.jacklee-site .toggle,
body.jacklee-site .footer-credits,
body.jacklee-site .powered-by-wordpress,
body.jacklee-site .to-the-top,
body.jacklee-site .entry-title,
body.jacklee-site .entry-content,
body.jacklee-site .post-meta {
	color: var(--ink);
}

body.jacklee-site .header-titles img.custom-logo {
	height: 40px !important;
	width: auto !important;
	max-height: 40px;
}

body.home-personal.overlay-header #site-header {
	background: transparent !important;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 5;
}

body.jacklee-site .primary-menu > li > a {
	color: var(--wine-2) !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 1.3rem;
}

body.jacklee-site .primary-menu > li > a:hover,
body.jacklee-site .primary-menu > li.current-menu-item > a,
body.jacklee-site .primary-menu > li.current_page_item > a {
	color: var(--wine) !important;
}

body.home-personal.overlay-header .primary-menu > li > a,
body.home-personal.overlay-header .site-description,
body.home-personal.overlay-header .toggle {
	color: var(--cream) !important;
}

body.home-personal.overlay-header .primary-menu > li > a:hover {
	color: #fff !important;
}

.home-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: var(--olive);
	background-image: var(--home-hero-image);
	background-size: cover;
	background-position: center 28%;
	color: var(--cream);
	--mx: 50%;
	--my: 40%;
}

.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle 28vw at var(--mx) var(--my), rgba(229, 222, 209, 0.38) 0%, transparent 55%),
		radial-gradient(circle 11vw at var(--mx) var(--my), rgba(139, 13, 46, 0.42) 0%, transparent 58%),
		linear-gradient(180deg, rgba(229, 222, 209, 0.08) 0%, rgba(66, 62, 55, 0.48) 100%);
	pointer-events: none;
	z-index: 1;
	transition: background 40ms linear;
}

.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.14;
	pointer-events: none;
	z-index: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.home-hero-rail {
	position: absolute;
	z-index: 2;
	left: 2.4rem;
	top: 50%;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	font-size: 1.1rem;
	color: var(--cream);
	opacity: 0.9;
}

.home-hero-inner {
	position: relative;
	z-index: 2;
	width: min(820px, calc(100% - 8rem));
	margin: 0 auto 8.5rem 8rem;
	will-change: transform;
}

.home-kicker {
	margin: 0 0 1rem;
	color: #f1d4c0;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	font-size: 1.25rem;
}

.home-hero h1 {
	margin: 0;
	font-size: clamp(4.8rem, 8vw, 9rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: #fff;
	text-shadow: 0 18px 40px rgba(26, 22, 18, 0.35);
}

.home-tag {
	margin: 1.4rem 0 0;
	font-size: 2.2rem;
	color: rgba(229, 222, 209, 0.92);
}

.home-scroll {
	position: absolute;
	z-index: 2;
	right: 3rem;
	bottom: 3rem;
	color: var(--cream) !important;
	text-decoration: none;
	letter-spacing: 0.18em;
	font-size: 1.2rem;
}

.home-section {
	padding: 8rem 0;
}

.home-section .section-inner {
	width: min(980px, calc(100% - 4.8rem));
	margin: 0 auto;
}

.home-about {
	background: var(--cream);
}

.home-about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 4rem;
	align-items: center;
}

.home-about p {
	margin: 0;
	font-size: 2rem;
	line-height: 1.75;
	color: var(--ink);
}

.home-about p {
	margin: 0;
	font-size: 2rem;
	line-height: 1.75;
	color: var(--ink);
}

.home-quote,
.home-about .home-quote {
	margin: 0;
	font-size: clamp(3.6rem, 6vw, 6.4rem);
	line-height: 1.05;
	color: var(--wine);
}

.home-posts .section-inner > h1,
.home-posts .section-inner > h2 {
	margin: 0 0 1.4rem;
	font-size: 1.4rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wine);
}

.home-posts {
	background: var(--olive);
}

.post-index {
	min-height: 70vh;
	padding-top: 10rem;
}

.home-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(26, 22, 18, 0.16);
}

.home-post-list li {
	border-bottom: 1px solid rgba(26, 22, 18, 0.16);
}

.home-post-list a {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	gap: 1.6rem;
	align-items: baseline;
	padding: 2.2rem 0;
	text-decoration: none;
	color: inherit;
}

.home-post-num {
	font-size: 1.4rem;
	letter-spacing: 0.16em;
	color: var(--wine);
}

.home-post-body time {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--mute);
	font-size: 1.3rem;
}

.home-post-list h2,
.home-post-list h3 {
	margin: 0;
	font-size: 2.6rem;
	color: var(--ink);
	text-transform: none;
	letter-spacing: -0.02em;
}

.home-post-list a:hover h2,
.home-post-list a:focus h2,
.home-post-list a:hover h3,
.home-post-list a:focus h3 {
	color: var(--wine-2);
}

.home-more {
	margin: 3rem 0 0;
}

.home-more a {
	display: inline-block;
	padding: 1rem 1.8rem;
	border: 1px solid var(--wine);
	color: var(--wine) !important;
	text-decoration: none;
	letter-spacing: 0.16em;
}

.home-more a:hover,
.home-more a:focus {
	background: var(--wine);
	color: var(--cream) !important;
}

body.jacklee-site .entry-content a {
	text-decoration-color: var(--wine);
}

body.jacklee-site button,
body.jacklee-site .button,
body.jacklee-site input[type="submit"] {
	background: var(--wine);
	color: var(--cream);
}

body.jacklee-site #site-header button.toggle,
body.jacklee-site #site-footer button.toggle,
body.jacklee-site .search-modal .search-submit {
	background: transparent;
	color: var(--ink);
	box-shadow: none;
}

body.home-personal.overlay-header #site-header button.toggle {
	color: var(--cream);
}

body.single-post #site-content {
	overflow: visible;
}

.post-with-toc {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
	gap: 3.2rem;
	width: min(1180px, calc(100% - 4.8rem));
	margin: 0 auto;
	padding: 9rem 0 5rem;
	align-items: start;
}

.post-toc-slot {
	min-height: 1px;
}

.post-toc {
	width: 100%;
	max-height: 76vh;
	overflow: auto;
	padding: 0 0 0 1.4rem;
	border-left: 1px solid rgba(139, 13, 46, 0.35);
}

.post-toc.is-docked {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	background: rgba(229, 222, 209, 0.94);
	padding: 1.6rem 1.2rem 1.6rem 1.4rem;
}

.post-toc-title {
	margin: 0 0 1.2rem;
	font-size: 1.2rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wine);
}

.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc-list a {
	display: block;
	padding: 0.35rem 0;
	color: var(--mute) !important;
	text-decoration: none;
	line-height: 1.45;
	font-size: 1.35rem;
	border: 0;
}

.toc-list a:hover,
.toc-list a:focus,
.toc-list a.is-active {
	color: var(--wine) !important;
}

.toc-h2 a {
	color: var(--ink) !important;
	font-weight: 600;
}

.toc-h4 {
	padding-left: 1.1rem;
}

.toc-h4 a {
	font-size: 1.22rem;
}

.post-toc-main .entry-header.header-footer-group {
	background: transparent !important;
}

.post-toc-main .entry-header {
	text-align: left;
}

.post-toc-main .entry-header-inner,
.post-toc-main .post-inner.thin,
.post-toc-main .section-inner {
	width: 100%;
	max-width: none;
}

.post-toc-main .entry-content h2,
.post-toc-main .entry-content h3,
.post-toc-main .entry-content h4 {
	scroll-margin-top: 7rem;
}

body.cursor-on,
body.cursor-on a,
body.cursor-on button {
	cursor: none;
}

.cursor-dot,
.cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 10000;
	border-radius: 50%;
}

.cursor-dot {
	width: 8px;
	height: 8px;
	background: var(--wine);
	box-shadow: 0 0 16px rgba(139, 13, 46, 0.45);
}

.cursor-ring {
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--wine);
	transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}

body.cursor-down .cursor-ring {
	width: 28px;
	height: 28px;
	background: rgba(139, 13, 46, 0.16);
}

@media (max-width: 899px) {
	.post-with-toc {
		grid-template-columns: 1fr;
		width: calc(100% - 3.2rem);
		padding-top: 7rem;
		gap: 1.6rem;
	}

	.post-toc-slot {
		position: sticky;
		top: 0;
		height: auto;
		display: block;
		z-index: 4;
	}

	.post-toc {
		max-height: 28vh;
		padding: 1rem 1.2rem;
		background: var(--cream);
		border-left: 0;
		border-bottom: 1px solid rgba(139, 13, 46, 0.25);
	}
}

@media (max-width: 799px) {
	.home-hero-rail {
		display: none;
	}

	.home-hero-inner {
		width: calc(100% - 3.2rem);
		margin: 0 auto 6rem;
	}

	.home-about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.home-post-list a {
		grid-template-columns: 4.4rem 1fr;
	}

	.home-section {
		padding: 5rem 0;
	}
}
