:root {
  --paper: #f7f6ff;
  --surface: #ffffff;
  --ink: #17123a;
  --muted: #5d5878;
  --line: #e3e0f5;
  --violet: #490fff;
  --link: #490fff;
  --orange: #ff7a1a;
  --orange-deep: #e85d00;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0b24;
    --surface: #18133a;
    --ink: #eeebff;
    --muted: #a9a3c7;
    --line: #2a2450;
    --violet: #7b5cff;
    --link: #a28fff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* Header */

.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
}

.lang {
  font-size: 0.9375rem;
  color: var(--muted);
}

.lang a {
  color: var(--muted);
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    padding: 5rem 0 6rem;
  }
}

.hero h1 {
  font-family: var(--rounded);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.availability {
  display: inline-block;
  font-family: var(--rounded);
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
}

/* The pasted export: the one loud element of the page. */
.paste {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem 1.5rem 0.4rem 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(73 15 255 / 0.35);
  overflow: hidden;
}

.paste::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.4rem;
  background: linear-gradient(var(--orange), var(--orange-deep));
}

.paste pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.paste .md-h {
  color: var(--violet);
  font-weight: 700;
}

.paste .md-k {
  color: var(--muted);
}

.paste figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.125rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--rounded);
  font-weight: 700;
}

.steps h3 {
  font-family: var(--rounded);
  font-size: 1.1875rem;
  margin: 0 0 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 4rem;
}

@media (min-width: 48rem) {
  .split {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
}

.split p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

/* Text pages */

.doc {
  max-width: 42rem;
  padding: 2.5rem 0 4rem;
}

.doc h1 {
  font-family: var(--rounded);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 2rem;
}

.doc h2 {
  font-family: var(--rounded);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.35rem;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.4rem solid var(--orange);
  border-radius: 0.75rem;
  padding: 1.1rem 1.4rem;
}

.summary p {
  margin: 0;
}

.contact {
  font-family: var(--rounded);
  font-size: 1.25rem;
  font-weight: 700;
}


details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

details summary {
  cursor: pointer;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1.125rem;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details p {
  margin: 0 0 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  max-width: 42rem;
}
