/*
Theme Name: Brant Collins Control Room
Theme URI: https://brantcollins.com
Author: Brant Collins
Description: A minimal creator site: navy "Control Room" look with the animated tally-light BC. mark, light and dark modes, a blog and a podcast.
Version: 3.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bccr
*/

/* ---- Fonts (self-hosted, Latin subset) ---- */
@font-face { font-family: Montserrat; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---- Colors ---- */
:root,
[data-theme="dark"] {
	--bg: #1a2847;
	--surface: #22335a;
	--deep: #0f1a33;
	--text: #ffffff;
	--text-2: #e3e7f0;
	--muted: #c9cfdd;
	--line: rgba(255, 255, 255, 0.14);
	--outline: rgba(255, 255, 255, 0.45);
	--accent: #ff1493;
	--on-accent: #1a2847;
	color-scheme: dark;
}
[data-theme="light"] {
	--bg: #ffffff;
	--surface: #eef0f6;
	--deep: #dde1ec;
	--text: #1a2847;
	--text-2: #3d4760;
	--muted: #566079;
	--line: #dde1ec;
	--outline: rgba(26, 40, 71, 0.5);
	--accent: #ff1493;
	--on-accent: #1a2847;
	color-scheme: light;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.82; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
h1, h2, h3, h4 { font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }

/* ---- Tally light ---- */
@keyframes tally {
	0%, 100% { box-shadow: 0 0 0 0.06em rgba(255, 20, 147, 0.28); }
	50% { box-shadow: 0 0 0 0.16em rgba(255, 20, 147, 0.1); }
}
@media (prefers-reduced-motion: no-preference) {
	.tally-live { animation: tally 1.8s ease-in-out infinite; }
}

/* ---- Header ---- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.mark { display: flex; align-items: flex-end; gap: 0.07em; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 46px; line-height: 0.85; letter-spacing: -0.04em; color: var(--text); }
.mark .tally { width: 0.2em; height: 0.2em; margin-left: 0.03em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.06em rgba(255, 20, 147, 0.28); }
.header-tools { display: flex; gap: 10px; margin-left: auto; order: 2; }
.site-nav { display: flex; align-items: center; gap: 28px; order: 1; margin-left: auto; font-size: 16px; font-weight: 600; }
.header-tools { margin-left: 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 4px 0; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 2px solid var(--outline); border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.nav-toggle { display: none; }
[data-theme="dark"] .icon-moon, :root:not([data-theme]) .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 17px 30px; border: 2px solid transparent; border-radius: 4px; font-family: Inter, sans-serif; font-size: 19px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.btn-sm { padding: 10px 22px; font-size: 16px; font-weight: 600; }
.btn-ghost.btn-sm { border-color: var(--accent); }

/* ---- Hero ---- */
.hero { display: flex; flex-direction: column; gap: 28px; padding-top: 88px; padding-bottom: 72px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.hero-title { margin: 0; font-size: clamp(52px, 9vw, 116px); line-height: 0.95; letter-spacing: -0.02em; color: var(--text); }
.hero-title .tally { display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.07em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.06em rgba(255, 20, 147, 0.28); }
.hero-intro { max-width: 620px; margin: 0; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero .social a { text-decoration: underline; text-underline-offset: 5px; }

/* ---- Cards ---- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 56px; }
.card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
.card-media { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--deep); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.card-title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.card-cta { font-size: 15px; font-weight: 600; color: var(--muted); }
.card-excerpt { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* ---- Support ---- */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 56px; padding: 44px; border-radius: 20px; background: var(--surface); }
.support-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.support h2 { margin: 0; font-size: 34px; }
.support p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.support-actions { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.chips { display: flex; gap: 12px; }
.chip { min-width: 76px; height: 48px; padding: 0 18px; border: 2px solid var(--outline); border-radius: 999px; background: transparent; color: var(--text); font-family: Inter, sans-serif; font-size: 19px; font-weight: 700; cursor: pointer; }
.chip.is-selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fine { font-size: 14px; color: var(--muted); }

/* ---- Newsletter ---- */
.newsletter { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 88px; }
.newsletter h2 { margin: 0; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.newsletter > p { max-width: 560px; margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.admin-note { padding: 14px 18px; border: 2px dashed var(--outline); border-radius: 8px; font-size: 15px; color: var(--muted); }
.newsletter-form { max-width: 560px; }
.newsletter-form form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.newsletter-form label, .wpforms-field-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted) !important; }
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] { width: 100%; max-width: 420px; height: 54px; padding: 0 16px; border: 2px solid var(--outline); border-radius: 4px; background: var(--deep); color: var(--text); font-family: Inter, sans-serif; font-size: 17px; }
.newsletter-form button,
.newsletter-form input[type="submit"],
.newsletter-form .wpforms-submit { height: 54px; padding: 0 30px; border: 0 !important; border-radius: 4px !important; background: var(--accent) !important; color: var(--on-accent) !important; font-family: Inter, sans-serif; font-size: 19px !important; font-weight: 700 !important; cursor: pointer; }
.newsletter-form .wpforms-container, .newsletter-form .wpforms-container-full { margin: 0; }

/* ---- Lists (blog, archives, search) ---- */
.list-head { padding-top: 56px; padding-bottom: 40px; }
.list-head h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; }
.cards-list { padding-bottom: 40px; }
.cards-list .card { flex: 1 1 320px; max-width: calc(50% - 12px); }
.empty { color: var(--muted); }
.navigation.pagination { padding-bottom: 88px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-numbers { display: inline-block; min-width: 44px; padding: 10px 16px; border: 2px solid var(--outline); border-radius: 4px; text-align: center; font-weight: 600; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---- Articles and pages ---- */
.article { padding-bottom: 40px; }
.entry-head { max-width: 760px; padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.entry-head h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; line-height: 1.05; }
.entry-image { max-width: 960px; margin-bottom: 32px; }
.entry-image img { width: 100%; border-radius: 16px; }
.entry-content { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; margin-bottom: 0.6em; color: var(--text); }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 24px; }
.entry-content a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.entry-content img, .entry-content video { border-radius: 12px; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; font-style: italic; color: var(--text); }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 8px; background: var(--deep); font-size: 15px; }
.entry-content code { font-size: 0.92em; }
.entry-content iframe, .entry-content .wp-block-embed__wrapper { max-width: 100%; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); }
.entry-content .btn { text-decoration: none; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 720px; padding: 28px 0 64px; font-size: 15px; font-weight: 600; color: var(--muted); }
.post-nav a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- Footer ---- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .social { font-size: 14px; gap: 20px; }

/* ---- Phone ---- */
@media (max-width: 720px) {
	.wrap { padding-left: 20px; padding-right: 20px; }
	.site-header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 12px; }
	.mark { font-size: 38px; }
	.header-tools { margin-left: auto; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 0 12px; margin-left: 0; }
	.site-nav.is-open { display: flex; }
	.nav { flex-direction: column; align-items: flex-start; gap: 14px; }
	.hero { padding-top: 48px; padding-bottom: 44px; gap: 22px; }
	.hero-intro { font-size: 18px; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn { width: 100%; }
	.cards { padding-bottom: 40px; }
	.card-media { height: 190px; }
	.card-body { padding: 20px 22px 24px; }
	.card-title { font-size: 23px; }
	.cards-list .card { max-width: none; }
	.support { padding: 28px 24px; gap: 18px; margin-bottom: 40px; }
	.support h2 { font-size: 28px; }
	.support-actions { width: 100%; align-items: stretch; }
	.chips .chip { flex: 1; min-width: 0; height: 52px; }
	.newsletter { padding-bottom: 56px; }
	.newsletter h2 { font-size: 32px; }
	.newsletter-form form { flex-direction: column; align-items: stretch; }
	.newsletter-form input[type="email"], .newsletter-form input[type="text"] { max-width: none; }
	.entry-content { font-size: 17px; }
}
