/*
Theme Name: dds_tardymusic.com
Theme URI: https://tardymusic.com/
Author: Балашова Ульяна
Author URI: https://tardymusic.com/
Description: Тема для архива музыкальной истории и редких записей. Тёмная винтажная эстетика, винил, аналоговые отсылки.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tardymusic
*/

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: #E8E3D9;
    background-color: #121212;
    background-image:
        radial-gradient(ellipse at 30% 10%, rgba(212, 175, 55, 0.04), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(200, 122, 74, 0.035), transparent 55%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.89  0 0 0 0 0.85  0 0 0 0.045 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
    background-attachment: fixed;
    background-size: auto, auto, 240px 240px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: #C87A4A;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 122, 74, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover, a:focus {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.7);
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Times New Roman", Georgia, serif;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    letter-spacing: 0.01em;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

/* Drop cap for first paragraph in main entry content */
.entry-content > p:first-of-type::first-letter {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    float: left;
    font-size: 4.2em;
    line-height: 0.85;
    padding: 0.05em 0.12em 0 0;
    color: #D4AF37;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.4em;
    background: #1A1E24;
    border-left: 3px solid #D4AF37;
    border-top: 1px solid rgba(232, 227, 217, 0.08);
    border-right: 1px solid rgba(232, 227, 217, 0.08);
    border-bottom: 1px solid rgba(232, 227, 217, 0.08);
    font-style: italic;
    color: #E8E3D9;
    border-radius: 4px;
    position: relative;
}
blockquote::before {
    content: "“";
    position: absolute;
    top: -0.1em;
    left: 0.18em;
    font-family: "Playfair Display", serif;
    font-size: 3.4em;
    color: rgba(212, 175, 55, 0.18);
    line-height: 1;
    pointer-events: none;
}

code, pre, kbd {
    font-family: "Space Mono", "Courier New", monospace;
    font-size: 0.92em;
}
code {
    background: rgba(212, 175, 55, 0.08);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    color: #D4AF37;
}
pre {
    background: #0d0d0d;
    padding: 1em 1.2em;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 4px;
    overflow-x: auto;
    color: #E8E3D9;
}
pre code { background: none; padding: 0; color: inherit; }

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 2.5em 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: #1A1E24;
}
th, td {
    padding: 0.7em 0.9em;
    border: 1px solid rgba(232, 227, 217, 0.12);
    text-align: left;
}
th {
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

/* Selection */
::selection { background: rgba(212, 175, 55, 0.35); color: #ffffff; }

/* Focus visible */
:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 3px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.layout {
    display: flex;
    gap: 2.4rem;
    margin: 2rem 0 3rem;
}
.layout-content { flex: 1 1 67%; min-width: 0; }
.layout-aside { flex: 0 0 27%; }
.layout-no-aside .layout-content { flex: 1 1 85%; max-width: 85%; margin: 0 auto; }

@media (max-width: 960px) {
    .layout { flex-direction: column; gap: 2rem; }
    .layout-content, .layout-aside { flex: 1 1 100%; }
    .layout-no-aside .layout-content { max-width: 100%; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: linear-gradient(180deg, #1A1E24 0%, #15181d 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(200, 122, 74, 0.5), transparent);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.4rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}
.brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: #0d0d0d;
    padding: 4px;
    object-fit: contain;
}
.brand-text {
    min-width: 0;
}
.brand-name {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.brand-name a {
    color: inherit;
    border: none;
}
.brand-name a:hover { color: #E8E3D9; }
.brand-tagline {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #9A8F87;
    margin: 0.25rem 0 0;
    letter-spacing: 0.02em;
}

/* Primary navigation — metallic strips with rivets */
.primary-nav {
    flex: 0 1 auto;
}
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.primary-nav li { position: relative; }
.primary-nav a {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    color: #E8E3D9;
    background: linear-gradient(180deg, #2a2d33 0%, #1c1f24 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    position: relative;
}
.primary-nav a::before,
.primary-nav a::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #aaa 30%, #444 80%);
    border-radius: 50%;
    opacity: 0.45;
}
.primary-nav a::before { left: 5px; }
.primary-nav a::after { right: 5px; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #D4AF37;
    background: linear-gradient(180deg, #34373d 0%, #22252a 100%);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(212, 175, 55, 0.25);
}

/* Mobile nav toggle — reel/cassette icon */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: rgba(212, 175, 55, 0.08); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 960px) {
    .header-inner { padding: 1rem 0; gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #1A1E24;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        z-index: 50;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .primary-nav.is-open { max-height: 600px; }
    .primary-nav ul { flex-direction: column; gap: 0; padding: 0.6rem 1rem 1rem; }
    .primary-nav a { width: 100%; text-align: left; }
}

/* ==========================================================================
   Main content
   ========================================================================== */

main.site-main {
    min-height: 50vh;
    padding-bottom: 2rem;
}

.page-title {
    margin: 1.4rem 0 0.4rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 0.5rem;
}

.page-intro {
    color: #9A8F87;
    font-style: italic;
    margin-bottom: 1.6rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #9A8F87;
    padding: 0.9rem 0;
    margin: 0 0 0.6rem;
    border-bottom: 1px dashed rgba(232, 227, 217, 0.1);
    letter-spacing: 0.02em;
}
.breadcrumbs a {
    color: #C87A4A;
    border: none;
}
.breadcrumbs a:hover { color: #D4AF37; }
.breadcrumbs .sep {
    margin: 0 0.5em;
    color: rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   Article cards (loop)
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
    margin: 1.4rem 0 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1A1E24;
    border: 1px solid rgba(232, 227, 217, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: #0d0d0d;
    position: relative;
}
.card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: contrast(1.05) saturate(0.9) brightness(0.92);
}
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.card:hover .card-thumb img { transform: scale(1.04); filter: contrast(1.1) saturate(1) brightness(1); }

.card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(
            90deg,
            #14171c 0 14px,
            #1f2329 14px 28px
        ),
        #1A1E24;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.3);
}
.card-thumb-placeholder svg { width: 72px; height: 72px; }

.card-body {
    flex: 1;
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: "Space Mono", monospace;
    font-size: 0.74rem;
    color: #9A8F87;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.card-meta .date { color: #C87A4A; }
.card-meta .cat-list a {
    color: #9A8F87;
    border: none;
}
.card-meta .cat-list a:hover { color: #D4AF37; }

.card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.25;
}
.card-title a {
    color: #E8E3D9;
    border: none;
}
.card-title a:hover { color: #D4AF37; }

.card-excerpt {
    color: #b9b1a6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }
.card-excerpt a { color: #C87A4A; }

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.button,
button.btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.65em 1.3em;
    background: linear-gradient(180deg, #2a2d33 0%, #1c1f24 100%);
    color: #E8E3D9;
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-bottom: 3px solid #8B5A2B;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    line-height: 1.2;
}
.btn:hover,
.button:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background: linear-gradient(180deg, #8B2434 0%, #751E2B 100%);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.7);
    border-bottom-color: #5a4520;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(1px);
}
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn-small { padding: 0.45em 1em; font-size: 0.78rem; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 2.5rem 0 1.5rem;
    font-family: "Space Mono", monospace;
}
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    padding: 0.5em 0.85em;
    text-align: center;
    background: #1A1E24;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #E8E3D9;
    border-radius: 4px;
    font-size: 0.85rem;
}
.pagination a {
    border-bottom: 2px solid #6e4a22;
}
.pagination a:hover {
    background: #751E2B;
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.6);
}
.pagination .current {
    background: linear-gradient(180deg, #2a2d33 0%, #1c1f24 100%);
    color: #D4AF37;
    border-color: #D4AF37;
    border-bottom: 2px solid #8B5A2B;
}
.pagination .dots { background: transparent; border: none; color: #9A8F87; }

/* ==========================================================================
   Sidebar / widgets
   ========================================================================== */

.sidebar { font-size: 0.95rem; }

.widget {
    margin-bottom: 2rem;
    padding: 1.2rem 1.3rem;
    background: #1A1E24;
    border: 1px solid rgba(232, 227, 217, 0.08);
    border-left: 3px solid #C87A4A;
    border-radius: 4px;
}
.widget-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: #D4AF37;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(232, 227, 217, 0.15);
    letter-spacing: 0.02em;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted rgba(232, 227, 217, 0.08);
}
.widget li:last-child { border-bottom: none; }
.widget li a {
    color: #E8E3D9;
    border: none;
    display: block;
}
.widget li a:hover { color: #D4AF37; }

.widget_recent_entries .post-date {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.73rem;
    color: #9A8F87;
    margin-top: 0.15rem;
}

/* Widget search */
.widget select,
.widget input[type="text"],
.widget input[type="search"] {
    width: 100%;
    padding: 0.55em 0.8em;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #E8E3D9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* ==========================================================================
   Search form
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 0.65em 0.9em;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #E8E3D9;
    border-radius: 6px;
    font-family: "IBM Plex Serif", serif;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.search-form input[type="search"]::placeholder { color: #6f6760; font-style: italic; }
.search-form .screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ==========================================================================
   Single post / page
   ========================================================================== */

.entry-header {
    margin: 1.2rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.entry-title {
    margin: 0.3rem 0 0.5rem;
    font-size: 2.2rem;
}
.entry-meta {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #9A8F87;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.entry-meta .date { color: #C87A4A; }
.entry-meta a { color: inherit; border: none; }
.entry-meta a:hover { color: #D4AF37; }

.entry-thumbnail {
    margin: 0 0 1.6rem;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.entry-thumbnail img {
    width: 100%;
    filter: contrast(1.05) saturate(0.95);
}
.entry-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    border-radius: inherit;
}

.entry-content { font-size: 1.04rem; }
.entry-content img {
    border-radius: 4px;
    margin: 1.2rem 0;
}
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content li { margin-bottom: 0.4em; }

.entry-tags {
    margin: 2rem 0 1rem;
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
}
.entry-tags .label {
    color: #9A8F87;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.6rem;
}
.entry-tags a {
    display: inline-block;
    margin: 0.15rem 0.3rem 0.15rem 0;
    padding: 0.2em 0.7em;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    color: #D4AF37;
}
.entry-tags a:hover { background: rgba(212, 175, 55, 0.18); }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.comments-title {
    font-size: 1.5rem;
    margin: 0 0 1.4rem;
}
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    padding-left: 1.6rem;
    margin-top: 1rem;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
}
.comment-body {
    background: #1A1E24;
    border: 1px solid rgba(232, 227, 217, 0.08);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}
.comment-author .avatar {
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.comment-author .fn {
    font-family: "Playfair Display", serif;
    font-style: normal;
    color: #D4AF37;
    font-weight: 700;
}
.comment-meta {
    font-family: "Space Mono", monospace;
    font-size: 0.74rem;
    color: #9A8F87;
    margin-bottom: 0.5rem;
}
.comment-meta a { color: inherit; border: none; }
.comment-content { color: #E8E3D9; }
.comment-reply-link {
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #C87A4A;
    border: none;
    margin-top: 0.4rem;
}

#respond {
    margin-top: 2rem;
    padding: 1.4rem;
    background: #1A1E24;
    border: 1px solid rgba(232, 227, 217, 0.1);
    border-radius: 6px;
}
#reply-title { margin-top: 0; }
.comment-form label {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #9A8F87;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65em 0.85em;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #E8E3D9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.comment-form-cookies-consent label {
    text-transform: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: #9A8F87;
}

/* ==========================================================================
   Front page (home)
   ========================================================================== */

.hero {
    margin: 1.5rem 0 2.5rem;
    padding: 2.4rem 1.8rem;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(212, 175, 55, 0.08), transparent 60%),
        radial-gradient(ellipse at 75% 70%, rgba(200, 122, 74, 0.06), transparent 60%),
        linear-gradient(180deg, #1A1E24 0%, #14171c 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border: 6px solid rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    box-shadow: inset 0 0 0 18px rgba(212, 175, 55, 0.06);
}
.hero-eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #C87A4A;
    margin: 0 0 0.7rem;
}
.hero-title {
    margin: 0 0 0.6rem;
    font-size: 2.4rem;
    line-height: 1.1;
}
.hero-text {
    color: #b9b1a6;
    max-width: 60ch;
    font-size: 1.06rem;
}

.section {
    margin: 2.6rem 0;
    padding: 1.8rem;
    background: #1A1E24;
    border: 1px solid rgba(232, 227, 217, 0.08);
    border-radius: 8px;
    position: relative;
}
.section-title {
    margin: 0 0 1rem;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.section-title .dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #C87A4A;
    box-shadow: 0 0 10px rgba(200, 122, 74, 0.6);
}

/* Cassette tape strip — front page */
.tape-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.tape {
    background: linear-gradient(180deg, #2a1f18 0%, #1a120e 100%);
    border: 1px solid rgba(200, 122, 74, 0.35);
    border-radius: 6px;
    padding: 1rem 1rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.tape:hover { transform: translateY(-2px); }
.tape::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 18px;
    height: 14px;
    background:
        repeating-linear-gradient(90deg, #444 0 4px, #2a2a2a 4px 9px);
    border-radius: 3px;
    border-top: 1px solid #555;
    border-bottom: 1px solid #111;
}
.tape-reels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.reel {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 30%, #0d0d0d 60%);
    border: 4px solid #3a2c1e;
    box-shadow: inset 0 0 0 2px #1f1408, 0 0 0 1px rgba(212, 175, 55, 0.2);
    position: relative;
}
.reel::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #C87A4A;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}
.tape-label {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #E8E3D9;
}
.tape-label .year { color: #D4AF37; display: block; margin-bottom: 0.15rem; font-size: 0.8rem; }
.tape-label .title { color: #E8E3D9; }

/* Categories grid (typewriter style) */
.cats-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem 1.4rem;
    font-family: "Space Mono", monospace;
}
.cats-list li {
    padding: 0.45rem 0;
    border-bottom: 1px dotted rgba(232, 227, 217, 0.12);
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.95rem;
}
.cats-list .marker {
    color: #C87A4A;
    font-weight: 700;
}
.cats-list a {
    color: #E8E3D9;
    border: none;
}
.cats-list a:hover { color: #D4AF37; }

/* Three-step block (process) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}
.step {
    padding: 1.1rem 1.2rem;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 6px;
    position: relative;
}
.step .num {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #C87A4A;
    display: block;
    margin-bottom: 0.4rem;
}
.step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}
.step p {
    margin: 0;
    color: #b9b1a6;
    font-size: 0.95rem;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 3rem 1rem;
}
.error-404 .big {
    font-family: "Playfair Display", serif;
    font-size: 8rem;
    color: #D4AF37;
    line-height: 1;
    margin: 0;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 0.04em;
}
.error-404 .lead {
    font-family: "Space Mono", monospace;
    color: #9A8F87;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.6rem 0 1.4rem;
}
.error-404 .actions { margin-top: 1.6rem; display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, #15181d 0%, #0d0f12 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    color: #b9b1a6;
    padding: 2.5rem 0 1.4rem;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -3px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(200, 122, 74, 0.4), transparent);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.2rem;
}
.footer-col .widget {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 0 0.4rem 1rem;
    margin-bottom: 1rem;
}
.footer-col .widget-title {
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0.3rem;
}
.footer-col .widget li {
    border-bottom: 1px dotted rgba(232, 227, 217, 0.06);
    padding: 0.35rem 0;
}

@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* Mixer panel — decorative */
.mixer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-end;
    padding: 1.2rem 1rem;
    margin: 1rem auto 1.5rem;
    max-width: 560px;
    background: linear-gradient(180deg, #1c1f24 0%, #14171c 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.slider {
    text-align: center;
    flex: 1;
    max-width: 110px;
}
.slider-track {
    width: 100%;
    height: 92px;
    position: relative;
    background:
        linear-gradient(to right, transparent 47%, #2a2d33 47%, #2a2d33 53%, transparent 53%),
        repeating-linear-gradient(to bottom, transparent 0 9px, rgba(212, 175, 55, 0.12) 9px 10px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 4px;
    margin: 0 auto;
}
.slider-knob {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 14px;
    background: linear-gradient(180deg, #D4AF37 0%, #8B5A2B 100%);
    border-radius: 3px;
    border: 1px solid #5a3d1e;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 2px 4px rgba(0, 0, 0, 0.5);
}
.slider-label {
    margin-top: 0.5rem;
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9A8F87;
}

.site-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed rgba(232, 227, 217, 0.1);
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #9A8F87;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Cookie banner — A11 compliant: hidden rule first, then visible styles
   ========================================================================== */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.2rem;
    background: rgba(26, 30, 36, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 3px solid #8B5A2B;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    color: #E8E3D9;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}
.cookie-banner__text { flex: 1; min-width: 240px; }
.cookie-banner__text a { color: #D4AF37; }
.cookie-banner__btn { flex: 0 0 auto; }

@media (min-width: 768px) {
    .cookie-banner { left: auto; right: 1.5rem; max-width: 520px; }
}

/* ==========================================================================
   Misc / utilities
   ========================================================================== */

.aligncenter { display: block; margin: 1rem auto; }
.alignleft { float: left; margin: 0.4rem 1.2rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.2rem; }

.wp-caption {
    max-width: 100%;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 6px;
    border-radius: 4px;
}
.wp-caption-text {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #9A8F87;
    text-align: center;
    margin: 0.4rem 0 0.2rem;
}

.sticky .card-title::before {
    content: "★";
    color: #D4AF37;
    margin-right: 0.4rem;
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }
    .entry-title { font-size: 1.65rem; }
    .hero { padding: 1.6rem 1.2rem; }
    .hero-title { font-size: 1.85rem; }
    .section { padding: 1.2rem; }
    .error-404 .big { font-size: 5.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .layout-no-aside .layout-content { max-width: 100%; }
}
