* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PPMori', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
  font-size: 16px;
}

/* ==================== DARK MODE ==================== */

body.dark-mode {
  background-color: #000;
  color: #fff;
}

body.dark-mode .moodboard-caption {
  color: #555;
}

body.dark-mode .footer-left p,
body.dark-mode .footer-right a {
  color: #fff;
}

body.dark-mode .footer-line,
body.dark-mode .footer-line-mobile {
  background-color: #fff;
}

body.dark-mode .get-in-text-top,
body.dark-mode .get-in-text-bottom,
body.dark-mode .get-in-text-top-mobile,
body.dark-mode .get-in-text-bottom-mobile {
  color: #fff;
}

/* ==================== LIGHTBOX ==================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  position: fixed;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.7em;
  font-weight: 300;
  color: #aaa;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  padding: 1em;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.lightbox-prev { left: 1.5em; }
.lightbox-next { right: 1.5em; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ==================== INTRO BLOCK ==================== */

.inspo-intro {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  margin: 0 2.5em 2.5em;
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.9em;
  font-weight: 300;
  color: #555;
  line-height: 1.55;
  max-width: 550px;
}

.inspo-intro-label {
  display: block;
  margin-bottom: 0.5em;
  color: black;
  font-weight: normal;
  font-family: 'ABCDiatypeMono', monospace;
}

.inspo-intro p {
  color: black;
  font-family: 'ABCDiatypeMono', monospace;
}

body.dark-mode .inspo-intro {
  border-color: #333;
}

body.dark-mode .inspo-intro-label,
body.dark-mode .inspo-intro p {
  color: #888;
}

/* ==================== MOODBOARD GRID ==================== */

.moodboard {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 20px;
  row-gap: 40px;
  padding: 0 2.5em 4em;
}

.moodboard-item {
  display: flex;
  flex-direction: column;
}

.moodboard-img-wrap {
  height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: zoom-in;
}

.moodboard-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom left;
  display: block;
  transition: opacity 0.2s ease;
}

.moodboard-item:hover .moodboard-img-wrap img {
  opacity: 0.88;
}

.moodboard-caption {
  display: flex;
  flex-direction: column;
  padding: 0.4em 0 0;
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.55em;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.caption-code {
  color: #888;
}

.caption-name {
  color: #888;
}

body.dark-mode .caption-code,
body.dark-mode .caption-name {
  color: #666;
}

/* ==================== LOADING STATE ==================== */

.inspo-note {
  margin-top: 0;
  margin-bottom: 0;
}

.moodboard-loading {
  padding: 4em 2.5em;
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.75em;
  font-weight: 300;
  color: #bbb;
  letter-spacing: 0.06em;
}

.moodboard-loading span::after {
  content: '...';
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
}

/* ==================== FOOTER ==================== */

footer {
  position: relative;
  height: 200px;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5em 30px;
}

.interactive-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.footer-left p {
  color: #333;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  font-family: 'ABCDiatypeMono', monospace;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  transition: opacity 0.2s ease;
  font-family: 'ABCDiatypeMono', monospace;
}

.footer-right a:hover {
  opacity: 0.7;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.footer-line {
  width: 500px;
  height: 5px;
  background-color: #333;
  transition: all 0.2s ease;
}

.get-in-text-top,
.get-in-text-bottom {
  font-size: 64px;
  font-weight: normal;
  color: #333;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  line-height: 1;
  font-family: 'PPNeueMontreal', sans-serif;
}

.footer-center:hover .get-in-text-top,
.footer-center:hover .get-in-text-bottom {
  opacity: 1;
}

.footer-center:hover .footer-line {
  width: 520px;
}

.footer-center-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 30px;
  text-decoration: none;
  color: #333;
}

.footer-line-mobile {
  width: 250px;
  height: 3px;
  background-color: #333;
}

.get-in-text-top-mobile,
.get-in-text-bottom-mobile {
  font-size: 40px;
  font-weight: normal;
  color: #333;
  line-height: 1;
  font-family: 'PPNeueMontreal', sans-serif;
}

/* ==================== MOBILE ==================== */

@media (max-width: 1200px) {
  .moodboard {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 1024px) {
  .moodboard {
    grid-template-columns: repeat(6, 1fr);
    padding: 0 1.5em 3em;
  }
}

@media (max-width: 768px) {
  .moodboard {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 12px;
    row-gap: 28px;
    padding: 0 1.5em 2em;;
  }

  .moodboard-img-wrap {
    height: 160px;
  }

  .moodboard-caption {
    font-size: 0.45em;
  }

  footer {
    height: 150px;
  }

  .footer-center {
    display: none !important;
  }

  .footer-center-mobile {
    display: flex !important;
  }

  .inspo-intro {
    margin: 0 1.5em 2.5em;
  }

}

@media (max-width: 480px) {
  .moodboard {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
    row-gap: 20px;
    padding: 0 1.5em 2em;;
  }

  .moodboard-img-wrap {
    height: 120px;
  }

  footer {
    height: auto;
    min-height: 250px;
    padding: 60px 20px 20px;
    display: block;
  }

  .interactive-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    justify-content: center;
    padding-top: 20px;
  }

  .footer-center {
    display: none;
  }

  .footer-center-mobile {
    display: flex;
    order: 1;
    margin-bottom: 40px;
  }

  .footer-left {
    order: 3;
  }

  .footer-right {
    order: 4;
    margin-top: 15px;
    justify-content: center;
    gap: 30px;
  }

  .footer-left p,
  .footer-right a {
    font-size: 12px;
  }
}