/*
Theme Name: Harborline Dispatch
Author: Evan Brookwell
Description: A responsive classic WordPress editorial theme with flexible menus, widgets, featured images, and block-ready content styling.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tsb-theme
*/

:root {
	--tsb-bg: #eef0e4;
	--tsb-bg-soft: #f7f5eb;
	--tsb-surface: #fffdf5;
	--tsb-ink: #10130f;
	--tsb-muted: #5b6257;
	--tsb-line: #d2d8c6;
	--tsb-lime: #d9ff45;
	--tsb-teal: #7eb8a8;
	--tsb-coral: #f36f45;
	--tsb-charcoal: #181c17;
	--tsb-radius: 8px;
	--tsb-shadow: 0 22px 56px rgba(15, 18, 13, 0.11);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tsb-bg);
	color: var(--tsb-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: #2f5f4f;
}

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

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

::selection {
	background: var(--tsb-lime);
	color: var(--tsb-ink);
}

.tsb-site {
	min-height: 100vh;
}

.tsb-shell {
	width: min(100% - 32px, 1160px);
	margin-inline: auto;
}

.tsb-skip-link {
	position: absolute;
	left: 16px;
	top: 12px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: var(--tsb-radius);
	background: var(--tsb-ink);
	color: var(--tsb-surface);
	transform: translateY(-160%);
}

.tsb-skip-link:focus {
	transform: translateY(0);
}

.tsb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(16, 19, 15, 0.12);
	background: rgba(238, 240, 228, 0.94);
	backdrop-filter: blur(14px);
}

.tsb-header-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	min-height: 74px;
	padding-block: 12px;
}

.tsb-brand {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.tsb-logo-link {
	display: inline-flex;
	align-items: center;
}

.tsb-logo-image {
	max-height: 54px;
	width: auto;
}

.tsb-site-title,
.tsb-footer-title {
	color: var(--tsb-ink);
	font-size: 1.08rem;
	font-weight: 800;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tsb-site-description,
.tsb-footer-text {
	margin: 0;
	color: var(--tsb-muted);
	font-size: 0.88rem;
}

.tsb-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--tsb-line);
	border-radius: 999px;
	background: var(--tsb-surface);
	color: var(--tsb-ink);
	cursor: pointer;
}

.tsb-nav-toggle:focus-visible,
.tsb-menu-link:focus-visible,
.tsb-chip:focus-visible,
.tsb-mini-chip:focus-visible,
.tsb-read-more:focus-visible,
.tsb-page-number:focus-visible,
.tsb-mosaic-feature:focus-visible,
.tsb-mini-card:focus-visible,
.tsb-card-media:focus-visible {
	outline: 3px solid var(--tsb-coral);
	outline-offset: 3px;
}

.tsb-nav-toggle-lines {
	display: grid;
	gap: 3px;
	width: 18px;
}

.tsb-nav-toggle-line {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.tsb-nav-toggle-text {
	font-size: 0.88rem;
	font-weight: 700;
}

.tsb-navigation {
	display: none;
	grid-column: 1 / -1;
}

.tsb-navigation.tsb-is-open {
	display: block;
}

.tsb-menu-list,
.tsb-footer-menu-list,
.tsb-pagination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsb-menu-list {
	align-items: stretch;
	padding-top: 8px;
}

.tsb-menu-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 9px 13px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--tsb-ink);
	font-size: 0.93rem;
	font-weight: 700;
	text-decoration: none;
}

.tsb-menu-link:hover {
	border-color: var(--tsb-line);
	background: var(--tsb-surface);
	color: var(--tsb-ink);
}

.tsb-menu-current-menu-item > .tsb-menu-link,
.tsb-menu-current_page_item > .tsb-menu-link {
	background: var(--tsb-ink);
	color: var(--tsb-surface);
}

.tsb-menu-sub-menu {
	display: grid;
	gap: 4px;
	margin: 4px 0 0;
	padding: 8px;
	border: 1px solid var(--tsb-line);
	border-radius: var(--tsb-radius);
	background: var(--tsb-surface);
	list-style: none;
	box-shadow: var(--tsb-shadow);
}

.tsb-main {
	background:
		linear-gradient(90deg, rgba(16, 19, 15, 0.04) 1px, transparent 1px),
		linear-gradient(0deg, rgba(16, 19, 15, 0.04) 1px, transparent 1px),
		var(--tsb-bg);
	background-size: 32px 32px;
}

.tsb-hero {
	padding-block: 36px 42px;
	border-bottom: 1px solid rgba(16, 19, 15, 0.1);
}

.tsb-front-main .tsb-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 520px;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background:
		linear-gradient(90deg, rgba(6, 12, 14, 0.9) 0%, rgba(6, 12, 14, 0.74) 42%, rgba(6, 12, 14, 0.36) 72%, rgba(6, 12, 14, 0.68) 100%),
		linear-gradient(0deg, rgba(6, 12, 14, 0.74), rgba(6, 12, 14, 0.08)),
		url("assets/images/tsb-dark-nautical-bg.png") center center / cover no-repeat;
	color: var(--tsb-surface);
}

.tsb-front-main .tsb-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(217, 255, 69, 0.05) 1px, transparent 1px),
		linear-gradient(0deg, rgba(217, 255, 69, 0.04) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

.tsb-front-main .tsb-hero-layout {
	position: relative;
	z-index: 1;
}

.tsb-front-main .tsb-hero-title {
	color: var(--tsb-surface);
	text-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
}

.tsb-front-main .tsb-kicker {
	color: var(--tsb-lime);
}

.tsb-front-main .tsb-hero-text {
	color: rgba(255, 253, 245, 0.82);
}

.tsb-front-main .tsb-chip {
	border-color: rgba(255, 253, 245, 0.2);
	background: rgba(255, 253, 245, 0.11);
	color: var(--tsb-surface);
	backdrop-filter: blur(10px);
}

.tsb-front-main .tsb-chip:hover {
	border-color: var(--tsb-lime);
	background: var(--tsb-lime);
	color: var(--tsb-ink);
}

.tsb-hero-layout {
	display: grid;
	gap: 24px;
	align-items: center;
}

.tsb-hero-copy {
	display: grid;
	gap: 16px;
}

.tsb-kicker,
.tsb-section-kicker {
	margin: 0;
	color: var(--tsb-muted);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.tsb-hero-title {
	max-width: 780px;
	margin: 0;
	font-size: 2.6rem;
	line-height: 0.98;
	overflow-wrap: anywhere;
}

.tsb-hero-text {
	max-width: 620px;
	margin: 0;
	color: var(--tsb-muted);
	font-size: 1.04rem;
}

.tsb-chip-row,
.tsb-card-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsb-chip,
.tsb-mini-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid rgba(16, 19, 15, 0.13);
	border-radius: 999px;
	background: rgba(255, 253, 245, 0.72);
	color: var(--tsb-ink);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.tsb-mini-chip {
	min-height: 30px;
	padding: 5px 9px;
	background: #eef7e9;
	font-size: 0.76rem;
}

.tsb-chip:hover,
.tsb-mini-chip:hover {
	background: var(--tsb-lime);
	color: var(--tsb-ink);
}

.tsb-mosaic {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.tsb-mosaic-feature,
.tsb-lime-card,
.tsb-mini-card,
.tsb-post-card,
.tsb-empty-state {
	border: 1px solid rgba(16, 19, 15, 0.13);
	border-radius: var(--tsb-radius);
}

.tsb-mosaic-feature {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	background: var(--tsb-charcoal);
	color: var(--tsb-surface);
	text-decoration: none;
	box-shadow: var(--tsb-shadow);
}

.tsb-mosaic-image,
.tsb-mosaic-pattern {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.tsb-mosaic-pattern,
.tsb-card-pattern {
	display: block;
	background:
		repeating-linear-gradient(135deg, rgba(217, 255, 69, 0.86) 0 12px, rgba(126, 184, 168, 0.86) 12px 24px),
		var(--tsb-charcoal);
}

.tsb-mosaic-caption {
	position: absolute;
	inset-inline: 14px;
	bottom: 14px;
	display: grid;
	gap: 5px;
	max-width: calc(100% - 28px);
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--tsb-radius);
	background: rgba(16, 19, 15, 0.82);
}

.tsb-mosaic-label {
	color: var(--tsb-lime);
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
}

.tsb-mosaic-title {
	font-size: 1.22rem;
	font-weight: 850;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.tsb-lime-card {
	display: grid;
	align-content: space-between;
	min-height: 170px;
	padding: 18px;
	background: var(--tsb-lime);
	color: var(--tsb-ink);
}

.tsb-lime-number {
	font-size: 3.2rem;
	font-weight: 900;
	line-height: 1;
}

.tsb-lime-label {
	max-width: 210px;
	font-size: 1.05rem;
	font-weight: 850;
	line-height: 1.2;
}

.tsb-mini-stack {
	display: grid;
	gap: 12px;
}

.tsb-mini-card {
	display: grid;
	gap: 8px;
	min-height: 102px;
	padding: 14px;
	background: var(--tsb-surface);
	color: var(--tsb-ink);
	text-decoration: none;
}

.tsb-mini-card:hover {
	border-color: var(--tsb-ink);
	transform: translateY(-2px);
}

.tsb-mini-date {
	color: var(--tsb-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.tsb-mini-title {
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.tsb-post-section {
	padding-block: 42px 58px;
}

.tsb-section-heading {
	display: grid;
	gap: 4px;
	margin-bottom: 22px;
}

.tsb-section-title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.05;
}

.tsb-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.tsb-post-card {
	display: grid;
	overflow: hidden;
	background: var(--tsb-surface);
	box-shadow: 0 12px 30px rgba(15, 18, 13, 0.06);
}

.tsb-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #dde5d4;
	color: var(--tsb-ink);
	text-decoration: none;
}

.tsb-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.tsb-post-card:hover .tsb-card-image {
	transform: scale(1.035);
}

.tsb-card-media-empty {
	display: grid;
	place-items: center;
}

.tsb-card-placeholder {
	position: absolute;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--tsb-surface);
	font-size: 0.82rem;
	font-weight: 850;
}

.tsb-card-body {
	display: grid;
	gap: 12px;
	padding: 18px;
}

.tsb-card-title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.14;
	overflow-wrap: anywhere;
}

.tsb-card-title a {
	color: var(--tsb-ink);
	text-decoration: none;
}

.tsb-card-title a:hover {
	color: #2f5f4f;
}

.tsb-card-meta,
.tsb-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--tsb-muted);
	font-size: 0.9rem;
	font-weight: 700;
}

.tsb-card-excerpt p {
	margin: 0;
	color: var(--tsb-muted);
}

.tsb-read-more {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--tsb-ink);
	border-radius: 999px;
	background: var(--tsb-ink);
	color: var(--tsb-surface);
	font-size: 0.9rem;
	font-weight: 850;
	text-decoration: none;
}

.tsb-read-more:hover {
	background: var(--tsb-lime);
	color: var(--tsb-ink);
}

.tsb-pagination {
	margin-top: 28px;
}

.tsb-pagination-list {
	justify-content: center;
}

.tsb-page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--tsb-line);
	border-radius: 999px;
	background: var(--tsb-surface);
	color: var(--tsb-ink);
	font-weight: 850;
	text-decoration: none;
}

.tsb-current,
.tsb-page-number:hover {
	border-color: var(--tsb-ink);
	background: var(--tsb-ink);
	color: var(--tsb-surface);
}

.tsb-empty-state {
	padding: 28px;
	background: var(--tsb-surface);
}

.tsb-empty-title {
	margin: 0 0 8px;
	font-size: 1.4rem;
}

.tsb-empty-text {
	margin: 0;
	color: var(--tsb-muted);
}

.tsb-single-main,
.tsb-page-main {
	padding-block: 48px 64px;
}

.tsb-article-shell,
.tsb-page-shell {
	width: 80vw;
	max-width: 900px;
	margin-inline: auto;
}

.tsb-single-header,
.tsb-page-header {
	display: grid;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--tsb-line);
}

.tsb-single-title,
.tsb-page-title {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1.02;
	overflow-wrap: anywhere;
}

.tsb-single-meta-divider {
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--tsb-muted);
}

.tsb-entry-content {
	color: #20251e;
	font-size: 1.06rem;
	line-height: 1.78;
}

.tsb-entry-content > * {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.tsb-entry-content h2,
.tsb-entry-content h3,
.tsb-entry-content h4 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: var(--tsb-ink);
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.tsb-entry-content h2 {
	font-size: 1.8rem;
}

.tsb-entry-content h3 {
	font-size: 1.45rem;
}

.tsb-entry-content h4 {
	font-size: 1.22rem;
}

.tsb-entry-content p,
.tsb-entry-content li {
	overflow-wrap: anywhere;
}

.tsb-entry-content a {
	color: #2c6b59;
	font-weight: 750;
}

.tsb-entry-content blockquote {
	margin-inline: 0;
	padding: 16px 18px;
	border-left: 5px solid var(--tsb-lime);
	border-radius: var(--tsb-radius);
	background: var(--tsb-surface);
	color: var(--tsb-ink);
}

.tsb-entry-content figure {
	margin-inline: 0;
}

.tsb-entry-content img {
	border-radius: var(--tsb-radius);
}

.tsb-entry-content pre,
.tsb-entry-content code {
	border-radius: 6px;
	background: #11150f;
	color: #f6f6eb;
}

.tsb-entry-content code {
	padding: 0.14em 0.32em;
}

.tsb-entry-content pre {
	overflow-x: auto;
	padding: 16px;
}

.tsb-entry-content pre code {
	padding: 0;
	background: transparent;
}

.tsb-entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.tsb-entry-content th,
.tsb-entry-content td {
	padding: 10px;
	border: 1px solid var(--tsb-line);
}

.tsb-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.tsb-single-footer {
	display: grid;
	gap: 24px;
	margin-top: 38px;
	padding-top: 26px;
	border-top: 1px solid var(--tsb-line);
}

.tsb-post-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.tsb-post-nav-item a {
	display: grid;
	gap: 4px;
	min-height: 86px;
	padding: 14px;
	border: 1px solid var(--tsb-line);
	border-radius: var(--tsb-radius);
	background: var(--tsb-surface);
	color: var(--tsb-ink);
	text-decoration: none;
}

.tsb-post-nav-item a:hover {
	border-color: var(--tsb-ink);
	background: #f9ffe2;
}

.tsb-post-nav-label {
	color: var(--tsb-muted);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.tsb-post-nav-title {
	font-weight: 850;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.tsb-footer {
	border-top: 1px solid rgba(16, 19, 15, 0.12);
	background: var(--tsb-charcoal);
	color: var(--tsb-surface);
}

.tsb-footer-inner {
	display: grid;
	gap: 24px;
	padding-block: 34px;
}

.tsb-footer-title {
	color: var(--tsb-surface);
}

.tsb-footer-text,
.tsb-widget,
.tsb-footer-bottom {
	color: rgba(255, 253, 245, 0.72);
}

.tsb-widget-title {
	margin: 0 0 10px;
	color: var(--tsb-surface);
	font-size: 1rem;
}

.tsb-widget p,
.tsb-footer-bottom p {
	margin: 0;
}

.tsb-footer-menu-list {
	display: grid;
	gap: 6px;
}

.tsb-footer-menu .tsb-menu-link {
	min-height: 34px;
	padding: 5px 0;
	color: rgba(255, 253, 245, 0.78);
}

.tsb-footer-menu .tsb-menu-link:hover {
	border-color: transparent;
	background: transparent;
	color: var(--tsb-lime);
}

.tsb-footer-bottom {
	padding-block: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.86rem;
}

@media (min-width: 680px) {
	.tsb-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsb-post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (min-width: 820px) {
	.tsb-header-inner {
		grid-template-columns: auto 1fr;
		min-height: 82px;
	}

	.tsb-nav-toggle {
		display: none;
	}

	.tsb-navigation {
		display: block;
		grid-column: auto;
		justify-self: end;
	}

	.tsb-menu-list {
		align-items: center;
		justify-content: flex-end;
		padding-top: 0;
	}

	.tsb-menu-menu-item-has-children {
		position: relative;
	}

	.tsb-menu-sub-menu {
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
		z-index: 20;
		min-width: 220px;
		opacity: 0;
		pointer-events: none;
		transform: translateY(6px);
		transition: opacity 150ms ease, transform 150ms ease;
	}

	.tsb-menu-menu-item-has-children:hover > .tsb-menu-sub-menu,
	.tsb-menu-menu-item-has-children:focus-within > .tsb-menu-sub-menu {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.tsb-hero {
		padding-block: 64px 72px;
	}

	.tsb-hero-layout {
		grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1fr);
		gap: 34px;
	}

	.tsb-hero-title {
		font-size: 4.45rem;
	}

	.tsb-mosaic {
		grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
	}

	.tsb-mosaic-feature {
		grid-row: span 2;
		min-height: 430px;
	}

	.tsb-mosaic-image,
	.tsb-mosaic-pattern {
		min-height: 430px;
	}

	.tsb-lime-card {
		min-height: 200px;
	}

	.tsb-single-title,
	.tsb-page-title {
		font-size: 3.35rem;
	}

	.tsb-footer-inner {
		grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(140px, 0.6fr);
		align-items: start;
	}
}

@media (min-width: 1040px) {
	.tsb-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}
