* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  pointer-events: none;
  user-select: none;
}

body {
  --heading-color: #0A0A0A;
  --text-color: #202020;
  --page-background-color: #F2F4F7;
  --divider-color: #A4B494;
  --emphasis-color: #FFC4D1;
  --highlight-color: #FFC4D1CC;
  --emphasis-alt-color: #0B2545;
  --white: #F2F4F7;
  --divider-height: 4px;
  --box-shadow-color: #0B1525;

  background: var(--page-background-color);
  color: var(--text-color);
  font-family: sans-serif;
  overflow-x: hidden;
}

.nav {
  box-shadow: 0 -4px 8px var(--box-shadow-color);
}

.nav .section {
  display: flex;
  gap: 16px;
}

.subtle-link {
  color: var(--emphasis-alt-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.subtle-link:hover {
  opacity: 0.8;
}

.subtle-link:visited {
  color: var(--emphasis-alt-color);
}

h1,
h2 {
  color: var(--heading-color);
}

h1 {
  margin: 24px 0;
  text-align: center;
}

h2 {
  text-align: center;
}

.divider {
  position: relative;
  background: var(--divider-color);
  border-radius: 2px;
  display: block;
  height: var(--divider-height);
  margin: 12px 0 24px;
  width: 80%;
}

.divider:after {
  content: "";
  background: var(--page-background-color);
  bottom: 0;
  position: absolute;
  height: calc(var(--divider-height) + 2px);
  left: calc(50% - 10%);
  width: 20%;
}

.divider:before {
  content: "▼";
  color: var(--divider-color);
  bottom: calc(var(--divider-height) + 2px);
  height: var(--divider-height);
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
}

.subtitle {
  font-size: 18px;
  margin: -12px 0 12px;
  text-align: center;
}

.callout {
  font-size: 18px;
}

.callout.second {
  margin-top: 16px;
}

.highlight {
  background: var(--highlight-color);
  border-radius: 4px;
}

.section {
  padding: 8px 16px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section.whitespacy {
  margin-top: 20vh;
  margin-bottom: 20vh;
}

.section.tally {
  margin-top: 48px;
  margin-bottom: 48px;
  min-height: 40vh;
}

.profile-picture {
  border-radius: 50%;
  border: 5px solid var(--divider-color);
  width: 400px;
  max-width: 80%;
}

.call-to-action {
  background: var(--emphasis-color);
  border: 0;
  border-radius: 16px;
  color: var(--text-color);
  cursor: pointer;
  height: 40px;
  line-height: 24px;
  margin: 8px 0;
  min-width: 180px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.call-to-action:hover {
  opacity: 0.8;
}

.call-to-action:visited {
  color: var(--text-color);
}

.cute-balls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;

  list-style: none;

  margin: 16px 0 0;
}

.cute-balls li {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  text-align: center;

  background-color: var(--emphasis-color);
  color: var(--text-color);

  border-radius: 50%;
  height: 120px;
  width: 120px;
}

.box-container {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.box {
  background: var(--highlight-color);
  border-radius: 32px;
  width: 100%;
  overflow: hidden;
  padding: 16px;
}

.position-name-container {
  display: flex;
  font-size: 22px;
  align-items: center;
  gap: 8px;
}

.position-name {
  flex-grow: 1;
}

.position-name-container .logo {
  border-radius: 50%;
  border: 2px solid var(--white);
  width: 40px;
  height: 40px;
  background: var(--white);
}

.portfolio-item {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.portfolio-item h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.portfolio-item img {
  width: calc(100% + 36px);
  margin: -16px 0 0 -16px;
}

.portfolio-item:hover {
  opacity: 0.8;
}

.company-name {
  font-size: 18px;
  color: var(--emphasis-alt-color);
}

.details {
  margin: 16px 0 8px;
  font-size: 16px;
}

.details ul {
  list-style: none;
  padding-left: 16px;
}

.details li {
  position: relative;
}

.details li:before {
  content: "-";
  position: absolute;
  left: -16px;
}

.footer {
  box-shadow: 0 4px 8px var(--box-shadow-color);
  text-align: center;
}

@media (max-width: 768px) {
  .nav .section {
    justify-content: center;
  }

  .nav .subtle-link {
    font-size: 12px;
  }

  .cute-balls {
    grid-template-columns: 1fr 1fr;
  }

  .box-container {
    grid-template-columns: 1fr;
  }

  .position-name {
    font-size: 18px;
  }

  .company-name {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  body.auto-theme {
    --heading-color: #F6F6F3;
    --text-color: #E7E5DF;
    --page-background-color: #131516;
    --divider-color: #0A585C;
    --emphasis-color: #864677;
    --highlight-color: #864677CC;
    --emphasis-alt-color: #DCD9D0;
  }

  .portfolio-item img {
    filter: brightness(0.8)
  }
}