@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  padding:0;
  margin:0;
  font: inherit
}

:root {
  /* fontsizes */
  --heading_big: clamp(2rem, 10vw, 6rem);
  --heading_small: clamp(1.25rem, 5vw, 2rem );
  --text_medium: clamp(1rem, 3vw, 1.25rem);
  --text_small: clamp(.9rem, 2vw, 1rem);
  --text_tiny: clamp(.75rem, 1vw, .875rem);

  /* colors */
  --bgcol:  #f2ecef;
  --textcol: #222;
  --highlight: #e718b3; 
  --selection: #ffa9e9;
}

@keyframes loading {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

*::selection {
  background-color: var(--selection);
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul {
  list-style: none;
}

body {
  min-height: 100vh;
  font-family: 'Roboto Mono','Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.4;
  color: var(--textcol);
  background-color: var(--bgcol);
  word-break: normal;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Condensed' ,'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  line-height: .9;
}

p {
  max-width: 1400px
}

a {
  display: inline-block;
  color: var(--textcol);
  transition: background-color 300ms ease;
}

a:hover, a:active, a:focus-visible {
  color: var(--textcol);
  /* background-color: var(--highlight); */
}

a:focus-visible {
  outline: 4px solid var(--highlight);
}

.container {
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.italic, em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

.page_title {
  font-size: var(--heading_big);
  padding-bottom: .25rem;
}

.link-btn {
  font-weight: 500;
  color: var(--highlight);
  transition: outline 200ms ease;
  outline-color: var(--highlight);
}
.link-btn:hover {
  color: var(--textcol);
  background-color: var(--highlight);
  outline: 4px solid var(--highlight);
  text-decoration: none;
}

.fabi_link {
  color: var(--textcol);
}

.fabi_link:hover {
  color: var(--textcol);
  text-decoration: none;
}

main {
  animation: loading 800ms ease;
}

/* --------------INTRO----------------- */

section.intro {
  width: 100dvw;
  height: 100vh;
  background-color: var(--highlight);
  color: var(--bgcol);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1000ms ease;
  z-index: 100;
}

.intro h2 {
  font-size: var(--heading_big);
}

.intro h3 {
  font-weight: 300;
  font-size: var(--heading_small);
}

.contact  {
  display: flex;
  flex-direction: column;
  row-gap: .25rem; 
  text-align: center;
  padding-block: 2rem;
  font-size: var(--text_small);
}

.contact a {
  color: var(--bgcol)
}

.contact a:hover {
  text-decoration: none;
} 

/* ---------------HEADER--------------- */

header {
  padding-block: .5rem;
  font-size: var(--heading_small);
  line-height: .9;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 2rem;
  row-gap: .25rem;
  margin-bottom: 1rem;
}

.nav_ul {
  font-family:'Roboto Condensed', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  column-gap: 1rem;
  row-gap: .125rem;
  flex-wrap: wrap;
}

.header a {
  text-decoration: none;
  transition: outline 200ms ease;
  outline-color: var(--highlight);
}

.header a:hover, .header a:active, header a:focus-visible {
    background-color: var(--highlight);
    outline: 4px solid var(--highlight);
}

.active {
  font-weight: 400;
}

/* ---------------PROJECTS--------------- */

.projects {
  margin-bottom: 4rem;
}

.projects_ul  {
  font-family:'Roboto Condensed', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: var(--text_medium);
  font-weight: bold;
  line-height: .9;
  text-transform: uppercase;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(600px,100%), 1fr));
  gap: 1rem;
}

.thumbnail {
  overflow: hidden;
  margin-bottom: .5rem;
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 1rem;
}

.project_year {
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
  font-weight: normal;
}

.thumbnail img {
  transition: transform 200ms ease, border 200ms ease;
}

.projects_ul a {
  text-decoration: none;
}

.projects_ul a:hover .thumbnail img, 
.projects_ul a:active .thumbnail img, 
.projects_ul a:focus-visible .thumbnail img {
  transform: scale(1.05);
}

.projects_ul a:hover,
.projects_ul a:active,
.projects_ul a:focus-visible {
  color: var(--highlight);
}

.projects_ul a:focus-visible {
  outline: 2px solid var(--highlight);
  border-radius: 2px;
}

/* ---------------PROJECT--------------- */

.project_head {
  margin-bottom: 4rem;
}

.project_infos {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text_small);
  opacity: .6;
  margin-bottom: .5rem;
  column-gap: 1rem;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.project_text {
  font-size: var(--text_medium);
  max-width: 110ch;
}

.project_gallery {
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}


/* ------------WORKSHOPS------------- */

.workshop_intro {
  margin-bottom: 4rem;
}

.workshop_intro .text {
  font-size: var(--text_medium);
} 

.workshop_gallery {
  margin-bottom: 2rem;
}

.workshop_gallery ul {
  display: flex
}

.workshop_types {
  margin-bottom: 4rem;
}

.workshop_types .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(600px, 100%),1fr));
  column-gap: 2rem;
  row-gap: 2rem;
}

.workshop_item {
  padding: 1rem 2rem 4rem 1rem;
  background-color: var(--selection);
  transition: transform 200ms ease, background-color 300ms ease;
}

.workshop_item:hover {
  background-color: var(--highlight);
}

.workshop_title {
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
  margin-bottom: .5rem;
}

.workshop_pricing {
  margin-bottom: 4rem;
}


/* -------------INFOS---------------- */

.section_title {
  font-size: var(--text_medium);
  margin-bottom: .5rem;
  line-height: .9;
}


/* About */

.about {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
  gap: 1rem;
}

.about_text .text {
  margin-bottom: 4rem;
  font-size: var(--text_medium);
}

.about_text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mail {
  margin-bottom: 1rem;
}

/* CV */

.cv {
  margin-bottom: 4rem;
  display: grid;
  font-size: var(--text_small);
  grid-template-columns: repeat(auto-fit, minmax(min(600px, 100%), 1fr));
  gap: 1rem
}

.cv_grid {
  display: grid;
  row-gap: 1rem;
  line-height: 1.2;
}
.cv_date {
  font-weight: 500;
  margin-bottom: .125rem;
}


/* Impressum */

.imprint {
  margin-top: 20rem;
  margin-bottom: 4rem;
}

.fabi_logo {
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
    fill: var(--textcol)
}


/* Legal */

.legals {
  display: grid;
  gap: 1rem;
  margin-bottom: 4rem;
}

.legals h4 {
  font-size: var(--text_small);
  margin-bottom: .25rem;
}

.legals p {
  font-size: var(--text_tiny);
}


/* -------------BOTTOM NAV------------ */

.bottom_nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}


/* ---------------FOOTER--------------- */

footer {
  padding-block: 2rem;
  min-height: 10vh;
  background-color: var(--highlight);
}

footer {
  text-align: center;
  color: var(--bgcol)
}