/* Neutral Minimalist Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fcfbfa;       /* Soft alabaster white */
    --card-bg: #ffffff;        /* Pure white for depth */
    --text-main: #2d2c2a;      /* Dark charcoal instead of stark black */
    --text-muted: #73716e;     /* Muted clay gray */
    --border-color: #e6e4e0;   /* Light warm gray border */
    --accent-hover: #f4f1eb;   /* Light sand/stone color for interactions */
    --sans-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif-font: "Georgia", serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--sans-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hero / Introduction Header */
header {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem 2rem;
    text-align: center;
}

header h1 {
    font-family: var(--serif-font);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* Directory Grid Container */
.directory-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Profile Cards */
.profile-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar Placeholder */
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f0ede6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif-font);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.profile-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.profile-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes button to bottom if text lengths differ */
}

/* Card Button styling */
.view-btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-main);
    transition: all 0.2s ease;
}

/* Hover States */
.profile-card:hover {
    transform: translateY(-4px);
    border-color: #c9c6c0;
    box-shadow: 0 12px 30px rgba(45, 44, 42, 0.04);
}

.profile-card:hover .avatar {
    transform: scale(1.05);
    background-color: #e8e4db;
}

.profile-card:hover .view-btn {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* Clean Minimal Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    header { padding-top: 4rem; }
    header h1 { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr; }
}
