/* ============================================
   Docketbird — Shared Styles
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0a0f1a;
    --paper: #f4f1ec;
    --accent: #c44b2b;
    --accent-hover: #a83d22;
    --muted: #6b6560;
    --rule: #d4cfc8;
    --highlight: #fdf6e3;
    --success: #2d7d46;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 6px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Site Navigation
   ============================================ */
.site-nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rule);
}

.site-nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -1px;
}

.site-nav-logo span {
    color: var(--accent);
}

.site-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.site-nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.site-nav-links .nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 7px 18px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.site-nav-links .nav-cta:hover {
    background: var(--accent-hover);
}

/* Hamburger menu */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ink);
}

.hamburger-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .site-nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 9999;
    }

    .site-nav-links.open {
        display: flex;
    }

    .site-nav-links a {
        font-size: 18px;
    }

    .site-nav-links .nav-cta {
        padding: 12px 32px;
        font-size: 16px;
    }

    .mobile-close {
        position: absolute;
        top: 20px;
        right: 24px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--ink);
        font-family: 'Space Grotesk', sans-serif;
    }
}

/* ============================================
   Page Layout
   ============================================ */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 4px double var(--ink);
    text-align: center;
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-header .subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

/* ============================================
   Content Typography
   ============================================ */
.content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}

.content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
}

.content p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.content ul, .content ol {
    margin: 0 0 16px 24px;
}

.content li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.content strong {
    font-weight: 600;
}

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
    max-width: 960px;
    margin: 0 auto;
    border-top: 4px double var(--ink);
    padding: 32px 24px 40px;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.footer-brand-name span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 260px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-align: center;
}

@media (max-width: 640px) {
    .site-footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        gap: 24px;
    }
}

/* ============================================
   Subscribe Box (reusable)
   ============================================ */
.subscribe-box {
    background: var(--highlight);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 48px 0;
}

.subscribe-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.subscribe-box p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input:focus {
    border-color: var(--accent);
}

.subscribe-form button {
    padding: 10px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.subscribe-form button:hover {
    background: var(--accent-hover);
}

.subscribe-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscribe-msg {
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
}

.subscribe-msg.success { color: var(--success); }
.subscribe-msg.error { color: var(--accent); }

@media (max-width: 500px) {
    .subscribe-form {
        flex-direction: column;
    }
}

/* ============================================
   Utility classes
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
