/* DON Memory Protocol - Light Theme Base Styles
   Shared styles for charter, pilot, quickstart, onboarding, verify, dpa pages
   ============================================ */

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

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 32px 0;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

/* Main Content */
main {
    padding: 60px 0;
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

h4 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: #333;
}

/* Lists */
ul, ol {
    margin: 20px 0;
    padding-left: 28px;
}

li {
    margin-bottom: 10px;
    color: #333;
}

/* Text Styling */
strong {
    font-weight: 600;
    color: #1a1a1a;
}

em {
    font-style: italic;
}

/* Links */
a {
    color: #1a1a1a;
    text-decoration: underline;
}

a:hover {
    color: #666;
}

/* Meta/Tagline */
.meta,
.tagline {
    color: #666;
    margin-bottom: 48px;
    font-size: 18px;
}

.meta {
    font-size: 15px;
}

.meta strong {
    color: #1a1a1a;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
}

.back-link:hover {
    color: #1a1a1a;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
    margin-top: 24px;
}

.cta-button:hover {
    background: #333;
    color: #ffffff;
}

/* Note/Info Boxes */
.note-box {
    background: #f8f8f8;
    border-left: 4px solid #1a1a1a;
    padding: 20px;
    margin: 32px 0;
}

.note-box p {
    margin-bottom: 0;
}

.binding-note {
    background: #fff4e6;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 32px 0;
    font-size: 15px;
}

/* Code Styling */
code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: #1a1a1a;
    color: #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 14px;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Section Spacing */
.section {
    margin-bottom: 48px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-copy {
    margin-top: 24px;
    color: #999;
    font-size: 14px;
}

/* Signatures Section (for legal docs) */
.signatures {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 2px solid #e5e5e5;
}

.signature-block {
    margin-bottom: 48px;
}

.signature-line {
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-top: 32px;
    display: inline-block;
    min-width: 280px;
}

/* Definitions (for legal docs) */
.definition {
    margin-bottom: 12px;
}

.definition strong {
    display: inline-block;
    min-width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .container,
    .container-narrow {
        padding: 0 16px;
    }

    main {
        padding: 40px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
