Website overhaul: nav, accessibility, shared components, SEO, Reaper silence detection
Website: - Add persistent top nav across all pages - Add skip-to-content links, focus-visible styles, ARIA on audio player - Fix text contrast for WCAG AA compliance - Add 600px breakpoint, mobile typography scaling - Extract shared footer.js, player.js, episode.js components - Episode pagination (10 + Load More), featured clip dedup - Worker meta injection for social crawler OG tags - Unify Plausible analytics proxy across all pages - Sanitize innerHTML for XSS safety - Custom 404 page, enhanced llms.txt, fix sitemap - Bump cache versions to v=4 Reaper: - Add dual silence threshold: 2.5s for speaker transitions, 6s for same-speaker gaps Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+225
-42
@@ -6,10 +6,86 @@
|
||||
--accent-red: #cc2222;
|
||||
--text: #f5f0e5;
|
||||
--text-muted: #9a8b78;
|
||||
--text-dim: #7a6d5e;
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
}
|
||||
|
||||
/* Skip Link */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -100%;
|
||||
left: 1rem;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 700;
|
||||
font-size: 0.85rem;
|
||||
z-index: 200;
|
||||
transition: top 0.2s;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 0.5rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Site Nav */
|
||||
.site-nav {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.site-nav-brand {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.site-nav-brand:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.site-nav-links {
|
||||
display: flex;
|
||||
gap: 1.25rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.site-nav-links a {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.site-nav-links a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.site-nav-links a[aria-current="page"] {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Focus Styles */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
a:focus-visible,
|
||||
button:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -182,10 +258,9 @@ a:hover {
|
||||
|
||||
.subscribe-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
color: var(--text-dim);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.subscribe-buttons {
|
||||
@@ -218,11 +293,11 @@ a:hover {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.6;
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.subscribe-btn:hover svg {
|
||||
opacity: 1;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Secondary links — How It Works, Discord, Support */
|
||||
@@ -237,19 +312,16 @@ a:hover {
|
||||
|
||||
.secondary-link {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.6;
|
||||
transition: color 0.2s, opacity 0.2s;
|
||||
color: var(--text-dim);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.secondary-link:hover {
|
||||
color: var(--accent);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.secondary-sep {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.3;
|
||||
color: var(--text-dim);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -362,6 +434,32 @@ a:hover {
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.load-more-btn {
|
||||
display: block;
|
||||
margin: 1.5rem auto 0;
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
border: 2px solid var(--accent);
|
||||
padding: 0.6rem 2rem;
|
||||
border-radius: 50px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, color 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
.load-more-btn:hover {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.load-more-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Testimonials */
|
||||
.testimonials-section {
|
||||
max-width: 900px;
|
||||
@@ -449,25 +547,37 @@ a:hover {
|
||||
}
|
||||
|
||||
.testimonial-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: var(--text-muted);
|
||||
opacity: 0.4;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
transition: opacity 0.3s, background 0.3s, transform 0.3s;
|
||||
position: relative;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.testimonial-dot:hover {
|
||||
opacity: 0.7;
|
||||
.testimonial-dot::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--text-dim);
|
||||
transition: background 0.3s, transform 0.3s;
|
||||
}
|
||||
|
||||
.testimonial-dot.active {
|
||||
.testimonial-dot:hover::after {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
|
||||
.testimonial-dot.active::after {
|
||||
background: var(--accent);
|
||||
opacity: 1;
|
||||
transform: scale(1.3);
|
||||
transform: translate(-50%, -50%) scale(1.3);
|
||||
}
|
||||
|
||||
/* Sticky Player */
|
||||
@@ -567,7 +677,7 @@ a:hover {
|
||||
.footer {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 1.5rem 10rem;
|
||||
padding: 2rem 1.5rem 5rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
@@ -680,22 +790,7 @@ a:hover {
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
/* Page Nav */
|
||||
.page-nav {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 1.25rem 1.5rem;
|
||||
}
|
||||
|
||||
.nav-home {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.nav-home:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
/* Legacy Page Nav — kept for backwards compat, use .site-nav instead */
|
||||
|
||||
/* Page Header */
|
||||
.page-header {
|
||||
@@ -1449,8 +1544,10 @@ a:hover {
|
||||
.about-section {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1.5rem 2.5rem;
|
||||
padding: 1.5rem 1.5rem 2.5rem;
|
||||
text-align: center;
|
||||
border-top: 1px solid #2a2015;
|
||||
border-bottom: 1px solid #2a2015;
|
||||
}
|
||||
|
||||
.about-section p {
|
||||
@@ -1465,10 +1562,10 @@ a:hover {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.about-teaser {
|
||||
color: var(--text) !important;
|
||||
p.about-teaser {
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem !important;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Featured Clips (homepage) */
|
||||
@@ -1577,11 +1674,69 @@ a:hover {
|
||||
}
|
||||
|
||||
.about-section {
|
||||
padding: 1rem 2rem 2.5rem;
|
||||
padding: 1.5rem 2rem 2.5rem;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Legal Content (Privacy, Terms pages) */
|
||||
.legal-content {
|
||||
line-height: 1.7;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.legal-content h2 {
|
||||
color: var(--text);
|
||||
font-size: 1.3rem;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.legal-content h2:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.legal-content h3 {
|
||||
color: var(--text);
|
||||
font-size: 1.05rem;
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.legal-content p {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.legal-content ul {
|
||||
margin: 0.5em 0 1em 1.5em;
|
||||
}
|
||||
|
||||
.legal-content a {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.legal-content a:hover {
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
@media (max-width: 767px) {
|
||||
.hero h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.cover-art {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.clips-featured,
|
||||
.home-clips-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
@@ -1600,6 +1755,25 @@ a:hover {
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet intermediate */
|
||||
@media (max-width: 600px) {
|
||||
.hiw-detail-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.stats-summary {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.site-nav-links {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.site-nav-links a {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.clips-grid {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -1613,4 +1787,13 @@ a:hover {
|
||||
.clip-card-desc {
|
||||
display: -webkit-box;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user