/* CSS Variables */
:root {
    --color-navy: #1a2744;
    --color-navy-dark: #111a2e;
    --color-teal: #3FBFAD;
    --color-teal-hover: #35a696;
    --color-gray-text: #6B7280;
    --color-gray-heading: #1F2937;
    --color-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-border: #E5E7EB;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --header-height: 72px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-text);
    background-color: var(--color-white);
}

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

.container-wide {
    max-width: 1320px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-gray-heading);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
    color: var(--color-gray-heading);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-teal-hover);
}

/* Button-like links for primary CTAs */
.section-outro a,
.produce-card p a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-outro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-outro a:hover,
.produce-card p a:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-heading);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-teal);
}

.nav-link-github {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link-github:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-heading);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--color-teal);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    list-style: none;
    padding: 8px 0;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.9375rem;
    color: var(--color-gray-heading);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
    background-color: var(--color-bg-light);
    color: var(--color-teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-heading);
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-heading);
    transition: transform 0.2s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 48px;
    align-items: center;
}

.hero-figure {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-text {
    max-width: 680px;
}

.hero-title {
    color: var(--color-white);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-intro {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-white {
    background-color: var(--color-white);
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-dark {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.0625rem;
}

.section-outro {
    text-align: center;
    max-width: 700px;
    margin: 48px auto 0;
    font-size: 1.0625rem;
}

.section-figure {
    max-width: 720px;
    margin: 0 auto 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.section-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

.split-section .section-figure {
    margin: 0;
    max-width: none;
}

.split-section .section-title,
.split-section .section-intro,
.split-section .section-outro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Limits Grid (The Hard Problem) */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.limit-card {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.limit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-teal);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.limit-card h3 {
    margin-bottom: 12px;
}

.limit-card p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Approach Grid */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.approach-card {
    background-color: var(--color-bg-light);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.approach-card h3 {
    margin-bottom: 16px;
    color: var(--color-navy);
}

.approach-card pre {
    margin: 16px 0;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.approach-card code {
    font-size: 0.8125rem;
}

.pathway {
    padding: 16px;
    background-color: var(--color-white);
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 3px solid var(--color-teal);
}

.pathway:last-child {
    margin-bottom: 0;
}

.pathway h4 {
    font-size: 1rem;
    color: var(--color-teal);
    margin-bottom: 8px;
}

.pathway p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.theory-list {
    list-style: none;
    margin-top: 16px;
}

.theory-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.theory-list li:last-child {
    border-bottom: none;
}

/* Code Sample Section */
.code-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-wrapper pre {
    margin: 0;
    border-radius: 8px;
}

.code-wrapper pre[class*="language-"] {
    margin: 0;
    border-radius: 8px;
}

.code-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 24px;
    margin-bottom: 0;
    font-style: italic;
}

/* Use Case Section */
.use-case-content {
    max-width: 800px;
    margin: 0 auto;
}

.use-case-lead {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin: 24px 0;
}

.feature-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 16px;
    height: 16px;
    background-color: var(--color-teal);
    border-radius: 50%;
    opacity: 0.3;
}

.use-case-closing {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--color-white);
    border-radius: 8px;
    border-left: 4px solid var(--color-teal);
    margin-bottom: 0;
}

/* What We Produce Section */
.produce-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.produce-grid.two-up {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.produce-grid.two-up .produce-card {
    width: 360px;
    max-width: 100%;
}

.produce-card {
    background-color: var(--color-bg-light);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.produce-figure {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.card-figure {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.card-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.produce-card h3 {
    color: var(--color-navy);
    margin-bottom: 12px;
}

.produce-card p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.audience-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.audience-section h3 {
    margin-bottom: 24px;
}

.audience-list {
    list-style: none;
    text-align: left;
}

.audience-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background-color: var(--color-bg-light);
    border-radius: 6px;
    margin-bottom: 12px;
}

.audience-list li:last-child {
    margin-bottom: 0;
}

.audience-figure {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .limits-grid,
    .approach-grid,
    .produce-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px 24px;
    }

    .nav-link-github {
        margin: 8px 24px;
        text-align: center;
        border-radius: 6px;
    }

    /* Mobile dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        display: flex;
        width: 100%;
        padding: 12px 24px;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
        background-color: var(--color-bg-light);
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 200px;
        padding: 8px 0;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        max-height: 0;
        padding: 0;
    }

    .nav-dropdown-link {
        padding: 10px 40px;
    }

    .hamburger.active {
        background-color: transparent;
    }

    .hamburger.active::before {
        transform: rotate(45deg);
        top: 0;
    }

    .hamburger.active::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 48px) 0 48px;
    }

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

    .hero-figure {
        order: -1;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-intro {
        margin-bottom: 32px;
    }

    .code-wrapper pre {
        font-size: 0.75rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

/* Prism.js overrides for better consistency */
pre[class*="language-"] {
    background: #1d1f21;
    padding: 24px;
    font-size: 0.875rem;
    line-height: 1.5;
}

code[class*="language-"] {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* Article Pages */
.article {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-meta {
    color: var(--color-gray-text);
    font-size: 0.9375rem;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-hero-media,
.article-figure {
    margin: 0 0 36px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.article-figure {
    margin: 32px 0;
}

.article-hero-media img,
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--color-navy);
    margin-top: 48px;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.375rem;
    color: var(--color-gray-heading);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-teal);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-gray-heading);
}

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

.article-content pre {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-content code:not([class*="language-"]) {
    background-color: var(--color-bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: var(--color-navy);
}

.article-content strong {
    color: var(--color-gray-heading);
}

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

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

.article-nav {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.article-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-teal);
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-nav-link:hover {
    color: var(--color-teal-hover);
}

/* Theory cards for article pages */
.theory-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.theory-card-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.theory-card h4 {
    color: var(--color-navy);
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.theory-card p {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-gray-heading);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-group label .required {
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--color-gray-heading);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(63, 191, 173, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-navy);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--color-teal);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--color-gray-text);
}

.form-note a {
    color: var(--color-teal);
}

.form-message {
    padding: 24px;
    border-radius: 8px;
    margin-top: 32px;
}

.form-message h3 {
    margin-bottom: 8px;
}

.form-message p {
    margin-bottom: 0;
}

.form-success {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-success h3 {
    color: #065f46;
}

.form-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.form-error h3 {
    color: #991b1b;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Responsive article styles */
@media (max-width: 768px) {
    .article {
        padding-top: calc(var(--header-height) + 32px);
        padding-bottom: 48px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 32px;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content blockquote {
        padding: 16px 20px;
        margin: 24px 0;
    }
}
