@font-face {
  font-family: Garamond;
  src: url("/fonts/ebgaramond-400.woff2") format("woff2");
  font-display: swap;
}
html { background: #fff; color: #000; }
body {
  box-sizing: border-box;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 1.5rem;
  font: clamp(1.125rem, 2vw, 1.5rem)/1.5 Garamond, "Times New Roman", serif;
  font-variant-caps: small-caps;
  letter-spacing: .04em;
  text-align: center;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #666; }
main { align-self: start; justify-self: center; min-width: 0; max-width: 34rem; padding: max(4rem, 14vh) 0 4rem; }
h1 { font: inherit; margin: 0 0 2.5rem; }
p { margin: 0 0 1.75rem; }

nav.tabs { margin: 0 0 3rem; font-size: .8125em; }
nav.tabs a { color: #999; margin: 0 .9em; padding-bottom: .15em; }
nav.tabs a[aria-current="page"] { color: #000; border-bottom: 1px solid #000; }
nav.tabs a:hover { color: #000; }

.price { font-variant-numeric: lining-nums; }
.price div { margin: 0 0 .25rem; }
.unit, .note { color: #999; font-size: .6875em; }
.literal { font-variant-caps: normal; letter-spacing: 0; }
.api { font-size: .8125em; }
.tps { margin: -1rem 0 3rem; }
.tps-n { font-size: clamp(6rem, 22vw, 13rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.tps-u { margin: .5rem 0 .25rem; }
.tps .note a { border-bottom: 1px solid #ccc; }

ol.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; }
ol.steps li { margin: 0 0 .5rem; }
.action { display: inline-block; border-bottom: 1px solid #000; }

footer {
  padding: 1.5rem 0 0;
  font-size: .6875rem;
  line-height: 1.6;
  color: #999;
  text-align: center;
}
footer a:hover { color: #000; }

/* Long pages: docs, privacy, terms */
body.text { text-align: left; text-wrap: pretty; }
body.text main { max-width: 38rem; width: 100%; align-self: start; padding: 3rem 0; }
body.text h1 { text-align: center; margin-bottom: .5rem; }
body.text .sub { text-align: center; color: #999; font-size: .6875em; margin-bottom: 2.5rem; }
body.text h2 { font: inherit; font-size: .9375em; margin: 2.25rem 0 .5rem; }
body.text p, body.text li, body.text td, body.text th {
  font-variant-caps: normal; letter-spacing: 0; font-size: 1.0625rem; line-height: 1.6;
}
body.text p { margin: 0 0 1rem; }
body.text ul { padding-left: 1.2rem; margin: 0 0 1rem; }
body.text a { border-bottom: 1px solid #ccc; }
body.text footer a { border: 0; }
code, pre { font: .875rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-caps: normal; letter-spacing: 0; }
pre { margin: .5rem 0 1.25rem; padding: .75rem 0 .75rem 1rem; border-left: 1px solid #ddd; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
th, td { text-align: left; vertical-align: top; padding: .35rem .75rem .35rem 0; border-top: 1px solid #eee; }
th { font-weight: 400; color: #999; }
td code { overflow-wrap: anywhere; }
@media (max-width: 36rem) {
  table, tbody, tr, th, td { display: block; }
  td + td, th + th { border-top: 0; padding-top: 0; }
  td:first-child code { overflow-wrap: normal; white-space: nowrap; }
}
