/* Tyle Labs. White, black, one blue. The swarm behind is swarm.js. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #2457f0;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; background: var(--bg); overflow: hidden; }

#swarm {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}
.wordmark, .meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meta { color: var(--muted); font-weight: 500; }
/* A soft white halo so the small type reads over the swarm. */
.wordmark, .meta {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 0 16px 12px var(--bg);
  border-radius: 2px;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 0;
}
.hero {
  text-align: center;
  padding: 1rem 1.5rem;
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 8.6vw, 9rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.sub {
  margin: 1.4rem auto 0;
  max-width: 30rem;
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -.005em;
  text-wrap: pretty;
}

@media (max-width: 520px) {
  footer { flex-direction: column; align-items: flex-start; gap: .4rem; }
  h1 { font-size: 13vw; }
}
