/*
Theme Name: The Football Man Cave
Theme URI: https://thefootballmancave.com/
Author: The Football Man Cave
Description: Fast, accessible, mobile-first football community theme with automated news imports.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: football-man-cave
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--fmc-navy: #071426;
	--fmc-blue: #0b3b69;
	--fmc-green: #20d67b;
	--fmc-white: #ffffff;
	--fmc-ink: #132033;
	--fmc-muted: #5d6878;
	--fmc-surface: #f3f6f9;
	--fmc-border: #dce3ea;
	--fmc-width: 75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--fmc-surface);
	color: var(--fmc-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #075d39; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible { outline: .2rem solid var(--fmc-green); outline-offset: .18rem; }
.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; }
.screen-reader-text:focus { top: .5rem; left: .5rem; z-index: 9999; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: var(--fmc-white); color: var(--fmc-ink); }
.site-header { background: var(--fmc-navy); color: var(--fmc-white); border-bottom: .25rem solid var(--fmc-green); }
.site-header__inner, .site-main, .site-footer__inner { width: min(100% - 2rem, var(--fmc-width)); margin-inline: auto; }
.site-header__inner { display: flex; flex-direction: column; gap: .75rem; padding-block: 1rem; }
.site-branding { display: flex; align-items: center; gap: .75rem; }
.custom-logo { max-height: 3rem; width: auto; }
.site-title { margin: 0; color: var(--fmc-white); font-size: clamp(1.25rem, 4vw, 1.8rem); font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.site-description { margin: 0; color: #cdd9e6; font-size: .9rem; }
.primary-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--fmc-white); font-weight: 700; text-decoration: none; }
.primary-menu a:hover { color: var(--fmc-green); }
.site-main { min-height: 65vh; padding-block: clamp(2rem, 5vw, 4rem); }
.archive-header { margin-bottom: 1.5rem; }
.archive-title, .entry-title { margin: 0 0 .5rem; color: var(--fmc-navy); font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.12; }
.news-grid { display: grid; gap: 1.25rem; }
.news-card, .single-news, .page-content { overflow-wrap: anywhere; background: var(--fmc-white); border: 1px solid var(--fmc-border); border-radius: .65rem; box-shadow: 0 .25rem 1rem rgb(7 20 38 / 7%); }
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card__image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card__body, .single-news, .page-content { padding: clamp(1rem, 3vw, 2rem); }
.news-card__title { margin: .3rem 0 .7rem; font-size: 1.25rem; line-height: 1.25; }
.news-card__title a { color: var(--fmc-navy); text-decoration: none; }
.entry-meta { color: var(--fmc-muted); font-size: .9rem; }
.entry-content > * { max-width: 48rem; margin-inline: auto; }
.entry-content > .alignwide { max-width: 68rem; }
.entry-content > .alignfull { max-width: none; }
.entry-content a { overflow-wrap: anywhere; }
.single-news__image { width: 100%; margin-bottom: 1.5rem; border-radius: .4rem; }
.source-link { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--fmc-border); }
.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { padding: .5rem .8rem; background: var(--fmc-white); border: 1px solid var(--fmc-border); border-radius: .3rem; text-decoration: none; }
.page-numbers.current { background: var(--fmc-blue); color: var(--fmc-white); }
.site-footer { background: var(--fmc-navy); color: #cdd9e6; }
.site-footer__inner { padding-block: 2rem; }
.site-footer a { color: var(--fmc-white); }

@media (min-width: 40rem) {
	.site-header__inner { flex-direction: row; align-items: center; justify-content: space-between; }
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
	.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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