:root {
    --bg-color: #0f172a;
    --bg-texture: radial-gradient(#1e293b 1px, transparent 1px);
    --bg-size: 32px 32px;
    --text-color: #ece3d0;
    --text-opacity: 0.85;
    --border-color: rgba(236, 227, 208, 0.15);
    --gold-date: #d4af37;
}

body.light-mode {
    --bg-color: #f7f4ec;
    --bg-texture: radial-gradient(#d1c7b7 1px, transparent 1px);
    --bg-size: 32px 32px;
    --text-color: #2c2925;
    --text-opacity: 0.9;
    --border-color: rgba(44, 41, 37, 0.15);
    --gold-date: #b8860b;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    background-size: var(--bg-size);
    font-family: "Sabon MT W02", Georgia, serif;
    color: var(--text-color);
    max-width: 900px;
    margin: 100px auto;
    padding: 0 50px;
    line-height: 1.8;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 90px;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0 45px 0;
}

.site-branding {
    text-align: left;
}

.site-title {
    font-size: 2.9rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin: 0;
    font-style: italic;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

header nav {
    display: flex;
    align-items: center;
    gap: 40px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
}

header nav a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

header nav a:hover {
    opacity: 1;
    color: #e6c567;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.6rem;
    opacity: 0.8;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    opacity: 1;
    color: #e6c567;
}

.gold-accent {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Now Playing Card Styling */
.now-playing-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    max-width: 280px;
}

/* Spinning Vinyl Wrapper */
.vinyl-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Center of the Vinyl / Album Art Container */
.album-art-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gold-date);
}

.album-art-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Track Info Text Stack */
.now-playing-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
}

.track-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
    text-overflow: ellipsis;
    overflow: hidden;
}

.artist-name {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Bookshelf Layout with Covers */
.month-group {
    margin-bottom: 60px;
}

.month-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.book-item:last-child {
    border-bottom: none;
}

.book-cover {
    width: 60px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.book-item:hover .book-cover {
    transform: scale(1.03);
}

.book-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title-link {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.book-title-link:hover {
    color: #e6c567;
}

.book-author {
    font-size: 1.1rem;
    opacity: 0.6;
    font-style: italic;
}

.book-rating {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-date);
    white-space: nowrap;
}

/* Review Pages Specific Styles */
.review-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.review-cover {
    width: 160px;
    object-fit: contain; 
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.review-meta-info {
    display: flex;
    flex-direction: column;
}

.review-book-title {
    font-size: 2.4rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.review-author {
    font-size: 1.3rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.review-rating-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-date);
    display: flex;
    gap: 20px;
}

.featured-quote {
    margin: 50px 0;
    padding: 30px 40px;
    border-left: 2px solid var(--gold-date);
    background: rgba(212, 175, 55, 0.03);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.6;
}

.review-body p {
    margin-bottom: 30px;
    text-align: justify;
}

.back-link {
    display: inline-block;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    opacity: 1;
    color: #e6c567;
}

/* Favorite Albums Shelf Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.album-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-cover-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
}

.album-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
}

.album-artist {
    font-size: 0.95rem;
    opacity: 0.6;
    font-style: italic;
}

/* Monthly Playlist Section */
.monthly-entry {
    margin-bottom: 40px;
}

.playlist-month-heading {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.playlist-description {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 15px;
    font-style: italic;
}

.playlist-wrapper {
    margin: 30px 0;
}

.playlist-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.playlist-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

/* Footer Styles (Seamless Background & Matching Alignment) */
.site-footer {
    width: 100%;
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    background-size: var(--bg-size);
    color: var(--text-color);
    padding: 70px 0 40px 0;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
    font-family: "Cormorant Garamond", Georgia, serif;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 240px;
}

.footer-col h3 {
    font-size: 1.8rem;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.footer-col h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 15px 0;
    color: var(--gold-date);
}

.footer-col p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.75;
    margin: 0 0 15px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: #e6c567;
}

/* Subscription Form matching the site tone */
.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-form input[type="email"] {
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    flex: 1;
    font-size: 1.1rem;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

.subscribe-form button {
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--gold-date);
    color: var(--bg-color);
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
}

.subscribe-form button:hover {
    opacity: 0.85;
}

.form-message {
    margin-top: 10px;
    font-size: 1rem;
}

.footer-bottom {
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding: 25px 50px 0 50px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    opacity: 0.6;
}