/* Stichting Metamorphosis — the page frame around the content blocks.
   The content of every page (and the footer) is the custom code from the old Squarespace site, unchanged.
   This file only gives it what Squarespace used to give it: fonts, the purple page, the header and menu,
   the text styles of the policy page. */

/* Fonts (self-hosted, SIL Open Font License — see assets/fonts/*-OFL.txt).
   Anton = the headings, as before. Archivo replaces Acumin Pro: that font came with Squarespace's
   Adobe Fonts licence and may not be used outside Squarespace. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/anton-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/anton-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/assets/fonts/archivo-latin-wdth-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-wdth-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --purple: #8060f6;      /* page background (Squarespace theme colour) */
  --ink: #0d0d0d;         /* text */
  --white: #fafaf9;       /* header text */
  --dark: #191b1d;        /* footer, mobile menu */
  --gutter: 4vw;          /* side margin, as on Squarespace */
  --body-font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
@media (max-width: 767px) { :root { --gutter: 6vw; } }

/* Base text styles, the same as Squarespace's (theme "sqs-seven-one", sizes from the old site settings).
   The code blocks rely on these where they don't set something themselves (e.g. h3 = Anton, capitals). */
:root { --normal: 1.125; --h1: 4.4; --h2: 5.6; --h3: 3.1; --h4: 1.9; --max: 2560px; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--purple);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 450;
  line-height: 1.3em;
  overflow-x: clip;                       /* the blocks are 100vw wide */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Anton', Impact, sans-serif; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: uppercase; margin: 2rem 0; }
h1 { line-height: calc(1.3em * (1 + (1 - var(--h1)) / 25)); }
h2 { line-height: calc(1.3em * (1 + (1 - var(--h2)) / 25)); }
h3 { line-height: calc(1.3em * (1 + (1 - var(--h3)) / 25)); }
h4 { line-height: calc(1.3em * (1 + (1 - var(--h4)) / 25)); }
p { margin: 1rem 0; line-height: 1.3em; }
a { color: inherit; text-decoration: none; cursor: pointer; }
b, strong { font-weight: 700; }
img { max-width: none; }
/* Sizes grow with the screen; on phones (portrait) they follow the screen height, as on Squarespace */
@media screen and (min-width: 768px), screen and (orientation: landscape) {
  body { font-size: min(calc((var(--normal) - 1) * 1.2vw + 1rem), max(calc((var(--normal) - 1) * .012 * var(--max) + 1rem), calc(var(--normal) * 1rem))); }
  h1 { font-size: min(calc((var(--h1) - 1) * 1.2vw + 1rem), max(calc((var(--h1) - 1) * .012 * var(--max) + 1rem), calc(var(--h1) * 1rem))); }
  h2 { font-size: min(calc((var(--h2) - 1) * 1.2vw + 1rem), max(calc((var(--h2) - 1) * .012 * var(--max) + 1rem), calc(var(--h2) * 1rem))); }
  h3 { font-size: min(calc((var(--h3) - 1) * 1.2vw + 1rem), max(calc((var(--h3) - 1) * .012 * var(--max) + 1rem), calc(var(--h3) * 1rem))); }
  h4 { font-size: min(calc((var(--h4) - 1) * 1.2vw + 1rem), max(calc((var(--h4) - 1) * .012 * var(--max) + 1rem), calc(var(--h4) * 1rem))); }
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  body { font-size: calc((var(--normal) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
  h1 { font-size: calc((var(--h1) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
  h2 { font-size: calc((var(--h2) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
  h3 { font-size: calc((var(--h3) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
  h4 { font-size: calc((var(--h4) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
}

/* Fade / slide in while scrolling, as Squarespace did (Animations: slide, fade, 0.6s). Set by site.js only. */
.preFade { opacity: 0; transition: opacity .6s ease; }
.preSlide { opacity: 0; transform: translate(0, 30%); transition: opacity .6s ease, transform .6s ease; }
.fadeIn, .slideIn { opacity: 1 !important; }
.slideIn { transform: translate(0, 0) !important; }
@media (prefers-reduced-motion: reduce) { .preFade, .preSlide { opacity: 1; transform: none; transition: none; } }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Header: logo left, menu right; on narrow screens a menu button */
.site-header { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 1.6vw var(--gutter); min-height: 34px; }
.site-header .logo { position: relative; z-index: 2; display: block; line-height: 0; }
.site-header .logo img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; line-height: 1.3em; padding: .1em 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .1em) / 0 1px; transition: background-size .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-btn { display: none; position: relative; z-index: 2; width: 47px; height: 37px; margin-right: -6px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 6px; width: 35px; height: 1px; background: var(--white); transition: transform .25s ease, top .25s ease; }
.menu-btn span:first-child { top: 13px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 18px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 18px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px;
  background: var(--dark); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.menu a { color: #fff; text-decoration: none; font-weight: 500; font-size: 33px; line-height: 1; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu-open { overflow: hidden; }
@media (max-width: 799px) {
  .site-nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 767px) {
  .site-header { padding: 6vw var(--gutter); min-height: 37px; }
  .site-header .logo img { height: 30px; }
}
@media (min-width: 800px) { .menu { display: none; } }

/* A page = one block of custom code. On phones Squarespace kept a margin at the sides;
   the blocks themselves go full width where they want to (width:100vw). */
@media (max-width: 767px) { .block { margin: 0 var(--gutter); } }

/* Footer block on its dark band */
.site-footer { background: var(--dark); color: var(--purple); padding: 1vw 0; }
@media (max-width: 767px) { .site-footer { padding: 9px 0; } }

/* ---------- Policy page (/foundation-policy-vision): regular text instead of a code block ---------- */
.doc { padding: 6.6vw var(--gutter); }
.doc .col { width: calc((100% - 23 * 11px) / 24 * 12 + 11 * 11px); }
.doc .col-narrow { width: calc((100% - 23 * 11px) / 24 * 11 + 10 * 11px); }
.doc h2 { margin: 0 0 57px; }
.doc .col > :first-child { margin-top: 0; }
.doc .col > :last-child { margin-bottom: 0; }
.doc li p { margin: .5em 0; }
.doc ul { margin: 0 0 1em; padding-left: 40px; }
.doc ol { margin: 1em 0; padding-left: 40px; }
.doc .col a { color: var(--dark); text-decoration: underline; }
.doc strong { font-weight: 700; }
.doc .sqsrte-text-color--white { color: var(--white); }
.doc .table { margin-top: 50px; }
.doc-image { height: 100vh; box-sizing: border-box; padding: var(--gutter); }
.doc-image div { position: relative; height: 100%; background: url('/assets/img/beleidsplan.jpg') center / cover; }
.doc-image div::after { content: ''; position: absolute; inset: 0; background: rgba(13, 13, 13, .15); }
@media (max-width: 767px) {
  .doc { padding: 59.4px var(--gutter); }
  .doc .col, .doc .col-narrow { width: auto; }
  .doc h2 { margin-bottom: 11px; }
  .doc-image { padding: 4vw; }
}

/* ---------- 404 ---------- */
.notfound { padding: 12vw var(--gutter) 14vw; color: #fff; }
.notfound h1 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 7vw, 110px); line-height: 1; margin: 0 0 24px; }
.notfound p { font-size: 18px; line-height: 1.6; margin: 0 0 12px; max-width: 560px; }
.notfound a { color: #fff; }

/* ---------- Mail help: shown when a mailto link opens no mail program (see site.js) ---------- */
.mailhelp { position: fixed; z-index: 2147483600; left: 50%; bottom: 20px; transform: translate(-50%, 16px); opacity: 0;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 16px 14px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: var(--dark); color: #fff; font-family: var(--body-font); font-size: 15px; line-height: 1.35;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: opacity .25s ease, transform .25s ease; }
.mailhelp.show { opacity: 1; transform: translate(-50%, 0); }
.mailhelp p { margin: 0; flex: 1 1 220px; }
.mailhelp b { color: #5ee6a8; font-weight: 600; }
.mailhelp .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mailhelp .acts a, .mailhelp .acts button { font: inherit; font-size: 14px; font-weight: 600; line-height: 1; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .45); background: none; color: #fff; text-decoration: none; }
.mailhelp .acts .copy { background: #5ee6a8; border-color: #5ee6a8; color: var(--ink); }
.mailhelp .acts a:hover, .mailhelp .acts button:hover { border-color: #fff; }
.mailhelp .x { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .8; }
.mailhelp .x:hover { opacity: 1; }
@media (max-width: 767px) { .mailhelp { bottom: 16px; width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .mailhelp { transition: none; } }
