:root {
    --bg: #f5f3ee;
    --surface: #ffffff;
    --border: #e6e1d6;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --accent: #1a1a1a;
    --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
    --shadow-md: 0 12px 32px -12px rgba(20, 20, 20, 0.18);
    --radius: 20px;
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.grid {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 280px;
    padding: 48px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease,
        border-color 220ms ease;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 0%),
        rgba(0, 0, 0, 0.04),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--text);
    }

    .card:hover::after {
        opacity: 1;
    }

    .card:hover .card__icon svg {
        transform: scale(1.05);
    }
}

.card:active {
    transform: translateY(-1px);
}

.card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.card__icon svg {
    width: 88px;
    height: 88px;
    transition: transform 260ms ease;
}

.card__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (min-width: 720px) {
    body {
        padding: 40px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .card {
        min-height: 420px;
        gap: 36px;
        padding: 64px 40px;
    }

    .card__icon svg {
        width: 120px;
        height: 120px;
    }

    .card__title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .card {
        min-height: 480px;
    }

    .card__icon svg {
        width: 140px;
        height: 140px;
    }

    .card__title {
        font-size: 2.25rem;
    }
}
