/*
Theme Name: YB Records
Theme URI: https://theofficialybrecords.com
Description: YB Records — child theme of Herion. Design system derived from the label's own logo,
             cover art, and merch photography. Built by Urban AI Labs.
Author: Urban AI Labs
Author URI: https://urbanailabs.com
Template: herion
Version: 1.0.0
Text Domain: yb-records
*/

/* -------------------------------------------------------------------------
   Design tokens — see ybrecords/CONTENT-MODEL.md for where each color
   comes from. Black base, gold primary (A Family Affair / Yella Bone cover
   typography), pink secondary (dominant merch colorway, April's wordmark).
   ------------------------------------------------------------------------- */
:root {
	--yb-black: #000000;
	--yb-surface: #0e0e10;
	--yb-surface-2: #17171a;
	--yb-line: #2a2a2e;
	--yb-text: #f5f5f5;
	--yb-text-muted: #9a9a9a;
	--yb-gold: #c9a227;
	--yb-gold-bright: #e8bf45;
	--yb-pink: #e8508d;
	--yb-radius: 2px;
	--yb-maxw: 1240px;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body,
body.wolf-body {
	background-color: var(--yb-black);
	color: var(--yb-text);
}

a { color: var(--yb-gold); }
a:hover,
a:focus { color: var(--yb-gold-bright); }

/* Visible focus everywhere. Herion suppresses it in a few places; this wins. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--yb-gold-bright);
	outline-offset: 2px;
}

/* Skip link — keyboard users land on content, not the menu. */
.yb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--yb-gold);
	color: var(--yb-black);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.yb-skip-link:focus {
	left: 8px;
	top: 8px;
	color: var(--yb-black);
}

/* -------------------------------------------------------------------------
   Type
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.section-title {
	color: var(--yb-text);
	letter-spacing: 0.01em;
}

.yb-eyebrow {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--yb-gold);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.yb-lede {
	max-width: 62ch;
	color: var(--yb-text-muted);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.7;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.yb-btn,
.wolf-button,
.button,
input[type="submit"],
button[type="submit"] {
	display: inline-block;
	padding: 0.95em 2em;
	border: 1px solid var(--yb-gold);
	border-radius: var(--yb-radius);
	background: var(--yb-gold);
	color: var(--yb-black);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.yb-btn:hover,
.wolf-button:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: transparent;
	color: var(--yb-gold-bright);
	border-color: var(--yb-gold-bright);
}

.yb-btn--ghost {
	background: transparent;
	color: var(--yb-text);
	border-color: var(--yb-line);
}
.yb-btn--ghost:hover {
	color: var(--yb-black);
	background: var(--yb-text);
	border-color: var(--yb-text);
}

.yb-btn--pink {
	background: var(--yb-pink);
	border-color: var(--yb-pink);
	color: #fff;
}
.yb-btn--pink:hover {
	background: transparent;
	color: var(--yb-pink);
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.yb-section {
	padding: clamp(3.5rem, 2rem + 6vw, 7rem) 1.25rem;
}
.yb-section--surface { background: var(--yb-surface); }
.yb-shell {
	max-width: var(--yb-maxw);
	margin-inline: auto;
}
.yb-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem);
}
.yb-section__head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
	line-height: 1.05;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Cards — artists, releases, merch
   ------------------------------------------------------------------------- */
.yb-grid {
	display: grid;
	gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.yb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--yb-surface-2);
	border: 1px solid var(--yb-line);
	border-radius: var(--yb-radius);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.yb-card:hover,
.yb-card:focus-within {
	border-color: var(--yb-gold);
	transform: translateY(-3px);
}

.yb-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--yb-black);
}
.yb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Merch mockups are product shots on white — contain, never crop the garment. */
.yb-card--merch .yb-card__media {
	aspect-ratio: 4 / 5;
	background: #fff;
}
.yb-card--merch .yb-card__media img { object-fit: contain; }

.yb-card__body {
	padding: 1.1rem 1.15rem 1.35rem;
}
.yb-card__title {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.yb-card__meta {
	margin: 0;
	color: var(--yb-text-muted);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
/* Whole-card link without nesting interactive elements. */
.yb-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* -------------------------------------------------------------------------
   Video embeds — responsive, no layout shift
   ------------------------------------------------------------------------- */
.yb-video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--yb-black);
	border: 1px solid var(--yb-line);
	overflow: hidden;
}
.yb-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.yb-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(88vh, 780px);
	padding: 6rem 1.25rem 4rem;
	text-align: center;
	background: radial-gradient(ellipse at 50% 30%, #1a1a1e 0%, #000 70%);
	overflow: hidden;
}
.yb-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 860px;
}
.yb-hero__logo {
	width: min(320px, 62vw);
	height: auto;
	margin: 0 auto 1.75rem;
	display: block;
}
.yb-hero h1 {
	margin: 0 0 1.1rem;
	font-size: clamp(2rem, 1.1rem + 4.4vw, 4.25rem);
	line-height: 1.02;
	text-transform: uppercase;
}
.yb-hero p {
	margin: 0 auto 2rem;
	max-width: 60ch;
	color: var(--yb-text-muted);
	font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
	line-height: 1.65;
}
.yb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.ff-el-form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
	background: var(--yb-surface-2);
	border: 1px solid var(--yb-line);
	border-radius: var(--yb-radius);
	color: var(--yb-text);
	padding: 0.85em 1em;
	width: 100%;
}
.ff-el-form-control::placeholder,
textarea::placeholder { color: #6d6d72; }
.ff-el-input--label label,
label {
	color: var(--yb-text);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.yb-footer {
	background: var(--yb-black);
	border-top: 1px solid var(--yb-line);
	padding: 3.5rem 1.25rem 2rem;
}
.yb-footer__socials {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.yb-footer__socials a {
	color: var(--yb-text-muted);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}
.yb-footer__socials a:hover { color: var(--yb-gold); }

.yb-colophon {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--yb-line);
	color: #6d6d72;
	font-size: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
}
.yb-colophon a { color: #8a8a90; }
.yb-colophon a:hover { color: var(--yb-gold); }

/* -------------------------------------------------------------------------
   Dropdown submenus — every UAL theme ships this. See
   feedback_theme_submenu_css_required. Herion has its own, this is the guard.
   ------------------------------------------------------------------------- */
.main-navigation .sub-menu,
.nav-menu .sub-menu,
.menu .sub-menu {
	background: var(--yb-surface-2);
	border: 1px solid var(--yb-line);
	min-width: 220px;
	padding: 0.4rem 0;
}
.main-navigation .sub-menu a,
.nav-menu .sub-menu a,
.menu .sub-menu a {
	display: block;
	padding: 0.6rem 1.1rem;
	color: var(--yb-text);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.main-navigation .sub-menu a:hover,
.nav-menu .sub-menu a:hover,
.menu .sub-menu a:hover {
	background: var(--yb-black);
	color: var(--yb-gold);
}

/* -------------------------------------------------------------------------
   Mobile. The mobile view is designed, not a squeezed desktop:
   single-column stacks, larger tap targets, no fixed gutters.
   See feedback_demo_theme_fixed_px_gutters.
   ------------------------------------------------------------------------- */
@media (max-width: 782px) {
	.yb-section { padding-inline: 1rem; }
	.yb-section__head { align-items: flex-start; flex-direction: column; }
	.yb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
	.yb-hero { min-height: 78vh; }
	.yb-hero__actions .yb-btn { width: 100%; text-align: center; }
	.yb-colophon { flex-direction: column; }
}

/* Nothing on the page may push the body sideways. */
html, body { overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.yb-card,
	.yb-btn,
	.wolf-button { transition: none; }
	.yb-card:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Interior page banner
   ------------------------------------------------------------------------- */
.yb-pagehead {
	padding: clamp(5rem, 3rem + 8vw, 9rem) 1.25rem clamp(2rem, 1rem + 3vw, 3.5rem);
	background: radial-gradient(ellipse at 50% 0%, #1a1a1e 0%, #000 72%);
	border-bottom: 1px solid var(--yb-line);
}
.yb-pagehead h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
	line-height: 1.03;
	text-transform: uppercase;
}
.yb-pagehead .yb-lede { margin: 0; }

/* -------------------------------------------------------------------------
   Long-form copy
   ------------------------------------------------------------------------- */
.yb-prose {
	max-width: 72ch;
	color: #d6d6da;
	font-size: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
	line-height: 1.75;
}
.yb-prose h2 {
	margin: 2.75rem 0 0.9rem;
	font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--yb-text);
}
.yb-prose h2:first-child { margin-top: 0; }
.yb-prose p { margin: 0 0 1.15rem; }
.yb-prose ol,
.yb-prose ul { margin: 0 0 1.25rem 1.35rem; padding: 0; }
.yb-prose li { margin-bottom: 0.4rem; }
.yb-prose ol { counter-reset: none; }

.yb-card__note {
	margin: 0.55rem 0 0;
	color: var(--yb-text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Releases — cover art beside the track listing
   ------------------------------------------------------------------------- */
.yb-release {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	align-items: start;
	padding: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) 0;
	border-bottom: 1px solid var(--yb-line);
}
.yb-release:last-child { border-bottom: 0; }
.yb-release__art img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--yb-line);
}
.yb-release__body h2 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
	text-transform: uppercase;
	line-height: 1.1;
}
.yb-release__body .yb-card__meta { margin-bottom: 1.25rem; color: var(--yb-gold); }

@media (max-width: 782px) {
	.yb-release { grid-template-columns: 1fr; }
	.yb-release__art { max-width: 320px; }
}

/* -------------------------------------------------------------------------
   Video grid
   ------------------------------------------------------------------------- */
.yb-videogrid {
	display: grid;
	gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.yb-videocard .yb-card__title { font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   Photo galleries
   ------------------------------------------------------------------------- */
.yb-gallery {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.yb-gallery__item {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--yb-line);
	background: var(--yb-surface-2);
}
.yb-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.yb-gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
	.yb-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.yb-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 1.2rem + 3vw, 4rem);
	align-items: start;
}
.yb-contact__block { margin-bottom: 2rem; }
.yb-contact__block h2 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--yb-gold);
}
.yb-contact__block p {
	margin: 0 0 0.5rem;
	color: var(--yb-text-muted);
	line-height: 1.65;
}
.yb-linklist { list-style: none; margin: 0; padding: 0; }
.yb-linklist li { margin-bottom: 0.4rem; }
.yb-linklist a {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
@media (max-width: 860px) {
	.yb-contact { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Full-bleed templates. Herion wraps page content in .content-inner /
   .content-wrapper, which cap the width and add gutters. Our templates manage
   their own shell, so neutralize the parent's cage on those pages only.
   ------------------------------------------------------------------------- */
.yb-fullbleed .content-inner,
.yb-fullbleed .content-wrapper,
.yb-fullbleed .site-content,
.yb-fullbleed #primary,
.yb-fullbleed .content-area {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.yb-fullbleed .content-inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
/* The parent adds a row gutter class we do not want here. */
.yb-fullbleed .wvc-row,
.yb-fullbleed .wolf-core-row { padding: 0 !important; }

/* The hero logo must obey our sizing even though WordPress prints width/height
   attributes on the <img>. */
.yb-hero__logo {
	width: min(300px, 58vw) !important;
	height: auto !important;
	max-width: 100%;
}

/* Artist and release cards hold cover ARTWORK, not portraits. Cropping a
   square out of a rectangular cover cuts the title off, so contain them. */
.yb-card__media img { object-fit: contain; background: #08080a; }
.yb-card--photo .yb-card__media img { object-fit: cover; }

/* -------------------------------------------------------------------------
   Fluent Forms. The plugin ships a light-theme stylesheet that loads after
   ours, so these need to out-specify it rather than restate it.
   ------------------------------------------------------------------------- */
.yb-contact .frm-fluent-form .ff-el-form-control,
.yb-contact .frm-fluent-form input[type="text"],
.yb-contact .frm-fluent-form input[type="email"],
.yb-contact .frm-fluent-form input[type="url"],
.yb-contact .frm-fluent-form input[type="tel"],
.yb-contact .frm-fluent-form select,
.yb-contact .frm-fluent-form textarea {
	background: var(--yb-surface-2);
	border: 1px solid var(--yb-line);
	border-radius: var(--yb-radius);
	color: var(--yb-text);
	box-shadow: none;
}
.yb-contact .frm-fluent-form .ff-el-form-control:focus,
.yb-contact .frm-fluent-form select:focus,
.yb-contact .frm-fluent-form textarea:focus {
	border-color: var(--yb-gold);
	outline: 2px solid var(--yb-gold-bright);
	outline-offset: 1px;
}
.yb-contact .frm-fluent-form .ff-el-form-control::placeholder,
.yb-contact .frm-fluent-form textarea::placeholder { color: #6d6d72; }

.yb-contact .frm-fluent-form .ff-el-input--label label {
	color: var(--yb-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.yb-contact .frm-fluent-form .ff-el-is-error .text-danger,
.yb-contact .frm-fluent-form .error-text { color: #ff8080; }
.yb-contact .frm-fluent-form .ff-message-success {
	background: var(--yb-surface-2);
	border: 1px solid var(--yb-gold);
	color: var(--yb-text);
	padding: 1.25rem;
}
/* The gold submit button, without letting the plugin repaint it. */
.yb-contact .frm-fluent-form .ff-btn-submit {
	background: var(--yb-gold);
	border: 1px solid var(--yb-gold);
	color: var(--yb-black);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.95em 2em;
	border-radius: var(--yb-radius);
}
.yb-contact .frm-fluent-form .ff-btn-submit:hover {
	background: transparent;
	color: var(--yb-gold-bright);
	border-color: var(--yb-gold-bright);
}

/* Social list in the contact sidebar — no bullets, the theme adds them back. */
.yb-contact .yb-linklist,
.yb-contact .yb-linklist li {
	list-style: none !important;
	margin-left: 0;
	padding-left: 0;
}
.yb-contact .yb-linklist li::before,
.yb-contact .yb-linklist li::marker { content: none; }

/* Footer layout */
.yb-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	align-items: flex-start;
}
.yb-footer__blurb {
	margin: 0 0 0.5rem;
	max-width: 42ch;
	color: var(--yb-text-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* Artist / release single: artwork beside the story. */
.yb-artist {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	align-items: start;
}
.yb-artist__art img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--yb-line);
	background: #08080a;
}
@media (max-width: 860px) {
	.yb-artist { grid-template-columns: 1fr; }
	.yb-artist__art { max-width: 340px; }
}

/* -------------------------------------------------------------------------
   Video facade. A poster the site serves itself, swapped for the real player
   on click. Keeps 32 embeds off the initial load and out of Google's hands.
   ------------------------------------------------------------------------- */
.yb-video__play {
	all: unset;
	position: absolute;
	inset: 0;
	display: block;
	cursor: pointer;
	background: var(--yb-black);
}
.yb-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.25s ease, transform 0.4s ease;
}
.yb-video__play:hover .yb-video__poster { transform: scale(1.03); opacity: 0.85; }

.yb-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.28);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.yb-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--yb-text);
}
.yb-video__play:hover .yb-video__icon,
.yb-video__play:focus-visible .yb-video__icon {
	background: var(--yb-gold);
	border-color: var(--yb-gold);
}
.yb-video__play:hover .yb-video__icon::after,
.yb-video__play:focus-visible .yb-video__icon::after {
	border-left-color: var(--yb-black);
}
.yb-video__play:focus-visible {
	outline: 2px solid var(--yb-gold-bright);
	outline-offset: -2px;
}
.yb-video noscript iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
