/*page set up*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*Reset*/
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

input,
button,
textarea {
  font: inherit;
}

/* Base img styles */
img {
  width: 100%;
  height: 100%;
  margin: 10px 0;
  position: static;
  display: block;
  max-width: 100%;
  border-radius: 10px;
  padding: 5px;
  object-fit: contain;
}

img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 10px 0;
  display: block;
  border-radius: 10px;
  padding: 5px;
  object-fit: contain;
  image-rendering: auto !important;
  /* reset any pixelated rendering */
}

/* SVG-specific fix to improve sharpness in Safari */
img[src$=".svg"] {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.projdeliv img:hover {
  box-shadow: 0 0 2px 1px #89a8b3;
}

/*Varables*/
:root {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2.2vh, 1.5rem);
}

/* Utility classes*/
.nowrap {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
  background-color: black;
  background-image: url(../images/what-the-hex-dark.png);
  background-attachment: fixed;
}

.center {
  text-align: center;
}

body {
  font: 1.5rem "Poppins", sans-serif;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 100%;
}

section {
  margin: 50px 0;
}

/*font*/
title,
h1,
h2,
h3 {
  text-align: left;
  font-family: "Montserrat", sans-serif;
  color: #f6f4f2;
}

h1 {
  font-size: 1.1em;
  margin-bottom: .5em;
}

h2 {
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: .5em;
}

h3 {
  font-size: 18pt;
  font-weight: 380;
  font-variant-caps: all-small-caps;
  margin: 0.3em 0;
}

p {
  line-height: 1.5;
  color: #ececec;
  font-size: 16pt;
  margin-bottom: 1em;
}

q {
  font-style: italic;
  font-size: 0.6em;
  font-weight: 200;
  color: #ececec;
}

li {
  margin-left: 70px;
  font-size: 16pt;
  padding: 10px 0;
  color: #ececec;
}

ul {
  list-style-type: circle;
}

ul,
ol {
  line-height: 1.3;
  margin: .6em 0;
  color: #ED2F92;
}

.top {
  font-size: 16px;
  text-align: center;
  margin: 2rem;
}

.insights li::marker {
  color: #ED2F92;
  font-size: 1.5em;
}

.indent {
  padding-left: 40px;
  margin-top: 0;
}

.tags li {
  font-size: 12pt;
  font-weight: 300;
  list-style: none;
  line-height: 1.5;
  //width: 390px;
  margin-left: 0;
  padding: 0;
}

.next {
  max-width: 400px;
  margin: 0 auto;
}

.next img {
  width: auto;
  display: block;
  object-fit: contain;
}

a:any-link {
  color: #6cb1d5;
  text-decoration: none;
  font-weight: 500;
}

a:visited {
  color: ddd;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #66bae7;
  text-decoration: underline;
}

b {
  color: #6cb1d5;
  font-weight: 600;
}

.challenge {
  color: #ececec;
  font-weight: 200;
  font-size: 0.8em;
  width: auto;
}

blockquote {
  font-weight: 500;
  font-size: 1em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  width: auto;
  margin: 30px 0;
  color: #6cb1d5;
}

figcaption {
  max-width: 45ch;
  font-size: 0.9rem;
  text-align: center;
  margin: 0.5em auto 1em;
  line-height: 1.4;
  color: #ddd;
}

figure {
  margin: 15px 0;
}

hr {
  margin: 1em auto;
}

/*Header*/
header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #222222;
  background-color: black;
  overflow: hidden;
  width: auto;
}

.header_nav {
  font-weight: bold;
  padding: 0.3em 2.5%;
}

.header a {
  float: left;
  display: inline;
  text-align: center;
  padding: 5px 8px;
}


.header_ul {
  float: right;
}

/*Hero*/
.hero {
  position: relative;
  padding: 0.2em 0;
  margin: 2rem 0;
  width: auto;
}

/*Footer*/
.footer {
  position: sticky;
  bottom: 0;
  background-color: black;
  padding: 0.25em 1.5%;
}

.footer p {
  font-size: 9pt;
  padding: 0;
  text-align: center;
  color: #ececec;
}

/*Main*/

.main {
  padding: 0.55em 0;
}

.main_article {
  scroll-margin-top: 6.5rem;
  margin: 1em;
}

.main_article:first-child {
  margin-top: 1em;
}

.main_article:last-child {
  min-height: calc(100vh-20rem);
}


.sec {
  margin: 0 40px;
}

.goals img {
  max-width: 200px;
}

.goals p {
  width: 250px;
}

.goals {
  display: grid;
  justify-content: center;
  align-items: center;
}

.goals div {
  margin-left: auto;
  margin-right: auto;
}

.sec h3,
li,
ul {
  text-align: left;
}

.des section,
.des div {
  margin: 5px 0;
  padding: 5px 0;
}

/*media screens*/
@media screen and (min-width: 576px) {
  .projdeliv div {
    max-width: 450px;
    margin: 0 auto;
  }
}

/*media screen mobile landscape*/
@media only screen and (max-height: 400px) and (min-aspect-ratio: 7/4) {}

/*for tablets*/
@media screen and (min-width: 768px) {
  .cases {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: 4, 1fr;
    grid-gap: 1rem;
    max-width: auto;
    margin: 0;
  }

  .tags li {
    font-size: 14pt;
    font-weight: 300;
    list-style: none;
    line-height: 1.5;
    width: auto;
    margin-left: 0;
  }

  .projdeliv div {
    max-width: 450px;
    margin: 0 auto;
  }

  .next {
    display: flex;
    grid-auto-flow: column;
    gap: 1em;
    justify-content: center;
    align-items: stretch;
    max-width: fit-content;
  }


}

/*for desktop*/
@media screen and (min-width: 992px) {
  body {
    width: 100%;
  }

  p {
    text-align: left;
  }

  /*page set up*/

  .homepage {
    max-width: 1500px;
    margin: auto;
  }

  .overview {
    padding: 0.5em 0;
    margin: 20px 0;
  }

  .overview div {
    margin: 0 auto;
    margin: 5px auto;
  }

  .overview div:nth-child(1) {
    width: 930px;
  }

  .overview div:nth-child(2) {
    width: 930px;
  }

  .proj {
    padding: 0.5em 0;
    margin: 20px auto;
    text-align: left;
    max-width: 39rem;
  }

  .sp1 {
    width: auto;
    height: auto;
    object-fit: fill;
  }

  .ux div {
    margin: 0 auto;
  }

  .ux div:nth-child(1) {
    width: 980px;
  }

  .cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 2, 0.5fr;
    grid-gap: .5rem;
    justify-content: center;
    align-items: top;
    max-width: 39rem;
  }

  .des {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    grid-gap: 2rem;
    align-items: flex-start;
  }

  .des h3 {
    text-align: left;
    margin: 5px 0;
  }

  .goals {
    grid-template-columns: repeat(2, 1fr);
  }

  .projdeliv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 3rem;
  }

  .tags li {
    font-size: 14pt;
    font-weight: 300;
    list-style: none;
    line-height: 1.5;
    width: 400px;
    margin-left: 0;
    padding: 0;
  }

  .mvp {
    display: inline-flex;
    gap: 20px;
  }

  /*for images side by side with text*/
  .sideby {
    max-width: 80%;
    margin: auto;
  }

  .next {
    display: flex;
    grid-auto-flow: column;
    gap: 1em;
    justify-content: center;
    align-items: stretch;
    max-width: fit-content;
  }

  .showca {
    display: grid;
    grid-auto-flow: column;
    gap: 1em;
    align-items: center;
    justify-content: center;
    max-width: 1250px;
    margin: 0 auto;
  }

  .showca p,
  .showca li {
    font-size: 14pt;
  }

  /*images*/
  .compet {
    max-width: 7000;
  }

  /* float and wrap text around*/
  .floated {
    float: right;
    width: 70%;
  }

  .floated2 {
    float: left;
    width: 60%;
  }

  .sidebby {
    float: none;
    width: 80%;
  }

  .sm {
    width: 390px;
    float: none;
  }

  hr {
    max-width: 1000px;
    text-align: center;
    margin: 2.5em auto;
    border: 0.2px dotted #c3c1bf;
    border-radius: 5px;
  }
}