@import url('./fonts.css');
@view-transition {
  navigation: auto;
}

:root {
  --text: #fff;
  --accent: #5d7d8b;

  --minpi: clamp(1.5rem, 5lvi, 5rem);
  --minpb: clamp(.5rem, 2lvb, 2.5rem);
  --container-width: clamp(300px, 90lvi, 56rem);

  --gradient-darker: #0009;
  --gradient-dark: #0005;
  --gradient-light: #0002;
  --border-radius: 0.5rem;
}

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  font-weight: 400;
  text-shadow: .05rem .05rem .1rem rgba(0, 0, 0, .4);
  scroll-behavior: smooth;
  hyphens: auto;
}
body {
  font-family: "Merriweather", sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100lvb;
  min-width: 320px;
}

.background-cover img {
  position: fixed;
  height: 100lvb;
  width: 100lvi;
  z-index: -1;
  object-fit: cover;
}

h1,
h2,
h3 {
  clear: both;
  line-height: 1.25;
}
h1 {
  font-size: clamp(2.1rem, 2.5lvi, 3.7rem);
  margin-block: clamp(0.5rem, 1.8lvb, 3rem) clamp(1rem, 3lvb, 4rem);
}
h2 {
  font-size: clamp(1.6rem, 1.5lvi, 3.1rem);
  margin-block: clamp(0.5rem, 1.3lvb, 1.5rem) clamp(.9rem, 1.5lvb, 2rem);
}
h3 {
  font-size: clamp(1.3rem, 1.4lvi, 2.7rem);
  margin-block: clamp(0.5rem, 1.1lvb, 1.5rem) clamp(.7rem, 1lvb, 1.5rem);
}


img {
  max-width: 100%;
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.1em;
  text-decoration-color: transparent;
  transition: .2s ease;
  color: var(--text);
}
a:hover {
  text-decoration-color: var(--text);
}

/* main */

main {
  display: grid;
  flex-grow: 1;
  font-size: clamp(1rem, 1.3lvb, 1.8rem);
  line-height: 1.6;
}
main.padding {
  padding-top: 0;
}

/* container */

.container {
  width: var(--container-width);
  flex-grow: 1;
  margin: 0 auto;
}
.padding {
  padding: var(--minpb) var(--minpi);
}
.background {
  background: var(--gradient-dark);
  border-radius: var(--border-radius);
}
.background + .background {
  margin-block: 2rem;
}
.background:has(header) {
  margin-top: 1rem;
}
body.home .background {
  background: transparent!important;
  backdrop-filter: none!important;
  position: relative;
  z-index: 2;
}

/* home page overrides */

body.home::before {
  content: "";
  position: fixed;
  z-index: 0;  
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0005, #0003, #0005, #0000, #0003, #0005);
}
body.home .container, body.home .container > :nth-child(1),
body.home .container > :nth-child(1) > :nth-child(2) {
  display: flex;
  flex-direction: column;
}
body.home .container > :nth-child(1),
body.home .container > :nth-child(1) > :nth-child(2) {
  flex-grow: 1;
}
body.home .container > :nth-child(1) > :nth-child(2) {
  justify-content: flex-end;
}


main p {
  padding-bottom: var(--minpb);
}
main ul {
  margin: 0 0 1.5rem 1.75em;
}
main li {
  padding: 0.2rem 0.25rem;
}
main ol {
  margin-left: 1.75em;
}
main dt {
  color: var(--text);
  margin-top: 1.25em;
  font-weight: 600;
}
main dd {
  margin-top: 0.5em;
  padding-inline-start: 1.625em;
}
main table {
  border-collapse: collapse;
  line-height: 1.4;
  width: 100%;
}
main table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
main table tbody tr:last-child {
  border: 0;
}
main table tr > * {
  vertical-align: top;
  padding: 0.5rem 2rem 0.5rem 0;
  text-align: left;
}
main table tr > *:last-child {
  padding-right: 0;
}
main strong,
main th {
  color: var(--text);
  font-weight: 500;
}
main hr {
  background: rgba(0, 0, 0, 0.1);
  height: 1px;
  border: 0;
  margin-block: 3rem;
}
main img {
  border-radius: var(--border-radius);
  display: inline-block;
}

main blockquote > p {
  font-style: italic;
  font-weight: bold;
  border-left: 0.5rem solid var(--accent);
  padding: 0.5rem 1.2rem;
  margin: var(--minpb) 0;
}

/* figures */

main figure {
  margin-bottom: 1.5rem;
}
main figure img {
  border-radius: var(--border-radius);
}
main figcaption {
  font-size: smaller;
  font-weight: 300;
  font-style: italic;
  padding: 0 .5rem;
  color: var(--text); 
}

/* https://tobiasahlin.com/blog/previous-sibling-css-has/ */
main figure.left {
  float: left;
  margin-right: 1.5rem;
}
main figure.right {
  float: right;
  margin-left: 1.5rem;
}


/* header */

header.padding {
  padding-bottom: 0;
}

header .logo img {
  max-height: clamp(120px, 20lvi, 45lvi);
  transition: .2s ease;
  margin-right: 1rem;
}

header .logo a:hover img {
  filter: drop-shadow(0 0 0 var(--accent));
}

/* home page specific */

.home header .logo img {
  max-height: clamp(150px, 35lvi, 70lvi);
}
.home main h2  {
  display: inline-block;
  padding: 0; margin: 0;
  font-size: clamp(1.7rem, 3lvi, 3.2rem);
  hyphens: none;
}
.home main p {
  margin-top: 1.5em;;
  font-size: clamp(1rem, 1.4lvi, 1.6rem);
  max-width: 42ch;
}
.home footer {
  font-size: clamp(1rem, 2lvi, 1.5rem);
}

/* breadcrumbs */

.breadcrumbs {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: .8rem;
}
.breadcrumbs li {
  list-style: none;
  white-space: nowrap;
  padding: 0;
  padding-right: .5rem;
}
.breadcrumbs li a {
  display: inline-block;
  padding: .3rem;
  white-space: wrap;
}

/* footer */

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
  align-items: center;
}

footer nav li {
  list-style: none;
  padding-left: 3rem;
}

footer nav li:first-child {
  padding-left: 0;
}

footer nav li a {
  line-height: 2.1rem;
}

footer nav li:first-child a {
  display: flex;
  align-items: center;
  gap: .5rem;
}

footer .logo img {
  max-height: 3rem;
}
footer .footer-logo img {
  max-height: 10rem;
  min-width: 8rem;
}

footer ul li.active a {
  text-decoration-color: var(--accent);
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 0;
  margin-bottom: 1rem;
}

.card {
  list-style: none;
  position: relative;
  background: var(--gradient-dark);
  border-radius: var(--border-radius);
  border: .2rem solid #fff9;
  padding: 0;
  margin: 0;
  transition: all .2s ease; 
}

.card .background-cover img {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: -1;
  object-fit: cover;
  border-radius: calc(var(--border-radius) * 0.8);
  transition: all .3s ease;
  opacity: 0;
}
.card a {
  text-decoration: none;
  transition: none;
  background-color: var(--gradient-dark);
  height: 100%;
  border-radius: calc(var(--border-radius) * 0.8);
  ffilter: drop-shadow(0 0 0 var(--accent));
  display: block;
}
.card div.details {
  padding: 0.75rem 0.25rem;
  margin: 0;
}
.card h2 {
  margin: 1.5rem 2rem 0.5rem 2rem;
  font-weight: 600;
}
.card p {
  margin: 0 2rem 1.5rem 2rem;
  font-weight: 300;
}
.card:hover {
  transform: scale(1.03);
}
.card:hover .background-cover img {
  opacity: 1;
}

/* opdrachtgevers */
ul.opdrachtgevers {
  --logo-size: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--logo-size), 1fr));
  align-items: center;
  justify-items: center;
  gap: 1rem;
  margin: 1rem;
  border-radius: var(--border-radius);
}
ul.opdrachtgevers li {
  background-color: #fff;
  display: flex;
  justify-content: center;
  list-style-type: none;
  border-radius: var(--border-radius);
  width: var(--logo-size);
  height: var(--logo-size);
  transition: all .2s ease;
}
ul.opdrachtgevers li img {
  object-fit: contain;
  padding: 1cqmin;
}
ul.opdrachtgevers li:hover {
  transform: scale(2);
}