@font-face {
  font-family: Teodor;
  src: url("/fonts/Teodor-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Lay Grotesk";
  src: url("/fonts/LayGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111;
  --muted: #646464;
  --line: #dedede;
  --paper: #fff;
  --soft: #f7f7f5;
  --serif: Teodor, Georgia, serif;
  --sans: "Lay Grotesk", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
[hidden] {
  display: none !important;
}
::selection {
  color: #fff;
  background: #111;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}
.admin-shell,
.login-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 48px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}
.wordmark span {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.045em;
  color: var(--muted);
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.account-email {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.text-button,
.text-link {
  color: var(--ink);
  font-size: 12px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  text-decoration: none;
  white-space: nowrap;
}
.text-button:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 61px 0 43px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
}
h1 {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.06;
}
h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}
.page-description {
  color: var(--muted);
  font-size: 14px;
  margin: 17px 0 0;
}
.website-link {
  font-size: 12px;
  padding-bottom: 5px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 25px 30px 26px;
}
.stat:first-child {
  padding-left: 0;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-label {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.stat-label span {
  font-size: 10px;
}
.stat-value {
  font-family: var(--serif);
  font-size: 49px;
  font-weight: 300;
  line-height: 1.05;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.registrations {
  margin-top: 48px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 27px;
}
.list-actions {
  display: flex;
  gap: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 150ms ease;
}
.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.button-light:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--soft);
}
.button-dark {
  color: #fff;
  background: var(--ink);
}
.button-dark:hover:not(:disabled) {
  background: #333;
}
.search-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.search-field {
  flex: 1;
  min-width: 0;
}
.search-field label,
.password-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}
.search-field input,
.password-input input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  min-height: 44px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.search-field input::placeholder {
  color: #777;
}
.search-submit {
  min-height: 44px;
  padding-inline: 24px;
}
.clear-search {
  min-height: 44px;
  padding-inline: 7px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0 23px;
  color: var(--muted);
  font-size: 10px;
}
.list-meta p {
  margin: 0;
}
#last-updated {
  white-space: nowrap;
}
.notice {
  padding: 14px 16px;
  background: var(--soft);
  border-left: 2px solid var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
.error-notice {
  margin: 0 0 22px;
}
.list-state {
  padding: 67px 24px 70px;
  text-align: center;
  border-block: 1px solid var(--line);
  background: var(--soft);
}
.state-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 31px;
  line-height: 1.2;
}
.state-copy {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  max-width: 430px;
  overflow-wrap: anywhere;
}
.registrations-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.registrations-table th {
  padding: 14px 13px;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  border-block: 1px solid var(--line);
  background: var(--soft);
}
.registrations-table th span {
  white-space: nowrap;
}
.registrations-table th:nth-child(1) {
  width: 14%;
}
.registrations-table th:nth-child(2) {
  width: 20%;
}
.registrations-table th:nth-child(3) {
  width: 15%;
}
.registrations-table th:nth-child(4) {
  width: 10%;
}
.registrations-table th:nth-child(5) {
  width: 25%;
}
.registrations-table th:nth-child(6) {
  width: 16%;
}
.registrations-table td {
  padding: 20px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.registrations-table th:first-child,
.registrations-table td:first-child {
  padding-left: 0;
}
.registrations-table th:last-child,
.registrations-table td:last-child {
  padding-right: 0;
}
.member-name {
  display: block;
}
.member-id {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
.fun-fact {
  white-space: pre-wrap;
}
.joined-date {
  color: var(--muted);
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.pagination > p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.page-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-controls .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
}
.page-position {
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.admin-footer p {
  margin: 0;
}
.j-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.j-signature img {
  display: block;
  object-fit: contain;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 78px 0;
}
.login-panel {
  width: min(430px, 100%);
}
.login-panel h1 {
  font-size: clamp(48px, 5.5vw, 64px);
}
.login-panel .page-description {
  margin-top: 19px;
}
#login-form {
  margin-top: 35px;
}
.password-input {
  display: flex;
  border: 1px solid var(--line);
}
.password-input:focus-within {
  border-color: var(--ink);
}
.password-input input {
  border: 0;
  min-height: 49px;
}
.password-input input:focus-visible {
  outline-offset: -3px;
}
.password-input .text-button {
  padding: 0 15px;
  font-size: 11px;
}
.field-hint {
  margin: 9px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.login-submit {
  margin-top: 25px;
  width: 100%;
  justify-content: space-between;
  min-height: 49px;
  font-size: 13px;
}
.login-status {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.login-status:empty {
  display: none;
}
.login-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 10px;
}
#login-error {
  margin: 20px 0 0;
}
.login-shell .admin-footer {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .admin-shell,
  .login-shell {
    padding-inline: 30px;
  }
  .registrations-table th:nth-child(2) {
    width: 19%;
  }
  .registrations-table th:nth-child(5) {
    width: 23%;
  }
  .registrations-table th:nth-child(6) {
    width: 19%;
  }
  .registrations-table td {
    padding-inline: 9px;
  }
  .registrations-table th {
    padding-inline: 9px;
  }
}

@media (max-width: 720px) {
  .admin-shell,
  .login-shell {
    padding-inline: 22px;
  }
  .admin-header {
    min-height: 100px;
    gap: 18px;
  }
  .wordmark {
    font-size: 21px;
    max-width: 185px;
  }
  .account-menu {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
  .account-email {
    font-size: 10px;
    max-width: 170px;
  }
  .page-heading {
    display: block;
    margin: 41px 0 29px;
  }
  .page-description {
    font-size: 13px;
  }
  .website-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 11px;
  }
  .stat {
    padding: 21px 14px;
  }
  .stat-label {
    min-height: 30px;
    font-size: 10px;
    line-height: 1.4;
  }
  .stat-label span {
    font-size: 9px;
  }
  .stat-value {
    font-size: 41px;
  }
  .registrations {
    margin-top: 32px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 29px;
  }
  .list-actions {
    margin-left: auto;
  }
  .button {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 11px;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-submit {
    padding-inline: 14px;
  }
  .search-form {
    flex-wrap: wrap;
    gap: 9px;
  }
  .search-field {
    flex-basis: calc(100% - 88px);
  }
  .clear-search {
    min-height: 30px;
    padding: 0;
  }
  .list-meta {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 21px;
  }
  .registrations-table,
  .registrations-table tbody {
    display: block;
    width: 100%;
  }
  .registrations-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .registrations-table tr {
    display: block;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .registrations-table tr:last-child {
    border-bottom: 1px solid var(--line);
  }
  .registrations-table td,
  .registrations-table td:first-child,
  .registrations-table td:last-child {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    padding: 7px 0;
    border: 0;
    font-size: 12px;
  }
  .registrations-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    padding-top: 2px;
  }
  .registrations-table td > .cell-value {
    min-width: 0;
  }
  .member-id {
    display: inline;
    margin: 0 0 0 8px;
  }
  .pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .page-controls {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
  }
  .admin-footer {
    margin-top: 41px;
    gap: 18px;
  }
  .admin-footer > p {
    max-width: 190px;
  }
  .login-main {
    padding-block: 61px;
  }
  .login-shell .admin-header > .text-link {
    max-width: 110px;
    font-size: 10px;
    white-space: normal;
    text-align: right;
  }
  .password-input input {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .admin-shell,
  .login-shell {
    padding-inline: 17px;
  }
  .wordmark {
    max-width: 145px;
    font-size: 20px;
  }
  .account-email {
    max-width: 140px;
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 46px;
  }
  .stat {
    padding-inline: 11px;
  }
  .stat-value {
    font-size: 36px;
  }
  .list-actions {
    margin-left: 0;
  }
  .registrations-table td,
  .registrations-table td:first-child,
  .registrations-table td:last-child {
    grid-template-columns: 73px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
