/* logspace.app: one narrow column, dark like the LogSpace demo. Two heading sizes, and two for
   body text: 1rem, and 0.875rem for notes, code, and the footer. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-600.woff2") format("woff2");
}

:root {
  --bg: #161616;
  --text: #e6e6e6;
  --muted: #a1a1a1;
  --faint: #2e2e2e;
  --surface: #1e1e1e;
  --link: #5fb3f0;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --small: 0.875rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

h1 {
  margin: 0 0 0.3em;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 0.5em;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p,
ul,
figure {
  margin: 0 0 1.1em;
}
ul {
  padding-left: 1.3em;
}
li {
  margin: 0.4em 0;
}
li::marker {
  color: var(--muted);
}
strong {
  font-weight: 600;
}
code,
pre {
  font-family: var(--mono);
  font-size: var(--small);
}

/* Header and footer */

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em 1.5em;
  margin-bottom: 3.5rem;
}
/* The wordmark's baseline is 78.9% of the way down. Let the descenders hang below the
   link's box, so the link's bottom edge is that baseline and it lines up with the nav. */
header.site .name svg {
  display: block;
  height: 1.29rem;
  width: auto;
  margin-bottom: -0.27rem;
}
header.site nav {
  display: flex;
  gap: 1.25em;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
}
header.site nav a:hover {
  color: var(--text);
}

footer.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25em 1.5em;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: var(--small);
}

/* Landing page */

.lede,
.note,
figcaption {
  color: var(--muted);
}
.lede {
  margin-bottom: 2.5rem;
}
.note,
figcaption {
  font-size: var(--small);
}

.command {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.8em;
  padding: 0.7em 0.7em 0.7em 1em;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 6px;
}
.command pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
}
.command button {
  flex: none;
  padding: 0.2em 0.7em;
  font: inherit;
  font-size: var(--small);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--faint);
  border-radius: 4px;
  cursor: pointer;
}
.command button:hover {
  color: var(--text);
  border-color: var(--muted);
}

.demo {
  margin: 3rem 0;
}
.demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 816;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 8px;
}
figcaption {
  margin-top: 0.65rem;
  text-align: center;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  display: block;
  padding: 0.5rem;
}
[hidden] {
  display: none !important;
}

@media (max-width: 30rem) {
  html {
    font-size: 16px;
  }
  header.site {
    column-gap: 1em;
    margin-bottom: 2.5rem;
  }
  header.site nav {
    gap: 1em;
  }
}
