@import url('https://fonts.googleapis.com/css2?family=Marmelad&family=MedievalSharp&display=swap');

:root {
  --btn-light: #d9d9d9;
  --btn-current: #8d8d8d;
  --dark: #000;
  --innerNav: #df990d;
}

* {
  box-sizing: border-box;
}

html {
  font: 18px/1.5 'Marmelad', 'PT Sans', sans-serif;
}

body {
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)), url('../images/tile.webp');
  margin: 0;
}

#wrapper {
  margin: 0 auto;
  max-width: 1200px;
  min-width: 400px;
  position: relative;
  width: 100%;
}

img,
#hero picture {
  height: auto;
  max-width: 100%;
}

header img {
  border: none;
}

a {
  text-decoration: none;
}

/************************ Header **********************/

header section:first-of-type {
  background: url(../images/banner-desktop.webp);
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr;
  height: 175px;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

header section:first-of-type img {
  align-self: center;
  justify-self: end;
  z-index: 75;
}

#main-nav {
  align-self: center;
  grid-column: 3 / 4;
  justify-self: stretch;
  z-index: 75;
}

#main-nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  text-align: end;
}

#main-nav li {
  display: inline-block;
}

#main-nav li a {
  background-color: var(--btn-light);
  border: var(--dark) solid 1px;
  border-radius: 20px;
  color: var(--dark);
  padding: 5px 15px;
}

#main-nav li a:hover,
#current-page {
  background-color: var(--btn-current);
}

#nav-trigger {
  cursor: pointer;
  display: block;
  font-size: 26px;
  padding: 1rem;
}

#nav-trigger,
#nav-box {
  display: none;
}

/************************* Skip link ************************/

#skip-link {
  background-color: var(--btn-light);
  border: var(--dark) double 3px;
  font-size: 32px;
  padding: 2rem;
  position: absolute;
  top: -9999px;
}

#skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
}
/*********************** Hs and hero image ******************/

h1,
h2,
h3 {
  font-family: 'MedievalSharp', 'Brush Script', cursive;
  font-weight: 400;
  text-align: center;
}

h1 {
  align-self: center;
  color: #fff;
  font-size: 72px;
  margin: 0;
  padding: 0 1rem;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 26px;
}

#hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  margin-top: 150px;
}

h1,
#hero img,
#hero picture {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

#activities {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  grid-template-rows: 1fr;
}

#activities ul {
  justify-self: center;
  margin: 0;
  padding: 0;
}

#activities ul:last-of-type {
  grid-column: 3 / 4;
}

#activities li {
  list-style: none;
}

#activities li a {
  color: var(--btn-light);
}

#activities li a:hover {
  color: var(--innerNav);
  filter: drop-shadow(0px 25px 10px var(--dark));
}

/******************* Columns **********************/

#home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(400px, 525px));
  justify-content: space-between;
}

#home-columns li {
  padding-bottom: 1rem;
}

#activities-columns,
#lodging-columns {
  display: grid;
  grid-template-columns: repeat(3, 375px);
  justify-content: space-between;
}

#home-columns section,
#activities-columns section,
#lodging-columns section,
#directions section {
  background-color: #fff;
  border: var(--dark) solid 1px;
  margin-top: 3rem;
}

#directions section div {
  border: var(--dark) solid 1px;
}

#directions section:first-of-type {
  border: var(--dark) solid 1px;
  display: grid;
  grid-template-columns: max-content auto;
  grid-template-rows: 1fr auto;
}

#directions section:first-of-type h2 {
  grid-column: 1 / -1;
}

#directions section:last-of-type div {
  padding: 2rem 6rem;
}

section div {
  padding: 2rem;
}

p {
  margin-top: 0;
}

/************ Responsive text 1200px ************/

@media screen and (max-width: 1200px) {
  h1 {
    font-size: calc(32px + (72 - 32) * (100vw - 400px) / (1200 - 400));
  }

  h2 {
    font-size: calc(24px + (32 - 24) * (100vw - 400px) / (1200 - 400));
  }

  h3 {
    font-size: calc(24px + (26 - 24) * (100vw - 400px) / (1200 - 400));
  }
}

/****************** 1100px activities and accommodations columns ************/

@media screen and (max-width: 1100px) {
  #activities-columns,
  #lodging-columns {
    grid-template-columns: repeat(2, 375px);
    justify-content: space-evenly;
  }

  #directions section:first-of-type {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/**************** 875px Index columns *******************/

@media screen and (max-width: 875px) {
  #home-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  header section:first-of-type {
    grid-template-columns: 1fr 1fr 2fr;
    padding-right: 3rem;
  }
}

/**************** 760px activities and accommodations columns *******************/

@media screen and (max-width: 760px) {
  #activities-columns,
  #lodging-columns,
  #home-columns {
    grid-template-columns: 400px;
    justify-items: center;
    justify-content: center;
  }
}

/**************** 600px Index columns *******************/

@media screen and (max-width: 600px) {
  header section:first-of-type {
    background: none;
    background-color: #fff;
    grid-template-columns: 1fr;
    padding: 0;
  }

  header section:first-of-type img {
    align-self: center;
    justify-self: center;
  }

  #directions section:last-of-type div {
    padding: 2rem 2rem;
  }

  #main-nav {
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
  }

  #main-nav ul {
    display: none;
    margin: 0;
    padding: 0;
    text-align: start;
  }

  #main-nav li {
    display: block;
  }

  #main-nav li a {
    background-image: none;
    border-bottom: var(--dark) 2px solid;
    border-radius: unset;
    display: block;
    font-size: 26px;
    min-height: 65px;
  }

  #nav-trigger {
    display: block;
  }

  #nav-box:checked + ul {
    display: block;
  }

  [href="#hero"],
  [href="#lodging"] {
    font-size: 22px;
  }
}
