/*
Theme Name: LNC Newsroom
Theme URI: https://lncwrestling.com
Author: Late Night Crew LLC
Description: Independent editorial theme for LNC Wrestling. Dark newsroom layout, self-hosted fonts, no third-party scripts or embeds.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lnc-newsroom
*/

:root {
	--bg: #141414;
	--surface: #1b1b1b;
	--rule: #2c2c2c;
	--ink: #e9e6df;
	--strong: #ffffff;
	--muted: #b0aca3;
	--dim: #98948b;
	--accent: #ff6b5e;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--strong); line-height: 1.2; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.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; left: 12px; top: 12px; width: auto; height: auto; clip: auto; background: var(--accent); color: #141414; padding: 10px 14px; z-index: 100; font-weight: 700; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Masthead */
.masthead { text-align: center; padding-top: 28px; }
.site-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -1px; color: var(--strong); line-height: 1; display: inline-block; }
.site-title:hover { text-decoration: none; }
.custom-logo { max-height: 96px; width: auto; margin: 0 auto; }
.site-tagline { font-size: 0.8125rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-top: 10px; font-weight: 600; }
.mainnav { margin-top: 22px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.mainnav ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; font-size: 0.875rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.mainnav li { position: relative; }
.mainnav a { display: inline-block; padding: 6px 0; }
.mainnav .current-menu-item > a, .mainnav .current-menu-ancestor > a { color: var(--accent); }
.mainnav ul ul { display: none; position: absolute; left: -16px; top: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--rule); padding: 8px 16px; min-width: 200px; flex-direction: column; gap: 0; text-align: left; }
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: flex; }
.searchbar { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.searchform { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.searchform input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid #3a3a3a; color: var(--ink); font: inherit; border-radius: 0; }
.btn, .searchform button, .wp-block-search__button { height: 44px; padding: 0 20px; background: var(--accent); color: #141414; border: 0; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }

/* Shared bits */
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.kicker--dim { color: var(--dim); letter-spacing: 1.5px; }
.meta { font-size: 0.8125rem; color: var(--dim); }
.meta a { color: var(--muted); }
.section { margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-title { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.section-more { font-size: 0.875rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.thumb { display: block; background: #1f1f1f; border: 1px solid var(--rule); overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--169 { aspect-ratio: 16 / 9; }
.thumb--32 { aspect-ratio: 3 / 2; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play span { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #141414; display: flex; align-items: center; justify-content: center; }
.play--sm span { width: 40px; height: 40px; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.8); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 2px 6px; }

/* Front page */
.site-main { padding-top: 36px; }
.top { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.lead { flex: 2 1 640px; min-width: 0; }
.lead .kicker { margin-top: 16px; display: block; }
.lead-title { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.12; margin-top: 8px; }
.dek { font-size: 1.125rem; line-height: 1.55; color: #c8c4bb; margin: 14px 0 0; max-width: 720px; }
.lead .meta { margin-top: 12px; }
.rail { flex: 1 1 320px; min-width: 0; }
.watchbox { display: block; border: 1px solid var(--rule); padding: 18px; background: var(--surface); margin-bottom: 20px; }
.watchbox:hover { text-decoration: none; border-color: #444; }
.watchbox .kicker { display: block; margin-top: 12px; }
.watchbox-title { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.25; margin-top: 4px; color: var(--strong); }
.headlines { border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.headlines li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.headline { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin-top: 4px; color: var(--ink); }
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.card .kicker { display: block; margin-top: 12px; }
.card-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin-top: 4px; color: var(--ink); }
.card-title--sm { font-size: 1.125rem; line-height: 1.3; margin-top: 8px; }
.card-sum { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.card .meta { margin-top: 6px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list li:first-child { padding-top: 0; }
.list .headline { font-size: 1.125rem; margin-top: 2px; }

/* Archive / search rows */
.page-head { border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 8px; }
.page-title { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.page-desc { color: var(--muted); margin-top: 8px; max-width: 720px; }
.rows { max-width: none; }
.row { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.row .thumb { flex: 0 0 260px; align-self: flex-start; }
.row-body { min-width: 0; flex: 1; }
.pagination { margin: 36px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3a3a3a; font-weight: 600; font-size: 0.875rem; }
.pagination .current { background: var(--accent); color: #141414; border-color: var(--accent); }

/* Single */
.article { max-width: 760px; margin: 0 auto; }
.article--wide { max-width: 1280px; }
.article-title { font-size: clamp(2rem, 4.5vw, 2.875rem); line-height: 1.12; margin-top: 10px; }
.article .dek { font-size: 1.25rem; }
.article-meta { margin-top: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.article-figure { margin: 24px 0 0; }
.article-figure figcaption { font-size: 0.8125rem; color: var(--dim); margin-top: 8px; }
.entry-content { font-size: 1.125rem; line-height: 1.7; margin-top: 28px; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { font-size: 1.75rem; margin-top: 1.8em; margin-bottom: 0.6em; }
.entry-content h3 { font-size: 1.375rem; margin-top: 1.6em; margin-bottom: 0.5em; }
.entry-content h4 { font-size: 1.125rem; margin-top: 1.4em; margin-bottom: 0.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.25rem; color: var(--strong); }
.entry-content blockquote cite { display: block; font-family: var(--sans); font-size: 0.875rem; color: var(--dim); font-style: normal; margin-top: 8px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 0.8125rem; color: var(--dim); margin-top: 8px; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface); color: var(--strong); font-weight: 600; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre, .entry-content code { background: var(--surface); border: 1px solid var(--rule); font-size: 0.9375rem; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content code { padding: 1px 5px; }
.entry-content details { border: 1px solid var(--rule); background: var(--surface); padding: 14px 18px; }
.entry-content details summary { cursor: pointer; font-weight: 600; color: var(--strong); }
.entry-content details[open] summary { margin-bottom: 10px; }
.entry-content .alignwide { margin-left: calc((720px - min(1100px, 100vw - 64px)) / 2); margin-right: calc((720px - min(1100px, 100vw - 64px)) / 2); max-width: none; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content iframe { max-width: 100%; }
.lnc-extlink { display: flex; align-items: baseline; gap: 12px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--surface); padding: 10px 14px; text-decoration: none !important; color: var(--ink) !important; font-size: 0.9375rem; line-height: 1.4; }
.lnc-extlink strong { color: var(--accent); white-space: nowrap; font-size: 0.875rem; }
.lnc-extlink span { flex: 1; min-width: 0; font-size: 0.8125rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-content .wp-block-embed, .entry-content figure.wp-block-embed { margin-bottom: 0.7em; }
.entry-content .wp-block-embed__wrapper { margin: 0; }
.tags { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
.tags a { padding: 8px 14px; border: 1px solid #3a3a3a; font-size: 0.8125rem; font-weight: 500; }
.tags a:hover { border-color: var(--accent); text-decoration: none; }
.byline-box { margin-top: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.byline-box strong { color: var(--strong); font-family: var(--serif); font-size: 1.125rem; }
.notice { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.notice a { color: var(--accent); }

/* Video page */
.watch { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.watch-main { flex: 2 1 700px; min-width: 0; }
.watch-rail { flex: 1 1 300px; min-width: 0; }
.lnc-player { background: #000; border: 1px solid var(--rule); aspect-ratio: 16 / 9; }
.lnc-player video { width: 100%; height: 100%; background: #000; }
.lnc-player--empty { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 0.875rem; padding: 20px; text-align: center; }
.mini { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mini .thumb { flex: 0 0 130px; align-self: flex-start; }
.mini-title { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); display: block; }

/* Comments */
.comments { max-width: 760px; margin: 48px auto 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.comments-title { margin-bottom: 20px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 24px; padding-left: 18px; border-left: 1px solid var(--rule); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; color: #fff; flex: 0 0 34px; }
.comment-author { font-weight: 700; color: var(--strong); }
.is-staff > .comment-body .comment-author { color: var(--accent); }
.crew-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: var(--accent); color: #141414; font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.comment-date { font-size: 0.8125rem; color: var(--dim); }
.comment-content { margin: 8px 0 0 44px; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.comment-content p { margin: 0 0 0.8em; }
.comment-content a { color: var(--accent); text-decoration: underline; }
.comment-awaiting { margin: 8px 0 0 44px; font-size: 0.8125rem; color: var(--gold, #f2b01e); }
.comment-actions { margin: 4px 0 0 44px; font-size: 0.8125rem; font-weight: 600; color: var(--dim); }
.comment-actions a { color: var(--muted); }
.comment-respond { margin-top: 28px; }
.comment-reply-title { font-size: 1.375rem; margin-bottom: 10px; }
.comment-reply-title small { font-family: var(--sans); font-size: 0.8125rem; margin-left: 10px; }
.comment-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.comment-form textarea { width: 100%; min-height: 140px; padding: 12px 14px; background: var(--surface); border: 1px solid #3a3a3a; color: var(--ink); font: inherit; border-radius: 0; }
.comment-form .form-submit { margin-top: 14px; }
.comment-notes, .logged-in-as { font-size: 0.8125rem; color: var(--dim); }
.logged-in-as a { color: var(--muted); }
.comment-gate { margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--rule); }
.comment-gate p { margin: 0 0 12px; color: var(--muted); }
.comment-gate strong { color: var(--strong); }
.comment-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid #3a3a3a; }
.btn--ghost:hover { border-color: var(--accent); filter: none; }
.comments .nav-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.875rem; font-weight: 600; }

/* Footer */
.site-footer { margin-top: 72px; border-top: 2px solid var(--ink); padding: 28px 0 48px; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* WordPress helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--dim); }
.sticky, .bypostauthor, .gallery-caption { display: block; }

@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.wrap { padding: 0 18px; }
	.mainnav ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; padding: 10px 0; }
	.mainnav a { white-space: nowrap; padding: 10px 0; }
	.mainnav ul ul { display: none !important; }
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
	.grid--4 { gap: 18px; }
	.row { gap: 14px; }
	.row .thumb { flex-basis: 120px; }
	.row .card-sum { display: none; }
	.card-title { font-size: 1.25rem; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
	.alignleft, .alignright { float: none; margin: 0 0 16px; }
}
