:root {
  box-sizing: border-box;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #f7f7f5;
  font-size: 16px;
}

a {
  display: inline-flex;
  align-items: center;
  color: #9a3412;
}

a,
button,
input,
select,
textarea {
  min-width: 44px;
  min-height: 44px;
  font: inherit;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font-size: 16px;
}

button {
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  color: #ffffff;
  background: #1f2937;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #9ca3af;
  border-radius: 0.4rem;
  background: #ffffff;
}

:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100vw - 72rem) / 2));
  color: #ffffff;
  background: #1f2937;
}

.site-header p,
.site-header form {
  margin: 0;
}

.site-header button {
  border: 1px solid #ffffff;
}

.page-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.module-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(31 41 55 / 8%);
}

.module-card h2,
.module-card p {
  margin-top: 0;
}

form p {
  max-width: 40rem;
}

.offline-notice {
  margin-top: 2rem;
}

@media (max-width: 639px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 640px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
