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

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* Fonts */

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-BoldItalic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Bold.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Italic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Light.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-LightItalic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Medium.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-MediumItalic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Regular.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-SemiBold.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-SemiBoldItalic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-SemiBoldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-Thin.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('./fonts/IBMPlexSerif-ThinItalic.woff2') format('woff2'),
    url('./fonts/IBMPlexSerif-ThinItalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* General */

body {
  width: 100vw;
  font-family: 'IBM Plex Serif';
}

header {
  padding: 1rem;
  background: linear-gradient(110deg, #b4d3d9 60%, #9b8ec7 60%);
}

header .photo {
  min-height: 70vh;
  background-image: url('./img/desk-close-small.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 3rem;
  font-weight: 700;
  padding: 0 1rem;
  padding-top: 1rem;
}

.social {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.social img,
.links img {
  height: 2rem;
  width: 2rem;
  display: inline-block;
}

main {
  padding: 2rem 1rem;
  background-color: #f2eae0;
}

.card {
  width: 90vw;
  height: 25rem;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.32);
  border-radius: 5%;
  margin: 2rem 0;
  background-color: #b4d3d9;
  display: flex;
  flex-direction: column;
}

.screenshot img {
  width: 90vw;
  border-radius: 5% 5% 0 0;
  height: 15rem;
  object-fit: cover;
  object-position: top left;
}

.title {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.card p {
  padding: 0.75rem;
}

footer .contact {
  background-color: #bda6ce;
  padding: 2rem 1rem;
}

footer .photo {
  height: 30vh;
  background: url('./img/desk-far-small.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

footer .contact-text {
  font-size: 1.2rem;
  font-style: italic;
  padding: 1.5rem 1.5rem;
}

.address,
.phone,
.email {
  padding: 1rem 0;
}

@media (min-width: 600px) {
  header {
    padding: 2rem 1rem;
  }
  header .photo {
    width: 50vw;
    min-height: unset;
    height: 20rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 4rem;
    text-align: right;
    z-index: 1;
    float: left;
    margin: 2rem 2rem 1rem 2rem;
  }

  header .intro {
    background-color: #f2eae0;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.32);
    width: 60vw;
    padding: 2rem;

    margin: auto;
    padding-left: 2rem;
  }

  header .social {
    display: flex;
    justify-content: end;
  }

  main h1 {
    padding-left: 4rem;
  }

  .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem;
  }

  .card {
    width: unset;
  }

  footer {
    height: 30rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
  }

  footer .photo {
    background-size: cover;
    height: unset;
  }
}

@media (min-width: 1200px) {
  header {
    padding: 2rem;
    height: 40rem;
  }
  header .photo {
    height: 80%;
    background-position: center;
    margin: 3rem;
  }

  header .intro {
    margin: auto 3rem auto auto;
  }

  .content {
    grid-template-columns: repeat(3, 1fr);
  }

  footer {
    height: unset;
  }

  footer .contact {
    padding: 2rem 0;
    text-align: center;
  }
  footer .photo {
    padding: 2rem;
    background-size: auto 90%;
    background-color: #bda6ce;
  }
}
