:root {
  /* fonts */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'EB Garamond', serif;

  /* colours */
  --lightest-grey: hsl(0, 0%, 96%);
  --grey: hsl(0, 0%, 65%);

  /* spacing */
  --edge-spacing-left: calc(10% + 50px);
  --edge-spacing-left-mob: 15%;
  --edge-spacing-right: 10%;
  --edge-spacing-right-mob: 5%;
  --max-width: 2000px;

  /* background */
  --line-bg: url('img/line.png') 10% no-repeat repeat;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  background: var(--line-bg);
}

.flex-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8%;
  width: 100%;
  margin: auto;
}

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

.spacing-med {
  margin-top: 80px;
}

.spacing-lrg {
  margin-top: 120px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading-font);
}

.primary-btn {
  margin-top: 30px;
  display: inline-block;
  color: #000;
  font-weight: 700;
  font-family: var(--heading-font);
  transition: 0.2s;
}

.primary-btn:hover{
  color: var(--grey);
}

.primary-btn::after {
  content: " \2192"; /* Unicode right arrow */
}

/* header */
/* ------------------------- */

header {
  padding: 80px 0px 50px;
}

.site-title {
  margin-left: var(--edge-spacing-left);
}

.logo-container {
  margin-right: 5%;
}

.logo-container img:first-child {
  margin-right: 20px;
  height: 50px;
}

.logo-container img:last-child {
  height: 60px;
}

.site-title h1 {
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* intro */
/* ------------------------- */

.img-left {
  flex: 1;
  width: 30%;
  max-width: 800px;
  background-color: #fff;
}

.img-left img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
}

.intro-txt {
  margin-right: var(--edge-spacing-right);
  flex: 1;
  width: 70%;
  max-width: 550px;
  font-size: 1.2rem;
}

/* about doug */
/* ------------------------- */

.grey-bg {
  width: 100%;
  padding: 80px 0px;
  background: var(--lightest-grey)  var(--line-bg);
}

.doug-txt {
  margin-left: var(--edge-spacing-left);
  width: 40%;
}

.grey-bg h2 {
  margin-left: var(--edge-spacing-left);
  margin-bottom: 10px;
}
.grey-bg h3 {
  margin-left: var(--edge-spacing-left);
  margin-bottom: 30px;
  font-weight: 400;
  font-size: 1rem;
}

.doug-txt p {
  margin-left: 8%;
  text-align: justify;
}

.img-right {
  flex: 1 1 40%;
  align-self: stretch;
}

.img-right.mobile-only { display: none; }

.img-right img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  object-position: top;
}

/* footer */
/* ------------------------- */

footer {
  height: 400px;
  object-fit: cover;
  background-color: rgb(201, 201, 201);
}

footer img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* ========================================= */
/* ------------ media queries -------------- */
/* ========================================= */

/* extra wide screens */
/* ------------------------- */

@media screen and (max-width: 1300px) {

  .img-right img {
    max-height: 700px;
  }
}

/* mobile, tablets */
/* ------------------------- */

@media screen and (max-width: 900px) {

  .flex-row { flex-flow: column; }
  .spacing-med { margin-top: 30px; }
  .spacing-lrg { margin-top: 50px; }
  .primary-btn { margin-top: 10px; }

  /* header */

  header { padding: 10px 0px; }
  header .flex-row { gap: 80px; }

  .site-title {
    margin-left: var(--edge-spacing-left-mob);
    align-self: flex-start;
    order: 2;
  }

  .site-title h1 { font-size: 1.8rem; }

  .logo-container {
    margin-right: 0;
    align-self: flex-end;
    order: 1;
  }
  
  .logo-container img:first-child { height: 30px; }
  .logo-container img:last-child { height: 40px; }

  /* intro */

  .flex-row.spacing-med { gap: 20px; }

  .img-left {
    width: 80%;
    align-self: flex-start;
  }
  
  .img-left img { height: 200px; }
  
  .intro-txt {
    margin-right: var(--edge-spacing-right-mob);
    width: 80%;
    font-size: 1rem;
    text-align: justify;
    align-self: flex-end;
  }

  /* about doug */

  .grey-bg { padding: 0px 0px 40px; }

  .grey-bg h2 { 
    margin-top: 40px; 
    margin-left: var(--edge-spacing-left-mob); 
  }
  
  .grey-bg h3 { 
    margin-bottom: 20px;
    margin-left: var(--edge-spacing-left-mob);

  }

  .doug-txt {
    margin-left: var(--edge-spacing-left-mob);
    margin-right: var(--edge-spacing-right-mob);
    width: unset;
  }

  .img-right { display: none; }
  .img-right.mobile-only { display: unset; }
  .img-right.mobile-only img { max-height: 300px; }
}