/* MQ&Q 2027 - Global Styles */
:root {
    --bg: #121418;
    --bg-card: #1a1f26;
    --bg-hover: #222934;
    --text: #e8e6e3;
    --text-muted: #8a9099;
    --accent: #7fb77e;
    --accent-dim: #4a7c59;
    --border: #2a3038;
    --border-light: #333b45;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* === Header === */
header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
}

nav {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

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

/* === Hero === */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === Main === */
main { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; }

.section { margin-bottom: 4rem; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-header .count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section-header .view-all {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header .view-all:hover { text-decoration: underline; }

/* === Featured Grid === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

article.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.25s ease;
}

article.card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

article.card .card-num {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

article.card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Archive List === */
.archive-list {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.archive-list li {
    break-inside: avoid;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.archive-list li a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-list li a:hover { color: var(--accent); }

/* === Section Landing Page === */
.section-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.section-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-hero .subtitle {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-hero p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* === Footer === */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .hero { padding: 3rem 1.5rem 2.5rem; }
    .hero h1 { font-size: 2rem; }
    main { padding: 2rem 1.5rem; }
    .grid { grid-template-columns: 1fr; }
    .archive-list { columns: 1; }
    nav { gap: 1rem; }
    nav a { font-size: 0.75rem; }
}

/* === Utility === */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.hidden { display: none; }
