/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/outfit-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/outfit-v14-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/outfit-v14-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* young-serif-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/young-serif-v2-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Color Variables */
:root {
    /* Color Palette */
    --c-white: hsl(0, 0%, 100%);
    --c-stone100: hsl(30, 54%, 90%);
    --c-stone150: hsl(30, 18%, 87%);
    --c-stone600: hsl(30, 10%, 34%);
    --c-stone900: hsl(24, 5%, 18%);
    --c-brown800: hsl(14, 45%, 36%);
    --c-rose800: hsl(332, 51%, 32%);
    --c-rose50: hsl(330, 100%, 98%);

    /* Color Variables */
    --color-background: var(--c-stone100);
    --color-background-recipe: var(--c-white);
    --color-background-card: var(--c-rose50);

        /* Font Variables */
    --fontcolor-h1: var(--c-stone900);
    --fontcolor-h2: var(--c-brown800);
    --fontcolor-h2-card: var(--c-rose800);
    --fontcolor-p: var(--c-stone600);
    --fontcolor-li: var(--c-stone600);
    --fontcolor-th: var(--c-stone600);
    --fontcolor-td: var(--c-brown800);

    /* Layout Sizes */
    --l-max-width: 35rem; /* Maximum width for recipe and image */
    --l-padding: 0 0 2rem 0; /* Padding for recipe on normal screens */
    --l-padding-mobile: 0 1.5rem 0 1.5rem; /* Padding for recipe on mobile screens */
}

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

body {
    background-color: var(--color-background);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    min-width: 320px;
    width: 100%;
}

h1, h2 {
    font-family: 'Young Serif', serif;
}

h1 {
    font-size: 2.15rem;
    font-weight: 500;
    color: var(--fontcolor-h1);
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--fontcolor-h2);
    /* margin-bottom: 0; */
}

p {
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
    color: var(--fontcolor-p);
}

ul {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

ul li::marker {
    color: var(--fontcolor-h2);
    font-size: 0.7rem;
}

ol {
    padding: 0 0 0 1.2rem;
}

ol li::marker {
    color: var(--fontcolor-h2);
    font-weight: 600;
}

li {
    font-size: 0.85rem;
    color: var(--fontcolor-li);
    padding: 0.5rem;
    
}

table {
    width: 100%;
    text-align: left;
}

tr {
    border-bottom: solid 1px var(--c-stone150);
    display: flex;
    justify-content: left;
    padding: 0.5rem;
}

.last-tr {
    border-bottom: none;
}

th {
    color: var(--fontcolor-th);
    font-size: 0.85rem;
    font-weight: 400;
    width: 50%;
    justify-content: left;
    padding-left: 1rem;
}

td {
    color: var(--fontcolor-td);
    font-size: 0.85rem;
    font-weight: 600;
}

img {
    border-radius: 0.5rem;

    @media (width <= 35rem) {
        padding: 0;
        border-radius: 0;
        margin: 0;
    }
    @media (width >= 35rem) {
        max-width: var(--l-max-width);
        border-radius: 0.7rem;
    }
}

/* Wrapper for both wrapper-recipe class and recipe due to image having to be differently styled in responsive mode */
.wrapper {
    display: grid;
    place-items: center;
    padding: 6rem;

    @media (width <= 35rem) {
        padding: 0;
    }
}

.wrapper-recipe {
    background-color: var(--color-background-recipe);
    border-radius: 1.2rem;
    padding: 1.8rem;

    @media (width <= 35rem) {
        padding: 0;
        border-radius: 0;
    }
}

.recipe {
    max-width: var(--l-max-width);
    padding: var(--l-padding);

    @media (width <= 840px) {
        padding: var(--l-padding-mobile);
    }
}

/* Card Styles */

.card {
    background-color: var(--color-background-card);
    padding: 1.5rem;
    margin: 1.5rem 0 1.5rem 0;
    border-radius: 0.5rem;
}

.card li::marker {
    color: var(--fontcolor-h2-card);
}

.card h2 {
    color: var(--fontcolor-h2-card);
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.card ul {
    padding: 0.5rem 1rem 0 1rem;
    margin: 0;
}

.card li {
    font-size: 0.85rem;
    padding: 0.5rem;
    margin: 0;
}

.line {
    border-bottom: solid 1px var(--c-stone150);
}