/* Riso colours, from the noakh.dk theme */
:root {
    --paper: #FAF7F0;
    --ink: #1E2433;
    --accent: #D92E63;       /* links */
    --accent-hover: #2F5BD3;
    --second: #2F5BD3;       /* headings */
    --pop: #FFD23F;          /* text selection */
    --line: #E2DCCD;
}

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

body {
    font-family: 'Source Serif Pro', 'Georgia', serif;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    margin-bottom: 60px;
}

.logo {
    margin-bottom: 60px;
    margin-left: -10px;
    text-align: left;
}

.logo img {
    max-height: 140px;
    width: auto;
    display: block;
    margin-right: auto;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    font-family: 'Helvetica', sans-serif;
    font-size: 1.0rem;
}

.site-nav a {
    color: var(--accent);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent-hover);
    text-decoration: underline;
}

.content {
    font-size: 1.1rem;
}

.content h1,
.content h2,
.content h3 {
    color: var(--second);
}

.content h1 {
    font-family: 'Helvetica', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.2;
}

.content h2 {
    font-family: 'Helvetica', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.content p {
    margin-bottom: 20px;
}

.content a {
    color: var(--accent);
    text-decoration: underline;
}

.content a:hover {
    color: var(--accent-hover);
}

/* Arbeten */
.content section {
    scroll-margin-top: 20px;
}

.work-list {
    margin-bottom: 20px;
}

.work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 20px;
    align-items: start;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.work:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.work img {
    order: 2;
    display: block;
    width: 120px;
    height: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.content .work h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.content .work p {
    margin-bottom: 0;
}

::selection {
    background: var(--pop);
    color: var(--ink);
}

.site-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: 'Helvetica', sans-serif;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent);
}

.site-footer a:hover {
    color: var(--accent-hover);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .content {
        font-size: 1rem;
    }

    .work {
        grid-template-columns: minmax(0, 1fr) 80px;
        gap: 15px;
    }

    .work img {
        width: 80px;
    }
}
