@font-face {
  font-family: 'Font black friday';
  src: url('/assets/fonts/FontBlackFriday-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --ink: #101012;
  --muted: #5a5a60;
  --line: #e4e4e4;
  --accent: #101012;
  --accent-text: #101012;
  --bar-bg: #101012;
  --bar-ink: #ffffff;
  --panel: color-mix(in srgb, var(--accent) 3%, var(--bg));

  --mark-rest: clamp(46px, 15vw, 168px);
  --mark-shrunk: 32px;
  --masthead-pad-rest: 26px;
  --masthead-pad-shrunk: 9px;
  --masthead-rest-height: calc(var(--mark-rest) * .9 + var(--masthead-pad-rest) * 2);
  --masthead-compact-height: calc(var(--mark-shrunk) * .9 + var(--masthead-pad-shrunk) * 2);
  --p: 0;

  --read: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --mark: 'Font black friday', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bar-ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---- masthead ---------------------------------------------------------- */

body[data-compact] {
  --p: 1;
}

.masthead {
  --wordmark-top: calc(var(--masthead-pad-rest) - (var(--masthead-pad-rest) - var(--masthead-pad-shrunk)) * var(--p));

  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: center;
  height: var(--masthead-rest-height);
  padding: var(--wordmark-top) 24px 0;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
}

body[data-compact] .masthead {
  height: var(--masthead-compact-height);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--masthead-compact-height) * var(--p));
  background: var(--bar-bg);
  z-index: 0;
  pointer-events: none;
}

.wordmark {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--mark);
  font-size: calc(var(--mark-rest) - (var(--mark-rest) - var(--mark-shrunk)) * var(--p));
  line-height: .9;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  pointer-events: auto;
}

.wordmark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

.wordmark-hero {
  display: block;
}

.wordmark-bar-clip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: calc(var(--masthead-compact-height) * var(--p));
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.wordmark-bar {
  display: block;
  padding-top: var(--wordmark-top);
  font-family: var(--mark);
  font-size: calc(var(--mark-rest) - (var(--mark-rest) - var(--mark-shrunk)) * var(--p));
  line-height: .9;
  color: var(--bar-ink);
  white-space: nowrap;
}

.masthead-bar-probe {
  position: absolute;
  visibility: hidden;
  width: 0;
  height: var(--masthead-compact-height);
  pointer-events: none;
}

/* ---- reading column ---------------------------------------------------- */

.content {
  flex: 1 0 auto;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-body > p {
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.34;
  letter-spacing: -.011em;
  margin: 60px 0;
  max-width: 30ch;
}

#products {
  margin: 0;
}

.page-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 54px 0 10px;
}

.page-title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 500;
  margin: 0;
}

.page-lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 46ch;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- product blurbs ---------------------------------------------------- */

.blurb {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border-radius: 8px;
  padding: 26px 26px 24px;
  margin: 0 0 14px;
  transition: background .2s linear;
}

.blurb:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.blurb h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.blurb p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 52ch;
}

.blurb .go {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---- prose ------------------------------------------------------------- */

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 2.2em 0 .6em;
  letter-spacing: -.01em;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 1.8em 0 .5em;
  letter-spacing: -.005em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: .4em;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose blockquote {
  margin: 0 0 1.1em;
  padding-left: 1em;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.prose code {
  font-family: var(--mono);
  font-size: .9em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact {
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* ---- product page ------------------------------------------------------ */

.outbound {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 26px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.outbound:hover {
  border-color: var(--accent);
}

/* ---- footer ------------------------------------------------------------ */

footer {
  margin-top: 80px;
  background: var(--surface);
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .masthead {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-body > p {
    margin: 44px 0;
  }

  .blurb {
    padding: 22px 20px 20px;
  }

  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blurb {
    transition: none;
  }
}
