body:has(> .site) {
  margin: 0;
}

.site {
  --ink: #000;
  --paper: #fff;
  --bar: 56px;

  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site a {
  color: inherit;
  text-decoration: none;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar);
  padding: 0 24px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero visualization */

.hero {
  position: relative;
  flex: 1;
  min-height: 480px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-canvas,
.hero-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 520px;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-copy p {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Footer */

.footer {
  padding: 14px 24px;
  font-size: 12px;
  border-top: 1px solid var(--ink);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: 340px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 7px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}

.btn-solid {
  color: var(--paper);
  background: var(--ink);
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .footer {
    padding: 12px 16px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
