body {
    line-height: 1.6;
    margin: 0;
    color: #111;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
}

.main-content {
    max-width: 760px;
}

.side-rail {
    width: 280px;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    /* 👈 THIS centers everything */
    justify-content: center;
    text-align: center;
    /* 👈 centers text inside */
}

.logo,
.site-header h1 {
    margin: 0;
    line-height: 1.2;
}

nav {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
    justify-content: center;
    /* 👈 centers links */
}

nav a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #999;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

nav a:hover {
  opacity: 1;
}

.active-nav {
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 2rem;
    text-align: center;
}

.site-footer .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.hero {
    margin: 2rem 0;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.hero p {
    margin: 0;
}

.section {
    margin: 1.5rem 0;
}

.section h2,
.section h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

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

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
}

.cta-button:hover {
    background: #111;
    color: #fff;
}

.text-link {
    display: inline-block;
    margin-top: 0.5rem;
}

.ad-slot {
    min-height: 250px;
}

.ad-slot--inline {
    width: 100%;
    margin: 2rem 0;
}

.ad-slot--rail {
    width: 280px;
    min-height: 560px;
}

@media (max-width: 960px) {
    .page-shell {
        padding: 0 16px;
    }

    .page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-content {
        max-width: 100%;
    }

    .side-rail {
        display: none;
    }

    .header-inner {
        padding: 0.75rem 16px;
    }

    .hero {
        margin: 1.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0.875rem 1rem;
    }

    .page-shell {
        padding: 0 14px;
    }

    .header-inner {
        padding: 0.75rem 14px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}