:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', 'IBM Plex Sans', 'Roboto Mono', monospace;
  font-size: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 64px) clamp(16px, 4vw, 32px);
  background: #000000 url('assets/background.png') center center / cover no-repeat;
  background-attachment: fixed;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  letter-spacing: 0.04em;
  position: relative;
}

.shell {
  width: min(680px, 92vw);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  width: 100%;
}

.logo {
  width: clamp(180px, 35vw, 280px);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
  display: block;
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.statement {
  margin: 0;
  padding: 0;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.75;
  font-weight: 400;
  width: min(60ch, 100%);
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  letter-spacing: 0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.typing-cursor {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  animation: blink 1.2s infinite;
  margin-left: 3px;
  font-weight: 300;
}

@keyframes blink {
  0%, 45% {
    opacity: 0.5;
  }
  46%, 100% {
    opacity: 0.1;
  }
}

.statement {
  margin: 0;
  padding: 0;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.75;
  font-weight: 400;
  max-width: min(52ch, 100%);
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  letter-spacing: 0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 1.1rem;
  margin-inline: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: border-color 180ms ease, color 180ms ease,
    background-color 180ms ease;
}

.email-button:hover,
.email-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: #111;
  background-color: rgba(255, 255, 255, 0.85);
}

.reach-out-link {
  text-decoration: none;
  color: #7B68EE;
  display: inline;
  white-space: nowrap;
  transition: color 150ms ease, opacity 150ms ease;
}

.reach-out-link strong {
  font-weight: 600;
  text-decoration: underline;
  color: #7B68EE;
}

.reach-out-link:hover,
.reach-out-link:focus-visible {
  color: #8B7FFF;
  opacity: 0.9;
}

.reach-out-link:hover strong,
.reach-out-link:focus-visible strong {
  color: #8B7FFF;
}

.credibility-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.credibility-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
}

.credibility-logo {
  height: clamp(36px, 6vw, 54px);
  width: auto;
  opacity: 0;
  transition: opacity 2000ms ease;
}

.credibility-logo.berkeley-logo {
  height: clamp(43px, 7.2vw, 65px);
}

.credibility-logo.fade-in {
  opacity: 0.85;
}

.credibility-logo:hover {
  opacity: 1;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: clamp(24px, 4vw, 48px);
}

.email-address {
  text-align: center;
  font-size: clamp(0.6875rem, 2vw, 0.8125rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  margin-bottom: clamp(8px, 1.5vw, 14px);
  font-weight: 400;
  word-break: break-word;
}

.site-foot {
  text-align: center;
  font-size: clamp(0.5625rem, 1.5vw, 0.6875rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-weight: 400;
}

/* Mobile and small screen optimizations */
@media (max-width: 480px) {
  body {
    padding: clamp(16px, 3vw, 24px) clamp(12px, 3vw, 20px);
    background-attachment: scroll;
  }

  .shell {
    width: 100%;
  }

  .statement {
    font-size: clamp(0.8125rem, 4vw, 0.9375rem);
    line-height: 1.7;
  }

  .reach-out-link {
    display: inline-block;
    padding: 4px 8px;
    margin: -4px -8px;
  }

  .credibility-logos {
    gap: clamp(16px, 4vw, 32px);
  }

  .credibility-logo {
    height: clamp(30px, 5.25vw, 42px);
  }

  .credibility-logo.berkeley-logo {
    height: clamp(36px, 6.3vw, 50px);
  }
}

/* Tablet optimizations */
@media (min-width: 481px) and (max-width: 768px) {
  .shell {
    width: min(600px, 90vw);
  }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
  .shell {
    width: 680px;
  }
}

