/* The landing page and the privacy policy at poleway.so. The colors and the type are the app's
   own, copied from apps/web/src/app.css, as these pages are served without its build. */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

:root {
  color-scheme: light dark;
  --ink: light-dark(#171b20, #eceff2);
  --muted: light-dark(#5f646b, #a1a5ab);
  --line: light-dark(rgb(0 0 0 / 8%), rgb(255 255 255 / 10%));
  --paper: light-dark(#fafcfe, #141619);
  --gutter: clamp(24px, 4vw, 32px);
  scrollbar-gutter: stable;
  overflow-wrap: break-word;
  font:
    93.75%/1.47 -apple-system,
    BlinkMacSystemFont,
    system-ui,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.01em;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

a:active {
  color: var(--muted);
}

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

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--muted);
  }
}

@media (prefers-color-scheme: dark) {
  .mark img {
    filter: invert(1);
  }
}

.page {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    [content-start] min(calc(100% - 2 * var(--gutter)), 68ch, 760px)
    [content-end] minmax(var(--gutter), 1fr);
  row-gap: 32px;
  padding-block: max(32px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-bottom));
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

.page > * {
  grid-column: content;
}

.mark {
  justify-self: start;
}

.prose h1 {
  margin: 0;
  font-size: calc(23rem / 15);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.prose h2 {
  margin: 32px 0 12px;
  font-size: calc(17rem / 15);
}

.prose p,
.prose ul {
  margin: 8px 0 0;
  line-height: 1.7;
}

.prose ul {
  padding-inline-start: 1.25em;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  letter-spacing: 0;
}

.prose .dated {
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
}

.foot a {
  color: inherit;
}
