/* ========================================
   FONT
======================================== */

@import url(
    'https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap'
);


/* ========================================
   GRUND
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    width: 100%;
    min-height: 100vh;

    background: #ffffff;
    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
select {
    font: inherit;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 25px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #111111;
}


/* ========================================
   KN
======================================== */

.brand {
    color: #111111;

    font-family:
        "Nunito",
        sans-serif;

    font-size: 38px;
    font-weight: 600;

    letter-spacing: 0;
    line-height: 1;
}


/* ========================================
   NAVIGATION
======================================== */

.site-nav {
    display: flex;
    align-items: center;

    gap: 30px;
}


.site-nav a {
    color: #111111;

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    transition:
        opacity 0.2s ease;
}


.site-nav a:hover {
    opacity: 0.5;
}


/* ========================================
   HUVUDINNEHÅLL
======================================== */

main {
    width: 100%;
}


/* ========================================
   STORIES
======================================== */

.stories-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding:
        28px
        40px
        85px;

    border-bottom: 1px solid #dddddd;

    scroll-margin-top: 20px;
}


/* ========================================
   SÖK + FILTER
======================================== */

.stories-tools {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px;

    align-items: end;

    gap: 16px;

    padding-bottom: 18px;

    border-bottom: 1px solid #dddddd;
}


/* ========================================
   SÖKFÄLT / FILTER
======================================== */

.story-search-field,
.story-filter-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.story-search-field label,
.story-filter-field label {
    color: #777777;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* ========================================
   SÖKRUTA
======================================== */

.story-search-field input {
    width: 100%;
    height: 42px;

    padding: 0 13px;

    border: 1px solid #cccccc;

    border-radius: 0;

    outline: none;

    background: #ffffff;
    color: #111111;

    font-size: 13px;

    transition:
        border-color 0.2s ease;
}


.story-search-field input::placeholder {
    color: #999999;
}


.story-search-field input:focus {
    border-color: #111111;
}


.story-search-field input::-webkit-search-decoration {
    -webkit-appearance: none;
}


/* ========================================
   DROPDOWN
======================================== */

.story-filter-field select {
    width: 100%;
    height: 42px;

    padding:
        0
        38px
        0
        13px;

    border: 1px solid #cccccc;

    border-radius: 0;

    outline: none;

    background-color: #ffffff;
    color: #111111;

    font-size: 12px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #111111 50%
        ),
        linear-gradient(
            135deg,
            #111111 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 16px) 18px,
        calc(100% - 11px) 18px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    transition:
        border-color 0.2s ease;
}


.story-filter-field select:focus {
    border-color: #111111;
}


/* ========================================
   RESULTATANTAL
======================================== */

.stories-result-info {
    min-height: 48px;

    display: flex;
    align-items: center;

    color: #777777;
}


.stories-result-info p {
    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* ========================================
   STORY GRID
======================================== */

.stories-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    column-gap: 25px;
    row-gap: 52px;
}


/* ========================================
   VISA FLER STORIES
======================================== */

.stories-show-more {
    width: 100%;

    margin-top: 55px;

    text-align: center;
}


.stories-show-more-button {
    padding:
        11px
        0
        7px;

    border: 0;
    border-bottom: 1px solid #111111;

    background: transparent;
    color: #111111;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.stories-show-more-button:hover {
    opacity: 0.5;

    transform: translateY(-1px);
}


.stories-show-more-button:active {
    transform: translateY(1px);
}


/* ========================================
   STORY CARD
======================================== */

.story-card {
    min-width: 0;
}


/* ========================================
   STORY CARD COVER
======================================== */

.story-card-cover {
    display: block;

    width: 100%;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    margin-bottom: 16px;

    background: #111111;

    transition:
        transform 0.2s ease;
}


.story-card-cover:hover {
    transform: translateY(-3px);
}


.story-card-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.3s ease;
}


.story-card-cover:hover img {
    transform: scale(1.015);
}


/* ========================================
   STANDARD COVER
======================================== */

.story-card-default-cover {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111111;
    color: #ffffff;
}


.story-card-default-cover span {
    font-family:
        "Nunito",
        sans-serif;

    font-size: 30px;
    font-weight: 600;
}


/* ========================================
   STORY CARD TAGGAR
======================================== */

.story-card-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 4px 9px;

    margin-bottom: 9px;
}


.story-card-tags span {
    color: #777777;

    font-size: 7px;
    font-weight: 600;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}


/* ========================================
   STORY CARD TITEL
======================================== */

.story-card-title {
    margin-bottom: 9px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;
    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -0.7px;
}


.story-card-title a {
    transition:
        opacity 0.2s ease;
}


.story-card-title a:hover {
    opacity: 0.5;
}
/* ========================================
   STORY STATUS
======================================== */

.story-card-completion {
    margin-top: -2px;
    margin-bottom: 9px;

    color: #777777;

    font-size: 7px;
    font-weight: 600;

    letter-spacing: 1.4px;
    line-height: 1.2;

    text-transform: uppercase;
}


/* COMING SOON */

.story-card-completion-coming-soon {
    color: #111111;
    font-weight: 700;
    letter-spacing: 1.6px;
}

/* ========================================
   STORY CARD META
======================================== */

.story-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    color: #777777;

    font-size: 7px;
    font-weight: 600;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}


/* ========================================
   STORY CARD 18+
======================================== */

.story-card-mature {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 3px;

    padding: 3px 5px;

    background: #111111;
    color: #ffffff;

    font-size: 6px;
    font-weight: 600;

    letter-spacing: 0.8px;

    line-height: 1.2;
}


/* ========================================
   LÄS
======================================== */

.story-card-read {
    display: inline-block;

    margin-top: 13px;

    padding-bottom: 2px;

    border-bottom: 1px solid #111111;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.story-card-read:hover {
    opacity: 0.5;

    transform: translateX(2px);
}


/* ========================================
   INGA SÖKRESULTAT
======================================== */

.stories-empty {
    padding:
        55px
        0
        20px;

    text-align: center;
}


.stories-empty p {
    color: #777777;

    font-size: 12px;
}


/* ========================================
   STORIES FEL
======================================== */

.stories-error {
    padding:
        55px
        0
        20px;

    color: #777777;

    font-size: 12px;
}


/* ========================================
   HIDDEN
======================================== */

[hidden] {
    display: none !important;
}


/* ========================================
   OM
======================================== */

.about-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding:
        100px
        40px;

    text-align: center;
}


.about-section h2 {
    margin-bottom: 20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 36px;
    font-weight: 400;
}


.about-section p:last-child {
    max-width: 500px;

    margin: 0 auto;

    color: #555555;

    font-size: 15px;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding:
        35px
        40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #111111;
}


.footer-brand {
    font-family:
        "Nunito",
        sans-serif;

    font-size: 24px;
    font-weight: 600;
}


.site-footer p {
    color: #777777;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* ========================================
   MINDRE DESKTOP / TABLET
======================================== */

@media (max-width: 950px) {

    .stories-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 750px) {

    .stories-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            45px
            20px;
    }

}


/* ========================================
   MOBIL
======================================== */

@media (max-width: 700px) {


    /* HEADER */

    .site-header {
        padding: 20px;

        gap: 15px;
    }


    .brand {
        font-size: 32px;
    }


    .site-nav {
        gap: 14px;
    }


    .site-nav a {
        font-size: 8px;
    }


    /* STORIES */

    .stories-section {
        padding:
            22px
            20px
            65px;
    }


    .stories-tools {
        grid-template-columns: 1fr;

        gap: 14px;

        padding-bottom: 16px;
    }


    .stories-result-info {
        min-height: 45px;
    }


    /* OM */

    .about-section {
        padding:
            80px
            20px;
    }


    .about-section h2 {
        font-size: 30px;
    }


    /* FOOTER */

    .site-footer {
        padding:
            25px
            20px;
    }

}


/* ========================================
   LITEN MOBIL
======================================== */

@media (max-width: 480px) {

    .stories-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            38px
            14px;
    }


    .story-card-cover {
        margin-bottom: 12px;
    }


    .story-card-title {
        font-size: 20px;
    }


    .story-card-tags span {
        font-size: 6px;
    }


    .story-card-meta {
        font-size: 6px;
    }


    .story-card-read {
        font-size: 7px;
    }

}


/* ========================================
   EXTRA LITEN MOBIL
======================================== */

@media (max-width: 400px) {

    .site-nav {
        gap: 10px;
    }


    .stories-section {
        padding-left: 16px;
        padding-right: 16px;
    }


    .stories-grid {
        column-gap: 12px;
    }


    .story-card-title {
        font-size: 19px;
    }

}