* {
  box-sizing: border-box;
}

:root {
  --paper: #f8f8f5;
  --ink: #151515;
  --muted: #777;
  --rule: #c6c6c0;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);

  font-family:
    "SFMono-Regular",
    "SF Mono",
    "IBM Plex Mono",
    "Courier New",
    monospace;

  -webkit-font-smoothing: antialiased;
}

main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px 30px 90px;
}

/* HEADER */

header {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);

  padding: 12px 0 13px;
  margin-bottom: 82px;
}

.institution {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.reference {
  margin-top: 7px;

  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* MAIN HEADING */

h1 {
  margin: 0 0 34px;

  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* BODY */

p {
  max-width: 590px;

  margin: 0;

  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* BUTTON */

button {
  width: 100%;

  margin-top: 42px;
  padding: 19px 20px;

  border: 1px solid var(--ink);
  border-radius: 0;

  background: var(--ink);
  color: var(--paper);

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;

  cursor: pointer;

  transition:
    background 120ms ease,
    color 120ms ease;
}

button:hover {
  background: transparent;
  color: var(--ink);
}

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

/* FORM */

.form {
  margin-top: 28px;

  font-size: 9px;
  letter-spacing: 0.15em;

  color: var(--muted);
}

/* STATUS LABELS */

.label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* APPLICANT NUMBER */

.number {
  margin-top: 21px;

  font-size: clamp(82px, 17vw, 132px);
  font-weight: 700;
  line-height: 0.86;

  letter-spacing: -0.09em;
}

/* DIVIDER */

.line {
  margin: 62px 0;

  border-top: 1px solid var(--rule);
}

/* STATUS */

.status {
  margin-top: 17px;

  font-size: clamp(38px, 7vw, 56px);
  font-weight: 700;
  line-height: 1;

  letter-spacing: -0.055em;
}

#statusMessage {
  margin-top: 31px;
  max-width: 570px;
}

/* ERROR */

.warning {
  margin-top: 25px;
  font-weight: 700;
}

/* VISIBILITY */

.hidden {
  display: none;
}

/* MOBILE */

@media (max-width: 600px) {
  main {
    padding: 24px 20px 60px;
  }

  header {
    margin-bottom: 62px;
  }

  h1 {
    font-size: 34px;
    margin-bottom: 28px;
  }

  button {
    margin-top: 36px;
  }

  .line {
    margin: 50px 0;
  }

  .number {
    font-size: clamp(72px, 19vw, 108px);
  }
}
#registration h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
#registration h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 600;
  max-width: 500px;
  margin-bottom: 36px;
}

#registration p {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
}

#registration .form {
  margin-top: 22px;
  font-size: 8px;
  letter-spacing: 0.18em;
}
