@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e4e4e2;
  --paper: #ffffff;
  --surface: #fafaf9;
  --display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --width: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.frame {
  max-width: 82rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font: 600 1.25rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: start;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}

.hero-body {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 1.5rem;
}

.eyebrow {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.button svg {
  flex: none;
  fill: currentColor;
}

.button:hover {
  background: #333333;
}

.button.secondary {
  border-color: #cfcfcc;
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover {
  background: #f5f5f4;
}

/* Download for Mac: the install command on a second line; clicking copies it (copy.js). */
.install {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.5rem 1.25rem;
  border: 1px solid #cfcfcc;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.install:hover {
  background: #f5f5f4;
}

.install svg {
  flex: none;
  fill: currentColor;
}

.install-text {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.install-label {
  font-weight: 500;
}

.install code {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6b6b68;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* The screenshot sits on a ruled sheet and runs off its right edge, so it stays large enough to read */

.shot {
  display: grid;
  margin: 0;
  border-left: 1px solid var(--line);
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3rem 3rem;
  background-position: -1px -1px;
}

.view {
  position: relative;
  min-height: clamp(29rem, 45vw, 39rem);
  overflow: hidden;
}

.view picture {
  position: absolute;
  inset: 2.5rem 0 0 2.5rem;
}

.shot img {
  width: 120%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  border: 1px solid #d9d9d6;
  border-radius: 12px 0 0 0;
  box-shadow: 0 24px 48px -24px rgb(17 17 17 / 0.18);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.facts li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.75rem var(--gutter);
}

.facts li + li {
  border-left: 1px solid var(--line);
}

h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.facts p {
  max-width: 17rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.closing {
  flex: 1;
  display: grid;
  align-content: space-between;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
  overflow: hidden;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3rem 3rem;
  background-position: -1px -1px;
}

.closing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.closing-copy {
  display: grid;
  gap: 0.375rem;
}

.closing h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.closing-copy p {
  color: var(--muted);
  font-size: 1rem;
  text-wrap: pretty;
}

.closing .downloads {
  padding-top: 0;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.75rem, 18vw, 15.5rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: var(--ink);
  transform: translateY(0.08em);
  user-select: none;
}

.site-footer {
  min-height: 4rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  padding-block: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font: 600 1rem/1 var(--display);
}

.not-found {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  min-height: 100vh;
  align-content: center;
}

.not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.install-steps ol {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 82rem) {
  .frame {
    border-inline: 0;
  }
}

@media (max-width: 1100px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts li:nth-child(3) {
    border-left: 0;
  }

  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .split,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .view {
    min-height: 0;
    padding: var(--gutter) var(--gutter) 0;
  }

  .view picture {
    position: static;
  }

  .shot img {
    width: 100%;
    min-height: 0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  .facts li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .downloads,
  .downloads .button,
  .downloads .install {
    width: 100%;
    justify-content: center;
  }
}
