@layer styles {
  /* Self-hosted Lato — no Google Fonts CDN (GDPR). Latin subset only;
     this is a Swedish-only site, latin-ext intentionally not shipped. */

  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/lato-300-latin.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lato-400-latin.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lato-400i-latin.woff2') format('woff2');
  }

  :root {
    /* Color tokens */
    --color__theme: #952733;
    --color__secondary: #af141414;
    --color__alternative: rgb(175, 199, 203);
    --color__border: black;
    --color__font: #222222;

    /* Typography */
    --font__default: 'Lato', sans-serif;
    --line-height: 1.5;
    --line-height__large: 1.3;

    /* Spacing — matches oma-site's page__space scale */
    --space--extra-small: 1rem;
    --space--small: 1.5rem;
    --space--medium: 3rem;
    --space--large: 5rem;
    --space--extra-large: 10rem;

    /* Layout */
    --border__radius: 0.3rem;
    --border__thickness--light: 0.5px;
    --transition-speed: 500ms;
    --page__margin: var(--space--small);
    --grid-row__max-width: 1050px;

    /* z-indices */
    --z-index__behind-menu: -1;
    --z-index__header-image: -2;
    --z-index__default: 0;
    --z-index__sticky-header: 100;
    --z-index__hamburger-button: 101;
  }

  @media (min-width: 900px) {
    :root {
      --page__margin: var(--space--medium);
    }
  }

  @media (min-width: 1200px) {
    :root {
      --page__margin: 0;
    }
  }

  body {
    font-family: var(--font__default);
    font-weight: 400;
    color: var(--color__font);
    min-height: 100%;
  }

  a {
    color: unset;
  }

  .grid-row {
    max-width: var(--grid-row__max-width);
    margin-left: auto;
    margin-right: auto;
  }

  .heading {
    font-weight: 400;
    color: var(--color__font);
    font-size: 1.8rem;
  }

  .page__heading {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.0625rem;
    margin-bottom: var(--space--small);
  }

  .ingress {
    color: rgb(82, 82, 82);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05rem;
    margin-top: var(--space--small);
  }

  .underline {
    border-bottom: 1px solid var(--color__theme);
  }

  .text--small {
    font-size: 0.8rem;
    font-style: italic;
  }

  .list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .list__item {
    line-height: var(--line-height);
  }

  .page-margin {
    padding-left: var(--page__margin);
    padding-right: var(--page__margin);
  }
}
