@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

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

* {
  margin: 0;
}

::selection {
  background-color: #ebb3f6;
  color: #000;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.5;
}

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

p {
  text-wrap: pretty;
}

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

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

header {
  text-align: left;
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.name {
  font-size: 3rem;
  color: black;
}

h1,
.roles {
  color: hsl(16, 50%, 10%);
}

.container.header {
  background: lightcoral;
}

h2 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

h3 {
  background: lightcoral;
  padding: 1rem;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  padding: 2rem;
}

.container > * {
  max-width: 960px;
  margin: 0 auto;
}

.about-me-body {
  display: flex;
  gap: 2rem;
  position: relative;
}

.about-me-body-text {
  flex: 1;
}

.about-me-body p {
  max-width: 50ch;
  margin: auto;
  margin-bottom: 1rem;
}

.about-me-media {
  position: absolute;
  right: -5rem;
  min-width: 0;
  flex-shrink: 1;
}

.about-me-media video,
.about-me-media img {
  min-width: 0;
  display: block;
  max-width: 200px;
  margin-bottom: 1rem;
}

.about-me-body-media {
  max-width: 500px;
}

.induction-image,
.starlight-image,
.yellowshirt-image {
  background-size: cover;
  background-position: center;
}

.starlight-image {
  background-image: url('assets/starlight.jpg');
  width: 500px;
}

.induction-image {
  background-image: url('assets/induction.jpg');
  width: 100%;
}

.yellowshirt-image {
  background-image: url('assets/yellowshirt.jpg');
  width: 300px;
  height: 164px;
}

.tp-meriton-image {
  background-image: url('assets/tp.jpg');
  background-size: 150%;
  background-position: center;
  width: 300px;
  height: 164px;
}

.tp-t2-image {
  background-image: url('assets/t2.jpg');
  background-size: cover;
  background-position: center;
  width: 300px;
  height: 164px;
}

.body-media-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vertical {
  flex-direction: column;
}

.body-media-container.vertical {
  max-width: 300px;
  margin-bottom: 0;
}

/*
  thicker and more consistent strikethru appearance
*/
s {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

s::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: red;
  pointer-events: none;
}

.container.vision {
  background: lightblue;
}

.vision ul,
.offer ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0;
}

.vision ul li,
.offer ul li {
  list-style-type: none;
  padding: 0;
}

.roles {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.roles span {
  width: 3px;
  background: hsl(16, 100%, 16%);
}

footer {
  text-align: center;
  padding-bottom: 2rem;
}

a {
  color: hsl(290, 79%, 43%);
}

a:hover {
  color: hsl(290, 79%, 23%);
}

.container.footer {
  background: lightgreen;
}

.zorua {
  max-width: 300px;
  margin-top: 2rem;
}

@media screen and (max-width: 1280px) {
  .about-me-body {
    flex-direction: column;
    flex-flow: column-reverse;
  }

  .about-me-media {
    position: static;
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .about-me-media video,
  .about-me-media img {
    object-fit: cover;
    width: 100%;
    flex: 1;
    display: block;
  }

  .starlight-image,
  .induction-image {
    flex: 2;
  }
}

@media screen and (max-width: 720px) {
  header {
    text-align: center;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .roles {
    justify-content: center;
  }

  .body-media-container {
    flex-direction: column;
  }

  .body-media-container,
  .body-media-container.vertical {
    max-width: 100%;
  }

  .tp-meriton-image,
  .tp-t2-image,
  .induction-image,
  .starlight-image,
  .yellowshirt-image {
    width: 100%;
  }

  .induction-image,
  .starlight-image {
    flex: 10rem;
  }

  .vision ul,
  .offer ul {
    grid-template-columns: 1fr;
  }
}
