/*
Theme Name: Sixman Field
Theme URI: https://sixmanfootball.net/
Description: Clean, fast theme for six-man football news, scores, rankings, rules and history. Works with SportsPress for scores and standings.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sixman-field
License: GPL-2.0-or-later
*/

:root {
	--ink: #12161C;
	--ink-2: #3D4452;
	--muted: #5A6170;
	--ground: #F5F4EF;
	--surface: #FFFFFF;
	--line: #E2E0D8;
	--line-soft: #EFEDE6;
	--accent: #C2410C;
	--accent-on-dark: #FB923C;
	--dark: #12161C;
	--dark-2: #2B3440;
	--on-dark: #F5F4EF;
	--on-dark-muted: #C9CED6;
	--radius: 14px;
	--display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 1000; background: #fff; padding: 12px 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--dark); color: var(--on-dark); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--accent); font-family: var(--display); font-weight: 900; font-size: 22px; color: #fff; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.brand-name span { color: var(--accent-on-dark); }
.brand .custom-logo { max-height: 44px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; color: var(--on-dark); padding: 12px 14px; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--accent-on-dark); }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--dark); border: 1px solid #3A414D; border-radius: 10px; padding: 6px; z-index: 50; flex-direction: column; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }

.header-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #3A414D; background: transparent; color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle { display: none; }
.header-search { display: none; width: 100%; padding-bottom: 16px; }
.header-search.is-open { display: block; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; order: 3; padding-bottom: 12px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 16px; }
}

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); padding: 0 12px; font: 400 15px var(--body); background: #fff; color: var(--ink); }
.site-header .search-field { background: #1E242D; border-color: #3A414D; color: var(--on-dark); }
.search-submit, .button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 700 15px var(--body); cursor: pointer; display: inline-flex; align-items: center; }
.button:hover { color: #fff; filter: brightness(1.08); }
.button.is-light { background: var(--accent-on-dark); color: var(--ink); }

/* Scores strip */
.scores-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.scores-strip .wrap { padding-top: 16px; padding-bottom: 16px; overflow-x: auto; }

/* Layout */
.site-main { padding: 40px 0 64px; }
.stack { display: flex; flex-direction: column; gap: 56px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > .wide { flex: 999 1 560px; min-width: 0; }
.split > .narrow { flex: 1 1 320px; min-width: 0; }

.kicker { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.section-title { margin: 4px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.more-link { font-weight: 600; font-size: 15px; color: var(--accent); }

.intro { margin-bottom: 32px; }
.intro h1 { margin: 6px 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.intro p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 720px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel > h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 900; font-size: 28px; }

/* Cards */
.lead-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.lead-card .thumb { aspect-ratio: 16 / 9; background: var(--dark-2); }
.lead-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-card .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.lead-card h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; }
.lead-card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.meta { font-size: 14px; color: var(--muted); }

.mini-list { display: flex; flex-direction: column; gap: 16px; }
.mini-list > h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.mini-card { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mini-card .thumb { flex: 0 0 88px; height: 72px; border-radius: 8px; background: #DAD7CC; overflow: hidden; }
.mini-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.mini-card .title { font-weight: 700; font-size: 16px; line-height: 1.3; display: block; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 9; background: #DAD7CC; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2, .post-card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.post-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Rules strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fact .num { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--accent); line-height: 1.1; }
.fact .label { font-weight: 700; font-size: 17px; margin: 6px 0 4px; }
.fact p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* History band */
.history { background: var(--dark); color: var(--on-dark); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.history > div, .history > ol { flex: 1 1 360px; min-width: 0; }
.history .kicker { color: var(--accent-on-dark); }
.history h2 { margin: 6px 0 14px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.history p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--dark-2); }
.history li:last-child { border-bottom: 0; }
.history li strong { flex: 0 0 72px; font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--accent-on-dark); }

/* Admin setup hint */
.setup-hint { border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink-2); background: #fff; }
.setup-hint strong { color: var(--ink); }

/* Single */
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.article-layout > article { flex: 999 1 640px; min-width: 0; max-width: 760px; }
.article-layout > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.entry-title { margin: 8px 0 16px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; }
.entry-excerpt { margin: 0 0 24px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.byline img { border-radius: 999px; }
.byline .who { display: flex; flex-direction: column; gap: 2px; }
.byline .name { font-weight: 700; font-size: 15px; }
.featured { margin: 0 0 28px; }
.featured img { border-radius: var(--radius); width: 100%; }
.featured figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.entry-content { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #1E232B; }
.entry-content > * { margin-top: 0; margin-bottom: 20px; }
.entry-content h2, .entry-content h3 { font-family: var(--display); font-weight: 800; line-height: 1.2; margin-top: 36px; margin-bottom: 12px; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.35; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry-content th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image figcaption, .entry-content figcaption { font-family: var(--body); font-size: 13px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.side-box a.row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.side-box a.row:last-child { border-bottom: 0; }
.side-box .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.side-box .title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.side-box.is-dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.side-box.is-dark p { color: var(--on-dark-muted); margin: 0 0 14px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Comments */
.comments-area { margin-top: 48px; font-family: var(--body); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 400 15px var(--body); }
.comments-area .submit { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 700 15px var(--body); cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

/* SportsPress tweaks */
.sp-template, .sp-data-table { font-family: var(--body); }
.sp-data-table { width: 100%; border-collapse: collapse; }
.sp-data-table th, .sp-data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.sp-data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--line); }

.alignwide { max-width: 1000px; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--muted); }
