/* Root color variables */

:root {
  --text: #654747;
  --text-dark: #362727;
  --accent-color: #c5d2c7;
  --background: #f4e4e4;
  --background-variant: #efd7d7;
}

/* Framework */
.container {
  max-width: 120ch;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 769px) {
  .flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }
  .container {
    padding: 3rem 2rem;
  }
}

.image-divider {
  position: relative;
  background-image: url("../assets/images/dot-divider.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 12px;
  height: 12px;
  width: 100%;
  margin-bottom: -5px;
  z-index: 1;
}

/* Set up */

html,
body {
  font-family: sans-serif;
  padding: 0;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Radio Canada";
  font-size: 16px;
}

/* Header */

header {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 0;
}

header .flex-container {
  padding: 0.5rem 1rem;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.skip-link {
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-300%);
  transition: transform 0.3s;
  display: none;
}

.skip-link:focus {
  transform: translateY(0%);
}

header a,
header a:hover,
header a:visited {
  color: var(--text-dark);
}

.no-decorator {
  text-decoration: none;
}

.nav-settings {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

nav ul {
  padding: 0;
  margin: 0;
}

.nav-item {
  display: inline-block;
  margin-right: 0.5em;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
}

/* .nav-desktop {
  display: none;
}

.nav-mobile {
  min-width: 100%;
} */

.animation-toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85em;
  border: 2px solid var(--text);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
}

.animation-toggle label {
  cursor: pointer;
}

.animation-toggle input[type="checkbox"] {
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: underline;
}

.nav-link:first-child {
  padding-left: 0;
}

.nav-link:focus,
.nav-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

@media (min-width: 580px) {
  .nav-settings {
    width: auto;
  }
  .skip-link {
    display: block;
  }
}

/* Main */

main,
#main {
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero .flex-container {
  gap: 0;
  align-items: stretch;
  height: auto;
  position: relative;
  z-index: 1;
  max-width: 120ch;
  padding: 0;
}

.hero::before {
  content: "";
  height: 55%;
  background: var(--background-variant);
  position: absolute;
  left: -50px;
  right: -50px;
  top: -100px;
  transform: rotate(-11deg);
  z-index: 0;
}

.hero .image-wrap {
  width: 100%;
  border-radius: 0.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  height: 100%;
  min-height: 350px;
}

.hero .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 1rem 2rem 3rem 2rem;
  margin-top: -20px;
  max-width: 90ch;
}

@media (min-width: 769px) {
  .nav-item {
    margin-right: 0.8em;
  }
  .hero .image-wrap {
    background-position: right 0;
  }
  .hero::before {
    top: -20px;
  }
}

@media (min-width: 1200px) {
  .hero .image-wrap {
    background-size: contain;
  }
  .hero .flex-container {
    gap: 3rem;
    height: 500px;
  }
  .hero::before {
    top: -50px;
  }
  .hero .content {
    padding: 1rem 2rem 2rem 2rem;
  }
}

.text-image .flex-container {
  justify-content: space-between;
  min-height: 400px;
  align-items: stretch;
  max-width: 120ch;
}

.text-image--alt {
  background: var(--background-variant);
}

.text-image .content {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 90ch;
}

.text-image .image-wrap {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center 90%;
}

.text-image .image {
  width: 100%;
  max-width: 450px;
  height: 100%;
  min-height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .text-image .image-wrap {
    background-size: 95% auto;
    background-position: left center;
  }

  .text-image--alt .image-wrap {
    background-position: right center;
  }
}

@media (min-width: 1200px) {
  .text-image .image-wrap {
    background-size: auto 100%;
    background-position: left center;
  }

  .text-image--alt .image-wrap {
    background-position: right center;
  }
}

.list-block .flex-container {
  max-width: 118ch;
}

.list-block .flex-container .skills-list {
  max-width: 80ch;
}

.list-block ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
  line-height: 1.7;
}

.list-block .image-wrap {
  height: auto;
}

.list-block .image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin-left: 0;
  flex: 2;
}

.list-block h3,
.list-block .h3-spacer {
  padding-bottom: 1em;
}

.skills-left {
  flex: 2;
  padding-bottom: 2em;
  margin-bottom: 2em;
}
.skills-right {
  flex: 1;
  min-width: 100%;
}

.skills-accent {
  margin-top: 1em;
  margin-bottom: 1em;
  max-width: 100%;
  height: auto;
}

.skills-right .skills-accent {
  display: none;
}

@media (min-width: 540px) {
  .list-block .flex-container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .skills-left {
    margin-bottom: 0;
    max-width: 40%;
  }
  .list-block .image-wrap {
    min-width: 250px;
    padding-right: 4em;
  }
}

@media (min-width: 769px) {
  .list-block .flex-container {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .skills-left {
    flex: 1;
  }
  .skills-right {
    min-width: auto;
  }
  .skills-right .skills-accent {
    display: block;
  }
  .list-block .image-wrap {
    padding-right: 3em;
  }
}

.centered-text.values {
  background: var(--background-variant);
}
.centered-text .container {
  text-align: center;
}
.centered-text p {
  max-width: 60ch;
  line-height: 1.4;
  margin: 0 auto 1.5rem auto;
}

.centered-text ul {
  list-style: none;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5em auto 0 auto;
}

.centered-text ul li {
  margin: 0.8em 1em;
  text-align: center;
}

.values-image {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 2rem auto 0 auto;
}
.contact-links {
  background: var(--accent-color);
}

.contact-links h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

ul.contact-links-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.contact-links-item {
  margin: 0;
  font-size: 0.8em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-links-item img {
  width: 50px;
  height: auto;
}

.contact-links-item a {
  display: inline-block;
  color: #000;
  padding: 0.25rem 0.5rem;
}

@media (min-width: 769px) {
  .text-image {
    padding: 2rem 1rem;
  }
  .text-image .image {
    margin-left: 0;
    margin-right: auto;
  }
  .text-image--alt .image {
    margin-right: 0;
    margin-left: auto;
  }
  .text-image.text-image--alt .flex-container {
    flex-direction: row-reverse;
  }
}

/* Footer */

footer {
  background: var(--accent-color);
  color: var(--text-dark);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

footer a,
footer p {
  margin-bottom: 0;
}

footer a,
footer a:hover,
footer a:visited {
  color: var(--text-dark);
}

small {
  font-size: 1rem;
}

.copyright {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
