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

html {
  color-scheme: dark light;
  font-family: var(--vf-body);
  line-height: 1.5;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--vf-obsidian);
  color: var(--vf-ceramic);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  font-family: var(--vf-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.vf-skip-link {
  position: fixed;
  z-index: 1000;
  inset: 0 auto auto 0;
  padding: 0.75rem 1rem;
  background: var(--vf-signal);
  color: var(--vf-obsidian);
  font-family: var(--vf-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-110%);
  transition: transform var(--vf-fast) linear;
}

.vf-skip-link:focus {
  transform: translateY(0);
}

.vf-label {
  font-family: var(--vf-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.vf-positioning {
  max-width: 47rem;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.vf-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.vf-field {
  display: grid;
  gap: 0.45rem;
}

.vf-field--wide,
.vf-form-actions,
.vf-form-status {
  grid-column: 1 / -1;
}

.vf-field label {
  font-family: var(--vf-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vf-field input,
.vf-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.vf-field textarea {
  min-height: 7.25rem;
  resize: vertical;
}

.vf-field input::placeholder,
.vf-field textarea::placeholder {
  color: currentColor;
  opacity: 0.5;
}

.vf-field input:focus,
.vf-field textarea:focus {
  border-bottom-color: var(--vf-signal);
  box-shadow: 0 2px 0 var(--vf-signal);
}

.vf-trap {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vf-submit {
  min-height: 3.5rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--vf-frontier-red);
  border-radius: 0;
  background: var(--vf-frontier-red);
  color: var(--vf-ceramic);
  cursor: pointer;
  font-family: var(--vf-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--vf-fast) linear, color var(--vf-fast) linear;
}

.vf-submit:hover {
  background: transparent;
  color: inherit;
}

.vf-form-status {
  min-height: 1.5em;
  margin: 0;
  font-family: var(--vf-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

:focus-visible {
  outline: 3px solid var(--vf-obsidian);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--vf-signal);
}

::selection {
  background: var(--vf-signal);
  color: var(--vf-obsidian);
}

@media (max-width: 40rem) {
  .vf-contact {
    grid-template-columns: 1fr;
  }

  .vf-field--wide,
  .vf-form-actions,
  .vf-form-status {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
