:root {
  --white: #ffffff;
  --stone100: #f5f5f7;
  --stone600: #6e6e73;
  --stone900: #202021;
  --purple500: #596cd6;
  --text:
    'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial,
    sans-serif;
  --display:
    'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--stone100);
  color: var(--stone900);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 56px;
}

.home {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--purple500);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.home:hover {
  text-decoration: underline;
}

h1 {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p {
  margin: 0 0 24px;
  color: var(--stone600);
}

button {
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--purple500);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

button:focus-visible {
  outline: 3px solid var(--stone900);
  outline-offset: 2px;
}

[hidden] {
  display: none;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

select,
input[type='email'] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--stone600);
  border-radius: 10px;
  background: var(--white);
  color: var(--stone900);
  font: inherit;
}

section {
  margin-top: 40px;
}

h2 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.secondary {
  background: var(--white);
  color: var(--stone900);
  box-shadow: inset 0 0 0 1px var(--stone600);
}

.alerts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alerts li {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--stone600);
}

.alerts strong {
  color: var(--stone900);
}

.alerts button {
  display: block;
  margin-top: 12px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--purple500);
}

.check label {
  margin: 0;
  font-weight: 400;
}

.small {
  font-size: 14px;
}

.error {
  margin: -8px 0 16px;
  color: #b3261e;
}

/* Off screen rather than display: none, which some bots skip. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The dark theme. stone100 is the page and white is a card on it; the button
   keeps its purple fill and dark label, both lightened to suit. */
[data-theme='dark'] {
  color-scheme: dark;
  --white: #1c1c1e;
  --stone100: #0e0e10;
  --stone600: #a1a1a6;
  --stone900: #f5f5f7;
  --purple500: #a5b1f6;
}

[data-theme='dark'] .error {
  color: #ff7a70;
}
