:root {
    --background: #fdfbf7;
    /* Minimalist warm cream white */
    --foreground: #0f172a;
    /* Slate 900 for crisp text contrast */
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    /* Subtle slate 200 border */
    --border-hover: #cbd5e1;
    /* Slate 300 on hover */
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    /* Slate 500 for secondary text */
    --radius: 0.75rem;
    /* Standard shadcn radius */
}

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

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    width: 100%;
    max-width: 800px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.header h1 .highlight {
    color: #EF9329;
}

.header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
}

.font-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Very subtle shadow (shadcn shadow-sm) */
}

.font-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadcn shadow-md */
    /* No scaling or heavy drop-shadows. Keep it clean. */
}

.logo-display {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF9329;
    transition: opacity 0.2s ease;
}

.font-card:hover .logo-display {
    opacity: 0.85;
    /* Subtle hover state for the logo itself */
}

.mirrored-two {
    display: inline-block;
    transform: scaleX(-1);
    margin-right: 0.02em;
}

.font-info {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    width: 100%;
}

.font-name {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.font-category {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
}

/* Specific adjustments for tricky fonts */
.logo-display.Bungee {
    font-size: 3.5rem;
}

.logo-display.Press-Start-2P {
    font-size: 2.5rem;
}

.logo-display.Syncopate {
    font-size: 3rem;
}

.logo-display.Monoton {
    font-size: 4rem;
    color: #EF9329;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.25rem;
    }

    .header {
        padding: 4rem 1.5rem 2rem;
    }

    .logo-display {
        font-size: 3.5rem;
    }
}
