/*
Theme Name: Rooster Tooth
Theme URI: https://roostertoothband.com
Author: Rooster Tooth
Author URI: https://roostertoothband.com
Description: A gritty rockabilly band theme for Rooster Tooth. Red-and-black rising-sun styling with a Facebook link, editable show schedule, photo gallery, music playlist, band member bios and a blog front page. Manage Shows, Songs and Band Members right from the WordPress dashboard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roostertooth
Tags: blog, music, band, custom-logo, featured-images, one-column, two-columns, right-sidebar
*/

/* ============================================================
   0. Design tokens
   ============================================================ */
:root {
	--rt-red: #d61e1e;
	--rt-red-bright: #f02b2b;
	--rt-red-dark: #7d0b0b;
	--rt-black: #0b0b0b;
	--rt-coal: #151515;
	--rt-smoke: #1f1d1b;
	--rt-cream: #f2ead9;
	--rt-bone: #d8cdb6;
	--rt-muted: #9a917f;
	--rt-font-head: 'Oswald', 'Arial Narrow', sans-serif;
	--rt-font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
	--rt-font-type: 'Special Elite', 'Courier New', monospace;
	--rt-max: 1140px;
	--rt-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

/* ============================================================
   1. Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--rt-black);
	color: var(--rt-cream);
	font-family: var(--rt-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-red-bright); text-decoration: none; }
a:hover, a:focus { color: var(--rt-cream); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--rt-font-head);
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.12;
	color: var(--rt-cream);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
blockquote {
	font-family: var(--rt-font-type);
	border-left: 4px solid var(--rt-red);
	margin: 1.5em 0;
	padding: .4em 0 .4em 1.2em;
	color: var(--rt-bone);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6em .8em; border-bottom: 1px solid rgba(242, 234, 217, .12); text-align: left; }
input, textarea, select, button {
	font-family: var(--rt-font-body);
	font-size: 1rem;
}
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="date"], input[type="time"], textarea {
	background: #0f0f0f;
	border: 1px solid #3a352e;
	color: var(--rt-cream);
	padding: .6em .8em;
	border-radius: 4px;
	width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--rt-red); }
button, .wp-block-button__link { cursor: pointer; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px; overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto; display: block; height: auto; width: auto;
	background: var(--rt-red); color: #fff; padding: .8em 1em; z-index: 100000;
}

/* ============================================================
   2. Layout helpers
   ============================================================ */
.rt-wrap { max-width: var(--rt-max); margin: 0 auto; padding: 0 22px; }
.rt-section { padding: 72px 0; }
.rt-section--tight { padding: 44px 0; }
.rt-section--coal { background: var(--rt-coal); }
.rt-section-title {
	position: relative;
	display: inline-block;
	margin-bottom: 1.4em;
	padding-bottom: .28em;
}
.rt-section-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 64px; height: 5px;
	background: var(--rt-red);
	transform: skewX(-24deg);
}
.rt-kicker {
	font-family: var(--rt-font-type);
	color: var(--rt-red-bright);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .85rem;
	margin-bottom: .4em;
}

/* Grunge rising-sun band used behind hero / page headers */
.rt-sunburst {
	background-image: linear-gradient(rgba(8, 8, 8, .55), rgba(8, 8, 8, .82)), url("assets/images/hero-bg.jpg");
	background-size: cover;
	background-position: center bottom;
}

/* Diagonal red stripe divider */
.rt-stripe {
	height: 12px;
	background: repeating-linear-gradient(-55deg, var(--rt-red) 0 22px, var(--rt-black) 22px 44px);
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
}

/* ============================================================
   3. Buttons
   ============================================================ */
.rt-btn {
	display: inline-block;
	font-family: var(--rt-font-head);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 600;
	font-size: .95rem;
	padding: .72em 1.5em;
	border-radius: 4px;
	border: 2px solid var(--rt-red);
	background: var(--rt-red);
	color: #fff !important;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: 0 6px 18px rgba(214, 30, 30, .35);
}
.rt-btn:hover { background: var(--rt-red-bright); transform: translateY(-2px); color: #fff; }
.rt-btn--ghost { background: transparent; color: var(--rt-cream) !important; box-shadow: none; }
.rt-btn--ghost:hover { background: var(--rt-red); color: #fff !important; }
.rt-btn--small { padding: .4em 1em; font-size: .8rem; }

/* ============================================================
   4. Header / nav
   ============================================================ */
.rt-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(10, 10, 10, .96);
	border-bottom: 3px solid var(--rt-red);
	backdrop-filter: blur(6px);
}
body.admin-bar .rt-header { top: 32px; }
.rt-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 74px;
}
.rt-brand { display: flex; align-items: center; gap: 14px; }
.rt-brand img.custom-logo { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--rt-red); object-fit: cover; }
.rt-brand__name {
	font-family: var(--rt-font-head);
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	font-style: italic;
	letter-spacing: .05em;
	color: var(--rt-cream);
}
.rt-brand__name em { color: var(--rt-red-bright); font-style: italic; }
.rt-brand__tag { display: block; font-family: var(--rt-font-type); font-size: .68rem; letter-spacing: .3em; color: var(--rt-muted); text-transform: uppercase; }

.rt-nav { margin-left: auto; }
.rt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.rt-nav a {
	display: block;
	font-family: var(--rt-font-head);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .95rem;
	color: var(--rt-cream);
	padding: .55em .85em;
	border-radius: 4px;
}
.rt-nav a:hover, .rt-nav .current-menu-item > a, .rt-nav .current_page_item > a {
	background: var(--rt-red);
	color: #fff;
}
.rt-nav .sub-menu { display: none; }

.rt-facebook {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--rt-font-head);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .85rem;
	color: #fff;
	background: #1877f2;
	padding: .5em .95em;
	border-radius: 4px;
	transition: transform .15s ease, background .15s ease;
	white-space: nowrap;
}
.rt-facebook:hover { background: #0e5ecf; color: #fff; transform: translateY(-2px); }
.rt-facebook svg { width: 18px; height: 18px; fill: currentColor; }

.rt-nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 2px solid var(--rt-red);
	border-radius: 4px;
	padding: 8px 12px;
	color: var(--rt-cream);
}
.rt-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--rt-cream); margin: 5px 0; }

/* ============================================================
   5. Hero
   ============================================================ */
.rt-hero {
	position: relative;
	text-align: center;
	padding: 96px 0 84px;
	overflow: hidden;
}
.rt-hero__logo {
	width: min(430px, 74vw);
	margin: 0 auto 26px;
	border-radius: 50%;
	border: 6px solid var(--rt-black);
	box-shadow: 0 0 0 4px var(--rt-red), var(--rt-shadow);
}
.rt-hero__tag {
	font-family: var(--rt-font-type);
	font-size: clamp(1rem, 2.4vw, 1.5rem);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--rt-cream);
	text-shadow: 2px 2px 0 #000;
	margin-bottom: 1.2em;
}
.rt-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rt-hero__rooster {
	position: absolute;
	right: -40px; bottom: -30px;
	width: 240px;
	opacity: .34;
	pointer-events: none;
	filter: drop-shadow(4px 4px 0 rgba(0,0,0,.6));
}

/* Page header (interior pages) */
.rt-pagehead { text-align: center; padding: 70px 0 54px; }
.rt-pagehead h1 { text-shadow: 3px 3px 0 #000; margin-bottom: .15em; }
.rt-pagehead .rt-kicker { margin-bottom: .6em; }

/* ============================================================
   6. Cards / grids
   ============================================================ */
.rt-grid { display: grid; gap: 26px; }
.rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rt-grid--2 { grid-template-columns: repeat(2, 1fr); }

.rt-card {
	background: var(--rt-smoke);
	border: 1px solid #2c2823;
	border-top: 5px solid var(--rt-red);
	border-radius: 6px;
	padding: 26px;
	box-shadow: var(--rt-shadow);
}
.rt-card h3 { margin-bottom: .3em; }

/* ============================================================
   7. Blog / posts
   ============================================================ */
.rt-post {
	background: var(--rt-smoke);
	border: 1px solid #2c2823;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 34px;
	box-shadow: var(--rt-shadow);
}
.rt-post__body { padding: 26px 30px 30px; }
.rt-post__thumb img { width: 100%; max-height: 420px; object-fit: cover; }
.rt-post__meta {
	font-family: var(--rt-font-type);
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rt-muted);
	margin-bottom: .8em;
}
.rt-post__meta a { color: var(--rt-red-bright); }
.rt-post__title a { color: var(--rt-cream); }
.rt-post__title a:hover { color: var(--rt-red-bright); }
.rt-post__footer { padding: 0 30px 26px; }
.rt-pagination { display: flex; gap: 10px; justify-content: center; margin: 30px 0; }
.rt-pagination .page-numbers {
	font-family: var(--rt-font-head);
	padding: .45em .95em;
	border: 1px solid #3a352e;
	border-radius: 4px;
	color: var(--rt-cream);
}
.rt-pagination .current { background: var(--rt-red); border-color: var(--rt-red); color: #fff; }

/* Single post */
.rt-single .rt-post { overflow: visible; }
.rt-content img { border-radius: 4px; }
.rt-content a { text-decoration: underline; }

/* Sidebar */
.rt-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.rt-widget {
	background: var(--rt-smoke);
	border: 1px solid #2c2823;
	border-left: 4px solid var(--rt-red);
	border-radius: 4px;
	padding: 20px 22px;
	margin-bottom: 26px;
}
.rt-widget h2, .rt-widget .widget-title { font-size: 1.05rem; margin-bottom: .7em; }
.rt-widget ul { margin: 0; padding-left: 1.1em; }

/* Comments */
.rt-comments { margin-top: 40px; }
.rt-comments ol { list-style: none; padding: 0; }
.rt-comments li { background: var(--rt-smoke); border-radius: 6px; padding: 18px 22px; margin-bottom: 14px; }

/* ============================================================
   8. Shows (booking schedule)
   ============================================================ */
.rt-show {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	gap: 22px;
	align-items: center;
	background: var(--rt-smoke);
	border: 1px solid #2c2823;
	border-left: 6px solid var(--rt-red);
	border-radius: 6px;
	padding: 18px 24px;
	margin-bottom: 16px;
	transition: transform .15s ease, border-color .15s ease;
}
.rt-show:hover { transform: translateX(4px); border-left-color: var(--rt-red-bright); }
.rt-show__date {
	text-align: center;
	background: var(--rt-red);
	color: #fff;
	border-radius: 6px;
	padding: 10px 6px;
	font-family: var(--rt-font-head);
	text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(214, 30, 30, .35);
}
.rt-show__day { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.rt-show__month { display: block; font-size: .85rem; letter-spacing: .18em; }
.rt-show__year { display: block; font-size: .7rem; opacity: .85; letter-spacing: .1em; }
.rt-show__venue { margin: 0; font-size: 1.2rem; }
.rt-show__details { color: var(--rt-muted); font-size: .95rem; margin: 2px 0 0; }
.rt-show__actions { display: flex; gap: 10px; align-items: center; }
.rt-show--past { opacity: .55; }
.rt-show--past .rt-show__date { background: #3a352e; box-shadow: none; }

/* ============================================================
   9. Playlist / music player
   ============================================================ */
.rt-player {
	background: var(--rt-smoke);
	border: 1px solid #2c2823;
	border-top: 5px solid var(--rt-red);
	border-radius: 8px;
	padding: 22px 26px;
	box-shadow: var(--rt-shadow);
	margin-bottom: 26px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 18px;
	align-items: center;
	position: sticky;
	top: 86px;
	z-index: 40;
}
.rt-player__btn {
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 3px solid var(--rt-cream);
	background: var(--rt-red);
	color: #fff;
	font-size: 1.3rem;
	display: grid;
	place-items: center;
	transition: transform .15s ease, background .15s ease;
}
.rt-player__btn:hover { background: var(--rt-red-bright); transform: scale(1.06); }
.rt-player__title { font-family: var(--rt-font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; margin: 0; }
.rt-player__sub { color: var(--rt-muted); font-size: .85rem; font-family: var(--rt-font-type); letter-spacing: .1em; }
.rt-player__progress { height: 6px; background: #000; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.rt-player__bar { height: 100%; width: 0; background: var(--rt-red); }
.rt-player__time { font-family: var(--rt-font-type); font-size: .8rem; color: var(--rt-muted); white-space: nowrap; }
.rt-player__nav { display: flex; gap: 8px; }
.rt-player__nav button {
	background: transparent;
	border: 1px solid #3a352e;
	border-radius: 4px;
	color: var(--rt-cream);
	padding: 6px 11px;
}
.rt-player__nav button:hover { border-color: var(--rt-red); color: var(--rt-red-bright); }

.rt-track {
	display: grid;
	grid-template-columns: 46px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 13px 18px;
	border: 1px solid #2c2823;
	border-radius: 6px;
	margin-bottom: 10px;
	background: var(--rt-coal);
	transition: background .15s ease, border-color .15s ease;
}
.rt-track:hover { border-color: var(--rt-red); }
.rt-track.is-playing { background: #241114; border-color: var(--rt-red); }
.rt-track__num {
	font-family: var(--rt-font-head);
	font-size: 1.15rem;
	color: var(--rt-muted);
	text-align: center;
}
.rt-track.is-playing .rt-track__num { color: var(--rt-red-bright); }
.rt-track__name { margin: 0; font-size: 1.05rem; font-family: var(--rt-font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.rt-track__meta { color: var(--rt-muted); font-size: .85rem; }
.rt-track__play {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 2px solid var(--rt-red);
	background: transparent;
	color: var(--rt-red-bright);
	font-size: .95rem;
}
.rt-track__play:hover { background: var(--rt-red); color: #fff; }
.rt-admin-note {
	font-family: var(--rt-font-type);
	font-size: .85rem;
	color: var(--rt-muted);
	border: 1px dashed #4a443b;
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 22px;
}

/* ============================================================
   10. Gallery
   ============================================================ */
.rt-gallery {
	columns: 3;
	column-gap: 18px;
}
.rt-gallery figure, .rt-gallery .rt-gallery__item {
	break-inside: avoid;
	margin: 0 0 18px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #2c2823;
	position: relative;
}
.rt-gallery img { width: 100%; transition: transform .35s ease, filter .35s ease; cursor: zoom-in; }
.rt-gallery img:hover { transform: scale(1.04); filter: saturate(1.15); }
.rt-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 4vh 4vw;
}
.rt-lightbox.is-open { display: flex; }
.rt-lightbox img { max-width: 92vw; max-height: 88vh; border: 4px solid var(--rt-red); border-radius: 4px; }
.rt-lightbox__close {
	position: absolute;
	top: 22px; right: 30px;
	font-size: 2.2rem;
	color: var(--rt-cream);
	background: none;
	border: none;
}

/* ============================================================
   11. Band bios
   ============================================================ */
.rt-member { text-align: center; overflow: hidden; padding: 0; }
.rt-member__photo { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; object-position: top; }
.rt-member__body { padding: 20px 24px 28px; }
.rt-member__role {
	display: inline-block;
	font-family: var(--rt-font-type);
	font-size: .78rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff;
	background: var(--rt-red);
	border-radius: 3px;
	padding: .35em .9em;
	margin-bottom: 14px;
	transform: rotate(-1.5deg);
}
.rt-member__name { margin-bottom: .25em; }
.rt-member__bio { color: var(--rt-bone); font-size: .96rem; text-align: left; }

/* ============================================================
   12. Footer
   ============================================================ */
.rt-footer {
	background: #070707;
	border-top: 3px solid var(--rt-red);
	margin-top: 60px;
}
.rt-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 54px 0 30px;
}
.rt-footer__brand img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--rt-red); margin-bottom: 14px; }
.rt-footer__bottom {
	border-top: 1px solid #232019;
	padding: 18px 0 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: .88rem;
	color: var(--rt-muted);
}
.rt-footer a { color: var(--rt-bone); }
.rt-footer a:hover { color: var(--rt-red-bright); }
.rt-footer .rt-facebook { color: #fff; }

/* ============================================================
   13. Misc WP elements
   ============================================================ */
.alignnone { margin: 1em 0; }
.aligncenter { display: block; margin: 1em auto; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--rt-muted); font-style: italic; padding: .4em 0; }
.sticky .rt-post__body { border-left: 4px solid var(--rt-red); }
.bypostauthor { outline: 1px dashed #3a352e; }
.wp-block-image figcaption { color: var(--rt-muted); font-size: .85rem; text-align: center; }
.wp-block-quote { border-left-color: var(--rt-red); }
.wp-block-pullquote { border-top: 4px solid var(--rt-red); border-bottom: 4px solid var(--rt-red); }
.wp-block-separator { border: none; border-top: 2px solid #3a352e; margin: 2em 0; }
.wp-block-gallery .blocks-gallery-item figcaption { background: rgba(0,0,0,.7); font-size: .8rem; }

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 920px) {
	.rt-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.rt-layout { grid-template-columns: 1fr; }
	.rt-gallery { columns: 2; }
	.rt-footer__grid { grid-template-columns: 1fr 1fr; }
	.rt-player { grid-template-columns: auto 1fr; }
	.rt-player__time { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.rt-nav-toggle { display: block; }
	.rt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #0e0e0e; border-bottom: 3px solid var(--rt-red); padding: 10px 0; }
	.rt-nav.is-open { display: block; }
	.rt-nav ul { flex-direction: column; gap: 0; }
	.rt-nav a { padding: .85em 22px; border-radius: 0; }
	.rt-facebook span { display: none; }
	.rt-grid--3, .rt-grid--2 { grid-template-columns: 1fr; }
	.rt-show { grid-template-columns: 78px 1fr; }
	.rt-show__actions { grid-column: 1 / -1; justify-content: flex-start; }
	.rt-gallery { columns: 1; }
	.rt-footer__grid { grid-template-columns: 1fr; }
	.rt-hero { padding: 60px 0 54px; }
}
