html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: none;
  color: #000;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* background animation canvas */
canvas#bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* perfect centering on large screens */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;              /* no scroll on desktop */
  text-align: left;
  background: none;
}

/* text container */
main {
  width: clamp(60%, 70vw, 680px);
  font-weight: 400;
  line-height: 1.55;
  font-size: min(2vh, 2.1vw);
  box-sizing: border-box;
}

/* scroll & top-align for small screens */
@media (max-height: 750px) {
  body {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 6vh;
    -webkit-overflow-scrolling: touch;
  }
}

p { margin: 0 0 1.2em 0; }
strong { font-weight: 600; }

/* Headline styling (from 404 aesthetic) */
h1 {
  font-weight: 200;                  /* ultra-thin */
  font-size: min(8vh, 8vw);
  margin: 0 0 0.4em 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-weight: 300;
  font-size: min(3.5vh, 3.5vw);
  margin: 0 0 1.5em 0;
  color: #333;
  line-height: 1.3;
}

/* --- Link styling (restored from 404 page) --- */
a,
a:visited,
a:active {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.25s ease, text-underline-offset 0.25s ease;
}

a:hover {
  opacity: 1;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 2px 0 currentColor;
}

.investor-link {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
}

.investor-link:hover {
  color: #000;
  opacity: 1;
}

/* --- End link styling --- */

@media (max-width: 600px) {
  main {
    width: 88%;
    font-size: min(2.3vh, 4.2vw);
    line-height: 1.6;
  }
  .investor-link {
    position: static;
    display: block;
    margin: 2rem auto 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
  }
}

@media print {
  body { display: block; height: auto; overflow: visible; }
  main { margin: 10vh auto; font-size: 16px; }
  a { text-decoration: none; opacity: 1; }
}
