/* Linguabase - Neon/Pastel Tufte-inspired styles */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Neon/Pastel palette */
    --bg-outer: #d4c4b0;              /* Warm tan-grey background */
    --bg-card: #fef8f0;               /* Light orange-tan card */
    --text-color: #2d2a26;            /* Warm dark brown */
    --text-muted: #6b6560;            /* Muted warm grey */
    --accent-primary: #e85d75;        /* Neon coral/pink */
    --accent-secondary: #7c5cbf;      /* Neon purple */
    --accent-tertiary: #2eb8a6;       /* Neon teal */
    --accent-yellow: #f4d03f;         /* Pastel yellow */
    --link-color: #c44569;            /* Deep coral for links */
    --border-light: #e8ddd0;          /* Light warm border */
    --border-accent: #e85d75;         /* Accent border */

    /* Typography */
    --body-font: 'Crimson Pro', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    --mono-font: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

html {
    font-size: 15px;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-outer);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Main content wrapper - center everything */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body > nav,
body > h1,
body > h2,
body > h3,
body > p,
body > ul,
body > ol,
body > table,
body > div,
body > footer {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

/* Create the card effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 980px;
    height: 100%;
    background: var(--bg-card);
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(0, 0, 0, 0.05);
    z-index: -1;
    pointer-events: none;
}

/* Navigation with logo */
nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
}

nav .logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

nav a {
    font-variant: small-caps;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a.current {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-primary);
}

nav .logo:hover {
    border-bottom: none;
}

nav a strong {
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

a:hover {
    border-bottom-color: var(--link-color);
}

/* Headings */
h1 {
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h2 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.9rem;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    color: var(--accent-secondary);
}

h3 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--accent-tertiary);
}

h1:first-of-type {
    margin-top: 0;
}

/* Paragraphs */
p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Tagline */
.tagline {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-primary);
}

/* Lists */
ul, ol {
    font-size: 1.25rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

li {
    margin-bottom: 0.2rem;
}

li > ul, li > ol {
    margin-top: 0.25rem;
}

/* Tables - clean with accent touches */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.comparison-table thead {
    border-bottom: 2px solid var(--accent-primary);
}

.comparison-table th {
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem 0.75rem 0;
    text-align: left;
    background: transparent;
    color: var(--accent-secondary);
}

.comparison-table td {
    padding: 0.65rem 1rem 0.65rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody {
    border-bottom: 2px solid var(--accent-primary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Nested lists in tables */
.comparison-table ul {
    font-size: 1rem;
    margin: 0;
    padding-left: 1.2rem;
}

.comparison-table li {
    margin-bottom: 0.25rem;
}

/* Highlights - accent card style */
.highlight {
    background: linear-gradient(135deg, #fef3e8 0%, #fef8f0 100%);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.highlight strong {
    color: var(--accent-primary);
}

/* Code examples */
.example {
    font-family: var(--mono-font);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 1rem;
    margin: 1rem 0;
    background: #f9f6f2;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Blockquotes */
blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin: 2rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 3px solid var(--accent-tertiary);
    color: var(--text-muted);
}

/* Strong emphasis */
strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Newthought opener */
.newthought {
    font-variant: small-caps;
    font-size: 1.15em;
    letter-spacing: 0.04em;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 1rem;
}

footer a {
    color: var(--text-muted);
}

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

/* Architecture boxes */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.arch-box {
    background: linear-gradient(135deg, #fef8f0 0%, #f9f6f2 100%);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-tertiary);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
}

.arch-box-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 0.35rem;
}

.arch-box-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Stats callout (for homepage) */
.stats-callout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0e6fa 0%, #e6f4f2 100%);
    border-radius: 12px;
}

.stats-callout .stat {
    text-align: center;
}

.stats-callout .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.stats-callout .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-variant: small-caps;
}

/* Responsive */
@media (max-width: 1100px) {
    body {
        padding: 1.5rem;
    }

    body::before {
        max-width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    body {
        padding: 1rem;
    }

    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav .logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    nav a {
        display: inline-block;
        margin-right: 1rem;
    }

    .comparison-table {
        font-size: 0.95rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.5rem 0.5rem 0;
    }

    .stats-callout {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print */
@media print {
    body {
        background: white;
        padding: 0;
    }

    body::before {
        display: none;
    }

    nav {
        display: none;
    }

    a {
        color: var(--text-color);
        border-bottom: none;
    }
}
