/* ==========================================================================
   The Rich — main stylesheet
   ========================================================================== */

:root {
	--tr-accent: #3ddc5a;
	--tr-bg: #000;
	--tr-bg-2: #111;
	--tr-bg-3: #1a1a1a;
	--tr-text: #d7d7d7;
	--tr-muted: #8d8d8d;
	--tr-line: #2a2a2a;
	--tr-wrap: 1000px;
	--tr-font: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tr-display: "Oswald", "Prompt", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--tr-bg); color: var(--tr-text);
	font-family: var(--tr-font); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tr-accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { color: #fff; line-height: 1.3; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1.1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tr-accent); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 14px; }

.tr-wrap { width: 100%; max-width: var(--tr-wrap); margin: 0 auto; padding: 0 20px; }
.tr-wrap--narrow { max-width: 820px; }
.tr-center { text-align: center; }

.tr-btn, .comment-form .submit {
	display: inline-block; border: 0; background: var(--tr-accent); color: #000; font-weight: 600;
	padding: 9px 26px; border-radius: 3px; font-size: .9rem; transition: background .2s, transform .2s;
}
.tr-btn:hover, .comment-form .submit:hover { background: #fff; color: #000; transform: translateY(-1px); }

/* ---------- Header ---------- */
.tr-topbar { background: #fff; color: #222; position: relative; }
.tr-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.tr-brand img { max-height: 44px; width: auto; }
.tr-brand__text { display: flex; flex-direction: column; line-height: 1.1; color: #c4161c; }
.tr-brand__text strong { font-family: var(--tr-display); font-size: 1.6rem; letter-spacing: .5px; font-weight: 700; }
.tr-brand__text small { font-size: .6rem; color: #444; font-weight: 500; }
.tr-topbar__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tr-utility { display: flex; align-items: center; gap: 14px; }
.tr-utility__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.tr-utility__menu a { color: #333; font-family: var(--tr-display); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; }
.tr-utility__menu a:hover { color: var(--tr-accent); }
.tr-search-toggle { background: none; border: 0; color: #555; padding: 0; display: grid; place-items: center; }
.tr-social { display: flex; gap: 6px; }
.tr-social a {
	width: 22px; height: 22px; display: grid; place-items: center; background: #8e8e8e; color: #fff;
	font-size: .6rem; font-weight: 700; text-transform: uppercase; border-radius: 3px;
}
.tr-social a:hover { background: var(--tr-accent); color: #000; }
.tr-search { background: #f2f2f2; padding: 10px 0; }

.tr-navbar { background: #000; border-top: 3px solid var(--tr-accent); border-bottom: 1px solid #222; position: relative; z-index: 20; }
.tr-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tr-menu li { position: relative; }
.tr-menu a {
	display: block; padding: 9px 14px 8px; color: #fff; font-family: var(--tr-display); font-size: .74rem;
	text-transform: uppercase; letter-spacing: .6px; font-weight: 500;
}
.tr-menu a:hover, .tr-menu .current-menu-item > a, .tr-menu .current-menu-ancestor > a { color: var(--tr-accent); }
.tr-menu .menu-item-has-children > a::after { content: " ▾"; font-size: .7em; }
.tr-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: #111; border-top: 2px solid var(--tr-accent);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.tr-menu li:hover > .sub-menu, .tr-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tr-menu .sub-menu a { padding: 8px 16px; font-size: .72rem; }
.tr-nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 10px 0; font-family: var(--tr-display); text-transform: uppercase; }

/* ---------- Hero ---------- */
.tr-hero { position: relative; background: #0b0b0b; overflow: hidden; }
.tr-hero__track { position: relative; aspect-ratio: 16 / 5; min-height: 220px; max-height: 620px; }
.tr-slide {
	position: absolute; inset: 0; background: center/cover no-repeat;
	background-image: linear-gradient(115deg, #0d1a10 0%, #1c2b1f 45%, #060606 100%);
	opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
	display: flex; align-items: flex-end; justify-content: flex-end;
}
.tr-slide.is-active { opacity: 1; visibility: visible; }
.tr-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.6)); pointer-events: none; }
.tr-slide__text { position: relative; z-index: 2; text-align: right; padding: 0 5% 5%; max-width: 70%; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.tr-slide__text span { display: block; font-family: var(--tr-display); font-size: clamp(.8rem, 1.6vw, 1.3rem); letter-spacing: 3px; color: var(--tr-accent); text-transform: uppercase; }
.tr-slide__text strong {
	display: block; color: #fff; font-family: var(--tr-display); font-weight: 700; font-style: italic; text-transform: uppercase;
	font-size: clamp(1.8rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: 1px;
}
.tr-slide__link { position: absolute; inset: 0; z-index: 3; }
.tr-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 64px;
	background: rgba(0,0,0,.25); border: 0; color: #fff; display: grid; place-items: center; transition: background .2s;
}
.tr-hero__arrow:hover { background: var(--tr-accent); color: #000; }
.tr-hero__arrow--prev { left: 0; }
.tr-hero__arrow--next { right: 0; }
.tr-hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.tr-hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); }
.tr-hero__dots button.is-active { background: var(--tr-accent); }

/* ---------- Sections / grid ---------- */
.tr-section { padding: 26px 0 40px; }
.tr-section--banners { padding-top: 10px; padding-bottom: 60px; }
.tr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tr-card { padding: 0; margin: 0; }
.tr-card__img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.tr-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.tr-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.tr-card:hover .tr-card__img img { transform: scale(1.05); }
.tr-card__title { font-size: .72rem; font-weight: 400; color: #fff; margin: 6px 8px 0; line-height: 1.45; min-height: 3em; }
.tr-card__title a { color: #fff; }
.tr-card__title a:hover { color: var(--tr-accent); }
.tr-card__date { display: block; font-size: .65rem; color: var(--tr-muted); margin: 0 8px 14px; }

.tr-ph {
	display: grid; place-items: center; width: 100%; height: 100%; padding: 14px; text-align: center;
	background: radial-gradient(circle at 30% 20%, #243a29, #0a0a0a 70%); color: #fff; font-family: var(--tr-display); text-transform: uppercase; font-size: .9rem; letter-spacing: 1px;
}
.tr-ph span { opacity: .8; }

/* ---------- Banners ---------- */
.tr-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 20px; }
.tr-banner {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 14px 16px;
	background: #151515 center/cover no-repeat; background-image: linear-gradient(120deg, #151515, #243a29);
	color: #fff; overflow: hidden; transition: filter .3s;
}
.tr-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.1)); }
.tr-banner > span { position: relative; }
.tr-banner__title { font-family: var(--tr-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; letter-spacing: .5px; }
.tr-banner__sub { font-size: .72rem; color: var(--tr-accent); }
.tr-banner:hover { filter: brightness(1.2); color: #fff; }

/* ---------- Footer ---------- */
.tr-footer { padding: 34px 0 30px; border-top: 1px solid var(--tr-line); }
.tr-footer__menu { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tr-footer__menu a { color: #fff; font-family: var(--tr-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; }
.tr-footer__menu a:hover { color: var(--tr-accent); }
.tr-footer__widgets { margin-bottom: 20px; }
.tr-footer__copy { margin: 0; font-size: .72rem; color: var(--tr-muted); }
.widget { margin-bottom: 20px; }
.widget-title { font-size: .9rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }

/* Notice bar */
.tr-notice { position: relative; background: #111; border-top: 1px solid var(--tr-line); padding: 14px 0; }
.tr-notice[hidden] { display: none; }
.tr-notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tr-notice__body strong { color: var(--tr-accent); font-size: .8rem; }
.tr-notice__body p { margin: 0; font-size: .68rem; color: #aaa; line-height: 1.6; }
.tr-notice .tr-btn { flex-shrink: 0; padding: 6px 22px; font-size: .75rem; }
.tr-notice.is-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; }

/* ---------- Inner pages ---------- */
.tr-pagehead { padding: 40px 0 26px; border-bottom: 1px solid var(--tr-line); background: linear-gradient(#0b0b0b, #000); }
.tr-pagehead h1 { font-family: var(--tr-display); text-transform: uppercase; letter-spacing: .5px; font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin: 0; }
.tr-pagehead__meta { color: var(--tr-muted); font-size: .82rem; margin: 8px 0 0; }
.tr-pagehead__desc { color: var(--tr-muted); margin-top: 8px; }
.tr-tag { display: inline-block; background: var(--tr-accent); color: #000; font-size: .72rem; font-weight: 600; padding: 1px 10px; border-radius: 3px; margin-bottom: 10px; }
.tr-tag:hover { background: #fff; color: #000; }
.tr-article__thumb { margin: 0 0 28px; }
.entry-content { font-size: 1rem; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content blockquote { border-left: 3px solid var(--tr-accent); background: var(--tr-bg-2); margin: 1.5em 0; padding: 14px 22px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--tr-line); padding: 8px 12px; }
.entry-content th { background: var(--tr-bg-3); color: #fff; }
.alignwide { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
figcaption, .wp-caption-text { font-size: .8rem; color: var(--tr-muted); text-align: center; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tr-tags a { background: var(--tr-bg-3); color: var(--tr-text); padding: 2px 12px; border-radius: 3px; font-size: .8rem; }
.tr-tags a:hover { background: var(--tr-accent); color: #000; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.post-navigation a { display: block; border: 1px solid var(--tr-line); padding: 14px 18px; height: 100%; color: #fff; }
.post-navigation a:hover { border-color: var(--tr-accent); }
.post-navigation .nav-next { text-align: right; }
.nav-sub { display: block; font-size: .75rem; color: var(--tr-accent); }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; background: var(--tr-bg-3); color: #fff; padding: 0 10px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--tr-accent); color: #000; }

.tr-search-form { display: flex; max-width: 520px; margin: 0 auto; border: 1px solid #ccc; background: #fff; }
.tr-search-form input { flex: 1; border: 0; padding: 10px 14px; background: transparent; color: #000; min-width: 0; font-size: .95rem; outline: none; }
.tr-search-form button { border: 0; background: var(--tr-accent); color: #000; padding: 0 16px; }
.tr-section .tr-search-form { border-color: var(--tr-line); background: var(--tr-bg-2); }
.tr-section .tr-search-form input { color: #fff; }
.tr-empty, .tr-404 { text-align: center; padding: 40px 0; }
.tr-404__code { font-family: var(--tr-display); font-size: clamp(5rem, 14vw, 9rem); color: var(--tr-accent); line-height: 1; margin: 0; }
.tr-404__search { margin: 20px auto 24px; }

.tr-comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 26px; }
.comment-body { background: var(--tr-bg-2); padding: 14px 18px; margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; color: #fff; }
.comment-author img { border-radius: 50%; }
.comment-metadata, .comment-metadata a { font-size: .75rem; color: var(--tr-muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; background: var(--tr-bg-2); border: 1px solid var(--tr-line); color: #fff; padding: 10px 12px; font-family: inherit;
}
.comment-form label { display: block; font-size: .85rem; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.tr-grid { grid-template-columns: repeat(2, 1fr); }
	.tr-nav-toggle { display: flex; }
	.tr-nav { display: none; }
	.tr-nav.is-open { display: block; padding-bottom: 8px; }
	.tr-menu { flex-direction: column; }
	.tr-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 14px; background: transparent; }
	.tr-hero__track { aspect-ratio: 16 / 8; }
}
@media (max-width: 600px) {
	.tr-topbar__right { align-items: flex-end; }
	.tr-utility__menu { display: none; }
	.tr-banners { grid-template-columns: 1fr; }
	.tr-notice__inner { flex-direction: column; align-items: stretch; text-align: left; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.tr-hero__arrow { width: 32px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
