/* Humboldt design system. One stylesheet for every Humboldt surface: the pages in this repo import it, the
   product server's pages (integrations, connect, sign-in) link it from the Humboldt host, and the docs on
   Mintlify carry the same tokens in docs.json.

   Grounds   paper and ink; the dark theme inverts them (the sun/moon toggle, or the system's preference).
             Dark is also a material: a dark sheet or frame on a paper page carries a film grain.
   Type      Newsreader for everything read (display 400, body 400, one weight for emphasis 500).
             JetBrains Mono for everything that is not prose: labels, buttons, facts, code. Labels and buttons
             are mono, uppercase, letter-spaced.
   Geometry  1px rules in the rule colour; 4px on buttons and chips, 12px on frames; no shadow except the
             frame's; no gradient anywhere.
   Copy      one headline of eight words or fewer and one sentence of thirty or fewer per section; the product
             itself (a thread, a terminal, a row) carries the rest. Titles are the noun alone.
   Motion    the cover rises once on load; sheets stack on scroll; nothing else moves. Reduced motion: nothing.
   Marks     a provider's mark is monochrome, 40px, in the ink; Slack's four colours appear only on the official
             Add to Slack button. */

:root {
  --paper: #fcfbf8;
  --ink: #0b0b0a;
  --ink-2: #5c5852;
  --ink-3: #9a958c;
  --rule: rgba(11, 11, 10, 0.14);
  --rule-2: rgba(11, 11, 10, 0.3);
  --well: rgba(11, 11, 10, 0.06);
  --back: #141311;
  --back-ink: #f1efe9;
  --back-ink-2: #b3ada2;
  --back-ink-3: #78736a;
  --back-rule: rgba(241, 239, 233, 0.16);
  --accent: #22d3ee;
  --grain: 0;
  --sans: var(--font-sans, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--font-serif, "Newsreader"), "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: var(--font-mono, "JetBrains Mono"), "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --bar: 4.5rem;
  --gutter: 1.5rem;
  --width: 84rem;
  --radius: 4px;
  --radius-frame: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #141311; --ink: #f1efe9; --ink-2: #b3ada2; --ink-3: #78736a;
  --rule: rgba(241, 239, 233, 0.16); --rule-2: rgba(241, 239, 233, 0.34); --well: rgba(241, 239, 233, 0.08);
  --back: #fcfbf8; --back-ink: #0b0b0a; --back-ink-2: #5c5852; --back-ink-3: #9a958c; --back-rule: rgba(11, 11, 10, 0.14);
  --grain: 0.09;
  color-scheme: dark;
}

/* ground */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-optical-sizing: auto; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.hum { min-height: 100dvh; display: flex; flex-direction: column; }
.hum a { color: inherit; text-decoration: none; }
.hum a:focus-visible, .hum button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hum .wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.hum code { font-family: var(--mono); font-size: 0.85em; padding: 0.1em 0.4em; border-radius: var(--radius); background: var(--well); color: var(--ink); }

/* the bar: the tile and the word, the pages, the toggle. The same on every surface. */
.hum .bar { height: var(--bar); flex: none; }
.hum .bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hum .brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.hum .brand .tile { width: 1.25rem; height: 1.25rem; border-radius: 3px; background: #0b0b0a; box-shadow: inset 0 0 0 1px var(--rule); color: var(--accent); display: inline-grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; line-height: 1; }
.hum .links { display: flex; align-items: center; gap: 1.6rem; }
.hum .links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); border-bottom: 1px solid transparent; }
.hum .links a:hover, .hum .links a[aria-current="page"] { color: var(--ink); }
.hum .links a[aria-current="page"], .hum .links a:hover { border-bottom-color: var(--ink); }
.hum .theme { appearance: none; border: 0; background: none; padding: 0; margin: 0 -12px 0 0; color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.hum .theme:hover { color: var(--ink); }
/* the menu button: only on the phone, where the pages fold behind it */
.hum .menu { display: none; appearance: none; border: 0; background: none; padding: 0; margin: 0 -12px 0 0; color: var(--ink-2); cursor: pointer; place-items: center; width: 44px; height: 44px; }
.hum .menu:hover { color: var(--ink); }
.hum .menu svg { width: 1.25rem; height: 1.25rem; }
.hum .menu .close { display: none; }
.hum .bar[data-open] .menu .open { display: none; }
.hum .bar[data-open] .menu .close { display: block; }
.hum .theme svg { width: 0.95rem; height: 0.95rem; }
.hum .theme .moon { display: none; }
:root[data-theme="dark"] .hum .theme .sun { display: none; }
:root[data-theme="dark"] .hum .theme .moon { display: block; }

/* type */
.hum .display { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hum .display-2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hum .title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.hum .lede { margin: 0; font-family: var(--sans); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hum .body { margin: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hum .label { margin: 0; font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hum .fact { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hum .fact .when { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* buttons: mono, uppercase, one height. Primary is the ink; quiet is a rule; a link is the words and an arrow. */
.hum .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; height: 2.5rem; padding: 0 1.1rem; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap; cursor: pointer; }
.hum .btn:hover { opacity: 0.88; }
.hum .btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.hum .btn.quiet:hover { opacity: 1; border-color: var(--ink); }
.hum .btn svg { width: 1.1em; height: 1.1em; flex: none; }
.hum .btn .arrow { font-family: var(--serif); font-size: 1.2em; line-height: 0; transform: translateY(-0.05em); }
.hum .link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.hum .link:hover { color: var(--ink); }
.hum .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* a product page: the title, then the rows; a narrow page: one column of words and one button */
.hum main { flex: 1; }
.hum .page { padding-top: clamp(2.5rem, 8vh, 5rem); padding-bottom: clamp(4rem, 10vh, 7rem); display: flex; flex-direction: column; gap: 2.5rem; }
.hum .narrow { max-width: 34rem; padding-top: clamp(2.5rem, 10vh, 7rem); padding-bottom: clamp(4rem, 10vh, 7rem); display: flex; flex-direction: column; gap: 1.1rem; }
.hum .narrow p { margin: 0; font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hum .narrow .btn { align-self: flex-start; }
.hum .muted { color: var(--ink-3); }

/* a list of rows, each with a mark, what it is, and one action. Integrations, and any catalogue after it. */
.hum .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hum .row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.hum .row .mark { width: 2.5rem; height: 2.5rem; color: var(--ink); opacity: 0.9; }
.hum .row .mark svg { width: 100%; height: 100%; display: block; }
.hum .row.soon .mark, .hum .row.soon .name { opacity: 0.4; }
.hum .row .name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.hum .row .what { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding-top: 0.15rem; }
.hum .row .status { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hum .row .status.on { color: var(--ink); }
.hum .row .status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.hum .row .status.on::before { background: currentColor; }
.hum .row .status i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.hum .row .lines { list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.hum .row .lines li { display: flex; justify-content: space-between; gap: 1.5rem; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hum .row .lines .when { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hum .row .act { padding-top: 0.15rem; }

/* sheets and frames: dark is a material. A dark sheet carries the grain; a frame is the product itself. */
.hum .sheet { position: relative; background: var(--paper); color: var(--ink); }
.hum .sheet.dark { --paper: var(--back); --ink: var(--back-ink); --ink-2: var(--back-ink-2); --ink-3: var(--back-ink-3); --rule: var(--back-rule); --rule-2: rgba(241, 239, 233, 0.34); --well: rgba(241, 239, 233, 0.08); --grain: 0.09; }
:root[data-theme="dark"] .hum .sheet.dark { --grain: 0; }
/* the grain: on whichever ground is dark (the token says which), a still film over the whole sheet */
.hum .grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
.hum .grain > * { position: relative; z-index: 1; }
.hum .frame { border-radius: var(--radius-frame); border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18); overflow: hidden; }

/* the foot: one mono row */
.hum .foot { border-top: 1px solid var(--rule); }
.hum .foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); flex-wrap: wrap; }
.hum .foot a:hover { color: var(--ink); }
.hum .foot .row { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0; border: 0; grid-template-columns: none; }

/* the cover rises once */
@media (prefers-reduced-motion: no-preference) {
  .hum .rise > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hum .rise > :nth-child(2) { animation-delay: 0.08s; }
  .hum .rise > :nth-child(3) { animation-delay: 0.16s; }
  .hum .rise > :nth-child(4) { animation-delay: 0.24s; }
  .hum .rise-frame { animation: rise-frame 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hum .links a, .hum .btn, .hum .link, .hum .foot a, .hum .theme { transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-frame { from { opacity: 0; transform: translateY(32px); } }

@media (max-width: 720px) {
  :root { --gutter: 1rem; --bar: 4rem; }
  body { font-size: 17px; }
  /* the bar on the phone: the word at the left, the theme and the menu at the right; the pages fold
     behind the menu and open as a column under the bar, as on metaphi.ai */
  .hum .bar { height: auto; }
  .hum .bar .wrap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 0.25rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .hum .links { display: contents; }
  .hum .links a { display: none; }
  .hum .menu { display: inline-grid; }
  .hum .theme { margin-right: 0; }
  .hum .bar[data-open] .links a { display: flex; grid-column: 1 / -1; order: 1; min-height: 56px; font-size: 1.5rem; border-bottom: 0; }
  .hum .bar[data-open] .links a:first-of-type { margin-top: 1rem; }
  .hum .bar[data-open] .links a:last-of-type { margin-bottom: 0.5rem; }
  .hum .row { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 1rem; row-gap: 1rem; }
  .hum .row .mark { width: 2rem; height: 2rem; }
  .hum .row .act { grid-column: 2; padding-top: 0; }
  .hum .row .lines li { flex-direction: column; gap: 0.1rem; }
}
