/*
Theme Name: Pickleball Scout HQ
Theme URI: https://pickleballscouthq.com
Description: Hand-built theme for Pickleball Scout HQ: court finder, gear guides and magazine. Server-rendered, with structured data and llms.txt for search engines and AI assistants.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: pshq
*/

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("fonts/newsreader.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--ground: #EEF3F6;
	--paper: #FFFFFF;
	--ink: #12284A;
	--ink-soft: #2B3D58;
	--court: #2459BE;
	--surround: #1F7355;
	--ball: #E6EE4B;
	--rule: #B9C6D3;
	--tint: #C9D8E6;
	--on-ink-soft: #C9D5E3;
	--on-ink-rule: #4A5E80;
	--sans: "Bricolage Grotesque", system-ui, sans-serif;
	--serif: "Newsreader", Georgia, serif;
	--gutter: 5%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--court); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}
.on-ink a:focus-visible, .on-ink button:focus-visible { outline-color: var(--ball); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
p { margin: 0; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 10; width: auto; height: auto; clip: auto;
	background: var(--ball); color: var(--ink); padding: 12px 16px; font-weight: 700;
}

/* Header */
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px; padding: 20px var(--gutter);
}
.brand {
	display: flex; align-items: center; gap: 12px; min-height: 44px;
	text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em;
}
.brand-ball {
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--ball); border: 2px solid var(--ink);
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
	display: flex; align-items: center; min-height: 44px;
	text-decoration: none; font-weight: 600;
}
.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Shared pieces */
.section { padding: 88px var(--gutter); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--ball { background: var(--ball); padding-block: 72px; }
.section-title { font-size: clamp(2.1rem, 3.6vw, 3.25rem); }
.lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; max-width: 34rem; color: var(--ink-soft); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.kicker { font-weight: 700; color: var(--court); }
.kicker a { color: inherit; text-decoration: none; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field {
	flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px;
	font: inherit; color: var(--ink); background: #fff;
	border: 2px solid var(--ink); border-radius: 4px;
}
.field::placeholder { color: #5A6B82; }
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 0 26px; font: inherit; font-weight: 700;
	color: #fff; background: var(--court); border: 2px solid var(--ink); border-radius: 4px;
	cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--ink); color: #fff; }
.button--ink { background: var(--ink); }
.button--ink:hover { background: var(--court); }
.button--ball { background: var(--ball); color: var(--ink); border-color: var(--ball); width: 100%; }
.button--ball:hover { background: #fff; color: var(--ink); border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
	display: flex; align-items: center; min-height: 44px; padding: 0 16px;
	font-size: 0.95rem; font-weight: 600; border: 1.5px solid var(--ink); border-radius: 22px;
}
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding: 40px var(--gutter) 88px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero-title { font-size: clamp(2.75rem, 5.8vw, 5.5rem); line-height: 0.96; letter-spacing: -0.03em; max-width: 13ch; }
.hero-lede { margin-top: 28px; font-family: var(--serif); font-size: 1.35rem; max-width: 34rem; color: var(--ink-soft); }
.court-search { margin-top: 40px; max-width: 36rem; }

.court-figure { flex: 1 1 340px; min-width: 0; max-width: 440px; margin: 0 0 0 auto; }
.court-surround { position: relative; background: var(--surround); padding: 11% 17%; color: #fff; font-size: 0.9rem; font-weight: 600; }
.court-dim-w { position: absolute; top: 3.2%; left: 0; right: 0; text-align: center; }
.court-dim-l { position: absolute; left: 5%; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; }
.court { position: relative; aspect-ratio: 20 / 44; background: var(--court); border: 3px solid #fff; }
.court i { position: absolute; background: #fff; }
.court .cl-top { left: 50%; top: 0; height: 34.09%; width: 3px; margin-left: -1.5px; }
.court .cl-bottom { left: 50%; bottom: 0; height: 34.09%; width: 3px; margin-left: -1.5px; }
.court .nvz-top { left: 0; right: 0; top: 34.09%; height: 3px; margin-top: -1.5px; }
.court .nvz-bottom { left: 0; right: 0; top: 65.91%; height: 3px; margin-top: -1.5px; }
.court .net { left: -9%; right: -9%; top: 50%; height: 5px; margin-top: -2.5px; background: var(--ink); }
.court .ball { left: 68%; top: 80%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--ball); border: 2px solid var(--ink); }
.court b { position: absolute; left: 0; right: 0; height: 15.91%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 600; }
.court .k-top { top: 34.09%; }
.court .k-bottom { top: 50%; }
.court-figure figcaption { margin-top: 14px; font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); }

/* Gear index and report card */
.gear-index { margin: 36px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.gear-index li { border-top: 1px solid var(--rule); }
.gear-index li:first-child { border-top: 2px solid var(--ink); }
.gear-index a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 20px 0; text-decoration: none; }
.gear-index strong { flex: 0 0 9rem; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.gear-index span { flex: 1 1 260px; color: var(--ink-soft); }

.report { flex: 1 1 360px; min-width: 0; max-width: 480px; background: var(--ink); color: #fff; padding: 36px; }
.report-label { font-size: 0.95rem; font-weight: 600; color: var(--ball); }
.report-name { margin: 10px 0 24px; font-size: 2rem; }
.report-name a { color: #fff; text-decoration: none; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--on-ink-rule); }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--on-ink-rule); }
.specs dt { color: var(--on-ink-soft); }
.specs dd { text-align: right; font-weight: 600; padding-left: 16px; }
.report-verdict { margin: 24px 0; font-family: var(--serif); font-size: 1.15rem; }
.report-note { margin-top: 12px; font-size: 0.9rem; color: var(--on-ink-soft); }
.specs--light { border-bottom-color: var(--rule); }
.specs--light dt, .specs--light dd { border-top-color: var(--rule); }
.specs--light dt { color: var(--ink-soft); }

/* Magazine */
.lead-story { flex: 999 1 480px; min-width: 0; }
.lead-story .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--tint); }
.lead-story .kicker { margin-top: 24px; }
.lead-story h3 { margin-top: 6px; font-size: clamp(1.9rem, 3.2vw, 2.9rem); max-width: 18ch; }
.lead-story h3 a, .story h3 a { text-decoration: none; }
.lead-story .dek { margin-top: 14px; font-family: var(--serif); font-size: 1.25rem; max-width: 36rem; color: var(--ink-soft); }
.story-list { flex: 1 1 360px; min-width: 0; max-width: 520px; }
.story { padding: 22px 0; border-top: 1px solid var(--rule); }
.story:first-child { padding-top: 0; border-top: 0; }
.story h3 { margin-top: 4px; font-size: 1.45rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.story .dek { margin-top: 6px; color: var(--ink-soft); }

/* Quick answers */
.answers { display: flex; flex-wrap: wrap; gap: 40px 56px; margin-top: 40px; }
.answer { flex: 1 1 320px; min-width: 0; max-width: 560px; }
.answer h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; color: var(--ball); letter-spacing: 0; }
.answer h3 a { color: inherit; text-decoration: none; }
.answer-body { margin-top: 8px; font-family: var(--serif); font-size: 1.2rem; }
.answer-body p + p { margin-top: 0.6em; }
.answers--light .answer h3 { color: var(--ink); }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; }
.newsletter-copy { flex: 999 1 420px; min-width: 0; }
.newsletter-copy p { margin-top: 12px; font-family: var(--serif); font-size: 1.25rem; max-width: 32rem; }
.newsletter form { flex: 1 1 380px; min-width: 0; max-width: 520px; }

.form-message { margin-bottom: 14px; padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 600; border-radius: 4px; }
.form-message--error { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.credit { margin-top: 32px; font-size: 0.9rem; color: var(--ink-soft); }

/* Inner pages */
.page-head { padding: 40px var(--gutter) 48px; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; max-width: 20ch; }
.page-head .lede { margin-top: 20px; font-size: 1.3rem; }
.page-head .meta { margin-top: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.page-body { background: var(--paper); padding: 56px var(--gutter) 88px; }
.crumbs { margin-bottom: 18px; font-size: 0.95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-soft); }
.featured { margin: 0 0 40px; max-width: 60rem; }
.featured img { width: 100%; }

.prose { max-width: 40rem; font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--sans); margin-top: 1.8em; }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.4rem; font-weight: 700; }
.prose a { color: var(--court); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--ball); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
.prose th { border-top: 2px solid var(--ink); }
.table-scroll, .prose .wp-block-table { overflow-x: auto; }

.disclosure { max-width: 40rem; margin-bottom: 32px; padding: 14px 18px; background: var(--ground); font-size: 0.98rem; }
.gear-panel { flex: 1 1 340px; min-width: 0; max-width: 440px; }
.gear-panel .verdict { margin: 20px 0; font-family: var(--serif); font-size: 1.15rem; }
.gear-panel .button { width: 100%; }
.gear-panel .report-note { color: var(--ink-soft); }

.listing { margin: 0; padding: 0; list-style: none; max-width: 60rem; }
.listing > li { padding: 24px 0; border-top: 1px solid var(--rule); }
.listing > li:first-child { border-top: 2px solid var(--ink); }
.listing h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-top: 4px; }
.listing h2 a { text-decoration: none; }
.listing .dek { margin-top: 6px; color: var(--ink-soft); max-width: 44rem; }
.listing .place { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; font-size: 0.9rem; font-weight: 600; border: 1.5px solid var(--ink); border-radius: 16px; }
.finder { max-width: 40rem; margin-bottom: 40px; }
.empty { max-width: 40rem; font-family: var(--serif); font-size: 1.2rem; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 600;
}
.pagination .current { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--paper); padding: 56px var(--gutter) 40px; }
.section--paper + .site-footer, .page-body + .site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px 72px; justify-content: space-between; }
.footer-about { flex: 1 1 320px; min-width: 0; max-width: 30rem; }
.footer-about strong { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.footer-about p { margin-top: 10px; color: var(--ink-soft); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; }

@media (max-width: 600px) {
	.section { padding-block: 64px; }
	.hero { padding-bottom: 64px; }
	.court-figure { margin-inline: auto; }
	.report { padding: 28px 22px; }
}
