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

html {
  background: var(--fdx-page);
  color: var(--fdx-ink);
  font-family: var(--fdx-font-sans);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--fdx-ink);
  background: var(--fdx-page);
  font-family: var(--fdx-font-sans);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--fdx-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(77 20 140 / 28%);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
dl,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--fdx-ink-strong);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h1 {
  margin-bottom: var(--fdx-space-4);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

strong {
  font-weight: 700;
}

small {
  display: block;
  color: var(--fdx-muted);
}

button,
input,
select,
textarea {
  font: inherit;
}

label {
  display: grid;
  gap: var(--fdx-space-2);
  color: var(--fdx-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--fdx-control-height);
  border: 1px solid var(--fdx-line-strong);
  border-radius: var(--fdx-radius-xs);
  padding: 0.65rem 0.75rem;
  background: var(--fdx-surface);
  color: var(--fdx-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--fdx-muted-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--fdx-purple);
  box-shadow: inset 0 0 0 1px var(--fdx-purple);
}

textarea {
  resize: vertical;
}

::placeholder {
  color: #777;
  opacity: 1;
}

hr {
  border: 0;
  border-top: 1px solid var(--fdx-line);
}

pre,
code {
  font-family: var(--fdx-font-mono);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
