﻿
/* Typography - Headings */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: oklch(18% 0.02 240);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: oklch(22% 0.02 240);
    padding-top: 2rem;
    border-top: 2px solid oklch(92% 0.01 240);
}

    h2:first-of-type {
        margin-top: 2rem;
        border-top: none;
        padding-top: 0;
    }

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: oklch(28% 0.02 240);
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: oklch(32% 0.02 240);
}

h5, h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.625rem;
    color: oklch(35% 0.02 240);
}

/* Typography - Body */
p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: oklch(26% 0.02 240);
}

strong {
    font-weight: 600;
    color: oklch(20% 0.02 240);
}

em {
    font-style: italic;
    color: oklch(32% 0.02 240);
}

/* Links */
a {
    color: oklch(50% 0.1 280);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.3em;
    transition: color 0.2s ease-out;
}

    a:hover {
        color: oklch(45% 0.12 280);
        text-decoration-color: oklch(45% 0.12 280);
    }

    a:active {
        color: oklch(40% 0.14 280);
    }

/* Lists */
ul, ol {
    margin: 1.25rem 0 1.25rem 2.5rem;
}

li {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
    color: oklch(26% 0.02 240);
}

    li > p {
        margin-bottom: 0;
    }

/* Metadata Box */
.meta {
    background: oklch(97.5% 0.005 240);
    border: 1px solid oklch(91% 0.01 240);
    padding: 1.75rem;
    border-radius: 0.625rem;
    margin-bottom: 3rem;
}

    .meta h3 {
        font-size: 0.875rem;
        font-weight: 700;
        color: oklch(38% 0.02 240);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .meta p {
        font-size: 0.95rem;
        margin-bottom: 0.625rem;
        color: oklch(33% 0.02 240);
    }

    .meta strong {
        font-weight: 600;
        color: oklch(18% 0.02 240);
    }

/* Highlight / Important Section */
.highlight, .answer-capsule {
    background: oklch(98% 0.008 280);
    border-right: 4px solid oklch(65% 0.1 280);
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 0.375rem;
}

    .highlight h3, .answer-capsule h3 {
        color: oklch(45% 0.08 280);
        margin-top: 0;
    }

    .highlight strong, .answer-capsule strong {
        color: oklch(35% 0.08 280);
    }

/* Section Box (Examples, Details) */
.section-box, .example-box {
    background: oklch(99% 0.004 240);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid oklch(92% 0.01 240);
    border-radius: 0.5rem;
    border-right: 3px solid oklch(70% 0.08 240);
}

    .section-box h4, .example-box h4 {
        margin-top: 0;
        color: oklch(30% 0.02 240);
    }

/* CTA Box */
.cta, .call-to-action {
    background: oklch(95% 0.015 280);
    border-left: 4px solid oklch(65% 0.1 280);
    padding: 1.75rem;
    margin: 2.5rem 0;
    border-radius: 0.5rem;
}

    .cta h3, .call-to-action h3 {
        color: oklch(45% 0.08 280);
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .cta p, .call-to-action p {
        color: oklch(28% 0.02 240);
        margin-bottom: 0.875rem;
    }

        .cta p:last-child, .call-to-action p:last-child {
            margin-bottom: 0;
        }

/* Divider */
.divider, hr {
    height: 2px;
    background: oklch(91% 0.008 240);
    margin: 3rem 0;
    border: none;
}

/* Copy Hint */
.copy-hint {
    font-size: 0.875rem;
    color: oklch(48% 0.02 240);
    font-style: italic;
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 1.25rem;
    background: oklch(98% 0.01 240);
    border-radius: 0.375rem;
    border: 1px solid oklch(91% 0.01 240);
}

/* Checklist */
.checklist {
    background: oklch(99% 0.004 240);
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    border: 1px solid oklch(92% 0.01 240);
}

    .checklist h3, .checklist h4 {
        color: oklch(28% 0.02 240);
    }

    .checklist ul {
        margin: 1rem 0 1rem 2rem;
    }

    .checklist li:before {
        content: "✓ ";
        color: oklch(50% 0.1 120);
        font-weight: 700;
        margin-right: 0.5rem;
    }

/* FAQ Section */
.faq {
    margin: 2.5rem 0;
}

.faq-item {
    background: oklch(99% 0.004 240);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid oklch(92% 0.01 240);
}

    .faq-item h4 {
        color: oklch(30% 0.02 240);
        margin-top: 0;
        font-size: 1.05rem;
    }

    .faq-item strong:first-of-type {
        color: oklch(45% 0.08 280);
        display: block;
        margin-bottom: 0.5rem;
    }

/* Byline / Author */
.byline {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    border-top: 2px solid oklch(92% 0.01 240);
    font-size: 0.95rem;
    color: oklch(44% 0.02 240);
}

    .byline strong {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
        color: oklch(28% 0.02 240);
    }

    .byline em {
        display: block;
        font-style: normal;
        font-size: 0.9rem;
        color: oklch(50% 0.02 240);
    }

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: oklch(99% 0.004 240);
    border: 1px solid oklch(92% 0.01 240);
    border-radius: 0.5rem;
    overflow: hidden;
}

thead {
    background: oklch(96% 0.01 240);
}

th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: oklch(25% 0.02 240);
    border-bottom: 2px solid oklch(91% 0.01 240);
    font-size: 0.95rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid oklch(93% 0.01 240);
    color: oklch(28% 0.02 240);
}

tr:last-child td {
    border-bottom: none;
}

/* Code / Pre */
code {
    background: oklch(96% 0.01 240);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: oklch(35% 0.02 240);
}

pre {
    background: oklch(96% 0.01 240);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid oklch(92% 0.01 240);
}

    pre code {
        background: transparent;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.6;
    }

/* Blockquote */
blockquote {
    background: oklch(98% 0.008 240);
    border-right: 4px solid oklch(65% 0.08 240);
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
    color: oklch(32% 0.02 240);
    font-style: italic;
}

    blockquote strong {
        color: oklch(22% 0.02 240);
    }

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 2rem 1.25rem;
    }

    .container {
        max-width: 100%;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .meta {
        padding: 1.5rem;
    }

    .highlight, .answer-capsule,
    .cta, .call-to-action {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    h3 {
        font-size: 1rem;
    }

    ul, ol {
        margin-right: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .copy-hint {
        display: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .divider {
        page-break-inside: avoid;
    }

    h2 {
        page-break-before: avoid;
    }
}
