:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #68645e;
  --line: #dedbd2;
  --paper: #f8f6f1;
  --field: #ffffff;
  --accent: #ef5a38;
  --accent-dark: #151515;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.shell {
  width: min(100%, 720px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.45;
}

.preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 34px auto 0;
}

.signup {
  width: min(100%, 560px);
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

input,
button {
  min-height: 54px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 90, 56, 0.14);
}

button {
  flex: 0 0 auto;
  border: 0;
  background: var(--accent-dark);
  color: white;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: var(--accent);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note[data-state="error"] {
  color: #b42318;
}

.note[data-state="success"] {
  color: #276749;
}

.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 560px) {
  body {
    place-items: start center;
    padding-top: 72px;
  }

  .signup {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
