/** global variables **/
:root {
  /** Creams **/
  --cream-1: #F9F5F3;
  --cream-2: #FCFAF9;
  --white: #ffffff;
  
  /** Text Colours **/
  --nordic: #1C393A;
  --empress: #797171;
  
  /** Blues **/
  --blue-1: #EEF1FB;
  --blue-2: #98BFF9;
  --blue-3: #5987D3;
  --blue-4: #126BDB;


  --size-1: 22px;
  
  --size-2: 20px;
  --size-3: 18px;
  --size-4: 16px;
  --size-5: 13px;
  --size-6: 11px;
  --size-7: 9px;

  --h1-size: var(--size-1-small);
}

@media (min-width: 820px) {
   :root {
    --size-1: 32px;
    --size-2: 30px;
    --size-3: 24px;
    --size-4: 20px;
    --size-5: 16px;
    --size-6: 14px;
    --size-7: 11px;
  }
}
@media (min-width: 1080px) {
   :root {
    --size-1: 46px;
    --size-2: 32px;
    --size-3: 25px;
    --size-4: 20px;
    --size-5: 17px;
    --size-6: 15px;
    --size-7: 11px;
  }
}


/** root styles **/
html {
  background-color: var(--cream-1);
}

body {
  background-color: var(--white);
  color: var(--nordic);
  margin: 3rem;
  padding: 3.5rem;
  border-radius: 1.875rem;
  font-family: "Midge Sans v04";
  font-style: normal;
  font-weight: normal;
  font-variation-settings: "wght" 353;
  line-height: 1.5;
}

section {
  display: grid; 
  grid-template-columns:  repeat(9, minmax(0, 1fr)); 
  gap: 0px 1.5em;
  grid-auto-flow: row;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 0.5rem solid var(--cream-1);
  transition: height 0.75s ease;
}

section:first-of-type {
  padding-top: 0;
  margin-top: 0;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-variation-settings: "wght" 353;
}

h1 {
  font-size: var(--size-1);

}

.h1-br {
  display: block;
  margin-top: 1rem;
  color: var(--blue-4);
}

h2 {
  text-transform: lowercase;
  font-size: var(--size-2);
}
h3 {
  font-size: var(--size-4);
  margin: 0;
}
p {
  font-size: var(--size-5);
}

a {
  color: var(--nordic);
  text-decoration: underline;
  text-decoration-color: #98BFF9;
  text-decoration-thickness: 2px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
a:hover {
  color: var(--blue-4);
  text-decoration-color: #126BDB;
}
nav {
  min-height: 56px;
}

nav a span {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
  margin: 0;
  left: 5.75rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: absolute;
  line-height: 1;
  text-align: center;
  font-size: 56px;
}

nav a:hover span {
  background-color: var(--blue-1);
  transform: scale(112%) rotate(2deg);
}

/** index specific styles **/

.indexJumbotron h1 {
  grid-column: span 6;
  align-self: center;
}
.indexSubhead {
  display: flex;
  max-height: 4rem;
  align-items: center;
}
.indexSubhead a {
  text-decoration: none;
}


.indexPortrait {
  grid-column: span 3;
  width: 100%;
}
.indexSidebar {
  grid-column: span 3;
}
.indexSidebar ul {
  list-style-type: none;
  padding: 0;
}
.indexSidebar ul li a {
  margin-bottom: 0.5rem;
  font-size: var(--size-4);
  max-height: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.indexSidebarIcon {
  max-height: 2rem;
  width: 2rem;
  padding-bottom: 0.5rem;
}


.indexSidebar ul li a {
  text-decoration: none;
}

.indexTextblock {
  grid-column: span 6;
}

.indexPortfolioMatrix > a {
  flex-basis: 49%;
  text-decoration: none;
}

.indexPortfolioMatrix {
  margin-top: 3rem;
  grid-column: span 9;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.indexPortfolioItem {
  background-color: var(--cream-2);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 0.5;
}
  a .indexPortfolioItem:hover {
    background-color: var(--blue-1);
    transform: scale(106%) rotate(1deg);
  }
  a:nth-child(odd) .indexPortfolioItem:hover {
    transform: scale(106%) rotate(-1deg);
  }
  .indexPortfolioItem h3 { 
    margin-top: 1.5rem;
  }

.indexGardenLink {
  width: 100%;
  flex-wrap: nowrap;
  background-color: var(--cream-2);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  line-height: 0.5;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.indexPlanters, .indexTypefaces {
  margin-top: 3rem;
}
.indexPlanters a {
  text-decoration: none !important;
}

a .indexGardenLink:hover {
  background-color: var(--blue-1);
  transform: scale(106%) rotate(1deg);
}
a:nth-child(odd) .indexGardenLink:hover {
  transform: scale(106%) rotate(-1deg);
}

.indexTypeLink {
  width: 100%;
  flex-wrap: nowrap;
  background-color: var(--cream-2);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  line-height: 0.5;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.indexTypefaces a {
  text-decoration: none !important;
}

a .indexTypeLink:hover {
  background-color: var(--blue-1);
  transform: scale(106%) rotate(1deg);
}
a:nth-child(odd) .indexTypeLink:hover {
  transform: scale(106%) rotate(-1deg);
}

/** portfolio specific styles **/
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 9fr));
  gap: 1rem;
}
.art-card img {
  width: 100%;
  height: auto;
  display: block;
}

/** garden specific styles **/


footer {
  display: flex;
  flex-direction: column;
  padding-top: 3.5rem;
  transition: height 0.75s ease;
}
.footerCTA {
  justify-content: center;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: dashed 0.25rem var(--cream-1);
}
.footerCTA img {
  max-height: 15rem;
}
.footerCTA h3 {
  font-size: var(--size-1);
}
.footerCTA h2 {
  font-size: 148px;
  line-height: 1.5;
  margin: 0;
}
.footerColophon {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.footerColophon p {
  font-size: var(--size-6);
}
.footerSocials {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
}
.footerSocials p {
  font-size: var(--size-4) !important;
  transition: all 0.5s ease;
}

article {
  display: grid; 
  grid-template-columns:  repeat(9, minmax(0, 1fr)); 
  gap: 0px 1.5em;
  grid-auto-flow: row;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 0.5rem solid var(--cream-1);
  transition: height 0.75s ease;
}

.articleTextblock {
  grid-column: 2/9;
}