/* ============================================
   MALLORCA ART — MASTER STYLESHEET
   Otl Aicher-inspired minimal design system
   ============================================ */

:root {
    --bg: #F7F5F0;
    --bg-warm: #EDEAE3;
    --text: #1A1A1A;
    --text-muted: #6B6B6B;
    --accent: #B8A07A;
    --accent-dark: #9A8560;
    --border: #D4D0C8;
    --white: #FFFFFF;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --header-h: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* ============================================
   CONTAINERS
   ============================================ */

/* In your global custom.css layout section */
.container {
    width: 100%;
    /* Defaults to 1200px if no override variable is found */
    max-width: var(--container-width, 1200px); 
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    word-wrap: break-word;
}

h2 {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    word-wrap: break-word;
}

h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 65ch;
    margin-bottom: var(--space-sm);
    word-wrap: break-word;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s;
}

a:hover, a:active {
    border-color: var(--accent);
}

strong {
    color: var(--text);
    font-weight: 600;
}

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
    color: var(--text-muted);
}

li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
    max-width: 65ch;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%; /* Forces the flex container to span the full header height */
}

.logo {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    border-bottom: none;
    padding: 0; /* Reset padding to let flex alignment handle vertical spacing */
    
    display: inline-flex;
    align-items: center;
    gap: 0.6rem; 
    height: 100%; /* Keeps the container balanced with the nav links */
}

.logo-img {
    width: 32px;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Ensure the nav link block balances properly on desktop */
@media (min-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        height: 100%;
    }
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 102;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    border-left: 1px solid var(--border);
}

nav.open {
    transform: translateX(0);
}

nav a {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
    padding: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

    nav {
        position: static;
        flex-direction: row;
        gap: var(--space-md);
        transform: none;
        transition: none;
        border-left: none;
        background: transparent;
    }

    nav a {
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }
}

main {
    padding-top: var(--header-h);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
}

.hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    border-bottom: 1px solid var(--border);
}

.section-inner {
    padding: var(--space-xl) 0;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

.three-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .three-col {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    min-height: 48px;
    min-width: 120px;
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
}

.btn:hover, .btn:active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover, .btn-primary:active {
    background: var(--text-muted);
    border-color: var(--text-muted);
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-accent:hover, .btn-accent:active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* ============================================
   FORMS
   ============================================ */

.newsletter-form,
.newsletter-form-main,
.newsletter-form-inline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
    .newsletter-form,
    .newsletter-form-main,
    .newsletter-form-inline {
        flex-direction: row;
        align-items: stretch;
    }
}

.newsletter-form-main {
    max-width: 500px;
}

@media (min-width: 768px) {
    .newsletter-form-main {
        max-width: 600px;
    }

    .newsletter-form-inline {
        max-width: 500px;
    }
}

.newsletter-form input,
.newsletter-form-main input,
.newsletter-form-inline input,
.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    -webkit-appearance: none;
    border-radius: 0;
    min-height: 48px;
    width: 100%;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.newsletter-form input:focus,
.newsletter-form-main input:focus,
.newsletter-form-inline input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form input::placeholder,
.newsletter-form-main input::placeholder,
.newsletter-form-inline input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .form-row > * {
        flex: 1;
    }
}

/* ============================================
   GALLERY & IMAGES
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

.gallery-item {
    position: relative;
    background-color: var(--bg-warm);
    overflow: hidden;
}

.gallery-item img,
.blog-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/4;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.gallery-item:hover img,
.blog-image:hover img {
    filter: grayscale(0%);
}

.gallery-caption,
.article-image-caption {
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    text-align: center;
}

.gallery-caption strong,
.article-image-caption strong {
    color: var(--text);
    font-weight: 500;
}

.article-image {
    margin: var(--space-lg) 0;
    background: var(--bg-warm);
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* ============================================
   CONTENT BOXES
   ============================================ */

.highlight-box {
    background: var(--bg-warm);
    padding: var(--space-lg) var(--space-md);
    border-left: 3px solid var(--accent);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .highlight-box {
        padding: var(--space-lg);
    }
}

.highlight-box p {
    font-size: 1.0625rem;
    color: var(--text);
    font-style: italic;
    max-width: 100%;
    margin-bottom: 0;
}

.citation-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .citation-box {
        padding: var(--space-lg);
    }
}

.citation-box blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.citation-box blockquote p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.citation-box blockquote p:last-child {
    margin-bottom: 0;
}

.citation-source {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.citation-source a {
    border-bottom: none;
}

.citation-source a:hover {
    border-bottom: 1px solid var(--accent);
}

.link-box {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    transition: border-color 0.2s;
}

@media (min-width: 640px) {
    .link-box {
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
    }
}

.link-box:hover {
    border-color: var(--accent);
}

.link-box-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.link-box-content {
    flex: 1;
}

.link-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.link-box-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.link-box-arrow {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

a.link-box {
    text-decoration: none;
    border-bottom: none;
    color: inherit;
}

a.link-box:hover {
    border-bottom: none;
}

a.link-box:hover .link-box-title {
    color: var(--accent-dark);
}

.testimonial {
    background: var(--bg-warm);
    padding: var(--space-lg) var(--space-md);
    border-left: 3px solid var(--accent);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .testimonial {
        padding: var(--space-lg);
    }
}

.testimonial p {
    font-size: 1.0625rem;
    color: var(--text);
    font-style: italic;
    max-width: 100%;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-style: normal;
}

.download-box {
    background: var(--bg-warm);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .download-box {
        padding: var(--space-lg);
    }
}

.download-box p {
    margin-bottom: var(--space-md);
}

/* ============================================
   AUTHOR COMPONENTS
   ============================================ */

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(30%);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.author-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .author-box {
        padding: var(--space-lg);
    }
}

.author-box-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .author-box-inner {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.author-box-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(30%);
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.author-box-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.author-box-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.author-box-contact {
    font-size: 0.875rem;
}

.author-box-contact a {
    border-bottom: none;
}

.author-box-contact a:hover {
    border-bottom: 1px solid var(--accent);
}

/* ============================================
   ARTICLE HEADER
   ============================================ */

.article-header {
    padding: var(--space-xl) 0 var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.article-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    line-height: 1.3;
}

.article-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.article-subheadline {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0;
}

.article-body {
    padding: var(--space-xl) 0;
}

.article-body h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body p {
    max-width: 100%;
}

/* ============================================
   VIDEO BOX
   ============================================ */

.video-box {
    margin: var(--space-lg) 0;
    background: var(--bg-warm);
    border: 1px solid var(--border);
}

.video-box-inner {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--text);
}

.video-box-inner iframe,
.video-box-inner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-box-caption {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.video-box-caption strong {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   SOURCES BOX
   ============================================ */

.sources-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .sources-box {
        padding: var(--space-lg);
    }
}

.sources-box h3 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.source-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border);
}

.source-item:first-child {
    border-top: none;
    padding-top: 0;
}

.source-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 1.5rem;
    padding-top: 0.125rem;
}

.source-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.source-content strong {
    color: var(--text);
    font-weight: 500;
}

.source-content a {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    border-bottom: none;
    color: var(--accent-dark);
}

.source-content a:hover {
    border-bottom: 1px solid var(--accent);
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

.toc {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-warm);
}

.toc h3 {
    margin-bottom: var(--space-sm);
}

.toc-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
}

@media (min-width: 640px) {
    .toc-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs) var(--space-lg);
    }
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    font-size: 0.9375rem;
    border-bottom: none;
    display: block;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.toc-list a:hover {
    color: var(--accent-dark);
}

.toc-num {
    color: var(--accent);
    font-weight: 500;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ============================================
   NUMBERED LIST
   ============================================ */

.numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.numbered-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-md);
    min-height: 2rem;
}

.numbered-list li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.numbered-list h4 {
    margin-bottom: var(--space-xs);
}

/* ============================================
   BLOG LIST
   ============================================ */

.blog-list {
    display: flex;
    flex-direction: column;
}

.blog-post {
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
}

.blog-post-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}

@media (min-width: 768px) {
    .blog-post-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }
}

.blog-text {
    display: flex;
    flex-direction: column;
    order: 2;
}

@media (min-width: 768px) {
    .blog-text {
        order: 1;
    }
}

.blog-image {
    order: 1;
    background: var(--bg-warm);
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-image {
        order: 2;
    }
}

.blog-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.blog-headline {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.blog-subheadline {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.blog-excerpt {
    margin-bottom: var(--space-md);
}

/* ============================================
   PAST ISSUES (Newsletter)
   ============================================ */

.past-issues {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
}

.issue-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.issue-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .issue-item {
        grid-template-columns: 120px 1fr auto;
        align-items: center;
        gap: var(--space-md);
    }
}

.issue-item:first-child {
    border-top: none;
    padding-top: 0;
}

.issue-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
}

.issue-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

.issue-title a {
    border-bottom: none;
}

.issue-title a:hover {
    border-bottom: 1px solid var(--accent);
}

/* ============================================
   WHAT TO EXPECT (Newsletter)
   ============================================ */

.what-to-expect {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
}

.expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .expect-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

.expect-block {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.expect-block:first-child {
    padding-top: 0;
    border-top: none;
}

@media (min-width: 768px) {
    .expect-block {
        padding-top: 0;
        border-top: none;
    }
}

.expect-block h3 {
    margin-bottom: var(--space-sm);
}

.expect-block p {
    margin-bottom: var(--space-xs);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

.contact-block {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.contact-block:first-child {
    padding-top: 0;
    border-top: none;
}

@media (min-width: 768px) {
    .contact-block {
        padding-top: 0;
        border-top: none;
    }
}

.contact-block h3 {
    margin-bottom: var(--space-sm);
}

.contact-block p {
    margin-bottom: var(--space-xs);
}

.contact-detail {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.contact-detail a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}

.contact-detail a:hover {
    border-color: var(--accent);
}

/* ============================================
   IMPRINT / PRIVACY PAGE
   ============================================ */

.imprint-grid,
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .imprint-grid,
    .privacy-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

.imprint-block,
.privacy-block {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.imprint-block:first-child,
.privacy-block:first-child {
    padding-top: 0;
    border-top: none;
}

@media (min-width: 768px) {
    .imprint-block,
    .privacy-block {
        padding-top: 0;
        border-top: none;
    }
}

.imprint-block h3,
.privacy-block h3 {
    margin-bottom: var(--space-sm);
}

.imprint-block p,
.privacy-block p {
    margin-bottom: var(--space-xs);
}

.imprint-detail,
.privacy-detail {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.imprint-detail a,
.privacy-detail a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}

.imprint-detail a:hover,
.privacy-detail a:hover {
    border-color: var(--accent);
}

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

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.error-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.error-inner h1 {
    margin-bottom: var(--space-sm);
}

.error-inner p {
    margin: 0 auto var(--space-md);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: var(--bg);
    padding: var(--space-md);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .cookie-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cookie-text {
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 70ch;
}

.cookie-text a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .cookie-actions {
        width: auto;
    }
}

.cookie-btn {
    flex: 1;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    border: 1px solid var(--bg);
    background: transparent;
    color: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .cookie-btn {
        flex: none;
    }
}

.cookie-btn:hover, .cookie-btn:active {
    background: var(--bg);
    color: var(--text);
}

.cookie-btn.accept {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}

.cookie-btn.accept:hover, .cookie-btn.accept:active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    padding: var(--space-lg) 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* ============================================
   META / UTILITY
   ============================================ */

.meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.meta-line {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* ============================================
   ANCHOR OFFSET (for sticky header)
   ============================================ */

[id] {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   VERY SMALL SCREENS (< 360px)
   ============================================ */

@media (max-width: 360px) {
    :root {
        --space-md: 1rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .error-code {
        font-size: 3.5rem;
    }
}

/* At the bottom of custom.css */
.is-blog-post {
    --container-width: 800px; /* Instantly alters all child .container widths */
}

/* Cleaner, simpler typography tweaks without wrapping everything */
.is-blog-post p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* ==========================================================================
   COMPLETE BLOG LAYOUT FLOW RESET
   Forces natural vertical text ordering seen in Screenshot 2026-05-29 at 00.47.16.png
   ========================================================================== */

/* 1. Force all container elements to flow natively down the page */
main.is-blog-post,
main.is-blog-post article,
main.is-blog-post .article-header,
main.is-blog-post .article-body,
main.is-blog-post .container {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    clear: both !important;
}

/* 2. Reset text elements to standard block behavior with natural spacing */
main.is-blog-post h1,
main.is-blog-post .article-label,
main.is-blog-post .article-subheadline,
main.is-blog-post .article-meta,
main.is-blog-post p {
    display: block !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    float: none !important;
    margin: 0 0 1.5rem 0 !important; /* Forces a crisp 24px gap below every element */
}

/* 3. Custom structural breathing room adjustments */
main.is-blog-post h1 {
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
}

main.is-blog-post .article-subheadline {
    font-style: italic;
    color: #666;
    margin-bottom: 2.5rem !important;
}

/* 4. Fix author info alignment so it doesn't mesh with paragraphs */
main.is-blog-post .article-meta {
    display: flex !important; /* Keeps author image and text side-by-side */
    align-items: center !important;
    gap: 1rem;
    margin-bottom: 3.5rem !important; /* Large gap before body text starts */
}

main.is-blog-post .author-info {
    display: flex !important;
    flex-direction: column !important;
}

/* Tighten space between Author and thin header line */
main.is-blog-post .article-header {
    padding-bottom: 1rem !important; /* Reduces the inner container spacing above the line */
}

main.is-blog-post .article-meta {
    margin-bottom: 15px !important; /* Removes the heavy 3.5rem forced gap under the author box */
}

/* ============================================
   BREADCRUMBS COMPONENT (ULTRA-TIGHT STRING)
   ============================================ */

/* 1. Eliminate the top space inside the header container */
main.is-blog-post .article-header {
    padding-top: 0px !important; 
}

/* 2. Style the breadcrumb wrapper container */
main.is-blog-post .breadcrumbs {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin: 0px 0px 0.75rem 0px !important; 
    padding-top: 0.25rem !important; 
}

/* 3. Equalize child elements to identical text metrics */
main.is-blog-post .breadcrumbs a,
main.is-blog-post .breadcrumb-separator,
main.is-blog-post .breadcrumb-active {
    font-size: 0.75rem !important;
    line-height: 1 !important;
}

/* 4. Pull text items aggressively closer together */
main.is-blog-post .breadcrumbs a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    margin-right: -2px !important; /* Pulls the text closer to the trailing slash */
    margin-left: -2px !important;  /* Pulls the text closer to the leading slash */
}

main.is-blog-post .breadcrumbs a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* Razor-thin separator margins */
main.is-blog-post .breadcrumb-separator {
    color: var(--border);
    margin: 0 0.15rem !important; /* Squeezes the spaces around the slash tightly */
    user-select: none;
}

/* Active current post item */
main.is-blog-post .breadcrumb-active {
    color: var(--accent);
    pointer-events: none;
    margin-left: -2px !important; /* Pulls the final active string closer to its slash */
}

/* Tighten spacing between thin header line and the first H2 body text */
main.is-blog-post .article-body {
    padding-top: 2rem !important; /* Overrides the massive default var(--space-xl) padding */
}

/* ============================================
   NEWSLETTER CARD COMPONENT CLEANUP
   ============================================ */

/* 1. Ensure even vertical stack spacing inside the container box */
.newsletter-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important; /* Enforces clean visual breathing room evenly between every single element */
}

/* 2. Reset specific element margin inconsistencies */
.newsletter-card h2 {
    margin: 0 !important;
}

.newsletter-card p.newsletter-desc {
    margin: 0 !important;
    max-width: 65ch;
}

/* 3. Style the button cleanly using standard theme tokens */
.newsletter-card .newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #121111;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: none !important;
    transition: background-color 0.2s ease;
}

.newsletter-card .newsletter-submit-btn:hover {
    background-color: var(--text-muted);
}

/* 4. Format the final meta text sentence much smaller */
.newsletter-card p.newsletter-meta {
    font-size: 0.6875rem !important; /* Noticeably smaller text representation */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 !important;
}

/* Tighten the space above the Author Bio Box at the end of the post */
main.is-blog-post .author-box {
    margin-top: -2rem !important; /* Overrides the massive 4rem default vertical margin spacing */
}

/* Adjust subheadline line-height for mobile viewports */
@media (max-width: 767px) {
    main.is-blog-post .article-subheadline {
        line-height: 1.25 !important; /* Forces a tighter, elegant line wrap on smaller screens */
    }
}

/* ============================================
   RESPONSIVE VIDEO BOX OPTIMIZATION FOR MOBILE
   ============================================ */
@media (max-width: 767px) {
    /* 1. Scale down structural box margins so it fits elegantly on mobile layout grids */
    main.is-blog-post .video-box {
        margin: 1.5rem 0 !important; /* Drops down from default var(--space-lg) */
    }

    /* 2. Scale down the caption spacing for tighter viewports */
    main.is-blog-post .video-box-caption {
        padding: 0.75rem var(--space-md) !important;
        font-size: 0.8125rem !important; /* Slightly smaller text size for clean mobile composition */
        line-height: 1.5 !important;
    }
}

/* ── Table of Contents ───────────────────── */
        .toc-box {
            background: var(--bg-warm);
            border: 1px solid var(--border);
            padding: var(--space-md) var(--space-md) var(--space-md);
            margin: var(--space-lg) 0;
        }

        .toc-box h3 {
            margin-bottom: var(--space-sm);
            color: var(--text);
        }

        .toc-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .toc-list li {
            border-top: 1px solid var(--border);
            margin: 0;
        }

        .toc-list li:first-child {
            border-top: none;
        }

        .toc-list a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.6rem 0;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            border-bottom: none;
            transition: color 0.2s;
            gap: var(--space-sm);
        }

        .toc-list a:hover {
            color: var(--accent-dark);
        }

        .toc-list a::after {
            content: '↓';
            font-size: 0.75rem;
            color: var(--accent);
            flex-shrink: 0;
        }

        .toc-num {
            font-size: 0.75rem;
            color: var(--accent);
            font-weight: 600;
            width: 1.5rem;
            flex-shrink: 0;
        }

        .toc-label {
            flex: 1;
        }

        /* ── Collector Profile Cards ─────────────── */
        .profile-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-md);
            margin: var(--space-lg) 0;
        }

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

        .profile-card {
            background: var(--bg-warm);
            border: 1px solid var(--border);
            padding: var(--space-md);
        }

        .profile-card-label {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            font-weight: 600;
            margin-bottom: var(--space-xs);
        }

        .profile-card h4 {
            font-size: 0.9375rem;
            margin-bottom: var(--space-xs);
        }

        .profile-card p {
            font-size: 0.9375rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* ── Gallery List ────────────────────────── */
        .gallery-list {
            list-style: none;
            padding: 0;
            margin: var(--space-md) 0;
        }

        .gallery-list li {
            display: flex;
            align-items: baseline;
            gap: var(--space-sm);
            padding: 0.75rem 0;
            border-top: 1px solid var(--border);
            margin: 0;
        }

        .gallery-list li:last-child {
            border-bottom: 1px solid var(--border);
        }

        .gallery-list-num {
            font-size: 0.75rem;
            color: var(--accent);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            width: 1.5rem;
            flex-shrink: 0;
        }

        .gallery-list-name {
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--text);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            min-width: 9rem;
            flex-shrink: 0;
        }

        .gallery-list-desc {
            font-size: 0.9375rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* ── Step List ───────────────────────────── */
        .step-list {
            list-style: none;
            padding: 0;
            margin: var(--space-md) 0;
            counter-reset: step-counter;
        }

        .step-list li {
            display: flex;
            gap: var(--space-md);
            padding: var(--space-md) 0;
            border-top: 1px solid var(--border);
            margin: 0;
            align-items: flex-start;
        }

        .step-list li:last-child {
            border-bottom: 1px solid var(--border);
        }

        .step-num {
            font-size: 2rem;
            font-weight: 200;
            color: var(--accent);
            line-height: 1;
            flex-shrink: 0;
            width: 2.5rem;
            letter-spacing: -0.04em;
        }

        .step-content h4 {
            margin-bottom: 0.25rem;
        }

        .step-content p {
            font-size: 1rem;
            margin-bottom: 0;
        }

        /* ── Summary Box ─────────────────────────── */
        .summary-box {
            background: var(--text);
            color: var(--bg);
            padding: var(--space-lg) var(--space-md);
            margin: var(--space-lg) 0;
        }

        @media (min-width: 768px) {
            .summary-box {
                padding: var(--space-lg);
            }
        }

        .summary-box h2 {
            color: var(--bg);
            margin-bottom: var(--space-sm);
        }

        .summary-box p {
            color: rgba(247, 245, 240, 0.8);
            margin-bottom: var(--space-sm);
            max-width: 65ch;
        }

        .summary-box p:last-child {
            margin-bottom: 0;
        }

        /* ── FAQ Section ─────────────────────────── */
        .faq-section {
            margin: var(--space-xl) 0 var(--space-lg);
        }

        .faq-heading {
            display: flex;
            align-items: baseline;
            gap: var(--space-sm);
            margin-bottom: var(--space-lg);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid var(--border);
        }

        .faq-heading h2 {
            margin: 0;
        }

        .faq-count {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            font-weight: 500;
            flex-shrink: 0;
        }

        .faq-list {
            border-top: 1px solid var(--border);
        }

        .faq-item {
            border-bottom: 1px solid var(--border);
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: none;
            border: none;
            padding: var(--space-md) 0;
            cursor: pointer;
            text-align: left;
            gap: var(--space-md);
            -webkit-appearance: none;
            touch-action: manipulation;
        }

        .faq-question:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .faq-q-num {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            font-weight: 600;
            flex-shrink: 0;
            width: 1.5rem;
        }

        .faq-q-text {
            flex: 1;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            line-height: 1.3;
        }

        .faq-icon {
            width: 28px;
            height: 28px;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--accent);
            font-size: 1rem;
            font-weight: 300;
            line-height: 1;
            transition: background 0.2s, border-color 0.2s, transform 0.3s;
        }

        .faq-item.open .faq-icon {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--white);
            transform: rotate(45deg);
        }

        .faq-answer {
            display: none;
            padding: 0 0 var(--space-md) calc(1.5rem + var(--space-md));
        }

        .faq-item.open .faq-answer {
            display: block;
        }

        .faq-answer p {
            font-size: 1rem;
            line-height: 1.75;
            color: var(--text-muted);
            margin-bottom: var(--space-sm);
        }

        .faq-answer p:last-child {
            margin-bottom: 0;
        }

        .faq-answer strong {
            color: var(--text);
        }

        .faq-answer ul {
            margin: var(--space-xs) 0 var(--space-sm) var(--space-md);
            padding: 0;
            list-style: none;
        }

        .faq-answer ul li {
            padding: 0.25rem 0;
            padding-left: 1rem;
            position: relative;
            font-size: 1rem;
            line-height: 1.6;
            color: var(--text-muted);
            margin: 0;
            max-width: 60ch;
        }

        .faq-answer ul li::before {
            content: '—';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 400;
        }

        @media (min-width: 768px) {
            .faq-q-text {
                font-size: 1.0625rem;
            }
        }