/*
Theme Name: EspressoSpecsHQ
Theme URI: https://espressospecshq.com
Author: EspressoSpecsHQ
Author URI: https://espressospecshq.com
Description: A premium home-espresso education theme with warm café aesthetics. Honest machine and grinder guides, dial-in technique, and respect for the bean.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espressospecshq
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* ===================================
   CSS VARIABLES & ROOT
   =================================== */
:root {
    /* HiFi Color Palette */
    --esp-vinyl: #181210;
    --esp-walnut: #241a14;
    --esp-cabinet: #34281f;
    --esp-gold: #c98e3f;
    --esp-copper: #a05c2c;
    --esp-tube: #e8642c;
    --esp-white: #f7f2ea;
    --esp-dust: #a6988a;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--esp-dust);
    background-color: var(--esp-vinyl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Selection */
::selection {
    background-color: var(--esp-copper);
    color: white;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--esp-gold);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Form elements */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--esp-white);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

.text-gold { color: var(--esp-gold); }
.text-copper { color: var(--esp-copper); }
.text-tube { color: var(--esp-tube); }
.text-white { color: var(--esp-white); }
.text-dust { color: var(--esp-dust); }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

/* ===================================
   LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container { padding: 0 var(--spacing-lg); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--spacing-xl); }
}

.main-content {
    flex: 1;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ===================================
   NAVIGATION
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--esp-walnut);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    color: var(--esp-gold);
    animation: spin-slow 8s linear infinite;
}

.logo-icon:hover svg {
    color: var(--esp-copper);
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--esp-vinyl);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--esp-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    color: var(--esp-white);
}

.logo-title span {
    color: var(--esp-gold);
}

.logo-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--esp-dust);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: var(--esp-dust);
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--esp-gold);
}

.nav-link.active {
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--esp-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: var(--esp-gold);
    color: var(--esp-vinyl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.nav-cta:hover {
    background: var(--esp-white);
    color: var(--esp-vinyl);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--esp-dust);
    transition: color var(--transition-normal);
}

.mobile-menu-toggle:hover {
    color: var(--esp-white);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: var(--esp-walnut);
    border-bottom: 1px solid var(--esp-cabinet);
    padding: 0.5rem;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--esp-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.mobile-nav-link:hover {
    color: var(--esp-gold);
    background: rgba(26, 26, 26, 0.5);
}

.mobile-nav-cta {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    background: var(--esp-gold);
    color: var(--esp-vinyl);
    border-radius: var(--radius-md);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-md {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
}

/* Button Variants */
.btn-primary {
    background: var(--esp-gold);
    color: var(--esp-vinyl);
}

.btn-primary:hover {
    background: var(--esp-white);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.3);
}

.btn-secondary {
    background: var(--esp-walnut);
    color: var(--esp-gold);
    border: 1px solid rgba(212, 168, 85, 0.2);
}

.btn-secondary:hover {
    border-color: var(--esp-gold);
    color: var(--esp-white);
}

.btn-outline {
    background: transparent;
    color: var(--esp-copper);
    border: 1px solid var(--esp-copper);
}

.btn-outline:hover {
    background: var(--esp-copper);
    color: var(--esp-vinyl);
}

.btn-ghost {
    background: transparent;
    color: var(--esp-dust);
}

.btn-ghost:hover {
    color: var(--esp-gold);
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: rgba(45, 37, 32, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid var(--esp-walnut);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.card-hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--esp-gold);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.card-hover:hover::before {
    transform: translateX(0);
}

.card-dark {
    background: rgba(0, 0, 0, 0.2);
}

/* ===================================
   BADGES
   =================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
    border-radius: var(--radius-sm);
}

.badge-gold {
    color: var(--esp-gold);
    background: rgba(212, 168, 85, 0.1);
    border-color: rgba(212, 168, 85, 0.2);
}

.badge-copper {
    color: var(--esp-copper);
    background: rgba(184, 115, 51, 0.1);
    border-color: rgba(184, 115, 51, 0.2);
}

.badge-tube {
    color: var(--esp-tube);
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.badge-beginner {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-speakers {
    color: var(--esp-copper);
    background: rgba(184, 115, 51, 0.1);
    border-color: rgba(184, 115, 51, 0.2);
}

.badge-amplifiers {
    color: var(--esp-tube);
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.badge-digital {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.badge-vinyl {
    color: var(--esp-gold);
    background: rgba(212, 168, 85, 0.1);
    border-color: rgba(212, 168, 85, 0.2);
}

.badge-room-setup {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* ===================================
   SECTION HEADING
   =================================== */
.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-heading.light h2 {
    color: var(--esp-vinyl);
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading.centered .section-subtitle {
    justify-content: center;
}

.section-subtitle p {
    font-size: 1.125rem;
    color: var(--esp-dust);
    margin: 0;
}

.section-heading.light .section-subtitle p {
    color: rgba(45, 37, 32, 0.8);
}

.section-line {
    height: 1px;
    width: 3rem;
    background: var(--esp-gold);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--esp-vinyl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--esp-vinyl), rgba(26, 26, 26, 0.9), transparent);
}

.hero-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--esp-vinyl), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    padding-top: 5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--esp-tube);
    animation: pulse 2s infinite;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--esp-gold);
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(to right, var(--esp-gold), var(--esp-copper));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--esp-dust);
    line-height: 1.7;
    max-width: 32rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* VU Meter Decoration */
.vu-meter {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: none;
    opacity: 0.2;
}

@media (min-width: 1024px) {
    .vu-meter {
        display: block;
    }
}

.vu-meter-arc {
    width: 16rem;
    height: 8rem;
    border: 2px solid var(--esp-white);
    border-bottom: none;
    border-radius: 8rem 8rem 0 0;
    position: relative;
    overflow: hidden;
}

.vu-meter-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 6rem;
    background: var(--esp-tube);
    transform-origin: bottom center;
    transform: rotate(-45deg);
    animation: vu-swing 3s ease-in-out infinite;
}

/* ===================================
   LISTENING JOURNEY SECTION
   =================================== */
.journey-section {
    padding: 6rem 0;
    background: var(--esp-vinyl);
    position: relative;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .journey-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.journey-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.journey-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.journey-icon {
    padding: 0.75rem;
    background: var(--esp-walnut);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.journey-icon svg {
    width: 32px;
    height: 32px;
}

.journey-icon.tube svg { color: var(--esp-tube); }
.journey-icon.gold svg { color: var(--esp-gold); }
.journey-icon.copper svg { color: var(--esp-copper); }

.journey-level {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--esp-dust);
}

.journey-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.journey-card p {
    font-size: 0.875rem;
    color: var(--esp-dust);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.journey-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--esp-gold);
    transition: color var(--transition-normal);
}

.journey-link:hover {
    color: var(--esp-white);
}

.journey-link svg {
    transition: transform var(--transition-normal);
}

.journey-link:hover svg {
    transform: translateX(4px);
}

/* ===================================
   POPULAR GUIDES SECTION
   =================================== */
.guides-section {
    padding: 6rem 0;
    background: var(--esp-cabinet);
    position: relative;
}

.guides-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="%233d3530" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.3;
}

.guides-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .guides-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.guides-header .section-heading {
    margin-bottom: 0;
}

.view-all-link {
    color: var(--esp-gold);
    transition: color var(--transition-normal);
}

.view-all-link:hover {
    color: var(--esp-white);
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.guide-card {
    height: 100%;
    transition: background var(--transition-normal);
}

.guide-card:hover {
    background: var(--esp-walnut);
}

.guide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.guide-read-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card:hover h3 {
    color: var(--esp-gold);
}

.guide-excerpt {
    font-size: 0.875rem;
    color: var(--esp-dust);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(168, 159, 148, 0.5);
}

/* ===================================
   SPECS PREVIEW SECTION
   =================================== */
.specs-section {
    padding: 6rem 0;
    background: var(--esp-vinyl);
}

.specs-container {
    background: var(--esp-walnut);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.specs-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .specs-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.specs-header h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.specs-header p {
    color: var(--esp-dust);
    max-width: 36rem;
    margin: 0;
}

.specs-table-wrapper {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: var(--esp-dust);
}

.specs-table thead {
    background: rgba(0, 0, 0, 0.2);
}

.specs-table th {
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--esp-gold);
}

.specs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-normal);
}

.specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.specs-table td {
    padding: 1rem 1.5rem;
}

.specs-name {
    font-weight: 700;
    color: var(--esp-white);
}

.specs-manufacturer {
    font-size: 0.75rem;
}

.specs-details {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.specs-details .spec-key {
    color: var(--esp-tube);
}

.specs-price {
    color: var(--esp-white);
    font-weight: 500;
}

.specs-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(168, 159, 148, 0.5);
}

/* ===================================
   SYSTEM BUILDING SECTION
   =================================== */
.system-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--esp-vinyl), var(--esp-cabinet));
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .system-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.system-image-wrapper {
    position: relative;
}

.system-image-glow {
    position: absolute;
    inset: -1rem;
    background: rgba(212, 168, 85, 0.1);
    filter: blur(40px);
    border-radius: 50%;
}

.system-image {
    position: relative;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--esp-walnut);
    filter: grayscale(20%);
    transition: filter var(--transition-slow);
}

.system-image:hover {
    filter: grayscale(0%);
}

.system-quote {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--esp-walnut);
    padding: 1.5rem;
    border: 1px solid rgba(212, 168, 85, 0.2);
    box-shadow: var(--shadow-xl);
    max-width: 20rem;
    display: none;
}

@media (min-width: 768px) {
    .system-quote {
        display: block;
    }
}

.system-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--esp-gold);
    margin: 0;
}

.system-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .system-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.system-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--esp-walnut);
    background: rgba(45, 37, 32, 0.3);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.system-option:hover {
    border-color: rgba(212, 168, 85, 0.5);
    background: var(--esp-walnut);
}

.system-option-icon {
    color: var(--esp-dust);
    transition: color var(--transition-normal);
}

.system-option:hover .system-option-icon {
    color: var(--esp-gold);
}

.system-option h4 {
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}

.system-option:hover h4 {
    color: var(--esp-gold);
}

.system-option-price {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--esp-dust);
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */
.newsletter-section {
    background: var(--esp-gold);
    padding: 4rem 0;
}

.newsletter-box {
    background: var(--esp-vinyl);
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .newsletter-box {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .newsletter-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.newsletter-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(212, 168, 85, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(50%, -50%);
}

.newsletter-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: var(--esp-dust);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    width: 100%;
    max-width: 28rem;
    position: relative;
    z-index: 1;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    background: var(--esp-walnut);
    border: 1px solid var(--esp-cabinet);
    color: var(--esp-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-normal);
}

.newsletter-input:focus {
    border-color: var(--esp-gold);
}

.newsletter-input::placeholder {
    color: var(--esp-dust);
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: rgba(168, 159, 148, 0.5);
    margin-top: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--esp-vinyl);
    border-top: 1px solid var(--esp-walnut);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: var(--esp-dust);
}

.footer-logo span {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--esp-white);
}

.footer-logo span span {
    color: var(--esp-dust);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--esp-dust);
}

.footer-social {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--esp-walnut);
    border-radius: 50%;
    color: var(--esp-gold);
    transition: all var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--esp-gold);
    color: var(--esp-vinyl);
}

/* Footer Columns */
.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--esp-dust);
    transition: color var(--transition-normal);
}

.footer-link:hover {
    color: var(--esp-gold);
}

.footer-link svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    color: var(--esp-copper);
    transition: opacity var(--transition-normal);
}

.footer-link:hover svg {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--esp-walnut);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--esp-dust);
    transition: color var(--transition-normal);
}

.footer-legal a:hover {
    color: var(--esp-white);
}

/* ===================================
   PAGE TEMPLATES
   =================================== */
.page-header {
    padding: 5rem 0;
    background: var(--esp-cabinet);
    border-bottom: 1px solid var(--esp-walnut);
    text-align: center;
}

.page-header .badge {
    margin-bottom: 1rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header-subtitle {
    font-size: 1.25rem;
    color: var(--esp-dust);
    max-width: 42rem;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
    background: var(--esp-vinyl);
    min-height: 50vh;
}

.page-content .container {
    max-width: 56rem;
}

/* Prose Content */
.prose {
    color: var(--esp-dust);
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--esp-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--esp-white);
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose li::marker {
    color: var(--esp-gold);
}

.prose strong {
    color: var(--esp-white);
    font-weight: 600;
}

.prose blockquote {
    border-left: 4px solid var(--esp-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--esp-white);
}

.prose img {
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--esp-walnut);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.prose pre {
    background: var(--esp-walnut);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
}

/* ===================================
   BLOG / ARCHIVE
   =================================== */
.archive-header {
    padding: 4rem 0;
    background: var(--esp-cabinet);
    border-bottom: 1px solid var(--esp-walnut);
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--esp-dust);
    font-size: 1.125rem;
}

.archive-content {
    padding: 4rem 0;
    background: var(--esp-vinyl);
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1rem;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-card-date {
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition-normal);
}

.post-card:hover h3 {
    color: var(--esp-gold);
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--esp-dust);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-read-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.post-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--esp-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-read-more:hover {
    color: var(--esp-white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--esp-walnut);
    border: 1px solid var(--esp-cabinet);
    color: var(--esp-dust);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.pagination a:hover {
    border-color: var(--esp-gold);
    color: var(--esp-gold);
}

.pagination .current {
    background: var(--esp-gold);
    border-color: var(--esp-gold);
    color: var(--esp-vinyl);
}

/* ===================================
   SINGLE POST
   =================================== */
.single-header {
    padding: 4rem 0;
    background: var(--esp-cabinet);
    border-bottom: 1px solid var(--esp-walnut);
}

.single-header .container {
    max-width: 56rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-date {
    font-size: 0.875rem;
    color: var(--esp-dust);
}

.single-read-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--esp-dust);
    padding: 0.25rem 0.5rem;
    background: var(--esp-walnut);
    border-radius: var(--radius-sm);
}

.single-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.single-excerpt {
    font-size: 1.25rem;
    color: var(--esp-dust);
    line-height: 1.6;
}

.single-featured-image {
    margin: -2rem auto 2rem;
    max-width: 72rem;
    padding: 0 var(--spacing-md);
}

.single-featured-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2xl);
}

.single-content {
    padding: 3rem 0;
    background: var(--esp-vinyl);
}

.single-content .container {
    max-width: 56rem;
}

/* Post Navigation */
.post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--esp-walnut);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-previous,
.nav-next {
    padding: 1rem;
    background: var(--esp-walnut);
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--esp-cabinet);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--esp-dust);
    margin-bottom: 0.25rem;
}

.nav-title {
    color: var(--esp-white);
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--esp-cabinet);
}

.related-posts h2 {
    margin-bottom: 2rem;
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-email svg {
    color: var(--esp-gold);
}

.contact-email span {
    color: var(--esp-white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--esp-dust);
}

.form-input,
.form-textarea,
.form-select {
    background: var(--esp-walnut);
    border: 1px solid var(--esp-cabinet);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--esp-white);
    outline: none;
    transition: border-color var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--esp-gold);
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

/* ===================================
   COMPONENT GUIDES
   =================================== */
.component-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--esp-walnut);
}

.component-content h3 {
    color: var(--esp-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.component-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.component-content li {
    margin-bottom: 0.5rem;
}

.component-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .component-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   TOOLS PAGE
   =================================== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tool-card {
    height: 100%;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.tool-icon {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.tool-icon.gold {
    background: rgba(212, 168, 85, 0.1);
    color: var(--esp-gold);
}

.tool-icon.copper {
    background: rgba(184, 115, 51, 0.1);
    color: var(--esp-copper);
}

.tool-header h3 {
    font-size: 1.25rem;
}

.tool-header p {
    font-size: 0.75rem;
    color: var(--esp-dust);
    margin: 0;
}

/* Range Input */
.range-group {
    margin-bottom: 1.5rem;
}

.range-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--esp-dust);
    margin-bottom: 0.5rem;
}

.range-input {
    width: 100%;
    height: 8px;
    background: var(--esp-cabinet);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--esp-gold);
    border-radius: 50%;
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.range-labels .current {
    color: var(--esp-gold);
    font-weight: 700;
}

/* Recommendation Box */
.recommendation-box {
    background: rgba(61, 53, 48, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.recommendation-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recommendation-item span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--esp-dust);
}

.recommendation-item span:last-child {
    font-family: var(--font-mono);
    font-size: 1.125rem;
}

.recommendation-item span:last-child.gold {
    color: var(--esp-gold);
}

.recommendation-item span:last-child.tube {
    color: var(--esp-tube);
}

.tool-note {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--esp-dust);
    margin-top: 1rem;
}

/* Room Modes Info */
.room-info {
    font-size: 0.875rem;
    line-height: 1.7;
}

.room-info ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.room-info li {
    margin-bottom: 0.5rem;
}

.room-info li::marker {
    color: var(--esp-gold);
}

.room-quote {
    padding: 1rem;
    background: var(--esp-walnut);
    border-left: 2px solid var(--esp-copper);
    margin-top: 1rem;
}

.room-quote p {
    font-style: italic;
    color: var(--esp-white);
    margin: 0;
}

/* ===================================
   START HERE PAGE
   =================================== */
.start-hero {
    padding: 5rem 0;
    background: var(--esp-cabinet);
    border-bottom: 1px solid var(--esp-walnut);
    text-align: center;
}

.start-hero .badge {
    margin-bottom: 1rem;
}

.start-hero h1 {
    margin-bottom: 1.5rem;
}

.start-hero p {
    font-size: 1.25rem;
    color: var(--esp-dust);
    max-width: 42rem;
    margin: 0 auto;
}

.pillars-section {
    padding: 4rem 0;
    background: var(--esp-vinyl);
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .pillar {
        flex-direction: row;
    }
    
    .pillar:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.pillar-content {
    flex: 1;
}

.pillar-content h3 {
    font-size: 1.5rem;
    color: var(--esp-gold);
    margin-bottom: 0.75rem;
}

.pillar-content p {
    margin-bottom: 1rem;
}

.pillar-list {
    margin-bottom: 1.5rem;
}

.pillar-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--esp-white);
    margin-bottom: 0.5rem;
}

.pillar-list li svg {
    width: 16px;
    height: 16px;
    color: var(--esp-copper);
}

.pillar-list li .dot {
    width: 8px;
    height: 8px;
    background: var(--esp-tube);
    border-radius: 50%;
}

.pillar-visual {
    flex: 1;
    background: var(--esp-walnut);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.pillar-visual svg {
    opacity: 0.1;
}

.room-callout {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(45, 37, 32, 0.3);
    border-left: 4px solid var(--esp-gold);
}

.room-callout h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.room-callout p {
    margin-bottom: 1rem;
}

.room-callout a {
    color: var(--esp-gold);
    font-weight: 700;
}

/* ===================================
   SYSTEM BUILDING PAGE
   =================================== */
.budget-bar {
    display: flex;
    height: 3rem;
    width: 100%;
    max-width: 42rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--esp-vinyl);
    line-height: 3rem;
}

@media (min-width: 768px) {
    .budget-bar {
        font-size: 0.875rem;
    }
}

.budget-bar .speakers {
    width: 45%;
    background: var(--esp-gold);
}

.budget-bar .amplifier {
    width: 30%;
    background: var(--esp-copper);
}

.budget-bar .source {
    width: 20%;
    background: var(--esp-tube);
}

.budget-bar .misc {
    width: 5%;
    background: var(--esp-dust);
    display: none;
}

@media (min-width: 640px) {
    .budget-bar .misc {
        display: block;
    }
}

.system-card {
    position: relative;
}

.system-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.system-card-header h3 {
    font-size: 1.5rem;
}

.system-card > p {
    margin-bottom: 1.5rem;
}

.system-card-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .system-card-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}

.bom-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--esp-gold);
}

.bom-box h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--esp-gold);
    margin-bottom: 0.75rem;
}

.bom-box ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bom-box li {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--esp-white);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bom-box li:last-child {
    border-bottom: none;
}

.pro-tip {
    background: var(--esp-walnut);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
    .pro-tip {
        width: 16rem;
    }
}

.pro-tip h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pro-tip p {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--esp-dust);
    margin: 0;
}

/* ===================================
   GLOSSARY PAGE
   =================================== */
.glossary-grid {
    display: grid;
    gap: 1.5rem;
}

.glossary-item h3 {
    font-size: 1.25rem;
    color: var(--esp-gold);
    margin-bottom: 0.5rem;
}

.glossary-item p {
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   VINYL GUIDE PAGE
   =================================== */
.vinyl-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.vinyl-content > p {
    margin-bottom: 1.5rem;
}

.setup-card {
    margin-bottom: 2rem;
}

.setup-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.setup-card ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.setup-card li {
    margin-bottom: 0.75rem;
}

.cartridge-section {
    margin-top: 2rem;
}

.cartridge-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cartridge-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cartridge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cartridge-type strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cartridge-type strong.gold {
    color: var(--esp-gold);
}

.cartridge-type strong.copper {
    color: var(--esp-copper);
}

.cartridge-type p {
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================
   404 PAGE
   =================================== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: var(--esp-vinyl);
}

.error-404-content h1 {
    font-size: 8rem;
    color: var(--esp-walnut);
    margin-bottom: 1rem;
}

.error-404-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-content p {
    font-size: 1.125rem;
    color: var(--esp-dust);
    margin-bottom: 2rem;
}

/* ===================================
   COMMENTS
   =================================== */
.comments-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--esp-walnut);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    padding: 1.5rem;
    background: var(--esp-walnut);
    border-radius: var(--radius-sm);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--esp-cabinet);
}

.comment-author {
    font-weight: 600;
    color: var(--esp-white);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--esp-dust);
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--esp-gold);
}

.children {
    margin-left: 2rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--esp-cabinet);
}

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .comment-form-fields {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* ===================================
   WIDGETS
   =================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    padding: 1.5rem;
    background: var(--esp-walnut);
    border-radius: var(--radius-sm);
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--esp-cabinet);
}

.widget ul {
    display: flex-direction: column;
    gap: 0.5rem;
}

.widget li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--esp-dust);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color var(--transition-normal);
}

.widget li a:hover {
    color: var(--esp-gold);
}

.widget li:last-child a {
    border-bottom: none;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes vu-swing {
    0%, 100% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(30deg);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   WORDPRESS SPECIFIC
   =================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--esp-dust);
    padding: 0.5rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.sticky .post-card {
    border: 2px solid var(--esp-gold);
}

.bypostauthor .comment {
    border-left: 3px solid var(--esp-gold);
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--esp-walnut);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--esp-white);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* 2026-06-13 fix: force dark text inside builder light-bg callout boxes (invisible on dark themes) */
[style*="background:#f3faf6"],[style*="background:#fbf8f0"],[style*="background:#fff"]{color:#1a1a1a !important}

/* SF_ALIGN_FIX 2026-06-13 */
.single-post-content{margin-left:auto !important;margin-right:auto !important}
.single-post-featured-image{margin-left:auto !important;margin-right:auto !important;max-width:48rem !important}

/* SF_DISCLOSURE_NORMAL 2026-06-14 — affiliate disclosures render as NORMAL body text: no box, no border/background/padding, no fade, normal size & colour. */
.affiliate-disclosure,
[style*="#f7f7f7"]{ color: var(--color-text-secondary, inherit) !important; background: none !important; border: none !important; padding: 0 !important; margin: 1rem 0 !important; font-size: inherit !important; opacity: 1 !important; border-radius: 0 !important; }
.affiliate-disclosure *,
[style*="#f7f7f7"] *{ color: var(--color-text-secondary, inherit) !important; opacity: 1 !important; }
.affiliate-disclosure a,
[style*="#f7f7f7"] a{ color: #58a6ff !important; text-decoration: underline; }
