:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #172033;
  background: #f1f5f9;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 18rem;
  margin: 0;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

header {
  padding: 2.5rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #0ea5e9);
}

header h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.05;
}

header p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  display: grid;
  gap: 1rem;
  padding-block: 1rem 2rem;
}

section {
  padding: 1.25rem;
  border: 1px solid #dbe3ef;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 2rem rgb(15 23 42 / 8%);
}

h2 {
  margin: 0 0 1rem;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 750;
}

input,
button {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.7rem;
  font: inherit;
}

input {
  padding: 0.7rem 0.8rem;
  border: 1px solid #94a3b8;
  color: inherit;
  background: #ffffff;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(37 99 235 / 30%);
  outline-offset: 2px;
}

button {
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 0;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #1d4ed8;
}

button:disabled {
  color: #64748b;
  background: #e2e8f0;
  cursor: wait;
}

.status {
  display: block;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #eff6ff;
}

.status:empty {
  display: none;
}

.status.error {
  color: #991b1b;
  background: #fee2e2;
}

.status.success {
  color: #166534;
  background: #dcfce7;
}

.student-summary {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.student-name {
  margin-top: 0;
  font-weight: 800;
}

.student-summary a {
  overflow-wrap: anywhere;
  color: #1d4ed8;
}

.help {
  margin: -0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

footer {
  padding: 0 0 2.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

@media (min-width: 40rem) {
  main {
    gap: 1.5rem;
    padding-block: 1.5rem 3rem;
  }

  section {
    padding: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    color: #e2e8f0;
    background: #0f172a;
  }

  section,
  input {
    background: #172033;
  }

  section {
    border-color: #334155;
  }

  .student-summary {
    background: #1e293b;
  }

  .status {
    background: #172554;
  }

  .status.error {
    color: #fecaca;
    background: #450a0a;
  }

  .status.success {
    color: #bbf7d0;
    background: #052e16;
  }

  .student-summary a {
    color: #93c5fd;
  }
}

