:root {
    --teya-black: #000000;
    --teya-gray-dark: #1a1a1a;
    --teya-gray-medium: #666666;
    --teya-gray-light: #e5e5e5;
    --teya-bg-light: #f8f8f8;
    --teya-white: #ffffff;
    --teya-accent: #0066FF;
    --teya-accent-light: #e6f0ff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--teya-gray-dark);
    background-color: var(--teya-white);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 3rem 4rem;
    background: var(--teya-white);
}

/* Header */
.header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--teya-black);
}

.header-left {
    justify-self: start;
}

.header-right {
    justify-self: end;
}

.logo {
    height: 36px;
    width: auto;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teya-black);
}

/* Title Section */
.title-section {
    margin-bottom: 3rem;
    text-align: left;
}

.title-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--teya-black);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.title-section h2 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--teya-gray-medium);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: 2.5rem;
}

/* Section Base */
.section {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.section.full-width {
    grid-column: 1 / -1;
}

.section-number {
    width: 40px;
    height: 40px;
    background: var(--teya-black);
    color: var(--teya-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.section-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--teya-black);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.section-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--teya-gray-dark);
    margin-bottom: 1rem;
}

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

/* Highlighted Section */
.section.highlighted {
    background: var(--teya-bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.section.highlighted .section-number {
    background: var(--teya-accent);
}

/* Lists */
.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--teya-gray-dark);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--teya-black);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Two Column List */
.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

/* Intro and Summary Text */
.intro-text {
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.summary-text {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--teya-gray-light);
    font-style: italic;
    color: var(--teya-gray-medium);
}

/* Two Column Section */
.two-column-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--teya-black);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Framework Section */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.framework-step {
    background: var(--teya-white);
    border: 1px solid var(--teya-gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.framework-step:hover {
    border-color: var(--teya-accent);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-header .step-number {
    width: 28px;
    height: 28px;
    background: var(--teya-accent-light);
    color: var(--teya-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teya-black);
    margin: 0;
    line-height: 1.3;
}

.framework-step ul {
    margin-bottom: 1rem;
}

.framework-step ul li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.framework-step .output {
    font-size: 0.8rem;
    color: var(--teya-gray-medium);
    font-style: italic;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--teya-gray-light);
}

/* Framework Section Layout Override */
.framework-section {
    background: var(--teya-bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* Closing Section */
.closing-section {
    background: var(--teya-black);
    color: var(--teya-white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.closing-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teya-white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.closing-section p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--teya-black);
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--teya-gray-dark);
    margin: 0.25rem 0;
}

.contact-info strong {
    font-weight: 600;
    color: var(--teya-black);
}

.contact-info a {
    color: var(--teya-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

/* Print Styles */
@media print {
    body {
        font-size: 11pt;
    }

    .page {
        max-width: 100%;
        padding: 0;
    }

    .header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .logo {
        height: 28px;
    }

    .title-section h1 {
        font-size: 20pt;
    }

    .title-section h2 {
        font-size: 14pt;
    }

    .section {
        margin-bottom: 1.25rem;
        page-break-inside: avoid;
    }

    .section-content h3 {
        font-size: 12pt;
    }

    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        margin-top: 1.5rem;
    }
}

/* Responsive Tablet */
@media (max-width: 768px) {
    .page {
        padding: 2rem 1.5rem 3rem;
    }

    .title-section h1 {
        font-size: 1.875rem;
    }

    .title-section h2 {
        font-size: 1.125rem;
    }

    .two-column-list {
        grid-template-columns: 1fr;
    }

    .two-column-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .framework-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .header-right {
        justify-self: start;
    }

    .title-section {
        margin-bottom: 2rem;
    }

    .title-section h1 {
        font-size: 1.625rem;
    }

    .title-section h2 {
        font-size: 1rem;
    }

    .section {
        grid-template-columns: 36px 1fr;
        gap: 1rem;
    }

    .section-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .section-content h3 {
        font-size: 1.125rem;
    }

    .section.highlighted,
    .framework-section {
        padding: 1.5rem;
    }

    .closing-section {
        padding: 2rem 1.5rem;
    }
}