* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 100%;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: max(env(safe-area-inset-top), 48px) 24px 96px;
}

header h1 {
  font-weight: 400;
  font-size: 42px;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}

.lede {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0 0 36px;
  font-size: 24px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

input[type="text"],
input[type="email"],
input:not([type]) {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 0 10px;
  font: inherit;
  font-size: 26px;
  letter-spacing: normal;
  text-transform: none;
}

input:focus { outline: none; border-bottom-color: #fff; }

input[type="file"] {
  font: inherit;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 0;
}

label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

label.checkbox input { margin-top: 4px; }

button[type="submit"] {
  margin-top: 8px;
  appearance: none;
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 0;
  font: inherit;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 200ms;
}
button[type="submit"]:disabled { opacity: 0.4; cursor: default; }

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
}
.progress .bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.progress .bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: #fff;
  transition: width 120ms linear;
}

.status {
  margin: 0;
  font-style: italic;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.4em;
}
.status.error { color: #ff8c8c; }
.status.ok { color: rgba(255, 255, 255, 0.9); }
