/* 
 * The LA Note Magazine — Global Design System
 * Clean, minimal, authoritative editorial design.
 * WP Note: Enqueue via wp_enqueue_style() in functions.php
 */

:root {
    --bg-primary: #F9F8F6; /* Off-white/Beige */
    --bg-secondary: #F1EFEA;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --accent-color: #111111;
    --accent-gold: #B8860B;
    --accent-gold-light: #D4A017;
    --border-color: #E5E5E5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.admin-bar .site-header { top: 32px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    margin: 0;
    padding: 0.75rem 1rem;
    width: auto;
    z-index: 10000;
    background: #fff;
}
.mobile-nav-toggle { display: none; }
.tln-image-placeholder {
    display: block;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--bg-secondary), #ddd8ce);
}
.footer-brand p { margin-top: 1rem; max-width: 300px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.article-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sidebar-info-card { margin-top: 1.5rem; }
.sidebar-cta-card .btn { width: 100%; text-align: center; margin-top: 1rem; }
.page-content { max-width: 760px; margin-inline: auto; }
.tln-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tln-form-notice { margin-bottom: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--border-color); background: #fff; }
.tln-form-notice--success { border-color: #6b8e6b; background: #f1f7f1; }
.tln-form-notice--error { border-color: #a34a4a; background: #fff3f3; }

@media (max-width: 900px) {
    .admin-bar .site-header { top: 46px; }
    .site-header { padding: 1.25rem 0; }
    .header-inner { flex-wrap: wrap; gap: 1rem; }
    .site-logo {
        font-size: 1.55rem;
        letter-spacing: -0.5px;
        white-space: nowrap;
    }
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0.55rem 0.75rem;
        border: 1px solid var(--border-color);
        background: transparent;
        color: var(--text-primary) !important;
        font: 600 0.8rem var(--font-body);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    .main-nav { display: none; flex-basis: 100%; }
    .main-nav.nav-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 0.75rem 0; border-top: 1px solid var(--border-color); }
    .header-cta { display: none; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}

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

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #aaa;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #222;
}

.footer-brand .site-logo {
    color: #fff;
    font-size: 2rem;
}

.footer-nav h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #444;
    text-align: center;
}

.site-footer a {
    color: #aaa;
}

.site-footer a:hover {
    color: var(--accent-gold);
}

/* Forms */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Sticky header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Section labels */
.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

/* Article cards */
.article-card {
    display: flex;
    flex-direction: column;
}

.card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-image-link:hover .card-image {
    transform: scale(1.04);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent-gold); }

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 1px;
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
    transition: all 0.25s ease;
}

.view-all-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Sidebar cards */
.sidebar-cta-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.sidebar-cta-card--dark {
    background-color: var(--text-primary);
    border-color: transparent;
}

.sidebar-cta-card--dark h3 { color: #fff; }
.sidebar-cta-card--dark p { color: #aaa; }

.sidebar-cta-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.sidebar-cta-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-info-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.sidebar-info-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-list li {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-list a:hover { color: var(--accent-gold); }

.sidebar-article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-article-list li {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-article-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.sidebar-article-list a:hover { color: var(--accent-gold); }

.sidebar-article-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Select element */
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 1rem;
}

select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Utility */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 3rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .header-inner { flex-wrap: wrap; }
}
