:root {
    --bg: #f4f4f4;
    --text: #222;
    --a4-bg: #ffffff;
    --shadow: rgba(0,0,0,0.2);
    --footer: #888;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

h1 {
    margin: 40px 0 20px 0;
    color: var(--text);
}

/* A4 ark */
.a4 {
    width: 210mm;
    min-height: 297mm;
    max-width: 90vw;
    background: var(--a4-bg);
    box-shadow: 0 4px 15px var(--shadow);
    padding: 40px 30px 70px 30px;
    box-sizing: border-box;
    text-align: left;
}

/* Typewriter */
.typewriter {
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-wrap;
}

/* Article links */
.article-links {
    margin: 45px 0 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.article-links a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.article-links a:hover {
    background: #ddd;
    transform: scale(1.05);
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 14px;
    color: var(--footer);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Ikoner */
.icon-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.icon {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* Aktiv side – liten svart prikk over ikonet */
.icon-row a.active {
    position: relative;
}

.icon-row a.active::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #222;
    border-radius: 50%;
}

/* Buy Me a Coffee */
.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #ffdd00;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    height: 32px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.coffee-btn img {
    width: 18px;
    height: 18px;
}

.coffee-btn:hover {
    transform: scale(1.08);
}

/* Arkiv-liste – strammere avstand */
.archive-list .entry {
    margin-bottom: 0.25em;   /* var 0.45em – nå enda strammere */
    line-height: 1.35;
}

.archive-list .entry a {
    display: block;           /* tittel alltid på egen linje */
    margin-top: 0.05em;
    margin-bottom: 0.15em;
}

/* Responsiv */
@media (max-width: 900px) {
    .a4 {
        width: 90%;
        min-height: auto;
    }
    
    .archive-list .entry a {
        display: block;
        margin-top: 0.08em;
        margin-bottom: 0.1em;
    }
}

@media (max-width: 600px) {
    .a4 {
        width: 85vw;
        padding: 35px 25px 60px 25px;
    }
    
    .typewriter {
        font-size: 16px;
        line-height: 1.65;
    }
}
/* Aktiv side – liten svart prikk over ikonet */
.icon-row a.active {
    position: relative;
}

.icon-row a.active::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #222;
    border-radius: 50%;
}