@import "../base.css";

@layer theme {
    .taglist {
        column-gap: 8px;
        font-family: var(--font-monospace);
        font-size: 0.875rem;
        font-style: italic;
        color: var(--color-stone-500);
    }

    .taglist a.selected {
        font-weight: 800;
    }

    img {
        width: max(50vw, 400px);
        padding: 8px;
    }

    .recipelist {
        padding-inline-start: 1.15em;

        li::marker {
            font-family: var(--font-monospace);
            color: var(--color-stone-500);
            content: "~ ";
        }
    }

    main:has(> .recipe) {
        max-width: clamp(36rem, 100% - 64px, 80rem);
    }

    .recipe {
        display: grid;
        grid-template-areas:
            "header"
            "ingredients"
            "method";

        @media (min-width: 1080px) {
            grid-template-areas:
                "header header header"
                "ingredients method method";
        }

        .header {
            grid-area: header;
        }

        .ingredients {
            grid-area: ingredients;
        }

        .method {
            grid-area: method;
        }
    }
}
