:root
{
  --navColor_0: #fbf9f2;
  --navColor_1: #393939;
  --navColor_2: #fbf9f2;
  --navColor_3: #393939;

  --ebonyGreen: #545d50;
  --mistyBlue: #a0aeb7;
  --warmYellow: #e49933;
  --skin_a: #5e4a4d;
  --skin_b: #918485;
  --skin_c: #d6b9b5;

  --light: #fcf9f2; /*Backdrop*/
  --theme: var(--warmYellow);
  --accent: #efeded;
}

main
{
  min-height: 100svh;
}

img, video
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  
}

p, h2
{
  color: var(--ebonyGreen);
}

h1
{
  text-align: left;
}

section
{
  max-width: 1200px;
  width: calc(100svw - 2rem);
  display: grid;
  margin: 0 auto;
  margin-bottom: var(--margin_Large);
  gap: 1rem;
}

main > section:first-of-type
{
  margin-top: 1rem;
}

#Title > img
{
  min-height: 50svh;
}

#aDay
{
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "🧭 🦻🏻 💭";
  max-width: 60rem;
}

#aDay::before
{
  content: '';
  display: block;
  position: relative;
  background: var(--accent);
  left: 0;
  top: 1.5rem;
  height: calc(100% - 3rem);
  border-radius: var(--radius);
  grid-row-start: 🧭;
  grid-column-start: 🧭;
  grid-row-end: 💭;
  grid-column-end: 💭;
  z-index: -2;
}

#aDay > :nth-child(1)
{
  grid-area: 🧭;
  height: fit-content;
  align-self: center;
  padding: 1rem;
  padding-left: 2rem;
}

#aDay > :nth-child(1) > p
{
  width: fit-content;
}

#aDay > :nth-child(1) > :first-child
{
  margin-top: 0;
}

#aDay > :nth-child(2)
{
  grid-area: 🦻🏻;
  width: min-content;
  height: 25rem;
  display: grid;
  align-content: center;
}

#aDay > :nth-child(2) > *
{
  grid-column: 1;
  grid-row: 1;
}

#aDay > :nth-child(2) img
{
  width: auto;
  height: inherit;
}

#aDay > :nth-child(3)
{
  grid-area: 💭;
  display: flex;
  height: 75%;
  align-self: center;
  align-content: space-around;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
}

#aDay > :nth-child(3) > p
{
  width: fit-content;
  text-align: left;
  flex-basis: 10%;
  margin: 1rem;
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  background: var(--accent);
  border-radius: var(--radius);
}

#aDay > svg
{
  grid-area: 💭;
  align-self: center;
  justify-self: end;
  height: 70%;
  z-index: -1;
  padding-right: 1rem;

}

#aDay > svg .cls-2
{
  stroke-linejoin: round;
}

#aDay > svg .cls-1,
#aDay > svg .cls-2
{
  fill: none;
  stroke: var(--mistyBlue);
  stroke-linecap: round;
  stroke-width: 4px;
}

#aDay > svg .cls-1
{
  stroke-dasharray: 0 0 12 24;
  stroke-miterlimit: 10;
}



#intro
{
  display: grid;
  grid-template-areas: "Data Mål";
  grid-template-columns: min-content 1fr;
}

#intro > div:first-of-type
{
  padding: 1rem;
  background: #4c7898;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -15ch;
  margin-left: 1rem;
  width: min(35ch, calc(100svw - 6rem));
  grid-area: Data;
}

#intro > div:first-of-type > span :is(p,a,h1,h2,h3,h4)
{
  color: var(--light);
  text-align: left;
}

#intro > div:nth-child(2)
{
  border-radius: var(--radius);
  overflow: hidden;
  width: min(min(40ch, calc(100svw - 2rem)), 80%);
  grid-area: Mål;
  height: min-content;
  align-self: center;
  justify-self: center;
}

#intro > div:nth-child(2) > span :is(p,a,h1,h2,h3,h4)
{
  color: var(--warmYellow);
  text-align: left;
}

#Negative, #Negative > div
{
  display: grid;
  gap: 1rem;
}

#Negative > div:first-of-type > *
{
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

#Negative > div:nth-child(2) div
{
  display: grid;
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(#dbdbdb, #dadada, #e0e0e0, #dedddb);
  overflow: hidden;
  border-radius: var(--radius);
}

#Negative > div:nth-child(2) div > span
{
  height: fit-content;
  align-self: center;
}

#Negative > div:nth-child(2)  span > a
{
  display: contents;
  color: inherit;
  font-weight: bold;
  text-decoration: underline 1px wavy white;
}

#intro > div:nth-child(2) > span > h1
{
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#Negative > div:nth-child(2)  span > h2
{
  color: inherit;
  margin-top: 0;
  margin-bottom: 1rem;
}

#Negative > div:nth-child(2) > div:last-of-type
{
  grid-column: 2;
  grid-row: 1;
}

#Negative > div:nth-child(2) > div:last-of-type > *
{
  grid-column: 1;
  grid-row: 1;
}

#Negative > div:nth-child(2) > div:last-of-type > div
{
  width: 84%;
  height: fit-content;
  background: transparent;
  grid-template-columns: 1fr 2fr;
  grid-auto-flow: column;
  justify-self: center;
  margin-top: 6%;
  overflow: visible;
}

#Negative > div:nth-child(2) > div:last-of-type > div > p
{
  background-color: #545d5017;
  width: 75%;
  text-align: center;
  justify-self: center;
  border-radius: var(--radius);
  margin-top: 0;
  padding: 0.25rem;
}

#Negative > div span
{
  z-index: 1;
  padding: 2rem;
  height: max-content;
  color: var(--ebonyGreen);
  max-width: 25ch;
}

#Negative > div span h1, 
#Negative > div span p
{
  text-align: left;
  z-index: 1;
  color: inherit;
}

#Negative > div span h1
{
  margin-top: 0;
  margin-bottom: 1rem;
}

#Negative > div span p
{
  max-width: 25ch;
  display: contents;
}

#SpaceToSketch
{
  grid-template-columns: 6fr 3fr 5fr;
}

#SpaceToSketch > div
{
  grid-row: 1;
  max-width: 100svw;
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
}

#SpaceToSketch > div > * 
{
  grid-column: 1;
  border-radius: unset;
}

.Concepts
{
  grid-template-areas: "a b";
}

.Concepts > div
{
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.Concepts > div:first-of-type > *
{
  grid-column: 1;
  grid-row: 1;
}

.Concepts > div > h2
{
  z-index: 1;
  padding: 1rem;
  margin-top: 0;
  color: var(--light);
}

.squareblock
{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

#Tak
{
  width: min(29ch, calc(100svw - 2rem));
  margin: auto;
  margin-bottom: var(--margin_MediumLarge);
  display: block;
}


@media (max-width: 800px) {
  #aDay 
  {
    rgrid-template-columns: unset;
    width: min-content;
    grid-template-areas: "🧭" "🦻🏻" "💭";
  }

  #aDay::before
  {
    left: 1rem;
    width: calc(100% - 2rem);
    top: unset;
    height: unset;
  }

  #aDay > :nth-child(3)
  {
    height: unset;
    width: 80%;
    justify-self: center;
    align-self: center;
  }

  #aDay > svg 
  {
    width: calc(100% - 2rem);
    height: unset;
    justify-self: center;
    padding-right: unset;
    transform: rotate(86deg) translate(-10%, 10%);
  }

  #intro
  {
    grid-template-areas: "Data" "Mål";
    grid-template-columns: unset;
    grid-template-rows: min-content 1fr;
  }

  #intro > div:first-of-type
  {
    margin-top: -10ch;
  }

  #intro > div:nth-child(2)
  {
    margin-left: 1rem;
    justify-self: baseline;
    width: min(calc(100% - 2rem), 40ch);
  }

  #intro > div:nth-child(2) > span > h1
  {
    margin-top: var(--margin_Medium);
  }

  .Concepts 
  {
    grid-template-areas: "a" "b";
  }

  #SpaceToSketch
  {
    /*grid-template-rows: auto auto;
    grid-template-columns: 3fr 5fr;*/
    grid-template-columns: unset;
  }

  #SpaceToSketch > div
  {
    grid-row: auto;
    grid-column: 1;
  }

  #SpaceToSketch > div:nth-child(2)
  {
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }

  #SpaceToSketch > div:nth-child(2) > *
  {
    grid-row: 1 !important;
    grid-column: auto;
  }

  #SpaceToSketch > div:nth-child(2) > :nth-child(1),
  #SpaceToSketch > div:nth-child(2) > :nth-child(2)
  {
    grid-column: 1;
  }

  #SpaceToSketch > div:nth-child(2) > :last-child
  {
    grid-column: 2;
    align-self: center;
  }

  #Negative > :first-child
  {
    height: 100svw;
    overflow: hidden;
    border-radius: var(--radius)
  }

  #Negative > div:nth-child(2) > div:last-of-type
  {
    grid-row: unset;
    grid-column: unset;
  }

  #Negative > div:first-of-type video
  {
    height: 120%;
  }
  
}