@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* S E T U P */
:root {
  --aside-width: 360px;
  --max-width-content: 900px;
  --spacing: 1.5rem;
  --spacing-half: 0.75rem;

  /* colours */
  --bright: #dfb9ae;
  --dark: #053d57;
  --bg-sidebar: #b99095;
  --hi-one: #6eb5c0;
  --hi-two: #ffcc88;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* B A S E */
body {
  display: flex;
  flex-direction: row;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: var(--spacing);
  width: 66%;
  min-height: 100vh;
  padding: var(--spacing);
  background: var(--dark);
  color: var(--bright);

  a {
    color: var(--bright);
  }
}

main {
  width: 100%;
  max-width: var(--max-width-content);
}

header {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;

  width: 100%;
  max-width: var(--max-width-content);
  height: 150px;

  margin-bottom: var(--spacing-half);

  .logo {
    width: 150px;

    img {
      width: 100%;
    }
  }

  .slogan {
    max-width: 480px;
    text-align: right;
    color: var(--bright);
    font-style: italic;
  }
}

.aside {
  width: 34%;
  min-width: var(--aside-width);
  min-height: 100vh;
  padding: var(--spacing);
  padding-top: calc(150px + var(--spacing) + var(--spacing));

  background: var(--bg-sidebar);
  color: var(--dark);
}

nav {
  ul {
    position: sticky;
    top: var(--spacing);
    max-width: 420px;
    padding: 0;
    margin: 0;

    font-size: 1.125rem;

    li {
      list-style-type: none;
      transition: 0.25s ease;

      a {
        position: relative;
        display: inline-block;
        padding: var(--spacing-half);
        padding-bottom: 0;
        width: 100%;
        color: var(--dark);
        transition: 0.25s ease;
        text-decoration: none;
      }
      a:last-child {
        padding-bottom: var(--spacing-half);
        border-bottom: 1px dashed #006c844d;
      }
      a:first-child:after {
        content: " →";
        position: absolute;
        top: 0.5rem;
        right: var(--spacing-half);
      }
    }
    li:hover {
      background-color: var(--dark);
      color: var(--bright);

      a:last-child {
        border-bottom: 1px dashed #006c8400;
      }
      a {
        color: var(--bright);
      }
    }
  }
}

/* S T Y L I N G */
h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

h2 {
  margin-top: var(--spacing);
}

h2:first-child {
  margin-top: 0;
}

h3,
dt {
  margin-top: var(--spacing-half);
  font-size: 1.25rem;
}

p,
dd,
li {
  line-height: 1.5;
  text-align: justify;
}

figure {
  padding: 0;
  margin: 0 0 var(--spacing);

  img {
    width: 100%;
    max-width: 900px;
  }
  figcaption {
    font-style: italic;
  }
}

main ul {
  list-style-type: none;
  padding-left: 1rem;

  li {
    position: relative;
  }
  li:before {
    content: "—";
    position: absolute;
    left: -1.125rem;
  }
}

dl dt {
  font-weight: bold;
}
dl dd {
  margin: 0.5rem 0 0.75rem 1rem;
}

main li a,
main dd a {
  font-style: italic;
}

.map {
  width: 100%;
  height: 520px;
  border: none;
}

.cols {
  display: flex;
  flex-direction: row;
  gap: var(--spacing);
  margin-bottom: var(--spacing-half);
}

.cols > * {
  width: 50%;
}

/* M O B I L E */
@media screen and (max-width: 950px) {
  body {
    flex-direction: column;
  }
  .content,
  .aside {
    width: 100%;
  }

  .aside {
    padding-top: var(--spacing);
    min-height: auto;

    ul {
      max-width: 100%;
      min-height: auto;
    }
  }

  .cols {
    flex-direction: column;
  }
  .cols > * {
    width: 100%;
  }
}
