@import url(./colors.css);
@import url(./utils.css);

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  background: var(--ctp-base);
  font-family: JetBrainsMono, monospace;
}

*::selection {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: underline;
}

.main {
  width: 100vw;
  max-width: 850px;

  margin-left: auto;
  margin-right: auto;

  font-size: 17px;
  padding: 0.5em;
  padding-top: 3em;

  color: var(--ctp-text);
}

.center {
  text-align: center;
}

.break {
  margin-bottom: 2em;
}

.break-sm {
  margin-bottom: 1em;
}

.break-lg {
  margin-bottom: 25vh;
}

a {
  text-decoration: none;
  color: currentColor;
}

a:hover {
  text-decoration: underline;
}

.image-project,
.image-project-wrapper {
  max-width: 100%;
  position: relative;
  display: block;
  image-rendering: pixelated;
  
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.image-project-wrapper {
  border: 1px solid color-mix(in srgb, var(--ctp-sapphire) 25%, transparent);;
}

.image-project-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 3px,
    rgba(0, 0, 0, 0.5) 4px
  );
  pointer-events: none;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.block {
  display: block;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.expand {
  flex: 1;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1em;
}

.section {
  display: flex;
  flex-direction: column;
}
