:root {
    /* ─── Colors ─────────────────────────────────── */

    /* Primary */
    --color-green-500: hsl(158, 36%, 37%);
    --color-green-700: hsl(158, 42%, 18%);

    /* Neutral */
    --color-black:  hsl(212, 21%, 14%);
    --color-grey:   hsl(228, 12%, 48%);
    --color-cream:  hsl(30, 38%, 92%);
    --color-white:  hsl(0, 0%, 100%);

    /* ─── Typography ─────────────────────────────── */
    --font-heading: 'Fraunces', serif;
    --font-body:    'Montserrat', sans-serif;

    /* Font presets (style guide) */
    --font-preset-1: 2rem;      /* 32px — Fraunces Bold */
    --font-preset-2: 0.875rem;  /* 14px — Montserrat Bold,   110% line-height */
    --font-preset-3: 0.875rem;  /* 14px — Montserrat Medium, 160 % line-height */
    --font-preset-4: 0.75rem;   /* 12px — Montserrat Medium, 120% line-height, 5px ls */
    --font-preset-5: 0.8125rem; /* 13px — Montserrat Medium, 120% line-height */

    /* Line heights */
    --line-height:    1;
    --line-height-md: 1.1;   /* 110% */
    --line-height-lg: 1.6;   /* 160% */
    --line-height-xl: 1.2;   /* 120% */

    /* Font weights */
    --font-weight-medium: 500;
    --font-weight-bold:   700;

    /* Letter spacing */
    --letter-spacing-wide: 5px;
    --letter-spacing-none: 0px;

    /* ─── Spacing ─────────────────────────────────── */
    --space-50:  0.25rem;  /*  4px */
    --space-100: 0.5rem;   /*  8px */
    --space-200: 1rem;     /* 16px */
    --space-300: 1.5rem;   /* 24px */
    --space-400: 2rem;     /* 32px */
    --space-500: 2.5rem;   /* 40px */

    /* ─── Border radius ──────────────────────────── */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   24px;
    --radius-full: 50%;
}

/* Presets */
.text-preset-1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: 0;
    font-optical-sizing: auto;
}

.text-preset-2 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: 0;
}

.text-preset-3 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
    letter-spacing: 0;
}

.text-preset-4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: 5px;
}

.text-preset-5 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: 0;
}

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

body {
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    margin: 0 12px;
    border-radius: var(--radius-sm);
}

.product-card__image-desktop {
    display: none;
}

.product-card__image-mobile {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.product-card__image {
}

.product-card__content {
    display: flex;
    flex-direction: column;
    padding: var(--space-400);
    gap: var(--space-300);
}

.product-card__category {
    color: var(--color-grey);
    text-transform: uppercase;
}

.product-card__title {
}

.product-card__description {
    color: var(--color-grey);
}

.product-card__price {
    display: flex;
    align-items: center;
}

.product-card__price-current {
    color: var(--color-green-500);
}

.product-card__price-original {
    color: var(--color-grey);
    padding-left: var(--space-200);
    text-decoration: line-through;
}

.product-card__button {
    background-color: var(--color-green-500);
    border: none;
    padding: 17.5px 0;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-100);
    cursor: pointer;
}

.product-card__button:hover {
    background-color: var(--color-green-700);
}

.product-card__button:focus-visible {
    outline: 2px solid var(--color-green-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.attribution {
    font-size: 11px;
    text-align: center;
    margin-top: 24px;
    bottom: 10px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

.attribution a:focus-visible {
    outline: 2px solid var(--color-green-500);
    border-radius: 4px;
}

/* breakpoints tablet */
@media (min-width: 616px) {
    .product-card {
        flex-direction: row;
        max-width: 600px;
    }
    .product-card__image-desktop {
        display: block;
        width: 300px;
        height: auto;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    }

    .product-card__image-mobile {
        display: none;
        width: 100%;
        height: auto;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
}