:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #e7e7e7;
  background: #111;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #111;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px),
    #111;
  background-size: 48px 48px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2b2b;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  width: 32px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.environment {
  color: #898989;
  font-size: 12px;
}

main {
  padding-block: 88px 72px;
}

.hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8e8e8e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: #f4f4f4;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: #a7a7a7;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b3b3b;
  border-radius: 2px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.primary-action {
  border-color: #ededed;
  background: #ededed;
  color: #151515;
  cursor: pointer;
}

.primary-action:hover {
  border-color: #fff;
  background: #fff;
}

.secondary-action {
  background: #171717;
  color: #cfcfcf;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: #565656;
  background: #202020;
  color: #fff;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 88px;
  border-top: 1px solid #2b2b2b;
  border-left: 1px solid #2b2b2b;
}

.test-grid article {
  min-height: 190px;
  border-right: 1px solid #2b2b2b;
  border-bottom: 1px solid #2b2b2b;
  background: #131313e8;
  padding: 24px;
}

.card-number {
  color: #666;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.test-grid h2,
.configuration h2 {
  margin: 32px 0 10px;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 620;
}

.test-grid p {
  margin-bottom: 0;
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.65;
}

.configuration {
  margin-top: 72px;
  border: 1px solid #2b2b2b;
  background: #151515;
  padding: 28px;
}

.configuration-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2b2b2b;
}

.configuration-heading .eyebrow {
  margin-bottom: 0;
}

.configuration h2 {
  margin: 8px 0 0;
  font-size: 18px;
}

.status {
  margin: 0;
  color: #a1a1a1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.status[data-state="ready"] {
  color: #75be8e;
}

.status[data-state="error"] {
  color: #e0736b;
}

form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 14px 20px;
  max-width: 760px;
  padding-top: 24px;
}

label {
  color: #c3c3c3;
  font-size: 12px;
  font-weight: 600;
}

label span {
  display: block;
  margin-top: 3px;
  color: #686868;
  font-size: 10px;
  font-weight: 450;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid #343434;
  border-radius: 2px;
  outline: 0;
  background: #101010;
  padding: 0 12px;
  color: #e5e5e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

input::placeholder {
  color: #555;
}

input:focus {
  border-color: #686868;
}

.form-actions {
  grid-column: 2;
  margin-top: 4px;
}

.configuration-note {
  margin: 22px 0 0 180px;
  color: #747474;
  font-size: 11px;
  line-height: 1.6;
}

code {
  color: #b8b8b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2b2b2b;
  color: #666;
  font-size: 11px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  main {
    padding-block: 60px 48px;
  }

  .environment {
    display: none;
  }

  .test-grid {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .test-grid article {
    min-height: 150px;
  }

  .configuration {
    margin-top: 48px;
    padding: 20px;
  }

  .configuration-heading {
    display: block;
  }

  .status {
    margin-top: 14px;
    text-align: left;
  }

  form {
    display: block;
  }

  label,
  input {
    display: block;
  }

  label {
    margin: 20px 0 7px;
  }

  .form-actions {
    margin-top: 18px;
  }

  .configuration-note {
    margin-left: 0;
  }

  footer {
    display: grid;
    align-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
