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

/* Base */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #fafafa;
    color: #111;
    line-height: 1.5;
}

/* Layout */
.page-header {
    padding: 80px 20px 40px;
    border-bottom: 1px solid #111;
    max-width: 900px;
    margin: 0 auto;
}

section {
    padding: 40px 20px 60px;
    border-bottom: 1px solid #111;
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tagline {
    font-size: 16px;
    max-width: 520px;
    color: #444;
}

h2 {
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

p, ul {
    font-size: 17px;
    line-height: 1.7;
    color: #222;
}

/* Footer (if you add one later) */
footer {
    background-color: #111;
    color: #fafafa;
    text-align: center;
    padding: 20px;
}

/* -------------------------------------- */
/* Hamburger menu button                  */
/* -------------------------------------- */

.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px; /* left-hand vibe */
    width: 32px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #111;
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease,
        top 0.25s ease,
        bottom 0.25s ease;
}

/* 3 bars stacked */
.menu-bar:nth-child(1) {
    top: 0;
}
.menu-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-bar:nth-child(3) {
    bottom: 0;
}

/* Open state: turn into an X */
/* middle bar disappears, top/bottom rotate into a cross */

.menu-btn.open .menu-bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.open .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .menu-bar:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* -------------------------------------- */
/* Sidebar                               */
/* -------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    background-color: #f0f0f0;
    border-right: 1px solid #111;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 2000;
}

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

.sidebar-inner {
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-title {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nav a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
}

.sidebar-nav a:hover {
    text-decoration: underline;
}

/* Make sure content isn't hidden behind sidebar on small screens */
@media (max-width: 768px) {
    .page-header,
    section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.articles-hero {
    border-bottom: 1px solid #111;
    padding: 80px 20px 40px;
    background-color: #fafafa;
}

.articles-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.articles-hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.articles-hero-tagline {
    font-size: 17px;
    max-width: 600px;
    color: #333;
}

.articles-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.articles-section h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

/* Article cards grid */

.article-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.article-card {
    border-top: 1px solid #111;
    padding-top: 16px;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-card p {
    font-size: 15px;
    color: #444;
}

.article-card a:hover h3 {
    text-decoration: underline;
}