/* ============================================================================
   ECRAN LANDING PAGE
   Warm-neutral, Anthropic-inspired. Self-contained, no Flask coupling.
   ============================================================================ */

:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #f3f1ed;
    --bg-card: #ffffff;

    --text-primary: #191918;
    --text-secondary: #4a4a48;
    --text-muted: #8b8b89;

    --accent-primary: #c4704b;
    --accent-primary-hover: #b35f3c;

    --border-light: #e8e5e1;
    --border-medium: #d5d1cb;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

    --radius-md: 8px;
    --radius-lg: 12px;

    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-base: 200ms ease;
}

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

html, body {
    height: 100%;
}

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

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 96px 32px 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- Hero ----- */

.hero {
    text-align: center;
    margin-bottom: 80px;
}

.wordmark {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.tagline {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-tagline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

/* ----- Tiles ----- */

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.tile {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: default;
    box-shadow: var(--shadow-card);
    outline: none;
    text-decoration: none;
    color: inherit;
}

a.tile {
    cursor: pointer;
}

.tile:hover,
.tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-medium);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.tile-icon svg {
    width: 22px;
    height: 22px;
}

.tile-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.tile-description {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
    flex-grow: 1;
}

.tile-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-top: 8px;
}

/* ----- Footer ----- */

.footer {
    margin-top: auto;
    padding-top: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

/* ----- Responsive ----- */

@media (max-width: 860px) {
    .tiles {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page {
        padding: 64px 24px 32px;
    }

    .hero {
        margin-bottom: 56px;
    }

    .tiles {
        margin-bottom: 56px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 48px 20px 24px;
    }

    .wordmark {
        margin-bottom: 32px;
    }

    .sub-tagline {
        font-size: 16px;
    }
}
