@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jost-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jost-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Doto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/doto-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #070709;
  --lime: #eff65a;
  --card: #101014;
  --line: rgb(255 255 255 / 10%);
  --muted: rgb(255 255 255 / 72%);
  --faint: rgb(255 255 255 / 52%);
  --danger: #ffb4a8;
  --display: "Inter Tight", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: "Jost", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --kicker: "Doto", "Inter Tight", ui-monospace, monospace;
  color-scheme: dark;
}

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

html {
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(900px 420px at 50% -12%, rgb(239 246 90 / 9%), transparent 60%),
    var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.wrap {
  width: min(40rem, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.wrap.wide {
  width: min(44rem, calc(100% - 32px));
}

.kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-family: var(--kicker);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede,
.note,
.card p {
  margin: 0;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack.tight {
  gap: 10px;
}

.section {
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
}

.url-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.url,
pre {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.url {
  color: var(--lime);
}

pre {
  white-space: pre-wrap;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 500;
  padding: 12px 16px;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.55;
}

.primary {
  background: var(--lime);
  color: var(--ink);
  width: 100%;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  width: 100%;
}

.copy {
  background: var(--lime);
  color: var(--ink);
  width: 100%;
}

.link {
  background: none;
  border: 0;
  color: var(--lime);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgb(255 255 255 / 86%);
  font-size: 14px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  padding: 14px;
}

.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 16px;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--lime);
  flex: none;
}

.reads {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.reads li + li {
  margin-top: 4px;
}

.alert {
  min-height: 1.25em;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.client-uri {
  color: var(--faint);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.field-label {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .url-line {
    flex-direction: row;
    align-items: center;
  }

  .copy {
    width: auto;
    flex: none;
  }
}
