
/* =========================================
   Lehmann Labs
   Website Stylesheet
   ========================================= */

/* Base */

:root {
  color-scheme: dark;

  --bg-primary: #17233b;
  --bg-footer: #101a2e;

  --text-primary: #f5f7fc;
  --text-secondary: #9eacc5;

  --accent: #35baf2;
  --accent-light: #60d6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-height: 100vh;
  min-height: 100dvh;

  background: var(--bg-primary);
  color: var(--text-primary);

  font-family:
    Montserrat,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  display: flex;
  flex-direction: column;

  overflow-x: hidden;
}


/* =========================================
   Particle Background
   ========================================= */

#particles {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
  pointer-events: none;
}


/* =========================================
   Main Content
   ========================================= */

main {
  position: relative;
  z-index: 1;

  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 24px;

  text-align: center;
  isolation: isolate;
}

.content {
  width: 100%;
  max-width: 980px;
}


/* =========================================
   Logo
   ========================================= */

.logo {
  display: block;

  width: 100%;
  max-width: 620px;
  height: auto;

  margin: 0 auto 56px;
}


/* =========================================
   Typography
   ========================================= */

h1 {
  margin: 0 0 16px;

  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;

  letter-spacing: -0.035em;
  line-height: 1.2;
}

.subtitle {
  margin: 0 0 40px;

  color: var(--text-secondary);

  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}


/* =========================================
   Link Buttons
   ========================================= */

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 13px 25px;

  border: 1px solid var(--accent);
  border-radius: 40px;

  background: transparent;
  color: var(--accent-light);

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.link-button:hover,
.link-button:focus-visible {
  background: var(--accent);
  color: var(--bg-primary);

  box-shadow:
    0 0 18px rgba(53, 186, 242, 0.2);
}

.link-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}


/* =========================================
   Footer
   ========================================= */

footer {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 16px;

  padding: 28px 32px;

  background: var(--bg-footer);

  border-top:
    1px solid rgba(55, 190, 245, 0.35);

  color: var(--text-secondary);

  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}


/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 768px) {

  .logo {
    max-width: 500px;
    margin-bottom: 48px;
  }

  h1 {
    font-size: clamp(26px, 5vw, 38px);
  }

  .subtitle {
    font-size: 16px;
  }

  footer {
    padding: 24px;
  }
}

@media (max-width: 480px) {

  main {
    padding: 32px 20px;
  }

  .logo {
    max-width: 100%;
    margin-bottom: 40px;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .link-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  footer {
    flex-direction: column;

    justify-content: center;
    text-align: center;

    padding: 22px 16px;
    gap: 8px;
  }
}


/* =========================================
   Accessibility
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .link-button {
    transition: none;
  }
}


/* =========================================
   Link Button Layout
   ========================================= */

.links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
}

.link-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon {
  fill: currentColor;
  stroke: none;
}

.external-mark {
  margin-left: -3px;
  font-size: 0.9em;
  line-height: 1;
}

@media (max-width: 480px) {
  .links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .link-button {
    justify-content: center;
    width: 100%;
  }
}
