/**
*
* Studio Pizza Stylesheet, © 2022+ Studio Pizza
* Copy, Steal, Remix everything that you might find interesting
*
*/

/**
*
* Variables
*
*/
:root {
  --c-base: hsla(48, 92%, 52%, 1);
  --c-background: hsla(240, 12%, 8%, 1);
  --c-background-75: hsla(240, 12%, 8%, 0.75);
  --c-footer: hsla(215, 25%, 9.412%, 1);
  --c-grey-10: hsla(0, 0%, 10%, 1);
  --c-grey-20: hsla(0, 0%, 20%, 1);
  --c-grey-30: hsla(0, 0%, 30%, 1);
  --c-grey-40: hsla(0, 0%, 40%, 1);
  --c-grey-50: hsla(0, 0%, 50%, 1);
  --c-grey-60: hsla(0, 0%, 60%, 1);
  --c-grey-70: hsla(0, 0%, 70%, 1);
  --c-grey-80: hsla(0, 0%, 80%, 1);
  --c-grey-90: hsla(0, 0%, 90%, 1);
  --c-white: hsla(0, 0%, 100%, 1);
  --c-white-90: hsla(0, 0%, 100%, 0.9);
  --c-white-80: hsla(0, 0%, 100%, 0.8);
  --c-white-70: hsla(0, 0%, 100%, 0.7);
  --c-white-60: hsla(0, 0%, 100%, 0.6);
  --c-white-50: hsla(0, 0%, 100%, 0.5);
  --c-white-40: hsla(0, 0%, 100%, 0.4);
  --c-white-30: hsla(0, 0%, 100%, 0.3);
  --c-white-20: hsla(0, 0%, 100%, 0.2);
  --c-white-10: hsla(0, 0%, 100%, 0.1);
  --c-black: hsla(0, 0%, 0%, 1);
  --c-pink: hsla(319.5, 50.59%, 83.33%, 1);
  --c-red: hsla(353.2, 100%, 71.32%, 1);
  --c-red-025: hsla(353.2, 100%, 71.32%, 0.025);
  --c-blue: hsla(217.5, 28.57%, 38.43%, 1);
  --c-peach: hsla(34.21, 82.31%, 71.18%, 1);
  --c-purple: hsla(237.8, 87.4%, 75.1%, 1);
  --c-brightpurple: hsla(240, 100%, 92.353%, 1);
  --c-purple-15: hsla(237.8, 87.4%, 75.1%, 0.15);
  --c-purple-10: hsla(237.8, 87.4%, 75.1%, 0.1);
  --c-purple-05: hsla(237.8, 87.4%, 75.1%, 0.05);

  --padding-xxxl: 16rem;
  --padding-xxl: 12rem;
  --padding-xl: 10rem;
  --padding-l: 8rem;
  --padding-m: 6rem;
  --padding-s: 4rem;
  --padding-xs: 2rem;
  --padding-xxs: 1rem;
  --padding-xxxs: 0.5rem;

  --10px: 0.625rem;
  --11px: 0.6875rem;
  --12px: 0.75rem;
  --13px: 0.8125rem;
  --14px: 0.875rem;
  --15px: 0.9375rem;
  --16px: 1rem;
  --17px: 1.0625rem;
  --18px: 1.125rem;
  --19px: 1.1875rem;
  --20px: 1.25rem;
  --21px: 1.3125rem;
  --22px: 1.375rem;
  --23px: 1.4375rem;
  --24px: 1.5rem;
  --25px: 1.5625rem;
  --26px: 1.625rem;
  --27px: 1.6875rem;
  --28px: 1.75rem;
  --29px: 1.8125rem;
  --30px: 1.875rem;
}

/* Display-P3 color, when supported. */
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --c-background: color(display-p3 0.07059 0.07059 0.08859);
    --c-background-75: color(display-p3 0.07059 0.07059 0.08859 0.75);
    --c-footer: color(display-p3 0.074 0.09 0.115);
    --c-pink: color(display-p3 1 0.75 0.93);
    --c-base: color(display-p3 1 0.79 0);
    --c-red: color(display-p3 1 0.395 0.46);
    --c-blue: color(display-p3 0.291 0.354 0.483);
    --c-peach: color(display-p3 1 0.9 0.75);
    --c-purple: color(display-p3 0.56 0.573 1);
    --c-brightpurple: color(display-p3 0.87, 0.87, 1);
  }
}

/**
*
* Webfonts
*
*/

@font-face {
  font-family: "Degular-Text";
  src: url("../fonts/DegularText-Regular.woff2") format("woff2"),
    url("../fonts/DegularText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular-Text";
  src: url("../fonts/DegularText-Medium.woff2") format("woff2"),
    url("../fonts/DegularText-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular-Display";
  src: url("../fonts/DegularDisplay-Bold.woff2") format("woff2"),
    url("../fonts/DegularDisplay-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular-Display";
  src: url("../fonts/DegularDisplay-Medium.woff2") format("woff2"),
    url("../fonts/DegularDisplay-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JauneMidi";
  src: url("../fonts/NaNJaune-MidiBold.woff2") format("woff2"),
    url("../fonts/NaNJaune-MidiBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JauneMini";
  src: url("../fonts/NaNJaune-MiniMedium.woff2") format("woff2"),
    url("../fonts/NaNJaune-MiniMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/**
*
* General Styles
*
*/

html {
  background: var(--c-background);
  overflow-y: scroll;
  cursor: default;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: #ffdd00;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "kern";
  -moz-font-feature-settings: "kern";
  -moz-font-feature-settings: "kern=1";
  color: var(--c-white);
}

body {
  font-family: "Degular-Text", sans-serif;
  line-height: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.015rem;
}

main {
  padding-top: var(--padding-xxxl);
  line-height: 1.7rem;
}

/** wrap everything in the main container */

main > * {
  width: min(80ch, 100% - 5rem);
  margin: 0 auto;
  padding: var(--padding-xxs) 0;
}

/** 100% wide sections that break the constraint centered main */

.wide {
  width: 100%;
  padding-bottom: var(--padding-s);
}

.flex {
  display: flex;
  flex-basis: 100%;
}

.space-between {
  justify-content: space-between;
}

.space-evenly {
  justify-content: space-evenly;
}

.gap {
  gap: 5rem;
}

.bg-base {
  background-color: var(--c-base);
}

.bg-default {
  background-color: var(--c-background);
}

.bg-purple {
  border-top: 1px solid var(--c-purple-05);
}

.bg-purple05 {
  background-color: var(--c-purple-05);
}

.bg-purple10 {
  background-color: var(--c-purple-10);
}

.bg-purple15 {
  background-color: var(--c-purple-15);
}

.bg-red {
  background-color: var(--c-red-025);
}

.bg-darkpurple {
  background-color: var(--c-purple-05);
}

.text-base {
  color: var(--c-base);
}

.text-default {
  color: var(--c-background);
}

h1 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-family: "JauneMidi", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05rem;
  padding-top: var(--padding-xs);
  padding-bottom: var(--padding-xxxs);
  color: var(--c-purple);
  line-height: 2.2rem;
}

strong + h1 {
  padding: unset;
}

/**
h1:after {
  content: "";
  display: block;
  width: 2ch;
  border-bottom: 5px solid var(--c-base);
  padding-top: var(--padding-xxs);
}

*/

h2 {
  font-size: clamp(1.125rem, 1vw + 1rem, 1.625rem);
  font-family: "JauneMini", sans-serif;
  font-weight: 500;
  letter-spacing: 0.025rem;
  padding-top: var(--padding-xs);
  padding-bottom: var(--padding-xxxs);
  line-height: 2rem;
  color: var(--c-purple);
}
h3 {
  font-size: clamp(1.125rem, 1vw + 1rem, 1.625rem);
  font-family: "JauneMini", sans-serif;
  font-weight: 500;
  letter-spacing: 0.025rem;
  padding-top: var(--padding-xs);
  padding-bottom: var(--padding-xxxs);
  color: var(--c-purple);
  line-height: 2rem;
}

strong {
  font-size: 1rem;
  font-family: "Degular-Display", sans-serif;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--c-purple);
  font-weight: 700;
}

header > strong {
  opacity: 0.5;
}

/**
*
* Logo Splash
*
*/

.splash {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
}

/**
*
* General Content Styling
*
*/

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

ul {
}

li {
  line-height: 1.5rem;
}

p {
  padding-bottom: var(--padding-xxs);
  font-size: var(--16px);
  line-height: 1.7rem;
  max-width: 70ch;
}

p + figure,
.wide-image {
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  position: relative;
  right: 50%;
  width: 100vw;
  padding: var(--padding-xs);
}

p + figure > img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  min-width: 100%;
}

a {
  color: var(--c-base);
  transition: color 0.5s ease-in-out, border-bottom 0.3s ease-in-out;
  border-bottom: 1px solid var(--c-base);
  padding-bottom: 0.05rem;
}

a:link {
}

a:visited {
}

a:focus {
}

a:hover {
  color: var(--c-purple);
  border-bottom: 1px solid var(--c-purple);
}

a:active {
}

.leadin p {
  font-size: clamp(1.2rem, 1vw + 0.8rem, 1.6rem);
  line-height: clamp(2.4rem, 1vw + 0.9rem, 2.9rem);
  font-weight: 400;
  padding: 0 0 var(--padding-xs) 0;
}

em {
  color: var(--c-red);
  letter-spacing: 0.05rem;
}

/**
*
* Header + Navigation
*
*/

body > header {
  width: 100%;
  padding: var(--padding-xs) var(--padding-s);
  display: flex;
  /** background-color: var(--c-background); */
  position: fixed;
  z-index: 999999999;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;

  box-shadow: 0px 1.4px 2.2px rgba(0, 0, 0, 0.001),
    0px 2.7px 5.3px rgba(0, 0, 0, 0.004), 0px 4.3px 10px rgba(0, 0, 0, 0.01),
    0px 7.2px 17.9px rgba(0, 0, 0, 0.021),
    0px 14.4px 33.4px rgba(0, 0, 0, 0.037), 0px 100px 80px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid var(--c-purple-05);
}

header nav ul {
  display: flex;
  justify-content: end;
  gap: 3rem;
  align-items: baseline;
  margin-top: 1rem;
}

header nav ul li {
  font-size: var(--14px);
  font-weight: 500;
  line-height: 1.7rem;
}

header a {
  font-family: "Degular-Text", sans-serif;
  font-weight: 500;
  box-shadow: none;
  border-bottom: unset;
  letter-spacing: 0.01rem;
  font-size: var(--16px);
}

header a:hover {
  box-shadow: none;
  color: var(--c-white);
  border-bottom: unset;
}

header > figure svg {
  max-width: 7rem;
  margin-top: 1rem;
}

/**
*
* Footer
*
*/

footer {
  margin-top: var(--padding-s);
  padding-top: var(--padding-xxs);
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: var(--c-base);
  color: var(--c-background);
  font-size: var(--14px);
  flex-wrap: wrap;
}
/** 

footer > * {
  flex-basis: 100%;
}

*/

footer a {
  color: var(--c-background);
}

footer a:hover {
  color: var(--c-blue);
  border-bottom: 1px solid var(--c-blue);
  border-bottom: unset;
}

footer section.copyright {
  padding: var(--padding-xs);
}

footer section.social {
  padding: var(--padding-xs);
  display: flex;
  gap: 1rem;
  justify-content: end;
}

footer nav {
  padding: var(--padding-xs);
}

footer ul li {
  display: inline;
}

footer ul {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/**
*
* Projects
*
*/

main.projects section > ul {
  width: min(100%, 100% - 5rem);
  margin: 0 auto;
  padding: var(--padding-xxs) 0;
}

.projects {
  width: 100%;
}

.projects img {
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

.projects ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.projects li {
  width: 100%;
  position: relative;
  transition: transform ease 500ms;
  padding-bottom: var(--padding-s);
}

.projects li:hover {
  transform: translate(0, -0.5rem);
}

.projects h2 {
  font-family: "JauneMini", sans-serif;
  font-size: var(--18px);
  padding: 0;
  transition: transform ease 700ms;
  color: var(--c-base);
}

.projects h2:hover {
  transform: translate(0, -0.5rem);
}

.projects h2:after {
  content: " »";
}

.projects .label {
  font-family: "Degular-Text", sans-serif;
  font-size: var(--12px);
  text-transform: uppercase;
  padding: var(--padding-xxxs) var(--padding-xxs);
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 0.25rem;
  z-index: 10;
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-weight: 500;
}

.project-teaser {
  flex: 0 49%;
}

.project-teaser:nth-child(3) {
  flex: 1 100%;
}

/**
*
* Project
*


.col-narrow {
  width: clamp(20ch, 15%, 30ch);
  padding: var(--padding-xxs);
  display: flex;
  padding-left: var(--padding-s);
}

.col-small {
  width: clamp(25ch, 20%, 35ch);
  padding: var(--padding-xxs);
  display: flex;
  padding-left: var(--padding-s);
}

.col-medium {
  width: clamp(35ch, 40%, 50ch);
  padding: var(--padding-xxs);
  display: flex;
  padding-left: var(--padding-m);
}

.col-medium p,
.col-narrow p,
.col-small p {
  margin-right: -30ch;
  z-index: 999;
  color: var(--c-white-90);
}

.col-medium.yellow p,
.col-narrow.yellow p,
.col-small.yellow p {
  background-color: var(--c-base);
  color: var(--c-background);
  padding: var(--padding-xs);
}

.space-between {
  justify-content: space-between;
}
*/
.problem,
.solution {
  width: clamp(35ch, 70%, 60ch);
  padding: var(--padding-xxxs);
  align-items: baseline;
}

.problem-solution {
  gap: 1rem;
}

.problem {
  margin-top: 1.7rem;
}

.three-4 {
  width: 75%;
}

.left {
  margin-right: 25%;
}

.right {
  margin-left: 25%;
}

.project section {
  padding: var(--padding-xs) 0;
}

.partners {
  display: flex;
  justify-content: space-between;
  color: var(--c-white);
  gap: 2rem;
  flex-wrap: wrap;
}

.wide > p {
  padding: var(--padding-s);
}

.wide > p:first-child {
  margin-top: -3.4rem;
}

/**
.partners > div {
  max-width: 50%;
  width: clamp(300px, 50%, 40ch);
}
 */

.details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-basis: 100%;
  width: min(80ch, 100% - 5rem);
  margin: 0 auto;
  gap: 2rem;
}

.details div ul {
  padding-bottom: var(--padding-xs);
}

.project .leadout {
  font-size: clamp(1.125rem, 1vw + 1rem, 1.625rem);
  font-family: "JauneMini", sans-serif;
  font-weight: 500;
  letter-spacing: 0.025rem;
  padding: clamp(var(--padding-xs), var(--padding-s), var(--padding-xxl));
  line-height: 2.75rem;
  color: var(--c-red);
  width: 80%;
  border-radius: 0.5rem;
}

.leadout p {
  line-height: 2rem;
}

.cover {
  width: 96%;
  object-fit: cover;
  max-height: 50%;
}

.cover img {
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

.three-4 {
  display: flex;
  gap: 2rem;
}

.project-item-left {
  width: 45%;
  margin-top: -20px;
}

.project-item-right {
  width: 55%;
}

/**
*
* Media Queries
*
*/

@media all and (max-width: 700px) {
  html {
    font-size: var(--14px);
  }
  /**
  body > header {
    justify-content: center;
    padding: var(--padding-xs);
  }
*/
  /**
  body > header {
    width: auto;
    margin: 0 auto;
  }
  
  body > header > figure > a > svg {
    position: absolute;
    top: 30%;
    right: 50%;
    transform: translate(50%, -50%);
  }

  header figure {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
  }
*/
  body > header {
    gap: 0.5rem;
  }

  header figure {
    text-align: center;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    justify-content: center;
  }

  footer section.social,
  footer section.copyright {
    justify-content: center;
    padding: var(--padding-xxxs);
    text-align: center;
  }

  footer ul {
    justify-content: center;
    padding: var(--padding-xxxs);
  }

  footer nav {
    padding: unset;
  }

  footer > * {
    flex-basis: 100%;
  }

  .details {
    padding: var(--padding-xs);
  }

  .details > div {
    flex-shrink: 1;
    min-width: 20ch;
  }

  .partners {
    gap: 2rem;
  }
  .project .flex {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    padding: var(--padding-xs);
  }

  main {
    padding-top: var(--padding-xl);
  }

  main > *,
  figure,
  .project-item-left,
  .project-item-right {
    flex-wrap: wrap;
    flex-grow: 1;
  }

  .right {
    margin: 0 auto;
  }

  .projects li {
    width: 90%;
    margin: 0 auto;
  }

  .projects ul {
    display: unset;
    gap: 4rem;
    flex-wrap: wrap;
  }

  p + figure {
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    position: relative;
    right: 50%;
    width: 100vw;
    padding: var(--padding-xxxs) var(--padding-xs);
  }

  .wide > p {
    padding: var(--padding-xxs);
  }
}
