/* The commercial site. Hand-written HTML on its own static hosting project, because the
   only thing it shares with the editor is a look — and the editor's build is 900 files of
   React to serve four paragraphs.

   The palette and the two faces are copied from the app's globals.css rather than imported:
   a second origin cannot read the first one's stylesheet, and a font served cross-origin
   needs CORS the app does not set. Three faces instead of six — this site has one heading
   and some running text. */

@font-face {
  font-family: "Unigeo64";
  src: url("/fonts/Unigeo64-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Unigeo32";
  src: url("/fonts/Unigeo32-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Unigeo32";
  src: url("/fonts/Unigeo32-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.75 0 0);
  --primary: oklch(0.623 0.214 259.815);
  --primary-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 12%);
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Unigeo32", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

/* The wordmark is a one-colour drawing, so it is a stencil rather than a picture: the file
   masks the current ink. As an <img> it would come out in the black it was saved in, on a
   black page. A mask has no intrinsic size, so the element carries the drawing's own
   proportions instead. */
.mark {
  display: block;
  height: 1.5rem;
  aspect-ratio: 1002 / 388;
  background-color: currentColor;
  -webkit-mask: url("/logo-flum.svg") no-repeat center / contain;
  mask: url("/logo-flum.svg") no-repeat center / contain;
}

header a .mark {
  height: 1.75rem;
}

/* The brand as text, for readers that cannot see a drawing: a screen reader, and Google's
   brand check, which compares the name on the consent screen against the name on this page
   and finds a masked <span> says nothing. Off-screen rather than `display: none`, which
   would take it out of the accessibility tree along with the pixels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quiet {
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.quiet:hover {
  color: var(--foreground);
}

.cta {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}

.cta:hover {
  opacity: 0.9;
}

.cta.big {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

main.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem 6rem;
  text-align: center;
}

h1 {
  font-family: "Unigeo64", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  max-width: 42rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.hero p {
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0;
  text-wrap: pretty;
}

/* Said before the headline rather than after it: somebody who cannot have an account today
   should learn that in the first line they read, not after being sold. */
.eyebrow {
  margin: 0 !important;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.note {
  margin-top: 0.5rem !important;
  font-size: 0.875rem;
}

.note a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The measure is the point: a policy set the full width of a monitor is a policy written
   to be scrolled past rather than read. */
main.doc {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main.doc h1 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

main.doc h2 {
  font-family: "Unigeo32", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
}

main.doc p,
main.doc li {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

main.doc p {
  margin: 0 0 1rem;
}

main.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

main.doc li {
  margin-bottom: 0.5rem;
}

main.doc strong {
  color: var(--foreground);
  font-weight: 500;
}

main.doc a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.updated {
  font-size: 0.75rem;
  margin-bottom: 2.5rem !important;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

footer a {
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--foreground);
}
