/* cmsms stylesheet: EKH-blank modified: mandag 12. oktober 2026 14:45:35 */
/* Atkinson Hyperlegible, locally hosted */
@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
  
  :root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #3d3d3d;           /* 10.5:1 on white */
    --link: #29474e;            /* dark teal, 10.0:1 on white */
    --brand: #cb007e;           /* magenta, primary colour */
    --focus: #29474e;
    --rule: #d9d9d9;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #000000;
      --text: #ffffff;
      --muted: #cccccc;         /* 13.1:1 on black */
      --link: #a4d6d4;          /* light aqua, 13.1:1 on black */
      --focus: #a4d6d4;
      --rule: #3a3a3a;
    }
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;            /* 16px; try 1.125rem (18px) for an even easier read */
    font-weight: 400;
    line-height: 1.6;
  }
  
  main {
    max-width: 40rem;           /* keeps lines at a comfortable reading length */
    margin: 0 auto;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
  }
  
  /* Site name at the top */
  #header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
  }
  
  #header h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
  }
  
  /* Page content */
  #content h1 {
    margin: 0 0 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  #content h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }
  
  #content h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
  }
  
  #content p,
  #content ul,
  #content ol {
    margin: 0 0 1rem;
  }
  
  #content ul,
  #content ol {
    padding-left: 1.5rem;
  }
  
  #content li {
    margin-bottom: 0.4rem;
  }
  
  #content strong,
  #content b {
    font-weight: 700;
  }
  
  #content em {
    color: var(--muted);
  }
  
  /* Links: underlined, so they don't rely on colour alone */
  a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    overflow-wrap: anywhere;    /* long addresses wrap instead of overflowing on phones */
  }
  
  a:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.15rem;
    border-radius: 0.2rem;
  }
  
  /* Byline at the bottom */
  .byline {
    margin: 2.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
  }
  
  .byline .brand {
    color: var(--brand);
    font-weight: 700;
  }
  
  .byline .separator {
    margin: 0 0.35em;
  }
  
  .byline .privacy-link {
    display: inline-block;
    padding: 0.25rem 0.15rem;
    color: inherit;
  }
