* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 2em;
  position: relative;
  background: #ffffff;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  text-align: justify;
}

.page {
  position: relative;
  min-height: 2200px;
}

.project-title {
  margin-top: 48px;
  margin-left: 24px;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: -0.02em;
}

.project-meta {
  margin-left: 24px;
  padding: 0;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 0.7;
  letter-spacing: 0.01em;
}

.index-instructions {
  margin-left: 24px;
  padding: 24px;
  color: #072aec;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 0.7;
  letter-spacing: 0.01em;
  margin-bottom: 0px;

}

.back-link {
  display: inline-block;
  margin-bottom: 0;
  color: #072aec;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.layout-button {
  display: none;
  appearance: none;
  border: 1px solid #072aec;
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  background: #ffffff;
  color: #072aec;
  font: 12px/1 "Courier New", monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.composition {
  position: relative;
}

.image-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.expandable-menu {
  margin-left: 24px;
  padding: 12px;
  margin-bottom: 10px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #072aec;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 0.7;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
}

.toggle-content {
  color: #072aec;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.4; 
  letter-spacing: 0.01em;
  padding-left: 18px;
  padding-top: 12px;
  display: none;
}

.toggle-content.active {
  display: block;
}

.draggable {
  position: absolute;
  z-index: 10;
  max-width: calc(100vw - 4rem);
  height: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0);
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, transform 0.1s ease;
  pointer-events: auto;
}

.draggable.is-dragging {
  z-index: 100;
  cursor: grabbing;
  transition: none;
}

.tender-text {
  position: relative;
  z-index: 1;
  margin: 0;
}

.sentence {
  transition: color 140ms ease;
}

.layout-sentence {
  cursor: pointer;
}

#mobile-error {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
  .layout-sentence:hover,
  .layout-sentence:focus-visible,
  .layout-sentence.is-discovered {
    color: #072aec;
    outline: none;
  }
}

@media (max-width: 760px) {
  body {
    padding: 36px;
    text-align: left;
  }

  .page {
    min-height: 0;
  }

  .project-title,
  .project-meta {
    margin-left: 32px;
  }

  .project-title {
    margin-top: 48px;
  }

  .project-meta {
    line-height: 1.15;
    font-size: 12px;
  }
}



@media (max-width:760px){

  .index-instructions,
  .layout-button,
  .composition{
    display:none !important;
  }

  #mobile-error{
    display:block;
    text-align:center;
    padding:4rem 1.5rem 6rem;
  }

  #mobile-error h2{
    margin:0 0 .75rem;
    font-family:"Times New Roman", serif;
    font-weight:400;
    font-style: italic;
    font-size:20px;
    color: #072aec ;
  }

  #mobile-error p{
    margin:0;
    line-height:1.5;
    font-family:"Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
  }
}
