/* DarkProof site: shared tokens, text styles and the parts every page uses. Black and white, one typeface (Geist,
   served from this site), no outside requests. Sizes, spacing and radii come only from the scales below. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --mono: "Geist Mono", ui-monospace, monospace;
  --soft: #D1D1D1;
  --rule: #595A5A;
  /* Surfaces */
  --bg: #000000;
  --s1: #181818;
  --s2: #1F1F1F;
  --s3: #272727;
  --s4: #313131;
  /* Text */
  --fg: #FFFFFF;
  --dim: #A3A3A3;
  --faint: #8A8A8A;
  --decor: #616161;
  /* Color only means something: green = safe or connected, red = help. */
  --safe: #33D64A;
  --help: #FF453B;
  /* Spacing */
  --sp-25: 2px; --sp-50: 4px; --sp-75: 8px; --sp-100: 12px; --sp-200: 16px; --sp-300: 24px;
  --sp-400: 32px; --sp-500: 40px; --sp-600: 48px; --sp-700: 64px; --sp-800: 80px; --sp-900: 96px;
  /* Radius */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-4xl: 32px; --r-full: 9999px;
  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--sp-900); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: var(--r-md); }

/* Text styles */
.heading-1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
@media (min-width: 768px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 48px; line-height: 48px; }
  .heading-3 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1180px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
}
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.dim { color: var(--dim); }

/* Equipment labels: small mono capitals, as on an instrument panel */
.label { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 400; text-transform: uppercase; color: var(--dim); }
/* Dot matrix lettering: ordinary letters seen through a grid of dots */
.dots {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  -webkit-mask-image: radial-gradient(circle, #000 var(--dot, 1.1px), transparent calc(var(--dot, 1.1px) + 0.3px));
  mask-image: radial-gradient(circle, #000 var(--dot, 1.1px), transparent calc(var(--dot, 1.1px) + 0.3px));
  -webkit-mask-size: var(--pitch, 3px) var(--pitch, 3px); mask-size: var(--pitch, 3px) var(--pitch, 3px);
}
/* Actions: compact rectangles with mono capitals */
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75); height: 40px; padding: var(--sp-100) var(--sp-200);
  border: 0; border-radius: 4px; background: var(--s4); color: var(--fg); text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.act:hover { background: var(--rule); }
.act:active { transform: scale(0.98); }
.act .ic { width: 16px; height: 16px; }
.act-light { background: var(--fg); color: #000; }
.act-light:hover { background: var(--soft); }
.act-sm { height: 32px; padding: var(--sp-75) var(--sp-100); }
.link { display: inline-flex; align-items: center; gap: var(--sp-75); font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--soft); text-underline-offset: 4px; transition: color 300ms var(--ease); }
.link:hover { color: var(--fg); }
.link .ic { width: 12px; height: 12px; }

/* Icons (Phosphor, inlined in the page) */
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100); border: 0; border-radius: var(--r-full);
  background: var(--s2); color: var(--fg); text-decoration: none; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 600;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { background: var(--s4); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #D9D9D9; }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.btn[aria-disabled="true"]:hover { background: var(--s2); }
.btn[aria-disabled="true"]:active { transform: none; }

.skip {
  position: absolute; left: var(--sp-200); top: var(--sp-200); z-index: 100; padding: var(--sp-75) var(--sp-100);
  background: var(--fg); color: #000; border-radius: var(--r-lg); font-weight: 600; text-decoration: none;
  transform: translateY(-96px); transition: transform 500ms var(--ease);
}
.skip:focus { transform: none; }

/* Footer, shared */
.foot { color: var(--dim); }
.foot a { color: var(--dim); text-underline-offset: 4px; transition: color 300ms var(--ease); }
.foot a:hover { color: var(--fg); }

/* The simpler pages: privacy policy, invite page, not found */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-200); }
.wrap a { text-underline-offset: 4px; }
header.site { display: flex; align-items: center; gap: var(--sp-100); padding: var(--sp-300) 0; }
header.site img { width: 32px; height: 32px; }
header.site a { font-size: 18px; line-height: 28px; font-weight: 600; text-decoration: none; }
.wrap h1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; margin: var(--sp-400) 0 var(--sp-200); }
.wrap h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: var(--sp-500) 0 var(--sp-100); }
.wrap h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin: var(--sp-300) 0 var(--sp-75); }
.wrap p, .wrap ul, .wrap ol { margin: var(--sp-200) 0; }
.wrap ul, .wrap ol { padding-left: var(--sp-300); }
.wrap li { margin: var(--sp-75) 0; }
.wrap .lead { font-size: 18px; line-height: 28px; color: var(--dim); }
.buttons { display: flex; flex-wrap: wrap; gap: var(--sp-100); margin: var(--sp-300) 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; padding: var(--sp-75) var(--sp-100);
  border: 0; border-radius: var(--r-full); background: var(--s2); color: var(--fg); cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.button:hover { background: var(--s4); }
.button:active { transform: scale(0.98); }
.button.primary { background: var(--fg); color: #000; }
.button.primary:hover { background: #D9D9D9; }
.wrap .soon { display: flex; flex-wrap: wrap; gap: var(--sp-100); padding: 0; margin: var(--sp-300) 0; list-style: none; }
.wrap .soon li { margin: 0; padding: var(--sp-75) var(--sp-200); border-radius: var(--r-full); background: var(--s1); color: var(--dim); font-size: 14px; line-height: 20px; font-weight: 500; }
.note, .invite { background: var(--s1); border-radius: var(--r-3xl); padding: var(--sp-300); margin: var(--sp-300) 0; }
.note { color: var(--dim); }
.invite h1 { margin-top: 0; overflow-wrap: anywhere; }
.invite p:last-child { margin-bottom: 0; }
footer.site { margin-top: var(--sp-700); padding: var(--sp-300) 0 var(--sp-600); color: var(--dim); font-size: 14px; line-height: 20px; }
footer.site a { color: var(--dim); }
footer.site nav { display: flex; flex-wrap: wrap; gap: var(--sp-300); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .button, .skip, .act { transition: opacity 300ms var(--ease), background-color 300ms var(--ease); }
  .btn:active, .button:active, .act:active { transform: none; }
}

/* ---- After the review: designed hover, a fade between pages, one look for every page ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.act { box-shadow: inset 0 0 0 1px transparent; transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease); }
.act-light:hover { background: #000; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.act .ic, .link .ic { transition: transform 500ms var(--ease); }
.act:hover .ic, .link:hover .ic { transform: translateX(4px); }
.act:hover .ic:has(use[href$="arrow-down-bold"]) { transform: translateY(4px); }
.act:hover .ic:has(use[href$="arrow-up-bold"]) { transform: translateY(-4px); }
.act:hover .ic:has(use[href$="arrow-counter-clockwise-bold"]) { transform: rotate(-90deg); }
.link { min-height: 44px; }
.link:hover { text-decoration-style: dotted; }

/* Privacy, invite and not-found pages: the home page's black ground, dot lattice, labels and actions */
body:not(.home) { background-color: #000; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.5px); background-size: 96px 96px; background-position: 24px 24px; }
header.site {
  position: sticky; top: var(--sp-75); z-index: 5; justify-content: space-between; margin: var(--sp-75) 0 var(--sp-400);
  padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-200); border-radius: var(--r-lg); background: rgba(36, 36, 36, 0.92);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
}
header.site img { display: none; }
header.site a.home { --dot: 1px; --pitch: 3px; transition: opacity 300ms var(--ease); }
header.site a.home:hover { opacity: 0.7; }
header.site a.act { font-size: 12px; line-height: 16px; font-weight: 500; }
.wrap .label { margin: 0 0 var(--sp-100); }
.button {
  height: 40px; padding: var(--sp-100) var(--sp-200); border-radius: 4px; background: var(--s4);
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 1px transparent; transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.button:hover { background: var(--rule); }
.button.primary:hover { background: #000; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.note, .invite { border-radius: var(--r-lg); }
.wrap .soon li { border-radius: var(--r-md); font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; }
.wrap code { padding: var(--sp-25) var(--sp-50); border-radius: 4px; background: var(--s2); font-family: var(--mono); font-size: 14px; }
.wrap main a { transition: color 300ms var(--ease); }
.wrap main a:hover { text-decoration-style: dotted; }
.wrap h1, .wrap h2, .wrap h3, .wrap a { scroll-margin-top: var(--sp-900); }
footer.site { font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; }
footer.site nav { gap: 0 var(--sp-300); }
/* A long document reads on a clean ground: the lattice stays in the margins */
.wrap main.doc { background: #000; box-shadow: 0 0 0 var(--sp-200) #000; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; transition: color 300ms var(--ease); }
footer.site a:hover { color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .act .ic, .link .ic { transition: none; }
}
