:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: #171512;
  background: #f4efe5;
  --rust: #9d391f;
  --rule: #cfc5b5;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #f4efe5;
}
a {
  color: inherit;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.3rem clamp(1.2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--rule);
  font:
    700 0.7rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.masthead span {
  margin-right: auto;
  color: #6d6255;
  font-weight: 400;
}
.wordmark {
  text-decoration: none;
}
.login {
  width: min(42rem, calc(100% - 2.4rem));
  margin: 10vh auto;
}
.login h1,
.title-row h1 {
  margin: 0.25rem 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  font-weight: 400;
}
.login > p:not(.eyebrow),
.title-row p {
  max-width: 35rem;
  font-size: 1.15rem;
  color: #625b51;
}
form {
  display: grid;
  gap: 0.75rem;
  max-width: 29rem;
  margin-top: 3rem;
}
label,
.eyebrow {
  font:
    700 0.68rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}
input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #9f9587;
  background: #fffdf7;
  font: inherit;
}
button {
  justify-self: start;
  padding: 0.9rem 1.4rem;
  border: 0;
  color: white;
  background: #171512;
  font:
    700 0.72rem Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.error {
  color: #8e1f15;
}
.dashboard {
  width: min(94rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 5rem 0 8rem;
}
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: end;
  padding-bottom: 3rem;
}
.title-row nav {
  display: flex;
  border: 1px solid var(--rule);
}
.title-row nav a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  font:
    700 0.65rem Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.title-row nav a + a {
  border-left: 1px solid var(--rule);
}
.title-row nav .active {
  color: white;
  background: #171512;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}
.metrics article {
  display: grid;
  gap: 1rem;
  padding: 1.6rem 1.4rem;
}
.metrics article + article {
  border-left: 1px solid var(--rule);
}
.metrics span {
  font:
    700 0.66rem Arial,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d6255;
}
.metrics strong {
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
}
.chart-panel {
  margin-top: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
h2 {
  margin: 0.25rem 0 1.3rem;
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 400;
}
.chart {
  width: 100%;
  height: 19rem;
  overflow: visible;
}
.chart line {
  stroke: var(--rule);
  stroke-width: 0.25;
}
.chart polyline {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke: var(--rust);
  stroke-width: 2.2;
}
.tables {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.7fr;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.tables ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tables li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}
.tables li span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tables strong {
  color: var(--rust);
}
.recent {
  padding-top: 4rem;
}
.recent > div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 18rem;
  gap: 2rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}
.recent time,
.recent small {
  font:
    0.7rem Arial,
    sans-serif;
  color: #6d6255;
}
.empty {
  color: #6d6255;
  font-style: italic;
}
@media (max-width: 760px) {
  .masthead span {
    display: none;
  }
  .title-row {
    display: block;
  }
  .title-row nav {
    width: max-content;
    margin-top: 2rem;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .metrics article:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
  .tables {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .recent > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
