/* ===========================
   :root – design tokens
   =========================== */
:root {
  /* Layout */
  --content-size: 1020px;
  --wide-size: 1340px;
  --main-padding: clamp(1rem, 5vw, 2.5rem);

  /* Färger */
  --color-primary: #3F0073;
  --color-secondary: #F63881;
  --color-accent: #FCC91C;
  --color-text: #151517;
  --color-muted: #475569;
  --color-background: #FCF7EF;
  --wp--preset--shadow--deep: 0 0 40px rgba(0,0,0,.1);

  /* Typografi */
  --font-base: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1.1rem;
  --font-size-lg: clamp(16px, 3vw, 20px);
  --font-size-xl: 1.5rem;
  --font-size-xxl: clamp(36px, 7vw, 74px);
  --line-height-base: 1.7;

  /* Spacing */
  --spacing-xs: clamp(0.5rem, 1vw, 1rem);
  --spacing-sm: clamp(1rem, 2vw, 1.5rem);
  --spacing-md: clamp(1.5rem, 3vw, 2rem);
  --spacing-lg: clamp(1.5rem, 4vw, 2.5rem);
  --spacing-xl: clamp(2rem, 4vw, 4rem);

  /* Border-radius */
  --btn-radius: .8rem;
  --border-radius-rounded: 1.5rem;
}
  :root :where(.wp-block-image.is-style-rounded img, .wp-block-image .is-style-rounded img), .has-background {
    border-radius: var(--border-radius-rounded);
  }

/* ===========================
   Normalisering / Box-sizing
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: var(--line-height-base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

img, picture, video {
  max-width: 100%;
  display: block;
}

/* ===========================
   Layout / Max-width
   =========================== */
  
/* Nollställ standardmarginaler på block */
/* [class^="wp-block-"] *,
[class*=" wp-block-"] * {
  margin-block-start: 0;
  margin-block-end: var(--spacing-sm);
}   */
/* Standard content area */
/* [class^="wp-block-"],
[class*=" wp-block-"] {
  max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
} */

.content-size {
  width: 100%;  
  max-width: var(--content-size);
  margin: 0 auto;
}

/* Columns and Groups default width */
.wp-block-columns, .wp-block-group {
max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.wp-block-column {
  max-width: 100%;
}

:where(.wp-block-columns.is-layout-flex) {
  gap: clamp(1rem, 6vw, 6rem);
}
:where(.is-layout-grid) {
  gap: 2rem;
}

/* Bred bredd */
.alignwide, .alignwide * {
  max-width: var(--wide-size);
}

/* Full bredd */
.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* ===========================
   Typografi / rubriker
   =========================== */
h1 { font-size: var(--font-size-xxl); font-weight: 500; line-height: 1.3; }
h2 { font-size: var(--font-size-xl); font-weight: 500; line-height: 1.4; }
h3 { font-size: var(--font-size-lg); font-weight: 500; line-height: 1.3; margin:2rem 0 0; }
h4 { margin:1.5rem 0 0; }
p { font-weight: 300; line-height: var(--line-height-base);margin-top:.5rem;}
a { color: var(--color-primary); text-underline-offset: 4px;font-weight: 400; }
ul {font-weight:300;}
:focus { outline: 2px solid var(--color-primary); outline-offset: 4px;border-radius:.05rem; }

h2:first-child {
    margin-top: 0;
}
/* ===========================
   Fonts – Lexend
   =========================== */
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 300;
  src: url('../fonts/lexend/lexend-v26-latin-300.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 400;
  src: url('../fonts/lexend/lexend-v26-latin-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 500;
  src: url('../fonts/lexend/lexend-v26-latin-500.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 600;
  src: url('../fonts/lexend/lexend-v26-latin-600.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 700;
  src: url('../fonts/lexend/lexend-v26-latin-700.woff2') format('woff2');
  font-display: swap;
}
