/* WHAT DID I MISS? - Main Stylesheet */

/* Base styles and resets */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #0f0f0f;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100% !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden; /* prevent horizontal scroll from full-bleed sections */
}

table {
    border-collapse: collapse;
    mso-table-lspace: 0pt;
    mso-table-rspace: 0pt;
}

td {
    border-collapse: collapse;
}

/* Layout containers */
.container {
    background-color: #ffffff;
    width: 100%;
    padding: 0;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.header-table {
    width: 100%;
    background-color: #000000;
    border-collapse: collapse;
}

.header-cell {
    background-color: #000000;
    color: #ffffff;
    padding: 48px 24px;
    text-align: center;
    border-bottom: 1px solid #e4e4e7;
}

.header-cell h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.header-cell .subtitle {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 400;
    margin: 0 0 24px 0;
}

.description {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Content sections */
.content {
    padding: 0 24px 24px;
}

.intro-section {
    background-color: #ffffff;
    text-align: center;
    padding: 48px;
}

.intro-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f0f0f;
    letter-spacing: -0.025em;
}

.subtitle-text {
    font-size: 18px;
    color: #52525b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 32px 0;
    padding: 0 48px;
    align-items: stretch;
}

.feature {
    text-align: center;
    padding: 24px;
    background-color: #fbfaf6;
    border-radius: 6px;
    border: 1px solid #e4e4e7;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f0f0f;
}

.feature p {
    font-size: 16px;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* Newsletter signup section */
.signup-section, .newsletter-signup {
    background-color: #ffffff;
    padding: 12px 0 48px 0;
    text-align: center;
    border: none;
    border-radius: 6px;
}

.signup-section h2, .newsletter-signup h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f0f0f;
    letter-spacing: -0.025em;
}

.signup-section p:not(.subtitle-text), .newsletter-signup p:not(.subtitle-text) {
    font-size: 16px;
    color: #52525b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.signup-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0f0f0f;
    box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.1);
}

.signup-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.signup-btn:hover {
    background-color: #1f1f1f;
}

/* Archive section */
.archive-section {
    background-color: #fbfaf6; 
    padding: 48px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    text-align: center;
}

.archive-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0f0f0f;
    text-align: center;
    letter-spacing: -0.025em;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.issue-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
}

.issue-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.issue-number {
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.issue-date {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 12px;
}

.issue-summary {
    font-size: 14px;
    color: #71717a;
    line-height: 1.5;
    margin-bottom: 16px;
}

.read-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.read-btn:hover {
    background-color: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
}

/* Footer styles */
.footer-table {
    width: 100%;
    background-color: #ffffff;
    border-collapse: collapse;
}

.footer-cell {
    background-color: #ffffff;
    padding: 24px;
    border-top: 1px solid #e4e4e7;
    text-align: center;
    font-size: 14px;
    color: #71717a;
}

.footer-note {
    font-size: 12px;
    color: #a1a1aa;
}

.footer-links a {
    color: #0f0f0f;
    text-decoration: underline;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #71717a;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.no-issues {
    text-align: center;
    font-size: 16px;
    color: #71717a;
    padding: 48px 0;
}

/* Brands / Logo wall */
.brands-section {
    background-color: #fbfaf6;
    text-align: center;
    padding: 48px;
    /* full-bleed background within centered wrapper */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.brands-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 8px auto 24px auto;
    color: #0f0f0f;
    letter-spacing: -0.015em;
    max-width: 920px;
    line-height: 1.4;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 per row on desktop */
    gap: 16px 24px;
    align-items: center;
    justify-items: center;
    margin: 20px auto;
    max-width: 1200px; /* keep content aligned with main layout width */
    width: 100%;
}

.brand-logo {
    width: 100%;
    height: 80px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.brand-logo img {
    max-height: 32px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-1px);
}

.brand-text {
    display: none;
    font-size: 16px;
    color: #52525b;
    font-weight: 600;
}

.brands-more-text {
    text-align: center;
    color: #a1a1aa;            
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Utilities */
.nowrap {
    white-space: nowrap;
}

/* Content page specific styles */
.content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: #0f0f0f;
    letter-spacing: -0.025em;
}

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

.content p {
    font-size: 16px;
    color: #52525b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.content a {
    color: #0f0f0f;
    text-decoration: underline;
    font-weight: 500;
}

.content a:hover {
    color: #71717a;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Hero title (homepage specific) */
.hero-title {
    font-size: 2.6rem;
    font-family: 'Merriweather', 'Georgia', serif;
    font-weight: 900;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;      
    color: #18181b;
    text-transform: none;
    line-height: 1.15;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    text-shadow: 0 2px 16px rgba(24,24,27,0.10), 0 1px 0 #464646;
}

/* Inline highlight for key words in hero title */
.hl-gold {
    background: #F2D388;
    padding: 0.1em 0.25em;
    box-shadow: 3px 3px 0 #d0c69f;
    line-height: 1.3;
}

/* Gold underline for h2 elements */
.h2-gold-underline {
    text-decoration: underline;
    text-decoration-color: #F2D388;
    text-decoration-thickness: 6px;
    text-underline-offset: 8px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 32px;
    }
    .brand-logos {
        grid-template-columns: repeat(3, 1fr); /* tablet: 3 per row */
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .brand-logos {
        grid-template-columns: repeat(3, 1fr); /* small tablet/large mobile: 3 per row */
        gap: 16px 20px;
    }
}

@media (max-width: 600px) {
    .header-cell {
        padding: 32px 16px !important;
    }
    
    .header-cell h1 {
        font-size: 32px !important;
    }
    
    .header-cell .subtitle {
        font-size: 16px !important;
    }
    
    .description {
        font-size: 14px !important;
    }
    
    .intro-section {
        padding: 32px 16px !important;
    }
    
    .intro-section h2 {
        font-size: 32px !important;
    }
    
    .subtitle-text {
        font-size: 16px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    .brand-logos {
        grid-template-columns: repeat(3, 1fr); /* mobile: 3 per row */
    }
    
    .signup-section, .newsletter-signup {
        margin: 0 !important;
        padding: 32px 16px !important;
    }
    
    .signup-section h2, .newsletter-signup h2 {
        font-size: 32px !important;
    }
    
    .archive-section {
        padding: 32px 16px !important;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
    }
    
    .archive-section h2 {
        font-size: 32px !important;
    }
    
    .issues-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-cell {
        padding: 16px !important;
        font-size: 12px !important;
    }

    .brands-section {
        padding: 32px 16px !important;
    }

    .brands-section h2 {
        font-size: 32px !important;
        margin-bottom: 16px !important;
    }

    .brand-logo {
        height: 64px;
        padding: 12px;
    }

    .brand-logo img {
        max-height: 24px;
    }

    .content-wrapper {
        padding: 0 16px;
    }
    
    .content {
        padding: 32px 0;
    }
    
    .content h2 {
        font-size: 20px !important;
    }
    
    .content p {
        font-size: 14px !important;
    }
}
