:root {
    --bg: #ffffff;
    --grid: rgba(0, 0, 0, 0.07);
    --yellow: #faffd1;
    --yellow-deep: #f0f5a0;
    --ink: #1a1a1a;
    --ink-light: rgba(26, 26, 26, 0.45);
    --shadow: 7px 7px 0px var(--ink);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

h1,
h2,
.serif {
    font-family: 'Playfair Display', serif;
}

/* ── Page fade-in ── */
.container {
    max-width: 720px;
    width: 100%;
    text-align: center;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ── */
.header {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.6rem;
    font-weight: 400;
}

.header h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Thin rule below the title */
.header-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
    color: var(--ink-light);
}

.header-rule::before,
.header-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ink);
    opacity: 0.15;
    max-width: 80px;
}

.header-rule span {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ── App Card ── */
.app-card {
    background-color: var(--yellow);
    border: 1.5px solid var(--ink);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Subtle corner accent */
.app-card::after {
    content: '↗';
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1rem;
    opacity: 0.25;
    transition: opacity 0.2s, transform 0.2s;
}

.app-card:hover {
    transform: translate(-3px, -4px);
    box-shadow: var(--shadow);
}

.app-card:hover::after {
    opacity: 0.7;
    transform: translate(3px, -3px);
}

/* Icon */
.icon-wrap {
    width: 72px;
    height: 72px;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* App info */
.app-tag {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 4px;
    font-weight: 400;
}

.app-card h2 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.app-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(26, 26, 26, 0.65);
    font-weight: 300;
    max-width: 380px;
}

/* ── Footer note ── */
.footer-note {
    margin-top: 2.4rem;
    font-size: 0.72rem;
    color: var(--ink-light);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2.8rem;
    }

    .app-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: center;
    }

    .icon-wrap {
        margin: 0 auto;
    }

    .app-card p {
        max-width: 100%;
    }
}