/* ==========================================================================
   No Wake Tools — Base Stylesheet (structural only)
   Visual styles live in assets/css/variants/*.css
   ========================================================================== */

/* ---------- Structural Custom Properties ---------- */
:root {
	--nwt-max-width: 1100px;
	--nwt-narrow: 720px;
}

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

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

body {
	margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75em 1.5em;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	background: var(--nwt-accent);
	color: var(--nwt-white);
	font-weight: 600;
	text-decoration: none;
}

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

/* ---------- Layout ---------- */
.container {
	max-width: var(--nwt-max-width);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.container--narrow {
	max-width: var(--nwt-narrow);
}

/* ---------- Header Structure ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-branding {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.site-title {
	text-decoration: none;
}

.site-title:hover {
	text-decoration: none;
}

.site-tagline {
	margin: 0;
}

/* --- Mobile menu toggle --- */
.menu-toggle {
	display: none;
	background: none;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
}

.menu-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Navigation --- */
.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.nav-list li a {
	text-decoration: none;
}

/* --- Responsive nav --- */
@media (max-width: 640px) {
	.menu-toggle {
		display: flex;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
	}

	.primary-nav.is-open {
		display: block;
	}

	.nav-list {
		flex-direction: column;
	}
}

/* ---------- Buttons (structural) ---------- */
.btn {
	display: inline-block;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}

.btn:hover {
	text-decoration: none;
}

/* ---------- Product Grid Structure ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
	display: flex;
	flex-direction: column;
}

.product-card__desc {
	flex-grow: 1;
}

.product-card .btn--small {
	align-self: flex-start;
}

/* ---------- Tag List Structure ---------- */
.tag-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

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

/* ---------- How It Works Structure ---------- */
.how-it-works__list {
	max-width: var(--nwt-narrow);
}

/* ---------- FAQ Accordion Structure ---------- */
details summary {
	cursor: pointer;
	list-style: none;
}

details summary::-webkit-details-marker {
	display: none;
}

/* ---------- Entry Content Structure ---------- */
.entry-content pre {
	overflow-x: auto;
}

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

/* ---------- Footer Structure ---------- */
.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.site-footer__copy {
	margin: 0;
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.site-footer__nav a {
	text-decoration: none;
}

/* ---------- Post Navigation Structure ---------- */
.post-navigation {
	display: flex;
	justify-content: space-between;
}

/* ---------- Pagination Structure ---------- */
.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-block;
	text-decoration: none;
}

/* ---------- WP Defaults ---------- */
.alignleft {
	float: left;
	margin-right: 1rem;
}

.alignright {
	float: right;
	margin-left: 1rem;
}

.aligncenter {
	margin-inline: auto;
	display: block;
}

.wp-caption {
	max-width: 100%;
}
