@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #40394f;
  --muted: #655d73;
  color: var(--ink);
  background: #e8dff1;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }

main {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: 32px;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #d2c1e5);
}

.genome-background {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 61.8%;
  width: clamp(550px, 62vw, 960px);
  aspect-ratio: 600 / 560;
  transform: translate(-50%, -50%);
  background: url("./genome.svg") center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
}

.intro { width: min(960px, 68%); margin-left: 20%; }

h1 {
  width: fit-content;
  margin: 0 0 16px;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -2px;
  color: #6d5bb2;
  background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

p { margin: 0; }
.tagline { color: #51485e; font-size: 22px; line-height: 1.5; }
.description { margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 28px;
  padding: 13px 20px;
  border-radius: 7px;
  background: #7052a3;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.app-link:hover { background: #60438f; }
.app-link span { font-size: 21px; line-height: 1; }
.contact { justify-self: center; padding-inline: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.contact a { color: #655184; text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #7052a3; outline-offset: 5px; }
::selection { background: #d4c6e9; color: #374151; }

@media (max-width: 700px) {
  main { padding: 36px 0 max(20px, env(safe-area-inset-bottom)); }
  .intro { width: 80%; margin-left: 10%; }
  h1 { font-size: 46px; letter-spacing: -1.6px; margin-bottom: 14px; }
  .tagline { font-size: 20px; }
  .description { margin-top: 23px; }
  .genome-background { left: 70%; width: 660px; opacity: .14; }
}

@media (max-width: 360px) {
  main { padding-top: 24px; }
  h1 { font-size: 42px; }
  .tagline { font-size: 19px; }
  .description { font-size: 15px; }
  .contact { font-size: 13px; }
}

@media (max-height: 500px) and (min-width: 701px) {
  main { padding: 24px 0 max(16px, env(safe-area-inset-bottom)); }
  h1 { font-size: 43px; margin-bottom: 8px; }
  .tagline { font-size: 21px; }
  .description { margin-top: 16px; font-size: 15px; }
  .app-link { margin-top: 18px; padding-block: 10px; }
}
