/*
Theme Name: Tradewind
Theme URI: https://thebighead.ca/free-themes/tradewind
Author: The Big Head
Author URI: https://thebighead.ca/
Description: WooCommerce-ready shop theme with a filterable product grid, quick-view cart drawer and a distraction-free checkout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradewind
Tags: e-commerce, one-column, two-columns, left-sidebar, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks, editor-style

Tradewind is free software distributed under the terms of the GNU GPL.
*/
/* ==========================================================================
   Tradewind — foundation
   Reset, typography, WordPress core classes, forms, comments and widgets.
   The theme's own personality lives further down, in the design section.
   ========================================================================== */

:root {
	--tradewind-accent: #0a3d62;
	--tradewind-accent-2: #e58e26;
	--tradewind-ink: #0f1418;
	--tradewind-paper: #ffffff;
	--tradewind-muted: #5d6b78;

	--tradewind-surface: #ffffff;
	--tradewind-surface-2: color-mix(in srgb, #0f1418 4%, #ffffff);
	--tradewind-line: color-mix(in srgb, #0f1418 14%, #ffffff);

	--tradewind-radius: 8px;
	--tradewind-wrap: 1340px;
	--tradewind-measure: 68ch;
	--tradewind-gap: clamp(20px, 4vw, 40px);

	--tradewind-font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--tradewind-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tradewind-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--tradewind-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px -12px rgb(0 0 0 / 18%);
}

/* Dark scheme. `auto` follows the device; the explicit classes win over it,
   which is why the class selector is repeated outside the media query. */
@media (prefers-color-scheme: dark) {
	.scheme-auto {
		--tradewind-ink: #e9ecf1;
		--tradewind-paper: #0f1116;
		--tradewind-muted: #9aa3b2;
		--tradewind-surface: #0f1116;
		--tradewind-surface-2: #171a21;
		--tradewind-line: #262b35;
		--tradewind-shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -12px rgb(0 0 0 / 60%);
	}
}

.scheme-dark {
	--tradewind-ink: #e9ecf1;
	--tradewind-paper: #0f1116;
	--tradewind-muted: #9aa3b2;
	--tradewind-surface: #0f1116;
	--tradewind-surface-2: #171a21;
	--tradewind-line: #262b35;
	--tradewind-shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -12px rgb(0 0 0 / 60%);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

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

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

body {
	margin: 0;
	background: var(--tradewind-paper);
	color: var(--tradewind-ink);
	font-family: var(--tradewind-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--tradewind-font-heading);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

p, ul, ol, dl, table, pre, blockquote, figure {
	margin: 0 0 1.35em;
}

a {
	color: var(--tradewind-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--tradewind-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

blockquote {
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--tradewind-accent);
	color: var(--tradewind-muted);
	font-size: 1.1em;
	font-style: italic;
}

blockquote cite {
	display: block;
	margin-top: 0.6em;
	color: var(--tradewind-muted);
	font-size: 0.85em;
	font-style: normal;
}

code, kbd, samp, pre {
	font-family: var(--tradewind-font-mono);
	font-size: 0.9em;
}

code {
	padding: 0.15em 0.4em;
	border-radius: 4px;
	background: var(--tradewind-surface-2);
}

pre {
	overflow-x: auto;
	padding: 1.1em 1.3em;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
	line-height: 1.5;
}

pre code {
	padding: 0;
	background: none;
}

hr {
	height: 1px;
	margin: 2.5em 0;
	border: 0;
	background: var(--tradewind-line);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 0.6em 0.8em;
	border-bottom: 1px solid var(--tradewind-line);
	text-align: left;
}

th {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   WordPress core classes — required by the theme review guidelines
   -------------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip: auto !important;
	clip-path: none;
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-paper);
	box-shadow: var(--tradewind-shadow);
	color: var(--tradewind-accent);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.alignleft {
	float: left;
	margin: 0.3em 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1.2em 1.6em;
}

.aligncenter {
	clear: both;
	margin-right: auto;
	margin-left: auto;
}

.alignnone {
	margin: 0 0 1.35em;
}

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1.2em;
	}
}

.alignwide {
	width: min(1180px, 92vw);
	max-width: none;
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.35em;
}

.wp-caption img[class*="wp-image-"] {
	margin: 0 auto;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	margin-top: 0.6em;
	color: var(--tradewind-muted);
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: center;
}

.sticky .entry-title::after {
	content: "★";
	margin-left: 0.4em;
	color: var(--tradewind-accent-2);
	font-size: 0.7em;
	vertical-align: super;
}

.bypostauthor > .comment-body .comment-author::after {
	content: attr(data-author-label);
}

.bypostauthor > .comment-body .fn::after {
	content: " ✓";
	color: var(--tradewind-accent);
}

.post-password-form input[type="password"] {
	margin-right: 0.5em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
	width: min(var(--tradewind-wrap), calc(100% - 2 * clamp(18px, 5vw, 48px)));
	margin-inline: auto;
}

.site-content {
	padding: clamp(32px, 6vw, 72px) 0;
}

.layout-main {
	display: grid;
	gap: var(--tradewind-gap);
	align-items: start;
}

.sidebar-right .layout-main,
.sidebar-left .layout-main {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.sidebar-left .layout-main > .content-area {
	order: 2;
}

.sidebar-none .layout-main {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
	.sidebar-right .layout-main,
	.sidebar-left .layout-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar-left .layout-main > .content-area {
		order: 0;
	}
}

.entry-content > * {
	max-width: var(--tradewind-measure);
	margin-inline: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-image.alignwide,
.entry-content > .wp-block-image.alignfull {
	max-width: none;
}

.sidebar-none .entry-content > .alignwide {
	width: min(1180px, 100%);
}

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

.site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--tradewind-line);
	background: var(--tradewind-surface);
}

.site-header-inner {
	display: flex;
	gap: 24px;
	align-items: center;
	min-height: 74px;
	padding: 14px 0;
}

.site-branding {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 2px 14px;
	align-items: center;
	margin-right: auto;
}

.custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

.custom-logo {
	width: auto;
	max-height: 52px;
}

.site-title {
	margin: 0;
	font-family: var(--tradewind-font-heading);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

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

.site-description {
	flex-basis: 100%;
	margin: 0;
	color: var(--tradewind-muted);
	font-size: 0.85rem;
}

/* Navigation */

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--tradewind-radius);
	color: var(--tradewind-ink);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
	background: var(--tradewind-surface-2);
	color: var(--tradewind-accent);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--tradewind-accent);
}

.submenu-toggle {
	position: absolute;
	top: 50%;
	right: -6px;
	padding: 4px 8px;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font-size: 0.7rem;
}

.main-navigation .sub-menu {
	position: absolute;
	z-index: 60;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	min-width: 220px;
	padding: 6px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface);
	box-shadow: var(--tradewind-shadow);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.is-open > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: flex;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface);
	color: inherit;
	cursor: pointer;
}

.menu-toggle-bars {
	display: grid;
	gap: 4px;
	width: 20px;
}

.menu-toggle-bars span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.header-cta {
	flex: 0 0 auto;
}

@media (max-width: 860px) {
	.menu-toggle {
		display: inline-flex;
		order: 3;
	}

	.main-navigation {
		flex-basis: 100%;
		order: 4;
		display: none;
	}

	.main-navigation.is-open {
		display: block;
		padding-top: 10px;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation a {
		padding: 13px 10px;
		border-bottom: 1px solid var(--tradewind-line);
		border-radius: 0;
	}

	.main-navigation .sub-menu {
		position: static;
		display: flex;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}

	.submenu-toggle {
		display: none;
	}

	.site-header-inner {
		flex-wrap: wrap;
	}
}

/* --------------------------------------------------------------------------
   Posts
   -------------------------------------------------------------------------- */

.page-header {
	margin-bottom: clamp(24px, 4vw, 44px);
}

.page-title {
	margin-bottom: 0.25em;
}

.archive-description {
	max-width: var(--tradewind-measure);
	color: var(--tradewind-muted);
}

.archive-count {
	margin: 0;
	color: var(--tradewind-muted);
	font-size: 0.9rem;
}

.post-card {
	margin-bottom: clamp(28px, 4vw, 44px);
	padding-bottom: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--tradewind-line);
}

.post-card:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.post-card-media img {
	width: 100%;
	border-radius: var(--tradewind-radius);
	object-fit: cover;
}

.post-card-body {
	padding-top: 18px;
}

.post-card .entry-title {
	margin-bottom: 0.3em;
	font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
}

.post-card .entry-title a {
	color: inherit;
	text-decoration: none;
}

.post-card .entry-title a:hover,
.post-card .entry-title a:focus-visible {
	color: var(--tradewind-accent);
	text-decoration: underline;
}

.entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.entry-categories a {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--tradewind-surface-2);
	color: var(--tradewind-accent);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 14px;
	color: var(--tradewind-muted);
	font-size: 0.85rem;
}

.entry-meta a {
	color: inherit;
}

.entry-summary {
	color: var(--tradewind-muted);
}

.entry-summary p:last-child {
	margin-bottom: 0;
}

.read-more {
	display: inline-block;
	margin-top: 14px;
	font-weight: 700;
	text-decoration: none;
}

.read-more:hover,
.read-more:focus-visible {
	text-decoration: underline;
}

.single-entry .entry-header {
	max-width: var(--tradewind-measure);
	margin-inline: auto;
	margin-bottom: clamp(22px, 3vw, 36px);
}

.entry-media {
	margin-bottom: clamp(24px, 4vw, 44px);
}

.entry-media img {
	width: 100%;
	border-radius: var(--tradewind-radius);
}

.entry-footer {
	max-width: var(--tradewind-measure);
	margin-inline: auto;
	margin-top: clamp(28px, 4vw, 44px);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.entry-tags a {
	padding: 4px 12px;
	border: 1px solid var(--tradewind-line);
	border-radius: 999px;
	color: var(--tradewind-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.entry-tags a:hover,
.entry-tags a:focus-visible {
	border-color: var(--tradewind-accent);
	color: var(--tradewind-accent);
}

.author-box {
	display: flex;
	gap: 18px;
	padding: 22px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
}

.author-avatar {
	flex: 0 0 auto;
	border-radius: 50%;
}

.author-name {
	margin-bottom: 0.2em;
	font-size: 1.1rem;
}

.author-bio {
	margin-bottom: 0.5em;
	color: var(--tradewind-muted);
	font-size: 0.94rem;
}

.author-link {
	font-size: 0.9rem;
	font-weight: 700;
}

.post-navigation {
	max-width: var(--tradewind-measure);
	margin: clamp(32px, 5vw, 56px) auto 0;
}

.post-navigation .nav-links {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.post-navigation a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	color: inherit;
	text-decoration: none;
}

.post-navigation a:hover,
.post-navigation a:focus-visible {
	border-color: var(--tradewind-accent);
}

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

.nav-label {
	display: block;
	margin-bottom: 4px;
	color: var(--tradewind-muted);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nav-title {
	font-weight: 700;
}

/* Pagination */

.pagination {
	margin-top: clamp(32px, 5vw, 56px);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible {
	border-color: var(--tradewind-accent);
	color: var(--tradewind-accent);
}

.pagination .page-numbers.current {
	border-color: var(--tradewind-accent);
	background: var(--tradewind-accent);
	color: #fff;
}

.pagination .dots {
	border: 0;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Forms and buttons
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface);
	color: var(--tradewind-ink);
	/* 16px minimum: anything smaller makes iOS Safari zoom on focus. */
	font-family: inherit;
	font-size: 16px;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	border-color: var(--tradewind-accent);
	outline-offset: 0;
}

label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}

button,
.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-accent);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
	filter: brightness(1.08);
	color: #fff;
}

.button-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--tradewind-line);
	background: transparent;
	color: var(--tradewind-ink);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1 1 auto;
}

.search-form .search-submit {
	flex: 0 0 auto;
	padding: 12px 18px;
}

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

.comments-area {
	max-width: var(--tradewind-measure);
	margin: clamp(40px, 6vw, 72px) auto 0;
	padding-top: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--tradewind-line);
}

.comments-title {
	margin-bottom: 1em;
	font-size: 1.35rem;
}

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

.comment-list .children {
	margin-top: 20px;
	padding-left: clamp(14px, 4vw, 34px);
	border-left: 2px solid var(--tradewind-line);
}

.comment-body {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tradewind-line);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
	margin-bottom: 10px;
}

.comment-author img {
	display: inline-block;
	margin-right: 8px;
	border-radius: 50%;
	vertical-align: middle;
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-metadata,
.comment-metadata a {
	color: var(--tradewind-muted);
	font-size: 0.83rem;
	text-decoration: none;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-respond {
	margin-top: 32px;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-notes,
.comment-form-cookies-consent label {
	color: var(--tradewind-muted);
	font-size: 0.88rem;
	font-weight: 400;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 4px;
}

.no-comments {
	color: var(--tradewind-muted);
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Widgets and sidebar
   -------------------------------------------------------------------------- */

.widget-area {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 28px;
}

@media (max-width: 900px) {
	.widget-area {
		position: static;
	}
}

.widget {
	padding: 20px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
	font-size: 0.95rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	margin-bottom: 0.8em;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

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

.widget li {
	padding: 7px 0;
	border-bottom: 1px solid var(--tradewind-line);
}

.widget li:last-child {
	border-bottom: 0;
}

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

.widget a:hover,
.widget a:focus-visible {
	color: var(--tradewind-accent);
	text-decoration: underline;
}

.widget .sub-menu,
.widget .children {
	padding-left: 14px;
}

.wp-calendar-table {
	font-size: 0.85rem;
}

.wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 0.85rem;
}

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

.site-footer {
	margin-top: clamp(40px, 7vw, 96px);
	border-top: 1px solid var(--tradewind-line);
	background: var(--tradewind-surface-2);
	font-size: 0.94rem;
}

.footer-widgets {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding: clamp(36px, 5vw, 60px) 0;
}

.footer-widgets .widget {
	padding: 0;
	border: 0;
	background: none;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0;
	border-top: 1px solid var(--tradewind-line);
	color: var(--tradewind-muted);
	font-size: 0.88rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-navigation ul,
.social-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-navigation a,
.social-navigation a {
	color: inherit;
	text-decoration: none;
}

.footer-navigation a:hover,
.social-navigation a:hover,
.footer-navigation a:focus-visible,
.social-navigation a:focus-visible {
	color: var(--tradewind-accent);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-404 {
	max-width: 640px;
	margin-inline: auto;
	padding: clamp(30px, 6vw, 70px) 0;
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--tradewind-accent);
	font-family: var(--tradewind-font-heading);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 800;
	line-height: 1;
	opacity: 0.25;
}

.error-404 .lead {
	color: var(--tradewind-muted);
}

.error-actions {
	display: grid;
	gap: 14px;
	max-width: 420px;
	margin: 28px auto 0;
}

.error-recent {
	margin-top: 44px;
	text-align: left;
}

.error-recent ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.error-recent li {
	padding: 10px 0;
	border-bottom: 1px solid var(--tradewind-line);
}

.search-result {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tradewind-line);
}

.search-result .entry-title {
	margin-bottom: 0.2em;
	font-size: 1.25rem;
}

.result-url {
	margin: 0 0 0.5em;
	color: var(--tradewind-accent);
	font-family: var(--tradewind-font-mono);
	font-size: 0.82rem;
	word-break: break-all;
}

/* --------------------------------------------------------------------------
   Blocks
   -------------------------------------------------------------------------- */

.wp-block-pullquote,
.wp-block-quote.is-style-large {
	border: 0;
	border-top: 2px solid var(--tradewind-accent);
	border-bottom: 2px solid var(--tradewind-accent);
	padding: 1.4em 0;
	text-align: center;
}

.wp-block-separator {
	max-width: 120px;
	border: 0;
	border-top: 2px solid var(--tradewind-line);
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--tradewind-line);
}

.wp-block-code {
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
}

.wp-block-image img {
	border-radius: var(--tradewind-radius);
}

.wp-block-cover {
	border-radius: var(--tradewind-radius);
}

/* Reveal animation. Elements are visible by default and only hidden once the
   script confirms IntersectionObserver exists — see navigation.js. */
.reveal-armed {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-armed.is-visible {
	opacity: 1;
	transform: none;
}


/* ==========================================================================
   Tradewind — design
   ========================================================================== */

/* Tradewind is a shop, so every decision here is about getting to the product
   and then out of the way of the checkout. */

.site-header-inner {
	min-height: 78px;
}

.tw-header-tools {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	align-items: center;
}

.tw-icon-btn {
	display: inline-grid;
	position: relative;
	width: 44px;
	height: 44px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface);
	color: inherit;
	cursor: pointer;
	place-items: center;
	text-decoration: none;
}

.tw-icon-btn:hover,
.tw-icon-btn:focus-visible {
	border-color: var(--tradewind-accent);
	color: var(--tradewind-accent);
}

.tw-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--tradewind-accent-2);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	place-items: center;
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */

.woocommerce ul.products,
.tw-products {
	display: grid;
	gap: clamp(16px, 2.4vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product,
.tw-product {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	text-align: left;
}

.woocommerce ul.products li.product a img,
.tw-product img {
	width: 100%;
	margin: 0 0 14px;
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.woocommerce ul.products li.product:hover a img {
	opacity: 0.86;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.tw-product h3 {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-family: var(--tradewind-font-body);
	font-size: 0.98rem !important;
	font-weight: 600;
	letter-spacing: 0;
}

.woocommerce ul.products li.product .price,
.tw-product .price {
	display: block;
	margin-bottom: 12px;
	color: var(--tradewind-ink) !important;
	font-size: 1rem !important;
	font-weight: 700;
}

.woocommerce ul.products li.product .price del {
	margin-right: 6px;
	color: var(--tradewind-muted) !important;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
	background: none;
	color: var(--tradewind-accent-2) !important;
	text-decoration: none;
}

.woocommerce span.onsale,
.tw-badge {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	right: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--tradewind-accent-2);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.6;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .button,
.tw-product .button {
	width: 100%;
	margin: 0 !important;
	padding: 11px 16px !important;
	font-size: 0.88rem !important;
}

.woocommerce .star-rating {
	margin-bottom: 8px;
	color: var(--tradewind-accent-2);
	font-size: 0.8em;
}

.tw-stock {
	margin-bottom: 8px;
	color: var(--tradewind-muted);
	font-size: 0.8rem;
}

.tw-stock.is-low {
	color: var(--tradewind-accent-2);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.tw-shop {
	display: grid;
	gap: var(--tradewind-gap);
	grid-template-columns: 250px minmax(0, 1fr);
	align-items: start;
}

@media (max-width: 900px) {
	.tw-shop {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tw-filters {
	position: sticky;
	top: 24px;
	padding: 22px;
	border: 1px solid var(--tradewind-line);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
	font-size: 0.94rem;
}

@media (max-width: 900px) {
	.tw-filters {
		position: static;
	}
}

.tw-filter-group + .tw-filter-group {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--tradewind-line);
}

.tw-filter-group h3 {
	margin-bottom: 0.7em;
	font-family: var(--tradewind-font-body);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tw-filter-group label {
	display: flex;
	gap: 9px;
	align-items: center;
	margin-bottom: 0;
	padding: 6px 0;
	font-weight: 400;
}

.tw-filter-group input[type="checkbox"] {
	width: auto;
}

.woocommerce .woocommerce-result-count {
	margin: 0;
	color: var(--tradewind-muted);
	font-size: 0.9rem;
}

.woocommerce .woocommerce-ordering {
	margin: 0;
}

.tw-shop-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tradewind-line);
}

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	margin-bottom: 2em;
}

.woocommerce div.product .product_title {
	font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
}

.woocommerce div.product p.price {
	color: var(--tradewind-ink);
	font-size: 1.6rem;
	font-weight: 800;
}

.woocommerce div.product form.cart .button {
	min-height: 52px;
	padding: 14px 30px;
	font-size: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-bottom-color: var(--tradewind-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: var(--tradewind-radius) var(--tradewind-radius) 0 0;
	border-color: var(--tradewind-line);
	background: var(--tradewind-surface-2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--tradewind-surface);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--tradewind-accent);
	border-radius: var(--tradewind-radius);
	background: var(--tradewind-surface-2);
	color: var(--tradewind-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--tradewind-accent);
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

.tw-drawer {
	position: fixed;
	z-index: 200;
	inset: 0 0 0 auto;
	width: min(400px, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--tradewind-surface);
	box-shadow: -20px 0 60px -30px rgb(0 0 0 / 60%);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	visibility: hidden;
}

.tw-drawer.is-open {
	transform: none;
	visibility: visible;
}

.tw-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--tradewind-line);
}

.tw-drawer-head h2 {
	margin: 0;
	font-size: 1.1rem;
}

.tw-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 20px;
}

.tw-drawer-foot {
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--tradewind-line);
	background: var(--tradewind-surface-2);
}

.tw-drawer-foot .button {
	width: 100%;
	margin-top: 10px;
}

.tw-scrim {
	position: fixed;
	z-index: 199;
	inset: 0;
	background: rgb(0 0 0 / 45%);
	opacity: 0;
	transition: opacity 0.28s ease;
	visibility: hidden;
}

.tw-scrim.is-open {
	opacity: 1;
	visibility: visible;
}

/* --------------------------------------------------------------------------
   Checkout — everything that is not the form is removed
   -------------------------------------------------------------------------- */

.woocommerce-checkout .site-header .main-navigation,
.woocommerce-checkout .site-header .header-cta,
.woocommerce-checkout .site-header .menu-toggle,
.woocommerce-checkout .tw-header-tools,
.woocommerce-checkout .site-footer .footer-widgets,
.woocommerce-checkout .tw-drawer,
.woocommerce-checkout .tw-scrim {
	display: none;
}

.woocommerce-checkout .site-header-inner {
	justify-content: center;
}

.woocommerce-checkout .site-branding {
	margin-right: 0;
	justify-content: center;
}

.woocommerce-checkout .woocommerce {
	max-width: 1000px;
	margin-inline: auto;
}

.tw-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	justify-content: center;
	margin: 24px 0 0;
	color: var(--tradewind-muted);
	font-size: 0.85rem;
}
