/* The paper look every page shares: ink on paper, with one red thread for the agent's trace. home.css and pages.css
   add to it. */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1ebdf;
  --sheet: #fbf8f2;
  --ink: #1c1a16;
  --ink-2: #5d574c;
  --ink-3: #8a8378;
  --rule: #d5ccba;
  --thread: #c4381f;
  --thread-soft: #c4381f1f;
  --wash: #e9e2d4;
  --rule-strong: #b3a891;
  --ok: #3d7a4f;
  --code-ink: #fcfcfa;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ui: 'Geist', system-ui, sans-serif;
  --margin: 9rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-weight: 350;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.125rem);
}

h1 em,
h2 em {
  color: var(--thread);
}

a {
  color: inherit;
}

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

code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.page,
.container {
  width: min(66rem, 100% - 3rem);
  margin-inline: auto;
}

.kicker {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.lead a,
.text-link {
  color: var(--ink);
  text-decoration-color: var(--thread);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

.lead a {
  white-space: nowrap;
}

.lead code {
  color: var(--ink);
}

.faint {
  color: var(--ink-3);
}

.bad {
  color: var(--thread);
}

section[id] {
  scroll-margin-top: 4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.button:hover {
  background: var(--thread);
}

.button.outline {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
  color: var(--ink);
}

.button.outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.button.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-family: var(--ui);
  font-size: 0.9375rem;
}

/* Masthead */

.masthead {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.masthead .page {
  display: flex;
  height: 3.75rem;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark img {
  width: 1.375rem;
  height: 1.375rem;
  /* Newsreader's capitals sit above the middle of its line, so the mark moves up to meet them. */
  translate: 0 -0.15em;
}

.masthead nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.masthead nav a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] {
  color: var(--ink);
}

.masthead nav .button,
.masthead nav .button:hover {
  color: var(--paper);
  font-family: var(--ui);
}

.masthead .sign-in {
  margin-left: auto;
}

/* Product opens a menu of the feature pages on hover or focus, without script. */
.menu {
  position: relative;
}

.menu-panel {
  position: absolute;
  top: 100%;
  left: -1rem;
  display: none;
  padding-top: 1.25rem;
}

.menu:hover .menu-panel,
.menu:focus-within .menu-panel {
  display: block;
}

.menu-panel > div {
  display: grid;
  width: 34rem;
  padding: 0.5rem;
  border: 1px solid var(--ink);
  background: var(--sheet);
  box-shadow: 6px 6px 0 var(--ink);
  grid-template-columns: 1fr 1fr;
}

.masthead .menu-panel a {
  display: grid;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  line-height: 1.35;
  white-space: normal;
}

.masthead .menu-panel a:hover {
  background: var(--paper);
}

.menu-panel strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 450;
}

.menu-panel span {
  color: var(--ink-3);
}

/* On a phone every link but Start free moves into Menu, a <details> so it needs no script. */
.mobile-menu {
  display: none;
}

.mobile-menu summary {
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--thread);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}

.mobile-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  max-height: calc(100dvh - 3.75rem);
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--ink);
  background: var(--sheet);
  box-shadow: 0 1.5rem 3rem -1.5rem #3b2a1659;
  overflow-y: auto;
  grid-template-columns: 1fr 1fr;
}

.mobile-menu-panel p {
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.6875rem;
  grid-column: 1 / -1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu-panel a ~ p {
  margin-top: 1.25rem;
}

.masthead .mobile-menu-panel a {
  padding-block: 0.5rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.masthead .mobile-menu-panel a[aria-current='page'] {
  color: var(--thread);
}

@media (max-width: 44rem) {
  .masthead .page {
    gap: 1rem;
  }

  .masthead nav {
    justify-content: flex-end;
    gap: 1.25rem;
  }

  .masthead nav > :not(.button, .mobile-menu) {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

.running-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fine-print {
  margin-top: 1.25rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* Colophon */

.colophon {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
}

.colophon .page {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1.5fr repeat(4, 1fr);
}

.colophon-brand p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-style: italic;
}

.colophon nav {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.colophon h2 {
  margin-bottom: 0.25rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.colophon nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.colophon nav a:hover {
  color: var(--ink);
}

.colophon-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  grid-column: 1 / -1;
}

.colophon-bottom a {
  text-decoration: none;
}

@media (max-width: 52rem) {
  .colophon .page {
    grid-template-columns: repeat(2, 1fr);
  }

  .colophon-brand {
    grid-column: 1 / -1;
  }
}

/* A recording of the real product, in a plain browser window */

.recording {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow:
    0 1px 0 #0000000d,
    0 1.5rem 3rem -1.5rem #3b2a1659;
}

.recording-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}

.recording-bar i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--rule);
}

.recording-bar span {
  margin-left: 0.75rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.recording video {
  display: block;
  width: 100%;
  height: auto;
}

/* Too small to read whole on a phone, so only the messenger shows: the right 420 of the recording's 1280 pixels. */
@media (max-width: 40rem) {
  .recording video {
    aspect-ratio: 420 / 800;
    object-fit: cover;
    object-position: right top;
  }
}
