/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

* {
  margin: 0;
}

html {
  font-size: 16px;

  --background: #FAFAFA;
  --color: #333333;
  --link: #107793;

  --spacing: 1rem;
  --spacing2: 0.5rem;
  --spacing3: 0.25rem;
}

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

  color: var(--color);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

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;
  margin-bottom: var(--spacing2);
  max-width: 80ch;
}

#root, #__next {
  isolation: isolate;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: var(--spacing) var(--spacing);
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

h2 {
  align-items: center;
  display: flex;
  gap: 1rem;
  padding: var(--spacing) 0 0;
  border-bottom: 1px solid var(--color);
  margin-bottom: calc(var(--spacing) * 2);
}

h2 a {
  display: flex;
  width: 1.5rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-title {
  padding: calc(var(--spacing) * 2) 0;
  text-align: center;
}

.portrait {
  border: 1px solid var(--color);
  border-radius: 12.5%;
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
}

.intro {
  display: flex;
  gap: calc(var(--spacing) * 2);
}

.links {
  justify-content: center;
  display: flex;
  width: 100%;
}

.links a {
  align-items: center;
  color: var(--color);
  font-weight: bold;
  text-decoration: none;
  padding: var(--spacing);
}

.links a:hover {
  color: var(--link);
}

.list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 0 var(--spacing);
}

.list-item .title {
  display: flex;
  align-items: center;
  gap: var(--spacing2);
}

.list-item .date {
  color: var(--color);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0 var(--spacing2) var(--spacing);
}

.list-item .content {
  padding: 0 0 0 var(--spacing);
}

.list-item .content.split-content {
  align-items: flex-start;
  display: flex;
  gap: var(--spacing);
}

.list-item .split-content .image {
  border-radius: var(--spacing3);
  border: 1px solid var(--color);
  display: flex;
  flex: 0 0 25%;
  overflow: hidden;
  width: 25%;
}

.svg {
  display: inline-block;
  height: auto;
  max-width: 1.5rem;
}

.link {
  align-self: center;
  color: var(--color);
  display: flex;
  gap: var(--spacing3);

  svg {
    stroke: var(--color);
    width: 1.5rem;
  }

  &:hover {
    color: var(--link);

    svg {
      stroke: var(--link);
    }
  }
}

@media (max-width: 414px) {
  .portrait {
    margin: 0 auto;
  }
  .intro {
    flex-direction: column;
    gap: 0;
  }
  .list-item .content.split-content {
    flex-direction: column;
  }

  .list-item .split-content .image {
    flex: 1 1 auto;
    width: 100%;
  }
}
