:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color: #1a1a1a;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    --box-shadow-hover: rgba(0, 0, 0, 0.4) 0px 1px 2px 0px;
    --bg-dark: #343434;
    --foreground-gray: #ebebeb;
    --text-color: #1a1a1a;
    --space-sm: 4px;
    --space-md: 8px;
    --space-lg: 16px;
    --space-xl: 32px;
    --grid-max-w: 980px;
    --grid-min-w: 320px;
}

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

img {
    width: 100%;
}

h1,
h2,
h3,
h4,
strong {
    margin-bottom: 8px;
}

h1 {
    line-height: 38px;
}

h3 {
    font-size: 32px;
    line-height: 34px;
    margin: 8px 0 16px;
}

@media (max-width: 769px) {
    h3 {
        font-size: 24px;
        line-height: 28px;
        margin: 8px 0 16px;
    }
}

body {
    background-color: var(--foreground-gray);
    padding-bottom: 24px;
}

header {
    display: flex;
    background: var(--bg-dark);
    padding: 8px 16px;
    gap: 8px;
    align-items: center;
}

header h1 {
    position: relative;
    color: white;
    font-size: 24px;
}

header img {
    width: 42px;
    height: 42px;
}

header a {
    position: relative;
    display: flex;
    flex-direction: row;

    gap: 16px;
    text-decoration: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 12px;
    color: white;
    transform: rotate(-30deg);
    text-shadow:
        0 0 5px #ff005e,
        0 0 10px #ff005e,
        0 0 20px #ff005e,
        0 0 40px #ff005e,
        0 0 80px #ff005e;
    animation: glow 1.5s infinite alternate;
}

nav {
    display: flex;
    background-color: white;
    border-bottom: 6px solid black;
    justify-self: center;
    position: sticky;
    top: 0;
}
.lokalt {
    border-color: #545e75;
}
.noje {
    border-color: #6e2594;
}
.sport {
    border-color: #ecd444;
}
.globalt {
    border-color: #0b6e4f;
}
nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    justify-content: start;
    align-items: start;
}

nav a {
    display: flex;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
    font-size: 18px;
}

@media (max-width: 769px) {
    nav {
        overflow: scroll;
    }
}

nav a.active,
nav a:hover {
    background: var(--foreground-gray);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "right"
        "left";
    gap: 8px;
}

.main-content {
    grid-area: left;
}

.sidebar {
    grid-area: right;
}

@media (min-width: 769px) {
    .grid {
        grid-template-columns: 3fr 1fr;
        grid-template-areas: "left right";
        gap: 16px;
    }
}

.container {
    width: 100vw;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 8px;
}

.content {
    margin-top: 16px;
}

.article-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-wrapper a {
    color: var(--text-color);
    text-decoration: none;
}

.article:hover h3 {
    text-decoration: underline;
}

.article-small {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.article-small h3 {
    font-size: 22px;
    line-height: 24px;
}

.article-small .image {
    flex-basis: 33%;
}

.card {
    padding: 16px;
    background-color: white;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.2s;
}

.card.small {
    padding: 8px;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

hr {
    margin: 8px 0;
}

p {
    margin-bottom: 4px;
}

.adspot-inner {
    background-color: #cfcfcd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    padding: 8px;
}

.adspot {
    line-height: 0;
}

.adspot img {
    max-width: 100%;
}

.author {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

@media (max-width: 769px) {
    .author {
        flex-direction: column;
    }
}

.ltte-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ltte-box .ltte {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 4px;
}

.ltte-box .ltte:last-child {
    border-bottom: none;
}

.ltte-box h4 {
    border-bottom: 4px solid #e5e5e5;
    margin-bottom: 8px;
    padding-bottom: 8px;
    display: block;
}

.author a,
.ltte a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}
.author a:hover,
.ltte a:hover {
    text-decoration: underline;
}

@keyframes glow {
    0% {
        text-shadow:
            0 0 2px #ff005e,
            0 0 5px #ff005e,
            0 0 10px #ff005e,
            0 0 20px #ff005e,
            0 0 30px #ff005e;
    }
    100% {
        text-shadow:
            0 0 2px #00d4ff,
            0 0 5px #00d4ff,
            0 0 10px #00d4ff,
            0 0 20px #00d4ff,
            0 0 30px #00d4ff;
    }
}
