/* The site's look (DESIGN.md): one Inter weight, hierarchy by size, red on black, underlined links. Every colour,
   duration and curve is a token from tokens.css. Everything that moves sits in the no-preference block at the end. */
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-weight: inherit; /* one weight, also by name: the browser's bold would only be a number here, with one face and no synthesis */
}
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.skip {
  position: absolute;
  left: 24px;
  top: -64px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--raised);
  color: var(--ink);
}
.skip:focus {
  top: 8px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  position: relative;
  z-index: 2;
}
.mark {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
}
.top nav,
.fgrid nav {
  display: flex;
  gap: 24px;
}
.fgrid nav {
  flex-wrap: wrap;
}
.top nav a,
.fgrid nav a {
  padding: 8px 0;
}
.top nav a[aria-current="page"] {
  color: var(--accent);
}
/* Signed in (only when sign-in is configured): the name and Sign out take the place of "Sign in", last in the header. */
.top.has-acct {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 24px;
}
.top.has-acct .mark {
  margin-right: auto;
}
.acct {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.who {
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.signout {
  margin: 0;
  flex: none;
}
.linkbtn {
  padding: 8px 0;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.hero-in {
  max-width: 1200px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 14.5em;
}
.lead {
  margin-top: 24px;
  max-width: 36em;
  font-size: 20px;
  color: var(--muted);
}
.ask-form {
  margin-top: 48px;
  max-width: 640px;
}
.ask-form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.ask-row {
  display: flex;
  gap: 8px;
}
input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  font: inherit;
  font-size: 18px;
  color: var(--on-fill);
  background: var(--fill);
  border: 1px solid var(--fill-outline);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--fill-hover);
}
.btn:active {
  background: var(--fill-press);
}
.btn.secondary {
  height: auto;
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
  border-color: var(--input-line);
  background: transparent;
  color: var(--ink);
}
.btn.secondary:hover {
  border-color: var(--ink);
  background: var(--raised);
}
.eg {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 760px;
}
.eg a {
  display: inline-block;
  padding: 4px 0;
  color: var(--accent-soft);
}
.eg a:hover {
  color: var(--ink);
}
.note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--subtle);
}

/* orbits */
.orbits {
  position: absolute;
  width: min(760px, 120vw);
  height: auto;
  left: calc(100% + 160px - min(760px, 120vw));
  top: 50%;
  margin-top: -380px;
  pointer-events: none;
}
.orbits circle {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.38;
  stroke-width: 1.5;
}
.orbits .p {
  fill: var(--accent);
  stroke: none;
  fill-opacity: 0.85;
}
.orbits .o {
  transform-box: fill-box;
  transform-origin: center;
}
.orbits.right {
  left: calc(100% - 420px);
  top: 50%;
  width: min(620px, 160vw);
  margin-top: -310px;
}
.orbits.right circle {
  stroke: var(--ink);
  stroke-opacity: 0.18;
}
.orbits.right .p {
  fill: var(--ink);
  fill-opacity: 0.5;
}

/* ticker */
.ticker {
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--raised);
  padding: 16px 0;
}
.track {
  display: flex;
  width: max-content;
  gap: 64px;
  padding-left: 64px;
}
.track span {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

/* bands */
.band {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.alt {
  background: var(--surface);
}
.field {
  background: var(--field);
  color: var(--ink);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.band h2,
.page h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 24px;
}
.band h2::after,
.page h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
}
.field h2::after {
  background: var(--ink);
}
.items {
  display: grid;
  gap: 48px;
}
article {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--raised);
}
article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.field article {
  border-color: var(--field-rule);
}
.name {
  display: inline-block;
  font-size: 20px;
  color: var(--accent);
  padding: 4px 0;
}
.name::after {
  content: " \2192";
  content: " \2192" / "";
}
.field .name {
  color: var(--ink);
}
h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
article p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
}
.field article p,
.field .big {
  color: var(--ink);
}
.big {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 26em;
}
.apps div {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--raised);
}
.apps dt {
  font-size: 20px;
  color: var(--ink);
}
.apps dd {
  color: var(--muted);
  font-size: 18px;
}
.more {
  margin-top: -16px;
}
.more a {
  color: var(--accent);
  font-size: 18px;
}

/* faders */
.faders {
  position: absolute;
  right: 24px;
  top: 0;
  bottom: 0;
  width: min(46%, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  pointer-events: none;
}
.faders i {
  display: block;
  flex: 1;
  height: 70%;
  background: var(--ink);
  opacity: 0.1;
  transform-origin: bottom;
  transform: scaleY(0.5);
}

/* the other pages: the same header, footer, type and links, on a plain page */
.page {
  padding: 64px 0 96px;
}
.page h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 48px;
}
.page p {
  margin-top: 16px;
  max-width: 34em;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.page .lead {
  font-size: 20px;
  margin-top: 24px;
}
.page p a,
.page li a {
  color: var(--accent);
}
.page .btn.secondary {
  color: var(--ink);
  font-size: 16px;
}
.page .ask-form {
  margin-top: 32px;
}
.page .note {
  margin-top: 24px;
  font-size: 14px;
}
#ask-root {
  max-width: 640px;
}
.app-list li,
.steps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--raised);
}
.app-list {
  margin-top: 48px;
  max-width: 760px;
}
.app-list h2,
.steps h2 {
  margin-top: 0;
}
.app-list h2 {
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0;
}
.app-list p {
  margin-top: 0;
  color: var(--muted);
}
.steps {
  margin-top: 48px;
  max-width: 760px;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
}
.plain {
  margin-top: 24px;
}
.plain li {
  padding: 8px 0;
  font-size: 18px;
}

/* footer */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--raised);
  padding: 48px 0 24px;
}
.fgrid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.fgrid p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 22em;
}
.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  color: var(--subtle);
  font-size: 14px;
}
.legal p {
  margin: 0;
}
.pause {
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  cursor: pointer;
}
.pause:hover {
  border-color: var(--ink);
}
.pause[aria-pressed="true"] {
  background: var(--raised);
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .band {
    padding: 64px 0;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .page {
    padding: 32px 0 64px;
  }
  .ask-row {
    flex-direction: column;
  }
  input {
    flex: none;
    width: 100%;
  }
  .ask-row .btn {
    width: 100%;
  }
  .orbits {
    opacity: 0.6;
    left: calc(100% - 340px);
    top: 0;
    margin-top: -80px;
    width: min(640px, 170vw);
  }
  .apps div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faders {
    width: 60%;
    opacity: 0.7;
  }
  .top nav {
    gap: 16px;
  }
  /* The name and Sign out take a row of their own so a long name truncates inside it, never pushes the page sideways. */
  .top.has-acct .acct {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-bottom: 8px;
  }
  .top.has-acct .who {
    max-width: none;
    flex: 0 1 auto;
  }
}

/* motion: transform and opacity only, and only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform var(--d1) var(--ease);
  }
  .btn:active {
    transform: translateY(1px);
  }
  .btn.secondary {
    transition: transform var(--d1) var(--ease);
  }
  .btn.secondary:hover {
    transform: translateY(-2px);
  }
  .eg a {
    transition: transform var(--d1) var(--ease);
  }
  .eg a:hover {
    transform: translateY(-2px);
  }
  .name {
    transition: transform var(--d1) var(--ease);
  }
  .name:hover {
    transform: translateX(8px);
  }
  .apps div,
  .app-list li {
    transition: transform var(--d1) var(--ease);
  }
  .apps div:hover,
  .app-list li:hover {
    transform: translateX(8px);
  }

  .o1 {
    animation: spin var(--d3) linear infinite;
  }
  .o2 {
    animation: spin var(--d3) linear infinite reverse;
  }
  .o3 {
    animation: spin var(--d3) linear infinite;
  }
  .track {
    animation: slide var(--d3) linear infinite;
  }
  .faders i {
    animation: fade var(--d3) linear infinite;
  }
  .faders i:nth-child(2n) {
    animation-delay: -9s;
  }
  .faders i:nth-child(3n) {
    animation-delay: -21s;
  }
  .faders i:nth-child(5n) {
    animation-delay: -33s;
  }
  .faders i:nth-child(7n) {
    animation-delay: -4s;
  }
  .paused .o,
  .paused .track,
  .paused .faders i {
    animation-play-state: paused;
  }

  /* the other pages: one entrance, once, for everything under the heading */
  .page .wrap > :not(h1) {
    animation: rise var(--d2) var(--ease) both;
  }

  /* entrance on the home page: only when the script has run, so no-script pages show everything */
  .m [data-r] {
    opacity: 0;
    transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
  }
  .m article[data-r],
  .m .apps[data-r],
  .m .big[data-r] {
    transform: translateX(-24px);
  }
  .m h2[data-r] {
    opacity: 1;
  }
  .m h2[data-r]::after {
    transform: scaleX(0);
    transition: transform var(--d2) var(--ease);
  }
  .m h2.in::after {
    transform: none;
  }
  .m [data-r].in {
    opacity: 1;
    transform: none;
  }
  .m .items > :nth-child(2) {
    transition-delay: 0.2s;
  }
  .m .items > :nth-child(2)::after {
    transition-delay: 0.2s;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes slide {
    to {
      transform: translateX(-50%);
    }
  }
  @keyframes fade {
    0% {
      transform: scaleY(0.25);
    }
    12% {
      transform: scaleY(0.8);
    }
    27% {
      transform: scaleY(0.4);
    }
    41% {
      transform: scaleY(1);
    }
    58% {
      transform: scaleY(0.3);
    }
    73% {
      transform: scaleY(0.7);
    }
    88% {
      transform: scaleY(0.2);
    }
    100% {
      transform: scaleY(0.25);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .track {
    width: auto;
    flex-wrap: wrap;
    padding: 0 24px;
    gap: 8px 32px;
  }
  .track span:nth-child(n + 11) {
    display: none;
  }
  .faders i {
    transform: scaleY(0.6);
  }
}
