@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Raleway:ital,wght@0,400;0,900;1,900&display=swap");

/* - - - RESET - - - */

/* prettier-ignore */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* prettier-ignore */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

/* prettier-ignore */
ol, ul {
  list-style: none;
}

/* prettier-ignore */
blockquote, q {
  quotes: none;
}

/* prettier-ignore */
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* prettier-ignore */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  display: block;
}

/* prettier-ignore */
*, *::before, *::after {
  box-sizing: border-box;
}

/* - - - STYLES - - - */

:root {
  font-size: 62.5%;
  --font-heading: "Raleway", sans-serif;
  --font-body: "Lora", serif;
  --color-header-text: #2b2d42;
  --color-main-text: #51547b;
  --color-supporting-text: #b5b7cf;
  --color-highlight: #eceffd;
  --color-link: #4361ee;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: var(--color-main-text);
}

h1,
h2,
h3 {
  font-weight: 900;
  color: var(--color-header-text);
}

h2 {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  line-height: 4.8rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 3.2rem;
  margin: 3.2rem 0 0;
}

h4 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 2.4rem;
  margin: 3.2rem 0 1.2rem;
  color: var(--color-header-text);
}

h5 {
  font-weight: 900;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

p:not(:last-child) {
  margin-bottom: 2.4rem;
}

a {
  color: var(--color-link);
  font-weight: bold;
  /* font-style: italic; */
}

.fancy {
  position: relative;
  text-decoration: none;
  color: var(--color-link);
  font-weight: bold;
  font-style: italic;
  font-family: var(--font-heading);
  transition: color 0.25s ease;
}

.fancy:hover {
  color: #7e80ee;
}

.fancy::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0.6em;
  bottom: -0.2rem;
  right: -0.4em;
  background-color: #ffc6ff;
  mix-blend-mode: multiply;
  transform: skew(-14deg);
  transition: transform 0.125s ease-in-out;
}

ul {
  list-style: disc outside;
}

ul:not(:last-child) {
  margin-bottom: 2.4rem;
}

ul > li {
  margin-left: 3.2rem;
  margin-bottom: 0.6rem;
}

li > ul {
  list-style: circle outside;
  margin-top: 1.2rem;
}

details {
  margin: 2.4rem 0;
  padding: 2.4rem;
  background-color: var(--color-highlight);
}

summary {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 3.2rem;
  font-weight: 900;
  color: var(--color-header-text);
  cursor: pointer;
}

summary:focus {
  outline: 0;
}

summary:focus-visible {
  outline: 0.1rem solid var(--color-header-text);
}

details[open] > summary {
  margin-bottom: 2.4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: min(72rem, 100%);
  margin: 0 auto 3.2rem;
  padding: 2.4rem;
}

.nav__title {
  font-style: normal;
  text-transform: uppercase;
  font-size: 2.4rem;
  line-height: 2.4rem;
  color: var(--color-main-text);
}

.nav__subtitle {
  font-family: var(--font-heading);
  color: var(--color-supporting-text);
}

.social {
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: 1.6rem;
  list-style: none;
}

.social__link {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.social__link:hover {
  opacity: 1;
}

.wrapper {
  display: grid;
  grid-template-columns: 1fr min(72rem, 100%) 1fr;
  padding-bottom: 4.8rem;
}

.wrapper > * {
  grid-column: 2;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

.wrapper__full {
  width: 100%;
  padding: 0;
  grid-column: 1 / -1;
}

.work__title {
  text-align: center;
}

.work__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-top: 4.8rem;
}

.project {
  margin: 0;
  margin-bottom: 2.4rem;
  margin-right: 4.8rem;
}

.project__header {
  margin-bottom: 1.6rem;
}

.project__title {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  line-height: 2.4rem;
  margin-bottom: 0.8rem;
}

.project__lock {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.4rem;
  transition: opacity 0.25s ease;
}

.project__title:hover .project__lock {
  opacity: 0.6;
}

.project__company {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  opacity: 0.6;
}

.project-footer {
  display: flex;
  justify-content: space-between;
}

.project-footer__item {
  display: flex;
  align-items: center;
}

.project-footer__item--right {
  margin-left: auto;
}

.carousel {
  width: 100%;
  padding: 0;
  grid-column: 1 / -1;
  padding: 2.4rem 0;
  background-color: var(--color-highlight);
  margin: 2.4rem 0 9.6rem;
}

.carousel__slide {
  display: block;
  width: 100%;
}

.carousel__slide--split {
  display: grid;
  grid-template-columns: min-content 48rem;
  justify-content: center;
  align-items: center;
  column-gap: 2.4rem;
}

.carousel__images {
  display: grid;
  justify-content: center;
  column-gap: 0.8rem;
}

.carousel__image {
  display: block;
  grid-row: 1;
  max-height: 60vh;
}

.carousel__caption {
  max-width: 96rem;
  margin: 2.4rem auto 0;
  text-align: center;
}

.carousel__slide--split > .carousel__caption {
  margin: 0;
  text-align: left;
}

.hero {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  padding: 2.4rem;
  text-align: center;
}

.hero::before {
  content: "";
}

.hero::after {
  content: "";
  position: absolute;
  top: 2.4rem;
  bottom: 2.4rem;
  left: 2.4rem;
  right: 2.4rem;
  background-color: var(--color-highlight);
  z-index: -1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 7.2rem;
  line-height: 7.2rem;
}

.hero__subtitle {
  font-size: 4.8rem;
  line-height: 4.8rem;
  color: var(--color-supporting-text);
}

.hero__more {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 0.8rem;
  justify-items: center;
  margin: 0 auto 2.4rem;
  opacity: 0.4;
  text-align: center;
  color: var(--color-header-text);
  text-decoration: none;
  font-weight: normal;
  font-family: var(--font-heading);
  transition: opacity 0.25s ease;
}

.hero__more:hover {
  opacity: 1;
  color: var(--color-header-text);
}

.hero__more::before {
  display: none;
}

.hero__about {
  position: absolute;
  top: 4.8rem;
  left: 4.8rem;
  text-decoration: none;
  font-family: var(--font-heading);
  color: var(--color-link);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.hero__about:hover {
  opacity: 1;
  color: var(--color-header-text);
}

.hero__social {
  position: absolute;
  top: 4.8rem;
  right: 4.8rem;
}
