/* VARIABLES */
:root {
    --color-blue: #00C6CF;
}

/* ICONS */
[class*=icon-] {
	display: inline-block;
	background-position: center;
	background-color: #333;
	mask-size: cover;
	mask-repeat: no-repeat;
	width: 1.5rem;
	height: 1.5rem;
}

.icon-menu,
.icon-close {
    mask-image: url(../img/icon-menu.svg);
    background-color: #fff;
    width: 3rem;
    height: 3rem;
    position: fixed;
    top: 2rem;
    right: 1rem;
    z-index: 1;
}

.icon-close {
  mask-image: url(../img/icon-close.svg);
  width: 2.5rem;
  height: 2.5rem;
}

/* RESET */
html,body,div,p,h1,h2,h3,h4,h5,h6,pre,figure,
ul,ol,li,dl,dt,dd,form,fieldset,caption,legend,
table,tr,td,th,address,blockquote,img {
  margin:0;
  padding:0;
}

img, fieldset {
  border:none;
}

blockquote, q {
  quotes:none;
}

body *, *:after, *:before {
  box-sizing:border-box;
}

legend {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display:block;
}

button, label, summary {
  cursor:pointer;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height:100%;
}

body, button, input, table, textarea, select {
  font-size:1rem;
  line-height:1.5;
}

/* FONTS */
h1, h2, h3, h4,
body {    
    font-family: "Josefin Sans", sans-serif;
}

h2 {
    font-size: clamp(2.5rem, 1.3333rem + 5.1852vw, 6rem);
    color: #f1f1f1;
    line-height: 1;
}

h3 {
    font-size: 2rem;
    letter-spacing: .75rem;
    font-variant: all-small-caps;
    font-weight: bold;
}

/* BASE */
.outer {
  min-height: 100%;
  background-color: #f1f1f1;
  padding-top: clamp(1rem, -0.4516rem + 6.4516vw, 6rem);
}

.inner {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 90rem;
    min-height: calc(100vh - clamp(1rem, -0.4516rem + 6.4516vw, 6rem));
    background-color: var(--color-blue);
    border: clamp(0.5rem, 0.3333rem + 0.7407vw, 1rem) solid #fff;
    box-shadow: .125rem .125rem 2rem rgba(0,0,0,.15);
    position: relative;
}

.main {
    flex-grow: 1;
}

.main * {
  word-break: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
}

p {
    margin: 1rem 0;
    font-size: 1.25rem;
    line-height: 1.7;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: currentColor;
}

section.alle-verhalen,
section.verhaal {
  padding: 1rem;
}

section.alle-verhalen img {
  object-fit: contain;
  height: 33vh;
}

nav ul {
  position: sticky;
  top: 16rem;
}

section nav {
  display: none;
}

nav.visible {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-blue);
  border: .5rem solid #fff;
}

nav ul li {
  line-height: 1.25;
  font-weight: bold;
}

nav ul li:not(:last-child) {
  padding-bottom: 1rem;
}

nav ul li a {
  font-size: clamp(1.125rem, 1.0000rem + 0.5556vw, 1.5rem);
  text-transform: uppercase;
  color: #fff;
}

a.logo {
  display: flex;
  font-size: clamp(2rem, 1.8333rem + 0.7407vw, 2.5rem);
  letter-spacing: .125rem;
  font-weight: bold;
  color: #AB2B63;
  padding: 1rem 0 0 1rem;
}

/* MEDIA QUERIES */
@media (width >= 48rem) {
  .icon-menu {
    display: none;
  }

  section nav {
    display: block;
  }

  .inner {
    width: 90%;
  }

  a.logo {
    position: absolute;
    top: 20%;
    left: -1.75rem;
    transform-origin: left;
    transform: rotate(-90deg);
    padding: 0;
  }
  
  section.alle-verhalen,
  section.verhaal {
    display: grid;
    padding: 2rem 2rem 6rem;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
  }
}

@media (width > 60rem) {
  a.logo {
    top: 25%;
    left: -2.25rem;
  }

  section.alle-verhalen,
  section.verhaal {
    grid-template-columns: 3fr 1fr;
    padding: 2rem 4rem 6rem;
    gap: 4rem;
  }
}

@media (width > 80rem) {
  a.logo {
    top: 40%;
    left: -3rem;
  }
}

@media (width > 90rem) {
  .inner {
    width: 100%;
  }
}