
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&display=swap');

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; 
  -webkit-user-drag: none; 
  -webkit-touch-callout: none;
  font-family: var(--font-text);
}

body {
  margin: 0 var(--site-side-spacing-left-right);
  background-color: rgb(1, 0, 15);
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.site {
  position: relative;
  min-height: 100dvh;
  /* Extra scroll space so last elements can move further into view */
  padding-bottom: clamp(80px, 12vh, 160px);
}

/* Bottom fade for home page content (footer remains visible above) */
.site--fade::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 12vh, 160px);
  pointer-events: none;
  z-index: 8887; /* one below footer (8888) */
  /* Fade from transparent (content visible) to background at the bottom */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(1,0,15,0.6) 50%, rgba(1,0,15,0.95) 100%);
}

/* (Reverted) Fade remains active on phones; adjust only if needed via class toggle */


.logo {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, var(--teal-500), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 96px);
}

.content {
  --content-left: clamp(16px, 3vw, 36px);
  --content-right: clamp(16px, 3vw, 36px);
  padding: 24px var(--content-right) 24px var(--content-left); 
  display: grid;
  grid-template-columns: 1fr; 
  align-items: start;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: var(--content-left, clamp(16px, 3vw, 36px));
  padding-right: var(--content-right, clamp(16px, 3vw, 36px));
}


.content > .container {
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  grid-column: 1 / -1;
  padding-left: calc(var(--left-rail) + var(--content-left, clamp(16px, 3vw, 36px)));
}

/* Project detail container: never exceed 95% viewport width */
.project.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 95vw;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(12px, 3vw, 24px);
}

/* Project detail layout tightening */
.project-detail { gap: clamp(12px, 2vw, 20px); }

/* Screenshot grid squeezes responsively */
.project-detail__shots .shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(8px, 2vw, 14px);
}
.project-detail__shots .shot { margin: 0; }
.project-detail__shots .shot img {
  display: block;
  width: 100%;
  height: auto;        /* shrink/squeeze images without overflow */
}