:root {
  --ink: #111418;
  --ink-soft: #3c4a52;
  --paper: rgba(255, 255, 255, 0.96);
  --brand: #28a7de;
  --brand-ink: #0b6a92;
  --night: #000;
  --hairline: rgba(17, 20, 24, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The net lives behind everything and never takes pointer input. */
#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 18px 60px -20px rgba(0, 0, 0, 0.55),
              0 2px 6px rgba(0, 0, 0, 0.18);
}

.wordmark {
  display: block;
  width: 168px;
  height: auto;
}

h1 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.6rem, 3.4vw, 2.05rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.lede { color: var(--ink-soft); }

.brand-rule {
  width: 56px;
  height: 3px;
  border: 0;
  margin: 1.75rem 0;
  background: var(--brand);
}

.contact {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.label {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 1.5rem;
  font-size: 15px;
}

/* Legal pages: same sheet, no net, plain white field. */
body.document {
  background: #fff;
  place-items: start center;
}

body.document .card {
  box-shadow: none;
  background: #fff;
}

body.document h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

body.document address {
  font-style: normal;
  margin: 0 0 1rem;
}

@media (max-width: 420px) {
  .wordmark { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
