@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/figtree-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/newsreader-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans.ttf') format('truetype-variations');
}

:root {
    --primary: #d4000c;
    --secondary: #5c0000;
    --background: #fadfe6;
    --surface: #ffffff;
    --text-main: #1a1a1a;
    --accent: #0000ff;
    --font-heading: 'Newsreader', serif;
    --font-body: 'Figtree', sans-serif;
    --font-card-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text-main);
    padding: 20px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
}

.site-footer {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--primary);
    opacity: 0.85;
    text-align: center;
    flex-shrink: 0;
    font-weight: 400;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 4vw, 48px);
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.75 / 1;
    position: relative;
    border-radius: 1px;
    box-shadow:
        0 3px 6px rgba(135, 45, 58, 0.12),
        0 12px 24px rgba(135, 45, 58, 0.08),
        0 24px 48px rgba(135, 45, 58, 0.04);
    overflow: hidden;
}

.card-front {
    border: 2px solid var(--surface);
}

.card-texture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-texture-pink {
    background-color: var(--surface);
}

.card-texture-paper {
    background-color: var(--surface);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.05'/%3E%3C/svg%3E");
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 60px);
    gap: clamp(6px, 2vw, 12px);
}

.card-content-back {
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-3px);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 5.2rem);
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--primary);
}

.card-slogan {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.8rem, 3vw, 1rem);
    color: var(--secondary);
}

.card-description {
    font-family: var(--font-card-body);
    font-size: 0.8rem;
    font-weight: 530;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: var(--text-main);
    text-wrap: pretty;
}

.card-email-link {
    color: var(--accent);
    text-decoration: none;
}

.card-contact {
    font-family: var(--font-card-body);
    font-size: 0.8rem;
    font-weight: 530;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

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

    .card {
        max-width: 400px;
        aspect-ratio: 1.55 / 1;
        container-type: inline-size;
    }

    .card-content {
        padding: 32px 28px;
    }

    .card-brand {
        font-size: 20cqw;
    }

    .card-content-back {
        justify-content: flex-start;
        gap: 16px;
    }

    .card-contact {
        margin-top: auto;
    }

    .card-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .site-footer {
        padding-top: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .card { max-width: 420px; }
}
