/* Internal emergency pages — base styles layered on the current Scribe landing build. */
body.internal-page {
  min-height: 100svh;
  background-color: #eef0f2;
  background-image: radial-gradient(circle, rgba(100, 116, 139, 0.151) 1px, transparent 1.5px);
  background-size: 14px 14px;
}

.internal-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.internal-nav .nav-logo {
  display: inline-flex;
}

.internal-nav .nav-logo img {
  width: 7.5rem;
  height: auto;
  transform: none;
}

.internal-shell {
  width: min(100%, 1200px);
  min-height: calc(100svh - 8rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.internal-content {
  max-width: 46rem;
}

.internal-kicker {
  margin-bottom: 1.25rem;
  color: var(--base-100);
  font-family: "Instrument Sans";
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.internal-page h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.025em;
}

.internal-intro {
  max-width: 42rem;
  margin-top: 2rem;
  font-family: "Instrument Sans";
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
}

.internal-back {
  display: inline-flex;
  margin-top: 2rem;
  font-family: "Instrument Sans";
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.internal-back:hover {
  color: var(--base-200);
}

.internal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  
  background: var(--base-400);
}

.internal-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.internal-footer {
  width: 100%;
  padding: 1.25rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.internal-footer p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.error-page .internal-page h1,
.error-page h1 {
  max-width: none;
}

@media (max-width: 900px) {
  .internal-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .internal-content {
    max-width: 44rem;
  }

  .internal-page h1 {
    max-width: 12ch;
  }

  .internal-media {
    width: min(100%, 38rem);
    aspect-ratio: 16 / 10;
    
  }
}

@media (max-width: 700px) {
  .internal-nav {
    padding: 1.25rem;
  }

  .internal-nav .nav-logo img {
    width: 5rem;
  }

  .internal-shell {
    padding: 3rem 1.5rem 1.5rem;
    gap: 2.5rem;
  }

  .internal-page h1 {
    font-size: clamp(2.6rem, 15vw, 4.75rem);
  }

  .internal-intro {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .internal-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 0.7rem;
  }
}
