/* ============================================================
   BASE – Custom properties, typografi, globala element
   ============================================================ */


:root {
    --alt: #D2E0FB;
    --main: #BFF6C3;
    --mainalt: #CB9DF0;
    --background: #fff599;
    --accent: #e01a4f;
    --accent-low: #e01a4fb0;
    --body-color: #0c090d;

    --headerfont: Verdana, sans-serif;

    --border-width: 3px;

    /* Fonts */

    --bodyfont: "Lekton", sans-serif;

    /* Type sizes */
    --h1: clamp(1.5rem, 4vw + 1rem, 3rem);
    --h2: clamp(1.5rem, 2vw + 1rem, 2rem);
    --h3: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
    --hr: 1.5rem;
    --body: 1rem;
    --small: 0.875rem;

    /* Line height */
    --lh-heading: 0.95;
    --lh-subheading: 1.05;
    --lh-body: 1.55;
    --lh-small: 1.4;

    /* Letter spacing */
    --ls-h1: -0.03em;
    --ls-h2: -0.02em;
    --ls-hr: 0.06em;
    --ls-body: 0.01em;
    --ls-small: 0.02em;

    /* Spacing scale - 8px system */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.5rem;
    /* 24px */
    --space-6: 2rem;
    /* 32px */
    --space-7: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--headerfont);
    text-transform: uppercase;
    margin: 0;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;

    hyphenate-limit-chars: 10 4 4;
}

h1 {
    font-size: var(--h1);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-h1);
    margin: var(--space-5) 0;
}

h2 {
    font-size: var(--h2);
    line-height: var(--lh-subheading);
    letter-spacing: var(--ls-h2);
    margin-bottom: var(--space-3);
    margin-top: var(--space-6)
}

h3 {
    font-size: var(--h3);
    margin-bottom: var(--space-3);
    margin-top: var(--space-5)
}

hr {
    font-size: var(--hr);
    line-height: 1;
    letter-spacing: var(--ls-hr);
    margin: var(--space-5) 0;
}

body {
    font-family: var(--headerfont);
    font-size: var(--body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
}

p {
    margin: 0 0 var(--space-4);
    /*max-width: 65ch;*/
}

small {
    font-size: var(--small);
    line-height: var(--lh-small);
    letter-spacing: var(--ls-small);
}

html {

    font-size: 16px;
    background: var(--background);
}





a:link,
a:visited {
    color: #0000EE;
}

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

/* Ordnade listor */
ol {
    list-style: none;
    counter-reset: item;
    padding-inline-start: 0;
}

ol>li {
    counter-increment: item;
    margin-bottom: 5px;
}

ol>li::before {
    content: counter(item);
    margin-right: 10px;
    background: var(--main);
    width: 1.2em;
    text-align: center;
    display: inline-block;
    box-shadow: 1px 2px black;
    border: 1px solid black;
}

/* Oordnade listor */
ul {
    list-style: none;
    padding-inline-start: 0;
}

ul>li {
    margin-bottom: 5px;
}