* {
  box-sizing: border-box;
}

@font-face {
  font-family: "IBM Plex Mono";
  src:
    url("assets/IBMPlexMono-Regular.woff2") format("woff2"),
    url("assets/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
}

.layout {
  height: 100vh;
}

.image-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 60vw;
  height: 100vh;
  background-color: #132235;
}

.image-panel picture,
.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
}

.image-panel img {
  object-fit: cover;
  object-position: center;
}

.content-panel {
  margin-left: 60vw;
  width: 40vw;
  height: 100vh;
  overflow-y: auto;
  padding: 3rem 2rem 1rem;
}

.content-inner {
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.title-row {
  display: block;
}

.project-image {
  display: block;
  width: 70%;
  max-width: 520px;
  height: auto;
  margin: 1.5rem auto 1.5rem 0;
  cursor: zoom-in;
}

.image-preview {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}

.image-preview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-preview-content {
  width: min(92vw, 980px);
  max-height: 90vh;
}

.image-preview-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
}

li {
  list-style: square;
  margin-bottom: 1.25rem;
}

b {
  color: #2f5669;
  text-decoration: underline;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    text-decoration 180ms ease;
}

b:hover {
  color: black;
  text-decoration: underline wavy;
  background-color: #91a9b6;
}

h1 {
  margin-top: 0;
}

.ascii-art {
  white-space: pre;
  line-height: 1.1;
  overflow-x: auto;
}

.ascii-char {
  border-radius: 0.2rem;
  transition: background-color 280ms ease 1000ms;
}

.ascii-char:hover {
  transition: background-color 10ms linear 0ms;
  background-color: var(--ascii-hover-color, #f8d7da);
}

a {
  color: #2f5669;
  text-decoration: underline;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    text-decoration 180ms ease;
}

a:hover {
  color: black;
  text-decoration: underline wavy;
  background-color: #91a9b6;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .layout {
    height: auto;
  }

  .image-panel {
    position: relative;
    width: 100%;
    height: 40vh;
    z-index: 1;
  }

  .content-panel {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 1.25rem 1rem;
  }

  .title-row {
    display: block;
  }

  .title-row h1 {
    margin-top: 0;
  }
}
