@import "tailwindcss";
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "tailwindcss/utilities.css" layer(utilities);

@layer theme, base, components, utilities;


@plugin "@tailwindcss/typography";
@plugin "daisyui" {
    themes: lofi --default;
}
@plugin "daisyui/theme" {
    name: "lofi";
    default: true;
    --color-primary: 'white';
    --color-info: '@0284c7';
    --color-success: '@4e9a06';
    --color-error: '#cc0000';
    --color-base-100: 'black';

    --rounded-badge: "1rem";
    --animation-input: "0.1s";
}

@theme {
    --font-heading: "Oswald";
    --font-sans: "Open Sans";
    --text-base: 24px;
}

div.noscript {
    background: white;
    color: black;
    font-size: 1.5rem;
    padding: 1rem;

    a {
        text-decoration: underline;
        color: dodgerblue;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald";
    font-weight: 400;
}

a {
    text-decoration: underline theme('colors.sky.500');
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.prose p {
    &.calltoaction {
        text-align: center;
        display: block;
        margin: theme(spacing.6) 0;
        padding: theme(spacing.6) 0;
        background-color: #e7f2fd;
        font-size: 1.5em;
        font-family: Oswald,sans-serif;
    }
}
.prose strong a {
    font-weight: bold;
}

.prose figure {
    position: relative;

    img {
        width: 100%;
    }

    figcaption {
        position: absolute;
        width: 100%;
        bottom: 0;
        font-size: .75rem;
        font-weight: bold;
        color: #fff;
        line-height: 1.75rem;
        background: rgba(0,0,0,.666);
        padding: 0 theme("spacing.3") .2em theme("spacing.3");
        border-bottom-right-radius: .25rem;
        border-bottom-left-radius: .25rem;

        a {
            color: white;
            text-decoration: underline;
        }

        &:before {
            content: "\203A\2002";
        }
    }
}