/* ============================================================
   shared.css
   Shared styles used by all projects (homepage + sketches).
   Projects override colors via their own local stylesheet.
   ============================================================ */

/* Shared fonts — served from /assets/fonts/ */
@font-face {
  font-family: 'GeistMono';
  src: url('/assets/fonts/GeistMono[wght].ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist[wght].ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
}

@font-face {
  font-family: 'GeistPixel';
  src: url('/assets/fonts/GeistPixel-Square.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}


.title-container a {
  color: #FFFFFF;
}


.title-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1002;
}

.title {
  margin-left: 32px;
  margin-top: 24px;
}

.about {
  margin-right: 32px;
  margin-top: 24px;
}

.title-container .title,
.title-container .about {
  position: relative;
  font-family: "GeistPixel", system-ui;
  font-size: 22px;
  font-weight: 400;
}

.title-container .title a,
.title-container .about a {
  text-decoration: none;
}

.title-container .about a:hover {
  text-decoration: underline;
}


.title-container .about-modal {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-width: 89vw;
  font-size: 16px;
  background: white;
  border: 1px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  margin-top: 4px;
  font-family: 'GeistPixel', system-ui;
  font-weight: 400;
  color: #382E35;
}

.about .about-modal,
.about .about-modal a,  .about .about-modal a:hover {
  color: #020202;
  text-shadow: none;
}

.about-modal b {
  font-weight: 600;
}

.about-modal h2 {
  font-family: 'GeistPixel', system-ui;
  color: #020202;
}

.about-modal.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.about-modal .modal-content {
  margin-top: 40px;
  padding: 0 20px 20px 20px;
  position: relative;
}

.about-modal .modal-content p {
  margin: 0 0 8px 0;
}

.about-modal .modal-content h2 {
  margin: 24px 0 8px 0;
  font-size: 16px;
  color: #151515;
}

.about-modal .close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  pointer-events: visible;
  color: #151515;
  line-height: 1;
  z-index: 1003;
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  margin: 0;
  color: #151515;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #151515;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.social-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}


/* Mobile */
@media screen and (max-width: 640px) {
  .title-container .title {
    margin-left: 21px;
    margin-top: 16px;
    font-size: 18px;
  }


  .title-container .about {
    margin-right: 21px;
    margin-top: 16px;
    font-size: 18px;
  }

  .title-container .about-modal {
    font-size: 16px;
  }
}
