/* ============================================
   android.onllm.dev — Android app portfolio
   Inherits the onllm.dev "Pastel Zen" palette.
   Self-contained: no build step, no dependencies.
   Paths are relative so the site works whether it
   is served at a subdomain root or a subpath.
   ============================================ */

:root {
    --primary: #8B7EC0;
    --primary-light: #A899D4;
    --primary-dark: #6A5B9C;
    --secondary: #5EC4A8;
    --accent: #F5846A;

    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --text-muted: #9A9A9A;

    --bg: #FFFBF7;
    --bg-alt: #F8F5F2;
    --bg-card: #FFFFFF;

    --border: #E8E4E0;
    --border-light: #F0ECE8;

    --shadow-sm: 0 2px 8px rgba(139, 126, 192, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 126, 192, 0.12);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --maxw: 860px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #E8E4E0;
        --text-light: #B4AFAA;
        --text-muted: #8A8580;
        --bg: #1C1B1F;
        --bg-alt: #232228;
        --bg-card: #2A2830;
        --border: #3A3740;
        --border-light: #322F38;
        --primary: #A899D4;
        --primary-dark: #C4B8E6;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    padding: 0 20px 64px;
    overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 40px 0 14px; }
h3 { font-size: 1.08rem; }

p { margin: 0 0 14px; }
ul { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

/* ---- chrome ---- */

header.site {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

header.site .wordmark {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

header.site .wordmark img {
    width: 32px;
    height: 36px;
    display: block;
    object-fit: contain;
}

header.site .wordmark .sub { color: var(--text-muted); font-weight: 500; }

header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 0.94rem; }
header.site nav a { color: var(--text-light); text-decoration: none; }
header.site nav a:hover { color: var(--primary); }

main { max-width: var(--maxw); margin: 0 auto; }

.lead {
    font-size: 1.12rem;
    color: var(--text-light);
    margin: 14px 0 8px;
}

footer.site {
    max-width: var(--maxw);
    margin: 64px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
footer.site a { color: var(--text-light); text-decoration: none; }
footer.site a:hover { color: var(--primary); text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 10px;
}
.footer-brand img { width: 28px; height: 31px; object-fit: contain; display: block; }

.footer-description { color: var(--text-muted); font-size: 0.9rem; margin: 0; max-width: 34ch; }

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin: 0 0 10px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 7px; }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---- app cards ---- */

.apps { display: grid; gap: 14px; margin: 26px 0 8px; }

.app {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.app:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.app img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    display: block;
}

.app .body { flex: 1; min-width: 0; }
.app h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app p { margin: 0; color: var(--text-light); font-size: 0.96rem; }

.tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.tag.live { background: rgba(94, 196, 168, 0.18); color: #2F7F68; }
.tag.soon { background: rgba(139, 126, 192, 0.16); color: var(--primary-dark); }
@media (prefers-color-scheme: dark) {
    .tag.live { background: rgba(94, 196, 168, 0.2); color: #7DD8BE; }
    .tag.soon { background: rgba(168, 153, 212, 0.2); color: #C4B8E6; }
}

.app.soon { opacity: 0.82; }

/* ---- app detail page header ---- */

.hero {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 18px 0 6px;
    flex-wrap: wrap;
}
.hero img { width: 88px; height: 88px; border-radius: 22px; display: block; }
.hero h1 { margin: 0; }

.badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    box-shadow: var(--shadow-sm);
}
.badge:hover { background: var(--primary-dark); color: #fff; }
.badge.disabled {
    background: var(--bg-alt);
    color: var(--text-muted);
    box-shadow: none;
    cursor: default;
    border: 1px solid var(--border);
}

/* ---- tables ---- */

.table-wrap { overflow-x: auto; margin: 0 0 18px; }

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }

/* ---- callout ---- */

.note {
    background: var(--bg-alt);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    margin: 0 0 18px;
    color: var(--text-light);
    font-size: 0.96rem;
}
.note strong { color: var(--text); }

@media (max-width: 560px) {
    body { font-size: 16px; padding: 0 16px 48px; }
    .app { gap: 14px; padding: 15px; }
    .app img { width: 54px; height: 54px; border-radius: 13px; }
    .hero img { width: 68px; height: 68px; border-radius: 17px; }
}
