/* -----------------------------
    Browser reset
----------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6,
p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  padding: 0;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
th {
  text-align: left;
}
figure {
  margin: 0;
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  display: inline-block;
}

figure img {
  display: block;
}

details summary { 
  cursor:pointer; 
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--color-bg-soft) inset !important;
    -webkit-text-fill-color: inherit !important;
    caret-color: inherit;
    transition: background-color 9999s ease-in-out 0s;
}
/* -----------------------------
    Fonts
----------------------------- */

@font-face {
    font-family: 'Satoshi';
    src: url('/css/fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/css/fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/css/fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/css/fonts/Oswald[wght].woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------
Page structure
----------------------------- */


body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}


header,
footer {
  padding: 1rem;
}

footer {
  border-bottom: none;
}


/* -----------------------------
    Typografie
----------------------------- */

html {
  font-family: 'Satoshi', sans-serif, system-ui;
  font-size: 16px;
}

body {
  font-size: 1rem;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif, system-ui;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

h1 { font-size: 2rem; font-weight: 400; }
h2 { font-size: 1.5rem;   font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 400; }
h4 { font-size: 1.2rem; font-weight: 300; }
h5 { font-size: 1.1rem;  font-weight: 300; }
h6 { font-size: 1rem;  font-weight: 200; }
dt { font-size: 1rem; font-weight: bold; }


/* -----------------------------
   Kleuren
----------------------------- */

h1 {
  color: var(--title-color);
}

*::selection {
  background: var(--brand-color);
  color: #f1f1f1;
}

body {
  background: linear-gradient(325deg, var(--back-gradient-0) 0%, var(--back-gradient-50) 50%, var(--back-gradient-100) 100%);
  color: #1a1a1a;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: left;
  z-index: -1;
}
@media (min-width: 768px) {
  body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(30deg, var(--back-gradient-polygon) 0%, #ffffff85 100%);
    clip-path: polygon(80% 0, 100% 0, 100% 100%, 60% 100%);
    z-index: -1;
  }
}
footer {
  background-color: var(--footer-color);
  color: var(--color-text-inverse);
}
kbd {
  display: inline-block;
  background-color: var(--color-text-muted);
  padding: .5rem;
  border-radius: .5rem;
  color: var(--color-text-inverse);
}



/* -----------------------------
    Lijststijl
----------------------------- */
main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

main ul > li {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: .75rem;
}

main ul > li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  font-weight: 500;
  font: inherit;
  line-height: inherit;
  transform: translateY(-2px);
}

main ul ul > li {
  padding-bottom: 0;
}

main ul ul > li::before {
  content: '\25AA';
}




/* -----------------------------
  Flex utilities
----------------------------- */

.flex { display: flex; flex-wrap: wrap; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-end  { justify-content: end; align-items: center; }
.flex-vcenter { align-items: center; }
.flex-vtop { align-items: start; align-content: flex-start;}
.flex-vbottom { align-items: end; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1; }


/* -----------------------------
    Display helpers
----------------------------- */

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.floatright { float: right; }
.full-width { width: 100%; }
.fit-content { width: fit-content; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.strong { font-weight: bold; }

/* -----------------------------
    Grid system
----------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.grid > * {
  height: 100%;
  min-width: 0;
}

.grid-2-label { grid-template-columns: max-content auto; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .md-grid-2-auto { grid-template-columns: max-content auto; }
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-2-auto { grid-template-columns: max-content auto; }
  .lg-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .xl-grid-2-auto { grid-template-columns: max-content auto; }
  .xl-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .xl-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .xl-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------
    Spacing utilities
----------------------------- */

.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }


/* -----------------------------
    Margin
----------------------------- */

h1 {   margin-top: 1rem; margin-bottom: 1rem; }

h2, h3, h4, h5, h6 {   margin-top: 1rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }

dt { margin: 0; }

dd { margin: 0; }

/* Container spacing scale */
.section-sm { margin-bottom: 1rem; }
.section    { margin-bottom: 2rem; }
.section-lg { margin-bottom: 3rem; }
.section-xl { margin-bottom: 4rem; }

/* Desktop */
@media (min-width: 1024px) {
  .section-sm { margin-bottom: 1.5rem; }
  .section    { margin-bottom: 3rem; }
  .section-lg { margin-bottom: 4rem; }
  .section-xl { margin-bottom: 6rem; }
}

/* Margin-bottom utilities */
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 5rem; }

.mt-2 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 5rem; }

.mx-2 { margin-left: 1rem;  margin-right: 1rem; }

.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* -----------------------------
    Padding
----------------------------- */

/* Padding utilities (8px scale) */
.p-1 { padding: .5rem; }    /* 8px */
.p-2 { padding: 1rem; }     /* 16px */
.p-3 { padding: 1.5rem; }   /* 24px */
.p-4 { padding: 2rem; }     /* 32px */
.p-5 { padding: 3rem; }     /* 48px */

/* Alleen horizontaal */
.px-1 { padding-left: .5rem; padding-right: .5rem; }
.px-2 { padding-left: 1rem;  padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Alleen verticaal */
.py-1 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2 { padding-top: 1rem;  padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }




