@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable.ttf');
  font-weight: 100 900;
}

:root {
  --text-color: #000;
}

body {
  margin: 0;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-color);
  /*text-transform: uppercase;*/
  scroll-behavior: smooth;
}

.actual-body {
  width: 60%;
  max-width: 1024px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (width <= 40em) {
  .actual-body {
    width: 85%;
  }
}

.header {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.header .left, .right {
  display: flex;
  gap: 12px;
}

.home {
  color: inherit;
  text-decoration: none;
}

.link {
  color: #333;
}

.separator {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: justify;
  text-align-last: center;
  padding: 64px 0 32px 0;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 64px 0;
  box-sizing: border-box;
  text-align: center;
  /*border: 1px solid #f0f;*/
}

#introduction {
  gap: 8px;
  padding-top: 96px;
}

.image {
  width: 100%;
}

.intro-frame {
  aspect-ratio: 4 / 3;
  min-height: 0;
  display: flex;
  align-items: center;
}

.outro-frame {
  aspect-ratio: 5 / 4;
  min-height: 0;
  display: flex;
  align-items: flex-end;
}

p {
  margin: 0;
}

.separator .text {
  text-align: left;
  text-align-last: left;
}

.images {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* The square frames overflow their 4:3 box; don't let the transparent edges swallow clicks. */
.animation .image {
  pointer-events: none;
}

#introduction span {
  display: block;
}

iframe {
  border: none;
  overflow: hidden;
}

.video {
  aspect-ratio: 16 / 9;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

@media (width <= 40em) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.process {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--text-color);
}

.step {
  padding: 4px 6px;
  border: 1px solid var(--text-color);
}

details.step {
  cursor: pointer;
}

.step summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.step summary::-webkit-details-marker {
  display: none;
}

.step summary::after {
  content: '+';
  font-feature-settings: 'case';
}

.step[open] summary::after {
  content: '-';
}

.step p {
  padding-top: 8px;
}

.project {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  /*border: 1px solid var(--text-color);*/
}

.project .text {
  flex-shrink: 0;
}

.project:hover .title {
  text-decoration: underline;
}

.project:hover .title::after {
  content: ' ->';
  display: inline-block;
  white-space: pre;
}

.project .title {
  text-align: left;
  /*text-transform: uppercase;*/
}

.meta {
  color: #777;
}

.project .description {
  text-align: start;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 2lh;
}

.project .image-layout {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /*border: 1px solid #f0f;*/
}

.project .image-layout img {
  display: block;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-width: 0;
}

.footer {
  width: 100%;
  margin: auto auto 0;
  padding: 32px 0 ;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}