@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: #030303;
    background-color: #ffffff;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-nav {
    background-color: #ffffff;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wordmark {
    font-size: 18px;
    text-decoration: none;
    color: #030303;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background-color: #030303;
}

.btn-primary {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 9999px;
    height: 40px;
    line-height: 16px;
    border: none;
    cursor: pointer;
}

.btn-ghost {
    display: inline-block;
    background-color: #ffffff;
    color: #030303;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 9999px;
    border: 1px solid #030303;
}

.btn-primary-on-dark {
    display: inline-block;
    background-color: #ffffff;
    color: #030303;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 9999px;
}

.hero {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 96px 0;
}

.eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.eyebrow-dark {
    color: #676f7b;
}

.display {
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
    max-width: 760px;
}

.subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
}

.heading-md {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.9px;
    margin-bottom: 32px;
}

section {
    padding: 64px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    text-decoration: none;
    color: #030303;
    display: block;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.tag-pill {
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid #e7eaf0;
    color: #676f7b;
    font-size: 11px;
    font-weight: 450;
    letter-spacing: 0.2px;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 14px;
    color: #404040;
    line-height: 1.5;
}

.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 13px;
    color: #676f7b;
}

.breadcrumb a {
    text-decoration: none;
    color: #676f7b;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #c9ccd1;
}

.breadcrumb .current {
    color: #030303;
}

.toc-box {
    background-color: #fefefe;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.toc-box-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.toc-link {
    display: block;
    font-size: 14px;
    color: #676f7b;
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: #030303;
    border-left-color: #030303;
}

.prose h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.6px;
    margin: 40px 0 16px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.prose p {
    font-size: 16px;
    color: #404040;
    margin-bottom: 20px;
}

.prose ul, .prose ol {
    margin: 0 0 20px 20px;
}

.prose li {
    font-size: 16px;
    color: #404040;
    margin-bottom: 8px;
}

.related-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e7eaf0;
}

.section-heading {
    font-size: 24px;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    text-decoration: none;
    color: #030303;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.related-body {
    padding: 14px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 6px;
}

details {
    border-bottom: 1px solid #e7eaf0;
    padding: 16px 0;
}

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] .chev {
    transform: rotate(180deg);
}

.chev {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

details p {
    margin-top: 12px;
    color: #404040;
    font-size: 15px;
}

.site-footer {
    background-color: #030303;
    color: #ffffff;
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 13px;
    color: #999999;
    line-height: 1.6;
}

.footer-text a {
    color: #ffffff;
}

.footer-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #939393;
    margin-bottom: 14px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}

.footer-fine {
    font-size: 12px;
    color: #676f7b;
    margin-bottom: 6px;
}

.form-box {
    max-width: 560px;
}

.form-field-group {
    margin-bottom: 20px;
}

.form-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-field-group input,
.form-field-group textarea {
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    border: none;
    border-bottom: 1px solid #c9ccd1;
    padding: 10px 0;
    background: transparent;
}

.form-field-group input:focus,
.form-field-group textarea:focus {
    outline: none;
    border-bottom-color: #030303;
}

.confirm-msg {
    margin-top: 16px;
    font-weight: 600;
    color: #1a7a3d;
}

.hidden {
    display: none;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e7eaf0;
    padding: 24px;
    z-index: 999;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #030303;
    text-decoration: none;
    color: #030303;
}

.filter-pill.active {
    background-color: #030303;
    color: #ffffff;
}

@media (max-width: 900px) {
    .card-grid, .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-top: 1px solid #e7eaf0;
        gap: 16px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .display {
        font-size: 32px;
    }
    .card-grid, .related-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}
