@font-face {
    font-family: 'Outfit';
    src: url('./assets/fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Young Serif';
    src: url('./assets/fonts/young-serif/YoungSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-white: hsl(0, 0%, 100%);
    --color-stone-100: hsl(30, 54%, 90%);
    --color-stone-150: hsl(30, 18%, 87%);
    --color-stone-600: hsl(30, 10%, 34%);
    --color-stone-900: hsl(24, 5%, 18%);
    --color-brown-800: hsl(14, 45%, 36%);
    --color-rose-800: hsl(332, 51%, 32%);
    --color-rose-50: hsl(330, 100%, 98%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--color-stone-100);
}

main {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--color-white);
    margin: 1rem auto;
    padding: 2rem 0;
    border-radius: 1rem;
    max-width: 1440px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

h1 {
    font-family: 'Young Serif', serif;
    font-size: 2.5rem;
    color: var(--color-stone-900);
    letter-spacing: 0.05em;
}

p {
    font-size: 1.2rem;
    color: var(--color-stone-600);
}

.recipe-time-summarize {
    border-radius: 10px;
    background-color: var(--color-rose-50);
    padding: 2rem;
}

.recipe-time__title {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-rose-800);
    padding-bottom: 1rem;
    font-weight: 600;
}

.recipe-time__list,
.recipe-info ul,
.recipe-info ol {
    list-style-position: inside;
    padding-left: 0;
}

.recipe-info {
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-stone-150);
}

.recipe-info__title {
    display: inline-block;
    font-family: 'Young Serif', serif;
    font-size: 1.5rem;
    color: var(--color-brown-800);
    margin-bottom: 1.5rem;
}

.recipe-info ol {
    counter-reset: list-number;
    list-style: none;
}

.recipe-info ol li {
    counter-increment: list-number;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    text-indent: 0;
}

.recipe-info ol li::before {
    content: counter(list-number) ".";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--color-brown-800);
}

.recipe-info ul li,
.recipe-time__list li {
    margin-bottom: 0.5rem;
}

.recipe-info ul li {
    padding-left: 1.2rem;
    text-indent: -1.2rem;
}

.recipe-time__list li {
    padding-left: 1.2rem;
    text-indent: -1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

tr {
    border-bottom: 1px solid var(--color-stone-150);
}

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

td {
    padding: 1rem 0;
    color: var(--color-stone-600);
    font-size: 1.1rem;
}

td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-brown-800);
}

/* Responsive breakpoints */
@media screen and (max-width: 768px) {
    main {
        margin: 0;
        border-radius: 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }
}