/*
Theme Name: Jolene
Theme URI: https://jolene.pro
Author: Rohan Krishna
Author URI: https://jolene.pro
Description: Official blog for Jolene. Clean, minimal, and matched to the public site at jolene.pro.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jolene
Tags: blog, one-column, custom-logo, featured-images, threaded-comments, translation-ready, block-styles
*/

/* -------------------------------------------------------------------------- */
/* Tokens                                                                      */
/* -------------------------------------------------------------------------- */

:root {
	--background: #fff;
	--foreground: #1a1a1a;
	--heading: oklch(0.208 0.042 265.755);
	--body: oklch(0.279 0.041 260.031);
	--primary: #0095ff;
	--primary-hover: #0077cc;
	--primary-foreground: #fff;
	--secondary: #eef2f6;
	--muted: #f4f6f8;
	--muted-foreground: #5b6570;
	--accent: #e8f4fc;
	--border: #d8dee6;
	--wash: #f4f8fc;
	--radius: 6px;
	--radius-sm: 12px;
	--radius-lg: 16px;
	--font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	--font-display: Archivo, "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--page: 1152px;
	--article: 768px;
	--header-offset: 0px;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--body);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

a {
	color: var(--primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--primary-hover);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--heading);
	line-height: 1.12;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

::selection {
	background: var(--accent);
	color: var(--heading);
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 100;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: min(var(--page), calc(100% - 48px));
	margin-inline: auto;
}

.wrap--article {
	width: min(var(--article), calc(100% - 48px));
}

@media (min-width: 1024px) {
	.wrap,
	.wrap--article {
		width: min(var(--page), calc(100% - 80px));
	}

	.wrap--article {
		width: min(var(--article), calc(100% - 80px));
	}
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.site-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--border);
}

.has-wash .site-header {
	background: var(--wash);
	border-bottom-color: transparent;
}

.site-header__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px 20px;
	width: min(var(--page), calc(100% - 48px));
	margin-inline: auto;
	padding: 20px 0 16px;
}

@media (min-width: 1024px) {
	.site-header__inner {
		width: min(var(--page), calc(100% - 80px));
		padding-top: 24px;
	}
}

.wordmark {
	display: inline-flex;
	align-items: baseline;
	color: var(--heading);
	font-family: var(--font-sans);
	font-size: 17px;
	letter-spacing: -0.022em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.wordmark:hover {
	color: var(--heading);
}

.wordmark__name {
	font-weight: 700;
}

.wordmark__suffix {
	font-weight: 400;
	opacity: 0.45;
}

.wordmark__img {
	max-height: 28px;
	width: auto;
}

.site-header__end {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.site-header__panel {
	display: none;
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 8px 24px 20px;
	background: #fff;
	border-bottom: 1px solid var(--border);
}

.has-wash .site-header__panel {
	background: var(--wash);
}

.site-header.is-open .site-header__panel {
	display: flex;
}

.primary-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	color: var(--muted-foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .is-active a,
.primary-nav a[aria-current="page"] {
	color: var(--heading);
}

.site-header__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.header-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--muted-foreground);
	font-size: 14px;
	text-decoration: none;
}

.header-link:hover {
	background: var(--secondary);
	color: var(--heading);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--muted-foreground);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.nav-toggle:hover {
	background: var(--secondary);
	color: var(--heading);
}

.nav-toggle__label--close {
	display: none;
}

.site-header.is-open .nav-toggle__label--open {
	display: none;
}

.site-header.is-open .nav-toggle__label--close {
	display: inline;
}

@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}

	.site-header__end {
		margin-left: 8px;
	}

	.site-header__panel {
		display: contents;
		position: static;
		padding: 0;
		background: transparent;
		border: 0;
	}

	.site-header__links {
		flex-direction: row;
		align-items: center;
		gap: 2px;
		margin-left: auto;
	}
}

/* -------------------------------------------------------------------------- */
/* Controls                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	background: var(--primary-hover);
	color: var(--primary-foreground);
}

.btn--lg {
	min-height: 44px;
	padding: 0 24px;
	border-radius: var(--radius-lg);
	font-size: 15px;
}

.search-form {
	display: flex;
	align-items: center;
}

.search-form label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.search-form .search-field {
	width: 7.5rem;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--heading);
	font-size: 14px;
}

.search-form .search-field::placeholder {
	color: var(--muted-foreground);
}

.search-form .search-field:focus {
	border-color: var(--primary);
	outline: 2px solid var(--primary);
	outline-offset: 1px;
}

.search-form .search-submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 900px) {
	.search-form .search-field {
		width: 11rem;
	}
}

.search-form--block {
	max-width: 28rem;
	margin-top: 28px;
}

.search-form--block .search-form {
	display: block;
	width: 100%;
}

.search-form--block .search-field {
	width: 100%;
}

.intro__home {
	margin: 20px 0 0;
}

.intro__home .feature__more {
	margin-top: 0;
}

/* -------------------------------------------------------------------------- */
/* Intro                                                                       */
/* -------------------------------------------------------------------------- */

.intro {
	background: var(--wash);
	padding: 56px 0 64px;
}

@media (min-width: 1024px) {
	.intro {
		padding: 88px 0 104px;
	}
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--muted-foreground);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
}

.intro__title {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
	letter-spacing: -0.03em;
}

.intro__text {
	max-width: 42rem;
	margin: 16px 0 0;
	color: var(--body);
	font-size: 16px;
	line-height: 1.65;
}

/* -------------------------------------------------------------------------- */
/* Listing                                                                     */
/* -------------------------------------------------------------------------- */

.listing {
	padding: 56px 0 88px;
}

@media (min-width: 1024px) {
	.listing {
		padding: 80px 0 120px;
	}
}

.feature {
	display: grid;
	gap: 20px;
	margin: 0 0 8px;
}

.feature__title {
	margin: 12px 0 0;
	font-size: clamp(1.85rem, 1rem + 2.2vw, 2.75rem);
	letter-spacing: -0.03em;
}

.feature__title a {
	color: inherit;
	text-decoration: none;
}

.feature__title a:hover {
	color: var(--primary);
}

.feature__excerpt {
	margin: 0;
	max-width: 42rem;
	color: var(--body);
	font-size: 16px;
	line-height: 1.7;
}

.feature__more {
	display: inline-block;
	margin-top: 18px;
	color: var(--primary);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.feature__more:hover {
	color: var(--primary-hover);
}

@media (min-width: 900px) {
	.feature {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 40px 56px;
		align-items: start;
		margin-bottom: 24px;
	}
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.4;
}

.meta time {
	font-variant-numeric: tabular-nums;
}

.meta__cat {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 2px 10px;
	border-radius: var(--radius-sm);
	background: var(--secondary);
	color: var(--heading);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.meta__cat:hover {
	background: var(--accent);
	color: var(--heading);
}

.post-list {
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.listing .post-list:first-child {
	margin-top: 0;
}

.post-list__item {
	border-top: 1px solid var(--border);
}

.post-list__item article {
	display: block;
	padding: 28px 0 30px;
}

.post-list__title {
	margin: 10px 0 0;
	font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.6rem);
	letter-spacing: -0.025em;
}

.post-list__title a {
	color: inherit;
	text-decoration: none;
}

.post-list__title a:hover {
	color: var(--primary);
}

.post-list__excerpt {
	max-width: 46rem;
	margin: 10px 0 0;
	color: var(--muted-foreground);
	font-size: 15px;
	line-height: 1.65;
}

.empty {
	padding: 12px 0 8px;
}

.empty p {
	margin: 0 0 8px;
	color: var(--body);
	font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/* Pagination                                                                  */
/* -------------------------------------------------------------------------- */

.pagination {
	margin-top: 12px;
}

.pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 28px 0 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.pagination a.page-numbers,
.pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	color: var(--muted-foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	background: var(--secondary);
	color: var(--heading);
}

.pagination span.page-numbers.current {
	background: var(--accent);
	color: var(--heading);
}

/* -------------------------------------------------------------------------- */
/* Entry                                                                       */
/* -------------------------------------------------------------------------- */

.entry {
	padding: 56px 0 40px;
}

@media (min-width: 1024px) {
	.entry {
		padding-top: 88px;
	}
}

.entry__title {
	margin: 14px 0 0;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 2.85rem);
	letter-spacing: -0.03em;
}

.entry__media {
	margin: 32px auto 0;
}

.entry__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.entry__content {
	padding-top: 32px;
	padding-bottom: 24px;
	font-size: 16.5px;
	line-height: 1.7;
}

.entry__content > *:first-child {
	margin-top: 0;
}

.entry__content > *:last-child {
	margin-bottom: 0;
}

.entry__content p,
.entry__content ul,
.entry__content ol,
.entry__content pre,
.entry__content blockquote,
.entry__content figure,
.entry__content table {
	margin: 1.15em 0;
}

.entry__content h2,
.entry__content h3,
.entry__content h4 {
	margin: 1.6em 0 0.5em;
	line-height: 1.2;
}

.entry__content h2 {
	font-size: 1.7rem;
	letter-spacing: -0.025em;
}

.entry__content h3 {
	font-size: 1.3rem;
	letter-spacing: -0.02em;
}

.entry__content h4 {
	font-size: 1.05rem;
	letter-spacing: -0.015em;
}

.entry__content a {
	color: var(--primary);
}

.entry__content a:hover {
	color: var(--primary-hover);
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.25rem;
}

.entry__content li + li {
	margin-top: 0.35em;
}

.entry__content blockquote {
	margin-left: 0;
	padding-left: 1.15rem;
	border-left: 2px solid var(--border);
	color: var(--heading);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.4;
}

.entry__content blockquote p {
	margin: 0.4em 0;
}

.entry__content img,
.entry__content video {
	border-radius: var(--radius-lg);
}

.entry__content figcaption,
.entry__content .wp-element-caption {
	margin-top: 8px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.5;
}

.entry__content pre {
	overflow: auto;
	padding: 16px 18px;
	border-radius: var(--radius-sm);
	background: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.875rem;
	line-height: 1.6;
}

.entry__content code {
	padding: 0.1em 0.35em;
	border-radius: var(--radius);
	background: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.entry__content pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry__content th,
.entry__content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry__content th {
	color: var(--heading);
	font-weight: 600;
}

.entry__content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.entry__content .wp-block-button__link:hover {
	background: var(--primary-hover);
	color: var(--primary-foreground);
}

.entry__content .alignwide,
.entry__content .alignfull {
	width: min(var(--page), calc(100vw - 48px));
	max-width: var(--page);
	margin-left: 50%;
	transform: translateX(-50%);
}

@media (min-width: 1024px) {
	.entry__content .alignwide,
	.entry__content .alignfull {
		width: min(var(--page), calc(100vw - 80px));
	}
}

.page-links {
	margin-top: 1.5em;
	color: var(--muted-foreground);
	font-size: 14px;
}

.page-links a {
	font-weight: 500;
	text-decoration: none;
}

.post-nav {
	padding-bottom: 72px;
}

.post-nav .nav-links {
	display: grid;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid var(--border);
}

@media (min-width: 700px) {
	.post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.post-nav .nav-next {
		text-align: right;
	}
}

.post-nav a {
	color: var(--heading);
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
	text-decoration: none;
}

.post-nav a:hover {
	color: var(--primary);
}

.post-nav .nav-subtitle {
	display: block;
	margin-bottom: 6px;
	color: var(--muted-foreground);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
}

/* -------------------------------------------------------------------------- */
/* Comments                                                                    */
/* -------------------------------------------------------------------------- */

.comments {
	padding-bottom: 88px;
}

.comments__title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: 1.35rem;
	letter-spacing: -0.025em;
}

.comment-list {
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: none;
}

.comment-body {
	padding: 18px 0;
	border-top: 1px solid var(--border);
}

.comment-meta {
	color: var(--muted-foreground);
	font-size: 14px;
}

.comment-author .fn {
	color: var(--heading);
	font-style: normal;
	font-weight: 600;
}

.comment-metadata a {
	color: var(--muted-foreground);
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--primary);
}

.comment-content {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.65;
}

.comment-reply-link {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--heading);
	font-size: 14px;
	font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	margin-bottom: 16px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--heading);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--primary);
	outline: 2px solid var(--primary);
	outline-offset: 1px;
}

.comments__closed {
	color: var(--muted-foreground);
	font-size: 14px;
}

.comment-nav-below {
	margin-bottom: 28px;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.site-footer {
	background: #fff;
	border-top: 1px solid var(--border);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(var(--page), calc(100% - 48px));
	margin-inline: auto;
	padding: 28px 0;
	color: var(--muted-foreground);
	font-size: 14px;
}

@media (min-width: 700px) {
	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.site-footer__inner {
		width: min(var(--page), calc(100% - 80px));
		padding: 32px 0;
	}
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.site-footer__links a {
	color: var(--muted-foreground);
	text-decoration: none;
}

.site-footer__links a:hover {
	color: var(--heading);
}

.site-footer .wordmark {
	font-size: 15px;
}
