/* 
   Tiny Little Lab - Minimalist Design System (2025Q4)
   Aesthetic: Creative, Indie-maker, Elegant, Calm
*/

:root {
    /* Color Palette - Minimalist Light Mode */
    --bg-color: #FAFAFA;
    /* Very light grey/off-white */
    --bg-card: #FFFFFF;
    /* Pure white for cards */
    --text-primary: #111111;
    /* Near black for headings */
    --text-secondary: #555555;
    /* Dark grey for body */
    --text-tertiary: #888888;
    /* Light grey for meta info */
    --border-color: #EAEAEA;
    /* Subtle borders */
    --accent-color: #000000;
    /* Stark black accent */

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 720px;
    /* Focused reading width */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    /* UI Elements */
    --radius-sm: 6px;
    --radius-md: 12px;
    --transition: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}



.nav-logo-img {
    height: 96px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.nav-logo-img:hover {
    opacity: 0.7;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

/* 1. Hero Section */
.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-logo {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto 48px auto;
    /* "Moat" spacing */
}

.hero-title {
    font-size: 3rem;
    /* Larger for impact */
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: none;
}

.btn-primary:hover {
    background: #333;
    border-bottom: none;
}

.btn-secondary {
    color: var(--text-secondary);
    border: none;
    font-weight: 500;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* 2. What I Build */
.what-i-build-intro {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.bullet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* 3. Apps / Experiments */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: #CCC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-shipping {
    background: #E6FFFA;
    color: #198754;
}

.status-experiment {
    background: #F3F4F6;
    color: #4B5563;
}

.status-coming-soon {
    background: #FFF5F5;
    color: #C53030;
}

.app-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* 4. Philosophy */
.philosophy-text {
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: var(--spacing-md);
}

/* 5. Writing & Content */
.links-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.links-list a {
    font-size: 1.1rem;
    align-self: flex-start;
}

/* 6. Footer */
.footer {
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    max-width: 500px;
}

/* Responsive */
@media (max-width: 600px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        column-count: 1;
    }
}

/* Project Detail Pages */
.back-link {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    border: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-2px);
}

.project-header {
    margin-bottom: var(--spacing-xl);
    /* More breathing room */
}

.project-title {
    font-size: 3rem;
    /* Impactful title */
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 680px;
    font-weight: 400;
}

.project-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.meta-item {
    font-weight: 500;
}

.prose {
    max-width: 640px;
    margin-bottom: var(--spacing-xl);
}

.prose h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.prose p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Masonry Gallery */
.screenshot-grid {
    column-count: 2;
    column-gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.screenshot-grid img {
    width: 100%;
    margin-bottom: var(--spacing-md);
    /* Space between vertical items */
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* High-end subtle elevation */
    break-inside: avoid;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}