/* cf-orbs site.
   Color has one meaning: amber is an awake orb (and the main action), slate is a paused orb.
   Light by default, dark by system setting. Also used by 404.html (.top, .wrap, .headline, .lede, .actions, .btn, .foot). */

/* Schibsted Grotesk, SIL OFL 1.1 (fonts/OFL.txt). Self-hosted: no request to a third party. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #f2f4f7;
  --bg-alt: #e8ecf1;
  --surface: #ffffff;
  --ink: #15202d;
  --text: #2a3644;
  --muted: #586577;
  --line: #d3dae3;
  --line-strong: #aab5c3;
  --link: #1f55c9;
  --amber: #f0b44c;
  --amber-deep: #c98a1c;
  --amber-ink: #241703;
  --amber-glow: rgba(240, 180, 76, 0.35);
  --slate: #8796a8;
  --best: #7a4d00;
  --code-bg: #15202d;
  --code-text: #e3e9f0;
  --code-dim: #8d9bac;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1720;
    --bg-alt: #131d28;
    --surface: #182330;
    --ink: #f0f3f7;
    --text: #cfd8e2;
    --muted: #93a1b1;
    --line: #283544;
    --line-strong: #3d4d5f;
    --link: #8db4ff;
    --amber-deep: #f0b44c;
    --amber-glow: rgba(240, 180, 76, 0.28);
    --slate: #64758a;
    --best: #f5c56e;
    --code-bg: #0a1017;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1720;
  --bg-alt: #131d28;
  --surface: #182330;
  --ink: #f0f3f7;
  --text: #cfd8e2;
  --muted: #93a1b1;
  --line: #283544;
  --line-strong: #3d4d5f;
  --link: #8db4ff;
  --amber-deep: #f0b44c;
  --amber-glow: rgba(240, 180, 76, 0.28);
  --slate: #64758a;
  --best: #f5c56e;
  --code-bg: #0a1017;
  color-scheme: dark;
}

/* ---- Base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  white-space: nowrap;
}

b {
  color: var(--ink);
  font-weight: 650;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus {
  top: 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ---- Header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark__orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe2a8, var(--amber) 55%, var(--amber-deep));
}
.top__nav,
.top nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 15px;
}
.top nav a {
  color: var(--text);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 559px) {
  /* Phone: keep the two links that matter. */
  .top__nav a[href="#how"],
  .top__nav a[href="/#how"],
  .top__nav a[href="/benchmarks"] {
    display: none;
  }
}

/* ---- Hero ---- */

.hero {
  padding: 56px 0 64px;
}
.hero__in {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 940px) {
  .hero {
    padding: 88px 0 96px;
  }
  .hero__in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.headline {
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  margin-top: 24px;
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.5;
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--ink);
}
.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}
.btn--primary:hover {
  border-color: var(--amber-deep);
  background: color-mix(in srgb, var(--amber) 88%, #fff);
}
.fine {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Hero install: the command is the proof that it is easy. */
.install {
  margin-top: 28px;
  max-width: 26em;
}
.install__label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.install__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-text);
}
.install__box pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 17px;
}
.install__box pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.install__box pre code::before {
  content: "$ ";
  color: var(--code-dim);
}
.install + .actions {
  margin-top: 20px;
}

/* The account map: the one picture on the page. */
.map {
  margin: 0;
  display: grid;
  gap: 0;
  font-size: 16px;
}
.map__amp,
.map__box {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.map__amp {
  justify-self: start;
}
.map__name {
  color: var(--ink);
  font-weight: 650;
}
.map__sub {
  color: var(--muted);
  font-size: 14px;
}
.map__sub code {
  font-size: 0.9em;
}
.map__link {
  position: relative;
  margin-left: 28px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}
.map__link::after {
  /* Arrow head, pointing up: the connection goes out from the account to Amp. */
  content: "";
  position: absolute;
  left: -6px;
  top: -1px;
  border: 5px solid transparent;
  border-bottom: 7px solid var(--line-strong);
  border-top: 0;
}
.map__acct {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
}
.map__acct-name {
  margin: 0 0 2px 2px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.map__orbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.map__orbs li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 20px 6px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.map__orbs small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12.5px;
}
.orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.orb--awake {
  background: radial-gradient(circle at 34% 30%, #fff1d2 0, var(--amber) 48%, #c98a1c 100%);
  box-shadow: 0 0 0 6px var(--amber-glow);
  animation: breathe 4s ease-in-out infinite;
}
.map__orbs li:nth-child(2) .orb--awake {
  animation-delay: -2s;
}
.orb--paused {
  background: radial-gradient(circle at 34% 30%, #dfe5ec 0, var(--slate) 60%, #4c5a6b 100%);
  opacity: 0.85;
}
@keyframes breathe {
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orb--awake {
    animation: none;
  }
}
.map__cap {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Sections ---- */

.band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.band--alt {
  background: var(--bg-alt);
}
@media (min-width: 720px) {
  .band {
    padding: 72px 0;
  }
}
.nw {
  white-space: nowrap;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 780;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.intro {
  max-width: 40em;
}

/* Is this for me: two readers, side by side. */
.who {
  display: grid;
  gap: 32px 56px;
}
@media (min-width: 760px) {
  .who {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .who__item + .who__item {
    padding-left: 56px;
    margin-left: -56px;
    border-left: 1px solid var(--line);
  }
}
.who h3,
.get h3,
.steps h3 {
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.who p {
  margin: 0;
  max-width: 34em;
}

/* What you get. The self-hosting column has the same dashed edge as
   "Your Cloudflare account" in the map: these things live in your account. */
.get {
  display: grid;
  gap: 24px 40px;
  align-items: start;
}
@media (min-width: 760px) {
  .get {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.get__col--own {
  padding: 22px 22px 6px;
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
}
@media (min-width: 760px) {
  .get__col:first-child {
    padding-top: 24px;
  }
}
.ticks,
.know {
  display: grid;
  gap: 10px;
}
.ticks li,
.know li {
  position: relative;
  padding-left: 22px;
  max-width: 36em;
}
.ticks li::before,
.know li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate);
}
.ticks--own li::before {
  background: var(--amber);
}
.get__col--own .ticks {
  margin-bottom: 16px;
}

/* Three ways to get orbs. */
.ways {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 16px;
}
.ways th,
.ways td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ways tbody tr:last-child > * {
  border-bottom: 0;
}
.ways thead th {
  vertical-align: bottom;
  font-weight: 700;
  color: var(--ink);
}
.ways__sub {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.ways tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}
.ways th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
.ways .is-us {
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  color: var(--ink);
}
.ways thead .is-us::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 0.02em;
}
.ways .is-yes {
  font-weight: 650;
}
.ways .is-no {
  color: var(--muted);
}

/* Speed: one line, set large. */
.speed__line {
  margin: 0 0 12px;
  max-width: 24em;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.speed p:last-child {
  margin: 0;
}

/* Benchmarks page head. */
.page-head {
  padding: 56px 0 40px;
}
.headline--page {
  max-width: none;
}
.page-head .intro {
  margin-top: 16px;
  color: var(--muted);
}

/* Get started */
.start {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 940px) {
  .start {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}
.start__text p {
  max-width: 34em;
}
.need {
  display: grid;
  gap: 6px;
  margin: -4px 0 20px !important;
}
.need li {
  position: relative;
  padding-left: 26px;
}
.need li::before {
  /* A check box: these are things to have before you start. */
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.aside {
  color: var(--muted);
  font-size: 15px;
}

.code {
  min-width: 0;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-text);
  overflow: hidden;
  border: 1px solid var(--line);
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--code-dim);
  font-size: 13px;
}
.copy {
  font: inherit;
  font-weight: 600;
  color: var(--code-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.14);
}
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.code pre code {
  white-space: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.code .c {
  color: var(--code-dim);
}

/* How it works: a real sequence, so it is numbered. */
.steps {
  counter-reset: step;
  display: grid;
  gap: 28px 40px;
  margin: 8px 0 28px !important;
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-ink);
  background: var(--amber);
}
.steps h3 {
  margin-top: 2px;
}
.steps p {
  margin: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 36px 48px;
}
@media (min-width: 820px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.qa h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.qa p {
  max-width: 36em;
}
.qa p:last-child {
  margin-bottom: 0;
}
.qa--wide > p {
  max-width: 48em;
}

/* Comparison table */
.table-scroll {
  position: relative; /* holds the .sr labels in the cells, so they do not widen the page */
  overflow-x: auto;
  margin: 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp th,
.cmp td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp tbody tr:last-child > * {
  border-bottom: 0;
}
.cmp thead th {
  vertical-align: bottom;
  font-weight: 650;
  color: var(--ink);
}
.cmp__name {
  display: block;
}
.cmp__size {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.cmp tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.cmp th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
.cmp .is-us {
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
}
.cmp thead .is-us .cmp__name::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 0.05em;
}
.cmp .is-best {
  font-weight: 750;
  color: var(--best);
}
.cmp .is-none {
  color: var(--muted);
}
.cmp .is-no {
  color: var(--muted);
}
.fn {
  font-size: 0.72em;
  line-height: 0;
  margin-left: 2px;
}
.fn a {
  text-decoration: none;
  font-weight: 600;
}
.note {
  color: var(--muted);
  font-size: 14px;
  max-width: 60em;
}
.notes {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  display: grid;
  gap: 4px;
  max-width: 60em;
}
.notes:empty {
  display: none;
}
.notes li:target {
  color: var(--ink);
}

/* ---- Footer ---- */

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}
.foot__in {
  display: grid;
  gap: 16px;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot p {
  margin: 0;
}

/* ---- 404 page (404.html) ---- */

.thread {
  padding-top: 72px;
  padding-bottom: 96px;
}
.node {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: radial-gradient(circle at 34% 30%, #dfe5ec 0, var(--slate) 60%, #4c5a6b 100%);
}

@media (max-width: 559px) {
  .ways {
    min-width: 500px;
    font-size: 15px;
  }
  .ways th,
  .ways td {
    padding: 12px;
  }
  .cmp {
    min-width: 640px;
    font-size: 14px;
  }
  .cmp th,
  .cmp td {
    padding: 10px;
  }
  .cmp tbody th {
    white-space: normal;
    min-width: 116px;
  }
  .code pre {
    font-size: 12.5px;
  }
}

.page-head + .band {
  padding-top: 24px;
  border-top: 0;
}
