/*
Theme Name: Noirelle
Author: Noirelle
Description: A dark, elegant video theme for legal adult sites. Video library with categories and tags, hover and touch previews, an age screen, RTA labelling, content reports and starter legal pages.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
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: noirelle
Tags: entertainment, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #120b0e;
	--ink-2: #1c1217;
	--ink-3: #2a1b21;
	--line: #3d2b33;
	--bone: #f2e8dc;
	--dust: #ab9c94;
	--brass: #d2b07a;
	--wine: #9c2f4a;
	--display: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: clamp(16px, 4vw, 56px);
	--radius: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--ink) radial-gradient(1100px 520px at 85% -160px, rgba(156, 47, 74, .22), transparent 70%) no-repeat;
	color: var(--bone);
	font: 400 16px/1.55 var(--body);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--wine); color: #fff; }

.wrap { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .skip:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 16px; background: var(--brass); color: var(--ink); }

/* ---------- Buttons and fields ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 24px;
	border: 1px solid var(--brass); border-radius: 2px;
	background: var(--brass); color: var(--ink);
	font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--quiet { background: transparent; border-color: var(--line); color: var(--bone); }
.btn--quiet:hover { background: transparent; border-color: var(--brass); color: var(--brass); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
	width: 100%; padding: 11px 14px;
	background: var(--ink); border: 1px solid var(--line); border-radius: 2px; color: var(--bone);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--brass); }
label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--dust); }

/* ---------- Header ---------- */
.head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(18, 11, 14, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.head__in { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); min-height: 72px; }
.logo { flex: none; margin: 0; font: italic 500 30px/1 var(--display); letter-spacing: -.01em; }
.logo a:hover { color: var(--bone); }
.logo img { max-height: 44px; width: auto; }
.nav { flex: 1; }
.nav__list { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__list a { display: block; padding: 8px 0; font-size: 15px; color: var(--dust); border-bottom: 1px solid transparent; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--bone); border-bottom-color: var(--brass); }
.search { position: relative; flex: 0 1 300px; }
.search input[type="search"] {
	padding: 10px 40px 10px 0; background: transparent;
	border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.search input[type="search"]::placeholder { color: var(--dust); }
.search input[type="search"]:focus-visible { outline: 0; border-bottom-color: var(--brass); }
.search button {
	position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
	display: grid; place-items: center; background: none; border: 0; color: var(--dust); cursor: pointer;
}
.search button:hover { color: var(--brass); }
.head__toggle { display: none; }

@media (max-width: 860px) {
	.head__in { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-block: 12px; }
	.logo { font-size: 26px; margin-right: auto; }
	.head__toggle {
		display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
		background: none; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; cursor: pointer;
	}
	.search { order: 3; flex: 1 0 100%; margin-top: 6px; }
	.nav { order: 4; flex: 1 0 100%; display: none; padding-top: 8px; }
	.head.is-open .nav { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
	.nav__list li:last-child a { border-bottom: 0; }
}

/* ---------- Home: featured video ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding-block: clamp(20px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.hero__media {
	grid-column: 5 / -1; grid-row: 1; position: relative; overflow: hidden;
	aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink-2);
}
.hero__media::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(90deg, var(--ink) 0%, rgba(18, 11, 14, .55) 22%, transparent 52%);
}
.hero__text { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 3; pointer-events: none; }
.hero__text a, .hero__text .btn { pointer-events: auto; }
.hero__title {
	font: italic 400 clamp(44px, 7.4vw, 124px)/.92 var(--display); letter-spacing: -.025em;
	text-wrap: balance; margin-bottom: .22em;
}
.hero__title a:hover { color: var(--bone); }
.hero__excerpt { max-width: 34ch; color: var(--dust); margin-bottom: 14px; }
.hero__meta { display: flex; gap: 18px; font-size: 14px; color: var(--dust); margin-bottom: 26px; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
	.hero { display: block; padding-top: 0; }
	.hero__media { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
	.hero__media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 45%); }
	.hero__text { margin-top: -34px; }
	.hero__bar { top: 0; bottom: auto; }
	.hero__title { font-size: clamp(44px, 13vw, 72px); }
}

/* ---------- Sections ---------- */
.block { padding-block: clamp(26px, 4vw, 52px); }
.block + .block { border-top: 1px solid var(--line); }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.block__head h1, .block__head h2 { font: italic 400 clamp(30px, 3.6vw, 52px)/1.02 var(--display); letter-spacing: -.015em; }
.block__head a, .block__count { flex: none; font-size: 14px; color: var(--dust); }
.block__head a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.block__head a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.block__more { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Video cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 30px 20px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; } }

.card { min-width: 0; }
.card__media, .hero__media, .player { position: relative; display: block; overflow: hidden; background: var(--ink-2); }
.card__media { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.card__media img, .hero__media img, .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media::before {
	content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s;
}
.card:hover .card__media::before, .card:focus-within .card__media::before { box-shadow: inset 0 0 0 1px var(--brass); }
.preview { z-index: 1; opacity: 0; transition: opacity .25s; pointer-events: none; }
.is-playing > .preview { opacity: 1; }
.thumb-empty {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
	font: italic 400 64px/1 var(--display); color: var(--line);
}
.card__time, .card__hd {
	position: absolute; z-index: 2; padding: 2px 6px; border-radius: 2px;
	font-size: 12px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums;
}
.card__time { right: 8px; bottom: 8px; background: rgba(18, 11, 14, .86); }
.card__hd { left: 8px; top: 8px; color: var(--brass); background: rgba(18, 11, 14, .86); letter-spacing: .04em; }
.card__bar, .hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 2px; opacity: 0; }
.card__bar i, .hero__bar i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.is-playing > .card__bar, .is-playing > .hero__bar { opacity: 1; }
.is-playing > .card__time { opacity: 0; }
.card__title { margin-top: 12px; font: 500 15px/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; color: var(--dust); font-variant-numeric: tabular-nums; }

/* Most watched: a real ranking, so the numerals carry information. */
.rank { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card--ranked { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.card--ranked .card__media { grid-column: 1 / -1; }
.card__rank {
	grid-row: 2 / span 2; align-self: start; margin-top: 6px;
	font: 400 clamp(54px, 5vw, 78px)/.86 var(--display); color: var(--brass); font-variant-numeric: lining-nums;
}
.card--ranked .card__title, .card--ranked .card__meta { grid-column: 2; }
@media (max-width: 1100px) {
	.rank {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px);
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	}
	.rank::-webkit-scrollbar { display: none; }
	.rank > * { scroll-snap-align: start; }
}

/* ---------- Category list on the home page ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 3vw, 44px); }
.cats a { display: inline-flex; align-items: baseline; gap: 8px; font: 400 clamp(26px, 3.2vw, 46px)/1.25 var(--display); }
.cats span { font: 400 13px/1 var(--body); color: var(--dust); font-variant-numeric: tabular-nums; }

/* ---------- List pages ---------- */
.strip {
	display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; white-space: nowrap;
	margin: 0 calc(var(--gutter) * -1) clamp(18px, 2.4vw, 28px); padding-inline: var(--gutter);
	border-bottom: 1px solid var(--line);
}
.strip::-webkit-scrollbar { display: none; }
.strip a { padding: 10px 0 12px; font-size: 15px; color: var(--dust); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.strip a:hover { color: var(--bone); }
.strip a[aria-current] { color: var(--bone); border-bottom-color: var(--brass); }
.list__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sort { display: flex; gap: 20px; font-size: 14px; }
.sort a { color: var(--dust); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.sort a[aria-current] { color: var(--brass); border-bottom-color: var(--brass); }
.empty { max-width: 46ch; padding-block: 30px 60px; color: var(--dust); }
.empty .btn { margin-top: 18px; }

.pagination { margin-top: clamp(32px, 4vw, 56px); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 2px; font-size: 15px; font-variant-numeric: tabular-nums;
}
a.page-numbers:hover { border-color: var(--brass); }
.page-numbers.current { background: var(--brass); border-color: var(--brass); color: var(--ink); font-weight: 600; }
.page-numbers.dots { border-color: transparent; }

/* ---------- Watch page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 372px; align-items: start; gap: 0 clamp(24px, 3vw, 48px); padding-block: clamp(16px, 2.4vw, 32px) 64px; }
.watch__main, .watch__comments { grid-column: 1; }
.watch__side { grid-column: 2; grid-row: 1 / span 2; }
.player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.player video, .player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player img { object-fit: cover; }
.player__note { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 8px 12px; background: rgba(18, 11, 14, .9); font-size: 14px; }
.player__note a { color: var(--brass); text-decoration: underline; }
.watch__title { margin-top: 20px; font: italic 400 clamp(30px, 3.4vw, 50px)/1.05 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.watch__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.watch__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--dust); font-size: 15px; font-variant-numeric: tabular-nums; }
.watch__actions { display: flex; gap: 8px; }
.watch__terms { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.watch__terms a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; }
.watch__terms a:hover { border-color: var(--brass); }
.watch__terms a.is-tag { border-color: transparent; padding-inline: 2px; color: var(--dust); }
.watch__terms a.is-tag::before { content: "#"; }
.watch__terms a.is-tag:hover { color: var(--brass); }
.watch__side h2 { font: italic 400 28px/1.1 var(--display); margin-bottom: 16px; }
.watch__side .card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 12px; margin-bottom: 14px; }
.watch__side .card__media { grid-row: 1 / span 3; }
.watch__side .card__title { margin-top: 0; font-size: 14px; }
.watch__side .card__hd { display: none; }
@media (max-width: 1100px) {
	.watch { grid-template-columns: minmax(0, 1fr); }
	.watch__side { grid-column: 1; grid-row: auto; margin-top: 36px; }
	.watch__side .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 20px; }
}
@media (max-width: 600px) {
	.is-watch .player { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
	.watch__side .card { grid-template-columns: 148px minmax(0, 1fr); }
}

.notice { margin-top: 16px; padding: 12px 16px; border-left: 2px solid var(--brass); background: var(--ink-2); }

/* ---------- Text pages and comments ---------- */
.prose { max-width: 68ch; color: #dccfc3; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font: italic 400 30px/1.15 var(--display); color: var(--bone); margin-top: 1.6em; }
.prose h3 { font-size: 24px; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--wine); font-style: italic; }
.watch__text { margin-top: 20px; }
.page { padding-block: clamp(28px, 5vw, 72px) 80px; }
.page__title { font: italic 400 clamp(38px, 5vw, 72px)/1 var(--display); letter-spacing: -.02em; margin-bottom: .5em; text-wrap: balance; }

.widget { margin-top: 28px; }
.widget__title { font: italic 400 24px/1.1 var(--display); margin-bottom: 10px; }

.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.comments h2, .comment-reply-title { font: italic 400 28px/1.1 var(--display); margin-bottom: 18px; display: block; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { padding-left: 24px; }
.comment-author { font-weight: 600; }
.comment-author .avatar { display: none; }
.comment-metadata { font-size: 13px; color: var(--dust); margin-bottom: 8px; }
.comment-content a, .reply a, .logged-in-as a { color: var(--brass); }
.reply { margin-top: 6px; font-size: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: baseline; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form input[type="submit"] {
	min-height: 46px; padding: 0 24px; border: 1px solid var(--brass); border-radius: 2px;
	background: var(--brass); color: var(--ink); font-weight: 600; cursor: pointer;
}

/* ---------- Report dialog ---------- */
.report {
	width: min(92vw, 480px); padding: 28px; border: 1px solid var(--line); border-radius: 4px;
	background: var(--ink-2); color: var(--bone);
}
.report::backdrop { background: rgba(8, 4, 6, .78); }
.report h2 { font: italic 400 30px/1.1 var(--display); margin-bottom: 18px; }
.report p { margin-bottom: 14px; }
.report__trap { position: absolute; left: -9999px; }
.report__actions { display: flex; gap: 10px; margin-top: 20px; }

/* ---------- Age screen ---------- */
.gate { display: none; }
.nrl-gated .gate {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; overflow: auto;
	background: var(--ink) radial-gradient(900px 600px at 50% 0, rgba(156, 47, 74, .35), transparent 70%);
}
.nrl-gated, .nrl-gated body { overflow: hidden; }
.gate__box { width: min(100%, 520px); text-align: center; }
.gate__mark { font: 400 clamp(84px, 16vw, 132px)/.9 var(--display); color: var(--brass); letter-spacing: -.03em; margin-bottom: 18px; }
.gate__title { font: italic 400 clamp(28px, 4.2vw, 40px)/1.1 var(--display); text-wrap: balance; margin-bottom: 14px; }
.gate__text { color: var(--dust); margin-bottom: 28px; text-wrap: pretty; }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(40px, 6vw, 88px); padding-block: 40px 48px; border-top: 1px solid var(--line); color: var(--dust); font-size: 14px; }
.foot__name { font: italic 500 26px/1 var(--display); color: var(--bone); margin-bottom: 12px; }
.foot__note { max-width: 60ch; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.legal a { color: var(--bone); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.legal a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.foot__small { margin-top: 22px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
