/* Quiet chrome shared by the visualizer and the reading pages.
   On the chart this is one line, in the same place as the old copyright. */

.chart-credit {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: max(8px, env(safe-area-inset-bottom));
  margin: 0;
  pointer-events: none;
  text-align: left;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #3c4352;
}

.chart-credit a {
  pointer-events: auto;
  color: #5c6578;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer a {
  color: #c5cad6;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #8b93a6;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
}

.site-legal {
  margin: 0;
}

.learn .site-footer a,
.learn .site-footer button,
.learn .site-footer input,
.learn .site-footer label {
  pointer-events: auto;
}

.signup {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.signup label {
  color: #aeb6c6;
}

.signup input[type="email"] {
  width: 168px;
  max-width: 46vw;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(8, 10, 16, 0.72);
  color: #e8ecf6;
  font: inherit;
  letter-spacing: 0.02em;
}

.signup input[type="email"]::placeholder {
  color: #6e778a;
}

.signup button {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
  color: #e8ecf6;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup button:disabled {
  opacity: 0.55;
  cursor: default;
}

.signup-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.learn .signup-status {
  flex-basis: 100%;
  margin: 0;
  color: #c5cad6;
}

.signup-status:empty {
  display: none;
}

html.ambient .chart-credit {
  display: none;
}

@media (max-width: 640px) {
  .chart-credit {
    font-size: 9px;
    bottom: max(6px, env(safe-area-inset-bottom));
  }
}

/* Reading pages. They do not load the visualizer stylesheet. */
body.learn {
  margin: 0;
  min-height: 100%;
  background: #05060a;
  color: #e8ecf6;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.learn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 40rem;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 22px 0;
}

.learn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8ecf6;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.learn-brand img {
  display: block;
  width: 22px;
  height: 22px;
}

.learn-open-link,
.learn-open a {
  color: #c5cad6;
  font-size: 13px;
}

.learn-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 28px 22px max(28px, env(safe-area-inset-bottom));
}

.learn-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b93a6;
}

.learn-kicker a {
  color: inherit;
}

.learn h1 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.learn h2 {
  margin: 28px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a6;
}

.learn-main p {
  margin: 0 0 14px;
  color: #d5dbe8;
}

.learn-guides {
  list-style: none;
  margin: 0;
  padding: 0;
}

.learn-guides li {
  margin: 0 0 14px;
}

.learn-guides a {
  color: #e8ecf6;
  font-weight: 600;
}

.learn-guides p {
  margin: 2px 0 0;
  color: #8b93a6;
  font-size: 14px;
}

.learn .site-footer {
  justify-content: flex-start;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: left;
}

.learn .signup {
  justify-content: flex-start;
  gap: 8px 10px;
  margin: 8px 0 20px;
  font-size: 14px;
}

.learn .site-footer .signup {
  width: 100%;
  margin: 0 0 8px;
}

.learn .signup input[type="email"],
.learn .signup button {
  min-height: 32px;
  font-size: 13px;
}

.learn .signup button {
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .learn h1 {
    font-size: 26px;
  }
}
