:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #b9c2bd;
  --green: #112f2a;
  --green-soft: #1b4139;
  --gold: #d5aa4c;
  --rust: #b94f31;
  --line: rgb(255 255 255 / 14%);
  --danger: #ef8f75;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgb(213 170 76 / 12%), transparent 30rem),
    var(--green);
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 76rem;
  margin: auto;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

main {
  max-width: 76rem;
  margin: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}
h1,
h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.sign-in-panel {
  max-width: 42rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.sign-in-panel > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.5rem 0 2rem;
}
.button {
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  color: var(--ink);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.button.primary {
  background: var(--rust);
}
.button.secondary {
  background: transparent;
  border-color: rgb(255 255 255 / 28%);
}
.button.danger {
  color: var(--danger);
  background: transparent;
  border-color: rgb(239 143 117 / 55%);
}
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.dashboard-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-heading {
  margin-bottom: 2rem;
}
.dashboard-heading h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.status {
  min-height: 1.8rem;
  margin: 0 0 1rem;
}
.status.error {
  color: var(--danger);
}
.panel {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--line);
}
.count {
  display: grid;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  place-items: center;
  color: var(--green);
  background: var(--gold);
  border-radius: 999px;
  font-weight: 800;
}
.request-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.request-card {
  padding: 1.25rem;
  background: var(--green-soft);
  border-left: 3px solid var(--gold);
}
.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.request-card h3 {
  margin: 0 0 0.25rem;
}
.request-card p {
  white-space: pre-wrap;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.empty {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  border: 1px dashed var(--line);
}
.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
td small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
}
.badge.disabled {
  color: var(--danger);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
noscript {
  display: block;
  margin: 2rem;
  color: var(--danger);
}

@media (max-width: 42rem) {
  .site-header,
  .dashboard-heading {
    align-items: flex-start;
  }
  .brand small {
    display: none;
  }
  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }
}
