/* 
 TMS layout

 - Credit to Geoff Graham's "Holy Grail Layout" at https://css-tricks.com/snippets/css/css-grid-starter-layouts/ for the inspiration.
 - This is a reminder to credit *humans* for doing the hard work that automated tool users take for granted.
*/
:root {
  --primary-color: #ffd7e3;
  --secondary-color: #fef0f5;
  --text-color: #3d3d3d;
  --bg-color: #fff2f2;
}

:root
{
  color: var(--text-color);
  background-color: var(--bg-color);
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 60px 1fr 40px;
  gap: 1em;

  /* force grid to stretch from top to bottom */
  flex-grow: 1;        
}

header, footer {
  grid-column: 1 / -1;
}

@media all and (max-width: 700px) {
  aside,
  article {
    grid-column: 1 / -1;
  }
}


body {
  margin: 0 auto;
  /*max-width: 56em;*/

  /*stretch the content */
  padding: 0;
  min-height: 100vh;
  display: flex;       /* 3. Prepares the body to stretch its layout child */
  flex-direction: column;
}

article {
  background: var(--primary-color);
  padding: 2em; 
  margin-left: 1em;
}

article div {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: 3px solid #ffd4d4;
}

aside div {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: 3px solid #ffd4d4; 
}

.sidebar {
  background: var(--primary-color);
  padding: 2em; /* Gives space around your text */
  margin-right: 1em;
}

header,
footer {
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffefef; 
}

/***********/
article p {
  color: var(--text-color);
  line-height: 1.6;
}

/** styled **/
article,
aside {
  border: 4px dashed #ffe9e9; 
  border-radius: 8px;
}


/*** fonts ***/
.italiana-regular {
  font-family: "Italiana", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p {
    font-family: "Oranienbaum", serif;
    font-weight: 400;
    font-style: normal;
}

.oranienbaum-regular {
  font-family: "Oranienbaum", serif;
  font-weight: 400;
  font-style: normal;
}

.lavishly-yours-regular {
  font-family: "Lavishly Yours", cursive;
  font-weight: 400;
  font-style: normal;
}
